Package org.openiam.idm.srvc.res.domain
Class ResourceEntity
- java.lang.Object
-
- org.openiam.base.domain.KeyEntity
-
- org.openiam.base.domain.AbstractKeyNameEntity
-
- org.openiam.base.domain.AbstractMetadataTypeEntity
-
- org.openiam.idm.srvc.res.domain.ResourceEntity
-
- All Implemented Interfaces:
Serializable
,BaseIdentity
,GraphIdAware
@Entity public class ResourceEntity extends AbstractMetadataTypeEntity implements GraphIdAware
- See Also:
- Serialized Form
-
-
Field Summary
-
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 ResourceEntity(String id)
-
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
-
-
-
-
Constructor Detail
-
ResourceEntity
public ResourceEntity(String id)
-
-
Method Detail
-
getName
@Size(max=255, message="resource.name.too.long") public @Size(max=255,message="resource.name.too.long") String getName()
-
getChild
public ResourceToResourceMembershipXrefEntity getChild(String childId)
-
getParent
public ResourceToResourceMembershipXrefEntity getParent(String parentId)
-
addUser
public void addUser(UserEntity entity, AccessRightEntity right, Date startDate, Date endDate)
-
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)
-
removeUser
public void removeUser(UserEntity entity)
-
removeUser
public void removeUser(String userId)
-
addUser
public void addUser(UserEntity entity, Date startDate, Date endDate)
-
addUser
public void addUser(UserEntity entity, Collection<AccessRightEntity> rights, Date startDate, Date endDate)
-
getUser
public UserToResourceMembershipXrefEntity getUser(String userId)
-
addChildResource
public void addChildResource(ResourceEntity resource, Collection<AccessRightEntity> rights, Date startDate, Date endDate)
-
hasChildResoruce
public boolean hasChildResoruce(ResourceEntity entity)
-
removeChildResource
public void removeChildResource(ResourceEntity entity)
-
getResourceProperty
public ResourcePropEntity getResourceProperty(String propName)
-
addResourceProperty
public void addResourceProperty(ResourcePropEntity property)
-
addApproverAssociation
public void addApproverAssociation(ApproverAssociationEntity entity)
-
getOrganization
public ResourceToOrgMembershipXrefEntity getOrganization(String organizationId)
-
getGroup
public GroupToResourceMembershipXrefEntity getGroup(String groupId)
-
getRole
public RoleToResourceMembershipXrefEntity getRole(String roleId)
-
-