public abstract class AbstractEntityManager
extends java.lang.Object
EntityManager, UserManager, GroupManager and OrgManager| Modifier and Type | Method and Description |
|---|---|
boolean |
compareEntityAttr(java.security.Principal principal, java.lang.String attrname, char[] attrvalue)
Compares entity attribute for given principal in the repository.
|
boolean |
compareEntityAttr(java.security.Principal principal, java.lang.String attrname, java.lang.String attrvalue)
Compares entity attribute for given principal in the repository.
|
AttributeDef |
getAttributeDef(java.lang.String attrName)
Gets attribute definition for given attribute name
|
AttributeRef |
getAttributeRef(java.lang.String attrName)
Gets entity attribute reference for given attribute name
|
java.util.List<java.lang.String> |
getEntityAttributes()
Gets entity attributes from entity definition
|
EntityDef |
getEntityDef()
Gets entity defintion
|
java.util.List<EntityRelationship> |
getEntityRelationships()
Gets all entity relationships where current entity is part of the entity relationship definition
|
java.lang.String |
getGlobalCommonIdAttribute(java.lang.String entityName)
Returns global common id attribute name configured in the entity definition
|
java.lang.String |
getIdAttribute()
Returns the ID attribute name configured in the entity definition
|
void |
modify(java.security.Principal principal, java.util.List<ModAttribute> attrVals, ModifyOptions opts)
Modifies entity attribute values
|
void |
modify(java.lang.String id, java.util.List<ModAttribute> attrVals, ModifyOptions opts)
Modifies entity attribute values
|
void |
modify(java.lang.String attrName, java.lang.String attrVal, java.util.List<ModAttribute> attrVals, ModifyOptions opts)
Modifies entity attribute values
|
void |
rename(java.security.Principal principal, java.lang.String newName, java.lang.String newContainer, ModifyOptions opts)
Renames the entity for given principal
|
public EntityDef getEntityDef()
public java.util.List<java.lang.String> getEntityAttributes()
public AttributeDef getAttributeDef(java.lang.String attrName)
attrName - Name of the attributepublic AttributeRef getAttributeRef(java.lang.String attrName)
attrName - Name of the attributepublic java.util.List<EntityRelationship> getEntityRelationships()
public java.lang.String getIdAttribute()
public java.lang.String getGlobalCommonIdAttribute(java.lang.String entityName)
public boolean compareEntityAttr(java.security.Principal principal,
java.lang.String attrname,
java.lang.String attrvalue)
throws IDSException,
EntityNotFoundException,
OperationNotSupportedException
principal - Principal identifier of the entityattrname - Attribute nameattrvalue - Attribute value to be comparedIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - When no user found for given ID valueOperationNotSupportedException - If the user authenticate operation is not supportedpublic boolean compareEntityAttr(java.security.Principal principal,
java.lang.String attrname,
char[] attrvalue)
throws IDSException,
EntityNotFoundException,
OperationNotSupportedException
principal - Principal identifier of the entityattrname - Attribute nameattrvalue - Attribute value to be comparedIDSException - Generic Identity Directory Service exceptionEntityNotFoundException - When no user found for given ID valueOperationNotSupportedException - If the user authenticate operation is not supportedpublic void modify(java.lang.String id,
java.util.List<ModAttribute> attrVals,
ModifyOptions opts)
throws IDSException,
EntityNotFoundException,
OperationNotSupportedException,
AuthorizationException,
InvalidAttributesException
id - Value of the entity's id attributeattrVals - 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 privilegespublic void modify(java.security.Principal principal,
java.util.List<ModAttribute> attrVals,
ModifyOptions opts)
throws IDSException,
EntityNotFoundException,
OperationNotSupportedException,
AuthorizationException,
InvalidAttributesException
principal - Principal identifier of the 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 privilegespublic void modify(java.lang.String attrName,
java.lang.String attrVal,
java.util.List<ModAttribute> attrVals,
ModifyOptions opts)
throws IDSException,
EntityNotFoundException,
OperationNotSupportedException,
AuthorizationException,
InvalidAttributesException
attrName - Name of the unique attributeattrVal - Attribute valueattrVals - 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 privilegespublic void rename(java.security.Principal principal,
java.lang.String newName,
java.lang.String newContainer,
ModifyOptions opts)
throws IDSException,
EntityNotFoundException,
OperationNotSupportedException,
AuthorizationException,
InvalidAttributesException
principal - Principal identifier of the entitynewName - new name value. If the entity is moved under different container keeping the name same then the newName should be same as old name value.newContainer - new container where this entity is moved under. If this is just name change then this can be null.IDSException - 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 privileges