| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PumaLocator
The PumaLocator
provides functions to lookup
com.ibm.portal.um.User
,com.ibm.portal.um.Group
objects.
An instance of this Interface can be retrieved by calling
com.ibm.portal.um.PumaHome
,
com.ibm.portal.um.portletservice.PumaHome
or
com.ibm.portal.um.portletservice.legacy.PumaHome
Method Summary | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Group | findGroupByIdentifier(java.lang.String aIdentifier)
Returns the Group object referenced by the identifier (DN) within the user repository. | ||||||||||||||||||||||||||||||
Group | findGroupByObjectID(ObjectID aId)
Returns the Group object referenced by the given ObjectID .If no group is found a PumaModelException is thrown | ||||||||||||||||||||||||||||||
java.util.List<Group> | findGroupsByAttribute(java.lang.String aAttribute,
java.lang.String aValue)
Returns a List of Group where the attributes defined in the LDAP server matches the value of the given attribute. | ||||||||||||||||||||||||||||||
java.util.List<Group> | findGroupsByDefaultAttribute(java.lang.String aValue)
Returns Group by comparing the provided value to the
default attribute type configured for the Group type
java.util.List<Group>
| findGroupsByDefaultAttribute(java.lang.String aValue,
boolean aSorted)
| Returns Group by comparing the provided value to the
default attribute type configured for the Group type
java.util.List<Group>
| findGroupsByPrincipal(Principal aPrincipal,
boolean aNested)
| Returns the Groups where the given Principal is member of.
java.util.List<Group>
| findGroupsByQuery(java.lang.String aQuery)
| Returns a List of Group representing the resultset of the
provided Query.
|
Method Detail |
---|
User findUserByIdentifier(java.lang.String aIdentifier) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
WSCredential.getUniqueSecurityName()
or by PumaProfile.getIdentifier(Principal).
User findUserByObjectID(ObjectID aId) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
ObjectID
.
Group findGroupByObjectID(ObjectID aId) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
ObjectID
.
Group findGroupByIdentifier(java.lang.String aIdentifier) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
java.util.List<User> findUsersByDefaultAttribute(java.lang.String aValue) throws PumaSystemException, PumaAttributeException, PumaMissingAccessRightsException
User
by comparing the provided value to the
default attribute type configured for the User type.
List
containing User. If
nothing is found an empty java.util.List will be returned
- Throws:
- PumaSystemException - will be thrown whenever an unrecoverable backend error occurs
- PumaAttributeException - will be thrown if attributes are not defined
- PumaMissingAccessRightsException - will be thrown if the current authenticated user does not have the necessary rights
- See Also:
- User,
List
java.util.List<User> findUsersByDefaultAttribute(java.lang.String aValue, boolean aSorted) throws PumaSystemException, PumaAttributeException, PumaMissingAccessRightsException
User
by comparing the provided value to the
default attribute type configured for the User type.
true
the result will be sorted ascending based on the
defaultattribute.
List
containing User. If
nothing is found an empty java.util.List will be returned
- Throws:
- PumaSystemException - will be thrown whenever an unrecoverable backend error occurs
- PumaAttributeException - will be thrown if attributes are not defined
- PumaMissingAccessRightsException - will be thrown if the current authenticated user does not have the necessary rights
- Since:
- 6.1
- See Also:
- User,
List
java.util.List<Group> findGroupsByDefaultAttribute(java.lang.String aValue) throws PumaSystemException, PumaMissingAccessRightsException
Group
by comparing the provided value to the
default attribute type configured for the Group type
List
containing com.ibm.portal.um.Group. If nothing is found an empty java.util.List will be returned
- Throws:
- PumaSystemException - will be thrown whenever an unrecoverable backend error occurs
- PumaMissingAccessRightsException - will be thrown if the current authenticated user does not have the necessary rights
- See Also:
- Group,
List
java.util.List<Group> findGroupsByDefaultAttribute(java.lang.String aValue, boolean aSorted) throws PumaSystemException, PumaAttributeException, PumaMissingAccessRightsException
Group
by comparing the provided value to the
default attribute type configured for the Group type
true
the result will be sorted ascending based on the
defaultattribute.
List
containing com.ibm.portal.um.Group. If nothing is found an empty java.util.List will be returned
- Throws:
- PumaSystemException - will be thrown whenever an unrecoverable backend error occurs
- PumaAttributeException - will be thrown if attributes are read-only, missing or not defined
- PumaMissingAccessRightsException - will be thrown if the current authenticated user does not have the necessary rights
- See Also:
- Group,
List
java.util.List<User> findUsersByAttribute(java.lang.String aAttribute, java.lang.String aValue) throws PumaSystemException, PumaAttributeException, PumaMissingAccessRightsException
User where the attribute defined in the
LDAP server matches the given value. Only attributes of type can
be used for this search. For a LIKE comparision only the
multi-character wild card is supported and the character used is '*'. The
'*' can appear in the value any number of times and at any place. Any '*'
character part of the value must be escaped using the backslash ('\')
character.
The character encoding used as input for attribute key and value
must match the encoding acceptable by the user store
- Parameters:
- aAttribute - User attribute of type
where the value is stored in- aValue - Value to compare with
- Returns:
- List read-only
List
containing
com.ibm.portal.um.User. If nothing is found an empty java.util.List will be returned
- Throws:
- PumaSystemException - will be thrown whenever an unrecoverable backend error occurs
- PumaAttributeException - will be thrown if attributes are not defined
- PumaMissingAccessRightsException - will be thrown if the current authenticated user does not have the necessary rights
- See Also:
- User,
List
java.util.List<Group> findGroupsByAttribute(java.lang.String aAttribute, java.lang.String aValue) throws PumaSystemException, PumaAttributeException, PumaMissingAccessRightsException
List
containing
com.ibm.portal.um.Group. If nothing is found an empty java.util.List will be returned
- Throws:
- PumaSystemException - will be thrown whenever an unrecoverable backend error occurs
- PumaAttributeException - will be thrown if attributes are not defined
- PumaMissingAccessRightsException - will be thrown if the current authenticated user does not have the necessary rights
- See Also:
- Group,
List
java.util.List<Principal> findMembersByGroup(Group aGroup, boolean aNested) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
null
is not allowed as
input parameterList
containing
com.ibm.portal.um.Principal. If nothing is found an empty java.util.List will be returned
- Throws:
- PumaSystemException - will be thrown whenever an unrecoverable backend error occurs
- PumaAttributeException - will be thrown if attributes are not defined
- PumaMissingAccessRightsException - will be thrown if the current authenticated user does not have the necessary rights
- PumaModelException
- See Also:
- Principal,
List
java.util.List<Group> findGroupsByPrincipal(Principal aPrincipal, boolean aNested) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
null
is
not allowed as input parameterList
containing
com.ibm.portal.um.Group. If nothing is found an empty java.util.List will be returned
- Throws:
- PumaSystemException - will be thrown whenever an unrecoverable backend error occurs
- PumaAttributeException - will be thrown if attributes are not defined
- PumaMissingAccessRightsException - will be thrown if the current authenticated user does not have the necessary rights
- PumaModelException
- See Also:
- Group,
List
java.util.List<User> findUsersByQuery(java.lang.String aQuery) throws PumaSystemException, PumaAttributeException, PumaMissingAccessRightsException
User representing the resultset of the
provided Query. The query is based on the XPath query language
- Parameters:
- aQuery - aXpath defines the Query
- Returns:
- List read-only
List
containing
com.ibm.portal.um.User. If nothing is found an empty java.util.List will be returned
- Throws:
- PumaSystemException - will be thrown whenever an unrecoverable backend error occurs
- PumaAttributeException - will be thrown if attributes are not defined
- PumaMissingAccessRightsException - will be thrown if the current authenticated user does not have the necessary rights
- Since:
- 6.1
- See Also:
- User,
List
java.util.List<Group> findGroupsByQuery(java.lang.String aQuery) throws PumaSystemException, PumaAttributeException, PumaMissingAccessRightsException
Group representing the resultset of the
provided Query. The query is based on the XPath query language
- Parameters:
- aQuery - aXpath defines the Query
- Returns:
- List read-only
List
containing
com.ibm.portal.um.Group. If nothing is found an empty java.util.List will be returned
- Throws:
- PumaSystemException - will be thrown whenever an unrecoverable backend error occurs
- PumaAttributeException - will be thrown if attributes are not defined
- PumaMissingAccessRightsException - will be thrown if the current authenticated user does not have the necessary rights
- Since:
- 6.1
- See Also:
- User,
List
java.util.List<User> findUsersByQuery(java.lang.String aQuery, SortControl aControl) throws PumaSystemException, PumaAttributeException, PumaMissingAccessRightsException
User representing the resultset of the
provided Query. The query is based on the XPath query language
- Parameters:
- aQuery - aXpath defines the Query
- aControl - defines how the result set should be sorted
- Returns:
- List read-only
List
containing
com.ibm.portal.um.User. If nothing is found an empty java.util.List will be returned
- Throws:
- PumaSystemException - will be thrown whenever an unrecoverable backend error occurs
- PumaAttributeException - will be thrown if attributes are not defined
- PumaMissingAccessRightsException - will be thrown if the current authenticated user does not have the necessary rights
- Since:
- 6.1
- See Also:
- User,
List
java.util.List<Group> findGroupsByQuery(java.lang.String aQuery, SortControl aControl) throws PumaSystemException, PumaAttributeException, PumaMissingAccessRightsException
Group representing the resultset of the
provided Query. The query is based on the XPath query language
- Parameters:
- aQuery - aXpath defines the Query
- aControl - defines how the result set should be sorted
- Returns:
- List read-only
List
containing
com.ibm.portal.um.Group. If nothing is found an empty java.util.List will be returned
- Throws:
- PumaSystemException - will be thrown whenever an unrecoverable backend error occurs
- PumaAttributeException - will be thrown if attributes are not defined
- PumaMissingAccessRightsException - will be thrown if the current authenticated user does not have the necessary rights
- Since:
- 6.1
- See Also:
- User,
List
java.util.List<User> searchUserByName(java.lang.String aName) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
java.util.List<Group> searchGroupByName(java.lang.String name) throws PumaSystemException, PumaModelException, PumaMissingAccessRightsException
java.util.List<User> findUsersByAttributeRecursively(User user, java.lang.String attribute, int depth) throws PumaSystemException, PumaAttributeException, PumaMissingAccessRightsException, MemberNotFoundException
List
of Principals that are linked by the given
attribute.
This method can only be applied on an attribute of the type
AttributeDefinition.MEMBERDN. The (n+1)th user in the list is
identified by the value of the given attribute of the nth user. If the
given attribute is multi-valued, only the first value is considered.
The computation will stop either at the first principal where the
attribute is null or at the level where the current User does not have
the necessary permissions or at the given depth.
null
is not allowed as input parameter
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |