|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JetspeedPrincipalManager
Method Summary | |
---|---|
void |
addAssociation(JetspeedPrincipal from,
JetspeedPrincipal to,
java.lang.String associationName)
|
void |
addListener(PrincipalManagerEventListener listener)
|
void |
addPrincipal(JetspeedPrincipal principal,
java.util.Set<JetspeedPrincipalAssociationReference> associations)
|
java.util.List<? extends JetspeedPrincipal> |
getAssociatedFrom(java.lang.String principalFromName,
JetspeedPrincipalType from,
java.lang.String associationName)
Retrieves a detached and modifiable JetspeedPrincipal list of all the principals managed by this manager which are
associated from the specified principal by the specified association. |
java.util.List<java.lang.String> |
getAssociatedNamesFrom(java.lang.String principalFromName,
JetspeedPrincipalType from,
java.lang.String associationName)
Retrieves a detached and modifiable list of the names of all the principals managed by this manager which are associated from the specified principal by the specified association. |
java.util.List<java.lang.String> |
getAssociatedNamesTo(java.lang.String principalToName,
JetspeedPrincipalType to,
java.lang.String associationName)
Retrieves a detached and modifiable list of the names of all the principals managed by this manager which are associated to the specified principal by the specified association. |
java.util.List<? extends JetspeedPrincipal> |
getAssociatedTo(java.lang.String principalToName,
JetspeedPrincipalType to,
java.lang.String associationName)
Retrieves a detached and modifiable JetspeedPrincipal list of all the principals managed by this manager which are
associated to the specified principal by the specified association. |
java.util.List<JetspeedPrincipalAssociationType> |
getAssociationTypes()
|
JetspeedPrincipal |
getPrincipal(java.lang.String name)
|
java.util.List<java.lang.String> |
getPrincipalNames(java.lang.String nameFilter)
Retrieves a detached and modifiable List of principal names, finding principals matching the corresponding principal name filter. |
JetspeedPrincipalResultList |
getPrincipals(JetspeedPrincipalQueryContext queryContext)
Retrieve all principals that match the queryContext. |
java.util.List<? extends JetspeedPrincipal> |
getPrincipals(java.lang.String nameFilter)
Retrieves a detached and modifiable JetspeedPrincipal list matching the corresponding
principal name filter. |
java.util.List<? extends JetspeedPrincipal> |
getPrincipalsByAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
|
JetspeedPrincipalType |
getPrincipalType()
|
JetspeedPrincipal |
newPrincipal(java.lang.String name,
boolean mapped)
|
JetspeedPrincipal |
newTransientPrincipal(java.lang.String name)
|
boolean |
principalExists(java.lang.String name)
|
void |
removeAssociation(JetspeedPrincipal from,
JetspeedPrincipal to,
java.lang.String associationName)
|
void |
removeListener(PrincipalManagerEventListener listener)
|
void |
removePrincipal(JetspeedPrincipal principal)
|
void |
removePrincipal(java.lang.String name)
|
void |
transferAssociationFrom(JetspeedPrincipal from,
JetspeedPrincipal to,
JetspeedPrincipal target,
java.lang.String associationName)
|
void |
transferAssociationTo(JetspeedPrincipal from,
JetspeedPrincipal to,
JetspeedPrincipal target,
java.lang.String associationName)
|
void |
updatePrincipal(JetspeedPrincipal principal)
|
Method Detail |
---|
JetspeedPrincipalType getPrincipalType()
java.util.List<JetspeedPrincipalAssociationType> getAssociationTypes()
boolean principalExists(java.lang.String name)
JetspeedPrincipal getPrincipal(java.lang.String name)
java.util.List<java.lang.String> getPrincipalNames(java.lang.String nameFilter)
Retrieves a detached and modifiable List of principal names, finding principals matching the corresponding principal name filter.
nameFilter
- The filter used to retrieve matching principals.
java.util.List<? extends JetspeedPrincipal> getPrincipals(java.lang.String nameFilter)
Retrieves a detached and modifiable JetspeedPrincipal
list matching the corresponding
principal name filter.
nameFilter
- The filter used to retrieve matching principal.
JetspeedPrincipal
JetspeedPrincipalResultList getPrincipals(JetspeedPrincipalQueryContext queryContext)
JetspeedPrincipalResultList
, containing
the actual result list an the total number of results from the query.
The returned principals are detached.
queryContext
- The (@see JetspeedPrincipalQueryContext) for this query.
java.util.List<? extends JetspeedPrincipal> getPrincipalsByAttribute(java.lang.String attributeName, java.lang.String attributeValue)
JetspeedPrincipal newPrincipal(java.lang.String name, boolean mapped)
JetspeedPrincipal newTransientPrincipal(java.lang.String name)
void removePrincipal(java.lang.String name) throws SecurityException
SecurityException
java.util.List<? extends JetspeedPrincipal> getAssociatedFrom(java.lang.String principalFromName, JetspeedPrincipalType from, java.lang.String associationName)
Retrieves a detached and modifiable JetspeedPrincipal
list of all the principals managed by this manager which are
associated from the specified principal by the specified association.
If the association is JetspeedAssociationType#isSingular()
at most one principal will be returned.
principalFromName
- The principal name to find the other principals associated to.from
- The principal type of the provided principal nameassociationName
- The name of the association from the provided principal type to this Manager principal type.
JetspeedPrincipal
in the to side of the provided association for the provided principal name and its typejava.util.List<? extends JetspeedPrincipal> getAssociatedTo(java.lang.String principalToName, JetspeedPrincipalType to, java.lang.String associationName)
Retrieves a detached and modifiable JetspeedPrincipal
list of all the principals managed by this manager which are
associated to the specified principal by the specified association.
If the association is JetspeedAssociationType#isDominant()
at most one principal will be returned.
principalToName
- The principal name to find the other principals associated from.to
- The principal type of the provided principal nameassociationName
- The name of the association from this Manager principal type to the provided principal type
JetspeedPrincipal
in the from side of the provided association for the provided principal name and its typejava.util.List<java.lang.String> getAssociatedNamesFrom(java.lang.String principalFromName, JetspeedPrincipalType from, java.lang.String associationName)
Retrieves a detached and modifiable list of the names of all the principals managed by this manager which are associated from the specified principal by the specified association.
If the association is JetspeedAssociationType#isSingular()
at most one principal name will be returned.
principalFromName
- The principal name to find the other principals associated to.from
- The principal type of the provided principal nameassociationName
- The name of the association from the provided principal type to this Manager principal type
java.util.List<java.lang.String> getAssociatedNamesTo(java.lang.String principalToName, JetspeedPrincipalType to, java.lang.String associationName)
Retrieves a detached and modifiable list of the names of all the principals managed by this manager which are associated to the specified principal by the specified association.
If the association is JetspeedAssociationType#isDominant()
at most one principal name will be returned.
principalToName
- The principal name to find the other principals associated from.to
- The principal type of the provided principal nameassociationName
- The name of the association from this Manager principal type the to principal type
void addPrincipal(JetspeedPrincipal principal, java.util.Set<JetspeedPrincipalAssociationReference> associations) throws SecurityException
SecurityException
void updatePrincipal(JetspeedPrincipal principal) throws SecurityException
SecurityException
void removePrincipal(JetspeedPrincipal principal) throws SecurityException
SecurityException
void addAssociation(JetspeedPrincipal from, JetspeedPrincipal to, java.lang.String associationName) throws SecurityException
SecurityException
void transferAssociationTo(JetspeedPrincipal from, JetspeedPrincipal to, JetspeedPrincipal target, java.lang.String associationName) throws SecurityException
SecurityException
void transferAssociationFrom(JetspeedPrincipal from, JetspeedPrincipal to, JetspeedPrincipal target, java.lang.String associationName) throws SecurityException
SecurityException
void removeAssociation(JetspeedPrincipal from, JetspeedPrincipal to, java.lang.String associationName) throws SecurityException
SecurityException
void addListener(PrincipalManagerEventListener listener)
void removeListener(PrincipalManagerEventListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |