public abstract class CustomGroup extends Group
| Constructor and Description |
|---|
CustomGroup() |
CustomGroup(IdentityDirectory ids, java.lang.String entityName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addManager(Group group, ModifyOptions opts)
Adds the given group as manager of this group
|
void |
addManager(User user, ModifyOptions opts)
Adds the given user as manager of this group
|
void |
addManagerOf(Group group, ModifyOptions opts)
Adds this group as manager of the given group
|
void |
addMember(Group group, ModifyOptions opts)
Adds the given group as a member to this group
|
void |
addMember(User user, ModifyOptions opts)
Adds the given user as a member to this group
|
void |
addMemberOf(Group group, ModifyOptions opts)
Adds this group as a member to input group
|
void |
addMembers(java.util.List<java.security.Principal> users, ModifyOptions opts)
Adds the list of users as members to this group
|
void |
addOwner(Group group, ModifyOptions opts)
Adds the given group as owner of this group
|
void |
addOwner(User user, ModifyOptions opts)
Adds the given user as owner of this group
|
void |
addOwnerOf(Group group, ModifyOptions opts)
Adds this group as owner of the given group
|
Group |
clone()
Clones this object
|
void |
deleteManager(Group group, ModifyOptions opts)
Deletes the given group as manager of this group
|
void |
deleteManager(User user, ModifyOptions opts)
Deletes the given user as manager of this group
|
void |
deleteManagerOf(Group group, ModifyOptions opts)
Deletes this group as manager of the given group
|
void |
deleteMember(Group group, ModifyOptions opts)
Deletes the input group as a member to this group
|
void |
deleteMember(User user, ModifyOptions opts)
Deletes the input user as a member to this group
|
void |
deleteMemberOf(Group group, ModifyOptions opts)
Deletes this group as a member to input group
|
void |
deleteMembers(java.util.List<java.security.Principal> users, ModifyOptions opts)
Deletes the list of users as a member to this group
|
void |
deleteOwner(Group group, ModifyOptions opts)
Deletes the given group as owner of this group
|
void |
deleteOwner(User user, ModifyOptions opts)
Deletes the given user as owner of this group
|
void |
deleteOwnerOf(Group group, ModifyOptions opts)
Deletes this group as owner of the given group
|
java.util.Map<java.lang.String,Attribute> |
getAllAttributes()
Gets map of all entity attributes
|
Attribute |
getAttribute(java.lang.String attrName)
Gets Entity Attribute from map.
|
java.lang.String |
getAttributeLocaleValue(java.lang.String attrName, java.util.Locale locale)
Gets attribute locale value
|
java.util.Map<java.util.Locale,Attribute> |
getAttributeLocaleValues(java.lang.String attrName)
Gets attribute locale values.
|
java.lang.String |
getAttributeValue(java.lang.String attrName)
Gets first attribute value from map.
|
java.lang.String |
getCanonicalName()
Gets entity canonical name
|
java.lang.String |
getCommonId()
Returns Entity commonId
|
java.lang.String |
getDescription()
Returns Entity description
|
java.lang.String |
getDisplayname()
Returns Entity displayname
|
java.lang.String |
getEntityName()
Gets entity name
|
java.lang.String |
getGuid()
Gets entity Guid value
|
java.lang.String |
getId()
Gets entity ID attribute value
|
java.lang.String |
getMail()
Returns entity mail
|
ResultSet<Group> |
getManagedGroups(int nLevels, SearchFilter targetFilter, SearchOptions opts)
Gets all the groups managed by this group matching the given filter condition
|
ResultSet<User> |
getManagers(int nLevels, SearchFilter targetFilter, SearchOptions opts)
Gets manager of this group matching the given filter condition
|
ResultSet<Group> |
getMemberGroups(int nLevels, SearchFilter targetFilter, SearchOptions opts)
Gets all the groups that are members of this group matching the given filter condition
|
ResultSet<Group> |
getMemberOfGroups(int nLevels, SearchFilter targetFilter, SearchOptions opts)
Gets all the groups this group is a member of and matching the given filter criteria
|
ResultSet<User> |
getMembers(int nLevels, SearchFilter targetFilter, SearchOptions opts)
Gets all the users that are members of this group matching the given filter condition
|
ResultSet<User> |
getMembers(SearchFilter targetFilter, SearchOptions opts)
Gets all the users that are members of this group matching the given filter condition.
|
java.lang.String |
getName()
Gets entity name value
|
java.util.List<java.lang.String> |
getObjectClasses()
Gets entity object class values
|
ResultSet<Group> |
getOwnedGroups(int nLevels, SearchFilter targetFilter, SearchOptions opts)
Gets all the groups owned by this group matching the given filter condition
|
ResultSet<User> |
getOwners(int nLevels, SearchFilter targetFilter, SearchOptions opts)
Gets owners of this group matching the given filter condition
|
java.security.Principal |
getPrincipal()
Gets principal identifier of the entity
|
ResultSet |
getRelatedEntities(java.lang.String relationshipName, int nestedLevels, SearchFilter targetFilter, SearchOptions searchOpts)
Gets all related entities for given entity relationship
|
java.lang.String |
getSubjectName()
Gets entity subject name
|
boolean |
isManagerOf(Group group, boolean direct, ReadOptions opts)
Checks if this group is manager of given group
|
boolean |
isMember(Group group, boolean direct, ReadOptions opts)
Checks if the input group is a member of this group
|
boolean |
isMember(User user, boolean direct, ReadOptions opts)
Checks if input user is a member of this group
|
boolean |
isMember(User user, ReadOptions opts)
Checks if input user is a member of this group.
|
boolean |
isMemberOf(Group group, boolean direct, ReadOptions opts)
Checks if this group is a member of the given group
|
boolean |
isOwnerOf(Group group, boolean direct, ReadOptions opts)
Checks if this group is owner of given group
|
void |
modify(java.util.List<ModAttribute> attrVals, ModifyOptions opts)
Modifies entity attribute values
|
void |
setAttributeValue(java.lang.String attrName, java.lang.String attrVal, ModifyOptions opts)
Modifies entity attribute value
|
public CustomGroup()
public CustomGroup(IdentityDirectory ids, java.lang.String entityName)
public ResultSet<Group> getMemberOfGroups(int nLevels, SearchFilter targetFilter, SearchOptions opts) throws IDSException, EntityNotFoundException, InvalidAttributesException, InvalidFilterException, AuthorizationException, OperationNotSupportedException
getMemberOfGroups in class GroupnLevels - Number of levels to be searched for the member of Groups recursively. 0 means all levels.targetFilter - Filter criteria to be applied on the related entitiesopts - Search optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If the entity for which related entities to be fetched is not foundInvalidAttributesException - If the requested attributes or the attributes in the target search filter are invalidOperationNotSupportedException - If entity configuration does not support this methodAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.InvalidFilterExceptionpublic boolean isMember(Group group, boolean direct, ReadOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
isMember in class Groupgroup - Group entitydirect - if true checks only the direct membership otherwise checks all levels recursivelyopts - Read optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If the entity for which related entities to be fetched is not foundOperationNotSupportedException - If entity configuration does not support this methodAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public boolean isMember(User user, ReadOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
isMember in class Groupuser - User entityopts - Read optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If the entity for which related entities to be fetched is not foundAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.OperationNotSupportedExceptionpublic boolean isMember(User user, boolean direct, ReadOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
isMember in class Groupuser - User entitydirect - if true checks only the direct membership otherwise checks all levels recursivelyopts - Read optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If the entity for which related entities to be fetched is not foundAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.OperationNotSupportedExceptionpublic void addMember(User user, ModifyOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
addMember in class Groupuser - User entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either user or group entity not foundOperationNotSupportedException - If add member is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void addMembers(java.util.List<java.security.Principal> users,
ModifyOptions opts)
throws IDSException,
EntityNotFoundException,
AuthorizationException,
OperationNotSupportedException
addMembers in class Groupusers - List of user principalsopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either user or group entity not foundOperationNotSupportedException - If add member is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void addMember(Group group, ModifyOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
addMember in class Groupgroup - Group entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either of the group entities not foundOperationNotSupportedException - If add member is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void deleteMember(User user, ModifyOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
deleteMember in class Groupuser - User entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either user or group entity not foundOperationNotSupportedException - If delete member is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void deleteMembers(java.util.List<java.security.Principal> users,
ModifyOptions opts)
throws IDSException,
EntityNotFoundException,
AuthorizationException,
OperationNotSupportedException
deleteMembers in class Groupuser - List of user principalsopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either user or group entity not foundOperationNotSupportedException - If delete member is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void deleteMember(Group group, ModifyOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
deleteMember in class Groupgroup - Group entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either of the group entities not foundOperationNotSupportedException - If delete member is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void addMemberOf(Group group, ModifyOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
addMemberOf in class Groupgroup - Group entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either of the group entities not foundOperationNotSupportedException - If add member of is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void deleteMemberOf(Group group, ModifyOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
deleteMemberOf in class Groupgroup - Group entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either of the group entities not foundOperationNotSupportedException - If delete member of is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public ResultSet<User> getMembers(SearchFilter targetFilter, SearchOptions opts) throws IDSException, EntityNotFoundException, InvalidAttributesException, InvalidFilterException, AuthorizationException, OperationNotSupportedException
getMembers in class GrouptargetFilter - Filter condition to be applied on the resulting members of this groupopts - Search otionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If the group entity is not foundInvalidAttributesException - If the requsted attributes or the attributes in the target search filter are invalidOperationNotSupportedException - If entity configuration does not support this methodAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.InvalidFilterExceptionpublic ResultSet<User> getMembers(int nLevels, SearchFilter targetFilter, SearchOptions opts) throws IDSException, EntityNotFoundException, InvalidAttributesException, InvalidFilterException, AuthorizationException, OperationNotSupportedException
getMembers in class GroupnLevels - Number of levels the Members to be fetched recursively. 0 means all levels.targetFilter - Filter condition to be applied on the resulting members of this groupopts - Search optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If the group entity is not foundInvalidAttributesException - If the requested attributes or the attributes in the target search filter are invalidOperationNotSupportedException - If entity configuration does not support this methodAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.InvalidFilterExceptionpublic ResultSet<Group> getMemberGroups(int nLevels, SearchFilter targetFilter, SearchOptions opts) throws IDSException, EntityNotFoundException, InvalidAttributesException, InvalidFilterException, AuthorizationException, OperationNotSupportedException
getMemberGroups in class GroupnLevels - Number of levels the MemberGruops to be fetched recursively. 0 means all levels.targetFilter - Filter condition to be applied on the resulting members of this groupopts - Search optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If the group entity is not foundInvalidAttributesException - If the requested attributes or the attributes in the target search filter are invalidOperationNotSupportedException - If entity configuration does not support this methodAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.InvalidFilterExceptionpublic boolean isMemberOf(Group group, boolean direct, ReadOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
isMemberOf in class Groupgroup - Group entitydirect - if true checks only the direct membership otherwise checks all levels recursivelyopts - Read optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either of the group entities is not foundOperationNotSupportedException - If entity configuration does not support this methodAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public ResultSet<User> getOwners(int nLevels, SearchFilter targetFilter, SearchOptions opts) throws IDSException, AuthorizationException, OperationNotSupportedException
getOwners in class GroupnLevels - Number of levels to be searched recursively for the group ownership. 0 means all levels.targetFilter - Filter condition to be applied on the resulting owners of this groupopts - Search optionsIDSException - Generic Identity Directory Service exceptionOperationNotSupportedException - If entity configuration does not support this methodAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public ResultSet<Group> getOwnedGroups(int nLevels, SearchFilter targetFilter, SearchOptions opts) throws IDSException, AuthorizationException, OperationNotSupportedException
getOwnedGroups in class GroupnLevels - Number of levels to be searched recursively for the group ownership. 0 means all levels.targetFilter - Filter condition to be applied on the resulting owned groupsopts - Search optionsIDSException - Generic Identity Directory Service exceptionOperationNotSupportedException - If entity configuration does not support this methodAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public boolean isOwnerOf(Group group, boolean direct, ReadOptions opts) throws IDSException, AuthorizationException, OperationNotSupportedException
isOwnerOf in class Groupgroup - Group entitydirect - if true checks only the direct ownership otherwise checks all levels recursivelyopts - Read optionsIDSException - Generic Identity Directory Service exceptionOperationNotSupportedException - If entity configuration does not support this methodAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void addOwner(User user, ModifyOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
addOwner in class Groupuser - User entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either user or group entity not foundOperationNotSupportedException - If add owner is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void addOwner(Group group, ModifyOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
addOwner in class Groupgroup - Group entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either of the group entities not foundOperationNotSupportedException - If add owner is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void deleteOwner(User user, ModifyOptions opts) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthorizationException, InvalidAttributesException
deleteOwner in class Groupuser - User entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either user or group entity not foundOperationNotSupportedException - If delete owner is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.InvalidAttributesExceptionpublic void deleteOwner(Group group, ModifyOptions opts) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthorizationException, InvalidAttributesException
deleteOwner in class Groupgroup - Group entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either of the group entities not foundOperationNotSupportedException - If delete owner is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.InvalidAttributesExceptionpublic void addOwnerOf(Group group, ModifyOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
addOwnerOf in class Groupgroup - Group entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either of the group entities not foundOperationNotSupportedException - If add owner of is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void deleteOwnerOf(Group group, ModifyOptions opts) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthorizationException, InvalidAttributesException
deleteOwnerOf in class Groupgroup - Group entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either of the group entities not foundOperationNotSupportedException - If delete owner of is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.InvalidAttributesExceptionpublic ResultSet<User> getManagers(int nLevels, SearchFilter targetFilter, SearchOptions opts) throws IDSException, AuthorizationException, OperationNotSupportedException
getManagers in class GroupnLevels - Number of levels to be searched recursively for the group manager. 0 means all levels.targetFilter - Filter condition to be applied on the resulting managers of this groupopts - Search optionsIDSException - Generic Identity Directory Service exceptionOperationNotSupportedException - If entity configuration does not support this methodAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public ResultSet<Group> getManagedGroups(int nLevels, SearchFilter targetFilter, SearchOptions opts) throws IDSException, AuthorizationException, OperationNotSupportedException
getManagedGroups in class GroupnLevels - Number of levels to be searched recursively for the group manager. 0 means all levels.targetFilter - Filter condition to be applied on the resulting managed groupsopts - Search optionsIDSException - Generic Identity Directory Service exceptionOperationNotSupportedException - If entity configuration does not support this methodAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public boolean isManagerOf(Group group, boolean direct, ReadOptions opts) throws IDSException, AuthorizationException, OperationNotSupportedException
isManagerOf in class Groupgroup - Group entitydirect - if true checks only the direct manager otherwise checks all levels recursivelyopts - Read optionsIDSException - Generic Identity Directory Service exceptionOperationNotSupportedException - If entity configuration does not support this methodAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void addManager(User user, ModifyOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
addManager in class Groupuser - User entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either user or group entity not foundOperationNotSupportedException - If add manager is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void addManager(Group group, ModifyOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
addManager in class Groupgroup - Group entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either of the group entities not foundOperationNotSupportedException - If add manager is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void deleteManager(User user, ModifyOptions opts) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthorizationException, InvalidAttributesException
deleteManager in class Groupuser - User entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either user or group entity not foundOperationNotSupportedException - If delete manager is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.InvalidAttributesExceptionpublic void deleteManager(Group group, ModifyOptions opts) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthorizationException, InvalidAttributesException
deleteManager in class Groupgroup - Group entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either of the group entities not foundOperationNotSupportedException - If delete manager is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.InvalidAttributesExceptionpublic void addManagerOf(Group group, ModifyOptions opts) throws IDSException, EntityNotFoundException, AuthorizationException, OperationNotSupportedException
addManagerOf in class Groupgroup - Group entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either of the group entities not foundOperationNotSupportedException - If add manager of is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void deleteManagerOf(Group group, ModifyOptions opts) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthorizationException, InvalidAttributesException
deleteManagerOf in class Groupgroup - Group entityopts - Modify optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If either of the group entities not foundOperationNotSupportedException - If delete manager of is not supportedAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.InvalidAttributesExceptionpublic Group clone()
public Attribute getAttribute(java.lang.String attrName)
EntitygetAttribute in class EntityattrName - Name of the attributepublic java.lang.String getAttributeValue(java.lang.String attrName)
getAttributeValue in class EntityattrName - Name of the attributejava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public java.util.Map<java.lang.String,Attribute> getAllAttributes()
getAllAttributes in class Entityjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public java.lang.String getAttributeLocaleValue(java.lang.String attrName,
java.util.Locale locale)
The search for the entity must have been performed with a ReadOptions opts parameter where opts.setLocale(ReadOptions.ALL_LOCALES) was called. Otherwise this routine will always return null.
getAttributeLocaleValue in class EntityattrName - Attribute namelocale - Locale valuejava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public java.util.Map<java.util.Locale,Attribute> getAttributeLocaleValues(java.lang.String attrName)
The search for the entity must have been performed with a ReadOptions opts parameter where opts.setLocale(ReadOptions.ALL_LOCALES) was called. Otherwise this routine will always return null.
getAttributeLocaleValues in class EntityattrName - Attribute namejava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public java.lang.String getEntityName()
getEntityName in class Entitypublic java.security.Principal getPrincipal()
getPrincipal in class Entityjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public java.lang.String getSubjectName()
getSubjectName in class Entityjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public java.lang.String getCanonicalName()
getCanonicalName in class Entityjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getGuid()
public java.util.List<java.lang.String> getObjectClasses()
getObjectClasses in class Entityjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void modify(java.util.List<ModAttribute> attrVals, ModifyOptions opts) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthorizationException, InvalidAttributesException
modify in class EntityattrVals - List of mod attribute valuesopts - Modify operation optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - When the entity to be modified is not foundOperationNotSupportedException - When this entity modify operation is not supportedInvalidAttributesException - When the mod attributes are invalidAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public void setAttributeValue(java.lang.String attrName,
java.lang.String attrVal,
ModifyOptions opts)
throws IDSException,
EntityNotFoundException,
OperationNotSupportedException,
AuthorizationException,
InvalidAttributesException
setAttributeValue in class EntityattrName - Attribute nameattrVal - Attribute valueopts - Modify operation optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - When the entity to be modified is not foundOperationNotSupportedException - When this entity modify operation is not supportedInvalidAttributesException - When the input attribute is invalidAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public ResultSet getRelatedEntities(java.lang.String relationshipName, int nestedLevels, SearchFilter targetFilter, SearchOptions searchOpts) throws EntityNotFoundException, IDSException, InvalidAttributesException, AuthorizationException, OperationNotSupportedException
getRelatedEntities in class EntityrelationshipName - Entity relationship name to be processednestedLevels - Number of nested levels the related entiteis to be fetchedtargetFilter - Search filter to be used against the related entitiessearchOpts - Search operation optionsIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - If the entity for which related entities to be fetched is not foundInvalidAttributesException - If the requested attributes or the attributes in the target search filter are invalidAuthorizationException - If user does not have sufficient privilegesjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.OperationNotSupportedExceptionpublic java.lang.String getMail()
throws OperationNotSupportedException
getMail in class EntityOperationNotSupportedException - If mailAttr not configured in Entity definitionpublic java.lang.String getDisplayname()
throws OperationNotSupportedException
getDisplayname in class EntityOperationNotSupportedException - If displaynameAttr not configured in Entity definitionjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public java.lang.String getDescription()
throws OperationNotSupportedException
getDescription in class EntityOperationNotSupportedException - If descriptionAttr not configured in Entity definitionjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.public java.lang.String getCommonId()
throws OperationNotSupportedException
getCommonId in class EntityOperationNotSupportedException - If descriptionAttr not configured in Entity definitionjava.lang.UnsupportedOperationException - if custom User implementation uses this method without implementing it.