Package org.openiam.idm.srvc.role.dto
Class Role
-
- All Implemented Interfaces:
Serializable,Comparable<Role>,BaseIdentity,IManagedSystemDto,ProvisionObject,ProvisionOperationAware
public class Role extends AbstractPolicyEntitlementsDTO implements Comparable<Role>, ProvisionObject, IManagedSystemDto
Java class for role complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="role"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="createDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/> <element name="createdBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="groups" type="{urn:idm.openiam.org/srvc/grp/dto}groupSet" minOccurs="0"/> <element name="id" type="{urn:idm.openiam.org/srvc/role/dto}id" minOccurs="0"/> <element name="attributes" type="{urn:idm.openiam.org/srvc/role/dto}roleAttributeSet" minOccurs="0"/> <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="userAssociationMethod" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openiam.idm.srvc.entitlements.AbstractEntitlementsDTO
admin, description, owner
-
Fields inherited from class org.openiam.base.AbstractMetadataTypeDTO
mdGrouping, mdTypeId, metadataTypeName
-
Fields inherited from class org.openiam.base.KeyNameDTO
name_
-
Fields inherited from class org.openiam.base.BaseObject
DELETE, NEW, objectState, requestClientIP, requestorLogin, requestorSessionID, requestorUserId, UPDATE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(RoleAttribute roleAttribute)Add new attribute and initialize roleAttributes if needed.voidaddChildRole(MembershipXref role)voidaddParentRole(MembershipXref role)intcompareTo(Role o)MembershipXrefgetAffiliation(String organizationId)RoleAttributegetAttributeByName(String attributeName)Returns the attribute object that is specified by the NAME parameter.MembershipXrefgetChildRole(String roleId)MembershipXrefgetGroup(String groupId)ProvisioningObjectTypegetObjectType()MembershipXrefgetParentRole(String roleId)MembershipXrefgetResource(String resourceId)MembershipXrefgetUser(String userId)-
Methods inherited from class org.openiam.idm.srvc.entitlements.AbstractEntitlementsDTO
setAccessRightIds
-
Methods inherited from class org.openiam.base.KeyNameDTO
equals, getName, hashCode, setName, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openiam.base.BaseIdentity
getId, setId
-
Methods inherited from interface org.openiam.provision.dto.IManagedSystemDto
getManagedSysId, getManagedSysName, setManagedSysId, setManagedSysName
-
Methods inherited from interface org.openiam.provision.dto.ProvisionObject
getId, setId
-
Methods inherited from interface org.openiam.provision.dto.ProvisionOperationAware
getOperation
-
-
-
-
Constructor Detail
-
Role
public Role(String managedSysId)
-
-
Method Detail
-
addParentRole
public void addParentRole(MembershipXref role)
-
addChildRole
public void addChildRole(MembershipXref role)
-
compareTo
public int compareTo(Role o)
- Specified by:
compareToin interfaceComparable<Role>
-
getUser
public MembershipXref getUser(String userId)
-
getResource
public MembershipXref getResource(String resourceId)
-
getGroup
public MembershipXref getGroup(String groupId)
-
getAffiliation
public MembershipXref getAffiliation(String organizationId)
-
getParentRole
public MembershipXref getParentRole(String roleId)
-
getChildRole
public MembershipXref getChildRole(String roleId)
-
getObjectType
public ProvisioningObjectType getObjectType()
- Specified by:
getObjectTypein interfaceProvisionObject
-
addAttribute
public void addAttribute(RoleAttribute roleAttribute)
Add new attribute and initialize roleAttributes if needed.- Parameters:
roleAttribute-
-
getAttributeByName
public RoleAttribute getAttributeByName(String attributeName)
Returns the attribute object that is specified by the NAME parameter.- Parameters:
attributeName- -- Returns:
-
-