Package org.openiam.idm.srvc.role.domain
Class RoleEntity
- java.lang.Object
-
- org.openiam.base.domain.KeyEntity
-
- org.openiam.base.domain.AbstractKeyNameEntity
-
- org.openiam.base.domain.AbstractMetadataTypeEntity
-
- org.openiam.base.domain.AbstractEntitlementPolicyEntity
-
- org.openiam.idm.srvc.role.domain.RoleEntity
-
- All Implemented Interfaces:
Serializable
,BaseIdentity
,IManagedSystemEntity
,IUserToObjectLimitedEntity
,GraphIdAware
@Entity public class RoleEntity extends AbstractEntitlementPolicyEntity implements IManagedSystemEntity, IUserToObjectLimitedEntity, GraphIdAware
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected MetadataTypeEntity
risk
-
Fields inherited from class org.openiam.base.domain.AbstractMetadataTypeEntity
type
-
Fields inherited from class org.openiam.base.domain.AbstractKeyNameEntity
name
-
-
Constructor Summary
Constructors Constructor Description RoleEntity()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openiam.base.BaseIdentity
getId, setId
-
Methods inherited from interface org.openiam.graph.model.GraphIdAware
getGraphId
-
Methods inherited from interface org.openiam.base.domain.IManagedSystemEntity
getManagedSystem, setManagedSystem
-
Methods inherited from interface org.openiam.base.domain.IUserToObjectLimitedEntity
getMaxUserNumber, setMaxUserNumber
-
-
-
-
Field Detail
-
risk
protected MetadataTypeEntity risk
-
-
Method Detail
-
getName
@Size(max=80, message="role.name.too.long") public @Size(max=80,message="role.name.too.long") String getName()
-
getOrganization
public RoleToOrgMembershipXrefEntity getOrganization(String organizationId)
-
getChild
public RoleToRoleMembershipXrefEntity getChild(String childId)
-
getParent
public RoleToRoleMembershipXrefEntity getParent(String parentId)
-
addChild
public void addChild(RoleEntity entity, Collection<AccessRightEntity> rights, Date startDate, Date endDate)
-
removeAttribute
public void removeAttribute(String id)
-
addAttribute
public void addAttribute(RoleAttributeEntity entity)
-
addParentRole
public void addParentRole(RoleEntity parent, Collection<AccessRightEntity> rights, Date startDate, Date endDate)
-
hasChild
public boolean hasChild(RoleEntity entity)
-
removeChild
public void removeChild(RoleEntity entity)
-
addOrganization
public void addOrganization(OrganizationEntity entity, Collection<AccessRightEntity> rights, Date startDate, Date endDate)
-
getGroup
public RoleToGroupMembershipXrefEntity getGroup(String groupId)
-
getResource
public RoleToResourceMembershipXrefEntity getResource(String resourceId)
-
addUser
public void addUser(UserEntity entity, AccessRightEntity right, Date startDate, Date endDate)
-
addUser
public void addUser(UserEntity entity, Collection<AccessRightEntity> rights, Date startDate, Date endDate)
-
addResource
public void addResource(ResourceEntity entity, Collection<AccessRightEntity> rights, Date startDate, Date endDate)
-
removeResource
public void removeResource(ResourceEntity entity)
-
addGroup
public void addGroup(GroupEntity entity, AccessRightEntity right, Date startDate, Date endDate)
-
addGroup
public void addGroup(GroupEntity entity, Collection<AccessRightEntity> rights, Date startDate, Date endDate)
-
removeGroup
public void removeGroup(GroupEntity entity)
-
getUser
public UserToRoleMembershipXrefEntity getUser(String userId)
-
addApproverAssociation
public void addApproverAssociation(ApproverAssociationEntity entity)
-
-