public interface JetspeedPrincipalManager extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
addAssociation(JetspeedPrincipal from,
JetspeedPrincipal to,
String associationName) |
void |
addListener(PrincipalManagerEventListener listener) |
void |
addPrincipal(JetspeedPrincipal principal,
Set<JetspeedPrincipalAssociationReference> associations) |
List<? extends JetspeedPrincipal> |
getAssociatedFrom(String principalFromName,
JetspeedPrincipalType from,
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. |
List<String> |
getAssociatedNamesFrom(String principalFromName,
JetspeedPrincipalType from,
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.
|
List<String> |
getAssociatedNamesTo(String principalToName,
JetspeedPrincipalType to,
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.
|
List<? extends JetspeedPrincipal> |
getAssociatedTo(String principalToName,
JetspeedPrincipalType to,
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. |
List<JetspeedPrincipalAssociationType> |
getAssociationTypes() |
JetspeedPrincipal |
getPrincipal(String name) |
List<String> |
getPrincipalNames(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.
|
List<? extends JetspeedPrincipal> |
getPrincipals(String nameFilter)
Retrieves a detached and modifiable
JetspeedPrincipal list matching the corresponding
principal name filter. |
List<? extends JetspeedPrincipal> |
getPrincipalsByAttribute(String attributeName,
String attributeValue) |
JetspeedPrincipalType |
getPrincipalType() |
JetspeedPrincipal |
newPrincipal(String name,
boolean mapped) |
JetspeedPrincipal |
newTransientPrincipal(String name) |
boolean |
principalExists(String name) |
void |
removeAssociation(JetspeedPrincipal from,
JetspeedPrincipal to,
String associationName) |
void |
removeListener(PrincipalManagerEventListener listener) |
void |
removePrincipal(JetspeedPrincipal principal) |
void |
removePrincipal(String name) |
void |
transferAssociationFrom(JetspeedPrincipal from,
JetspeedPrincipal to,
JetspeedPrincipal target,
String associationName) |
void |
transferAssociationTo(JetspeedPrincipal from,
JetspeedPrincipal to,
JetspeedPrincipal target,
String associationName) |
void |
updatePrincipal(JetspeedPrincipal principal) |
JetspeedPrincipalType getPrincipalType()
List<JetspeedPrincipalAssociationType> getAssociationTypes()
boolean principalExists(String name)
JetspeedPrincipal getPrincipal(String name)
List<String> getPrincipalNames(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.List<? extends JetspeedPrincipal> getPrincipals(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.List<? extends JetspeedPrincipal> getPrincipalsByAttribute(String attributeName, String attributeValue)
JetspeedPrincipal newPrincipal(String name, boolean mapped)
JetspeedPrincipal newTransientPrincipal(String name)
void removePrincipal(String name) throws SecurityException
SecurityException
List<? extends JetspeedPrincipal> getAssociatedFrom(String principalFromName, JetspeedPrincipalType from, 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 JetspeedPrincipalAssociationType.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 typeList<? extends JetspeedPrincipal> getAssociatedTo(String principalToName, JetspeedPrincipalType to, 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 JetspeedPrincipalAssociationType.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 typeJetspeedPrincipal
in the from side of the provided association for the provided principal name and its typeList<String> getAssociatedNamesFrom(String principalFromName, JetspeedPrincipalType from, 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 JetspeedPrincipalAssociationType.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 typeList<String> getAssociatedNamesTo(String principalToName, JetspeedPrincipalType to, 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 JetspeedPrincipalAssociationType.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 typevoid addPrincipal(JetspeedPrincipal principal, 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, String associationName) throws SecurityException
SecurityException
void transferAssociationTo(JetspeedPrincipal from, JetspeedPrincipal to, JetspeedPrincipal target, String associationName) throws SecurityException
SecurityException
void transferAssociationFrom(JetspeedPrincipal from, JetspeedPrincipal to, JetspeedPrincipal target, String associationName) throws SecurityException
SecurityException
void removeAssociation(JetspeedPrincipal from, JetspeedPrincipal to, String associationName) throws SecurityException
SecurityException
void addListener(PrincipalManagerEventListener listener)
void removeListener(PrincipalManagerEventListener listener)
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.