Package oracle.iam.platform.authopss.vo
Class AdminRoleMembership
java.lang.Object
oracle.iam.platform.authopss.vo.AdminRoleMembership
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AdminRoleMembershipWithoutHierarchy
This class represents a role membership object and its attributes.
Instances should be obtained using AdminRoleService. If more extensive relationship needs to be set on
admin role (such as capability, SoC etc) then use AdminRoleVO instead.
- Since:
- OIM R2 (11.1.2.0.0)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for eclipselink.AdminRoleMembership(String userId, AdminRole adminRole, Long scopeId, boolean includeScopeHierarchy) Constructor for the class. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the admin-role.final LongDelegate method to conveniently return the admin role-id from AdminRole objectfinal StringDelegate method to conveniently return the admin role-name from AdminRole objectThe primary key representing the membership-id.final Stringfinal StringGetter for the organization-idfinal StringGetter for the user-id.final booleanGetter for the hierarchical flag that indicates whether user has admin rights on the the child organizations too.voidsetAdminRole(AdminRole adminRole) Setter for the admin role.final voidsetHierarchicalScope(boolean scopeHierarchical) Setter for the hierarchical flag that indicates whether user has admin rights on the the child organizations too.voidsetRoleMembershipId(Long roleMembershipId) Setter for the unique membership-id.final voidsetRootScopeId(String rootScopeId) voidsetRootScopeIdAsLong(Long rootScopeIdAsLong) final voidsetScopeId(String scopeId) Setter for the scope(organization)-idfinal voidSetter for the user-id.toString()
-
Constructor Details
-
AdminRoleMembership
public AdminRoleMembership(String userId, AdminRole adminRole, Long scopeId, boolean includeScopeHierarchy) Constructor for the class.- Parameters:
userId- - the user-id of the user to whom the Admin-Role membership is being assigned.adminRole- - The Admin Role object.scopeId- - The organization on which the admin-role is being grnated to the user.includeScopeHierarchy- - The hierarchy flag that represnts that user also has admin role on the child organizations.
-
AdminRoleMembership
public AdminRoleMembership()Default constructor for eclipselink.
-
-
Method Details
-
getRoleMembershipId
The primary key representing the membership-id. Do not set this attribute while creating the membership.- Returns:
-
setRoleMembershipId
Setter for the unique membership-id.- Parameters:
roleMembershipId-
-
setUserId
Setter for the user-id.- Parameters:
userId-
-
getUserId
Getter for the user-id.- Returns:
-
getAdminRole
Getter for the admin-role.- Returns:
- the adminRole
-
setAdminRole
Setter for the admin role.- Parameters:
adminRole- the adminRole to set
-
getAdminRoleId
Delegate method to conveniently return the admin role-id from AdminRole object- Returns:
-
getAdminRoleName
Delegate method to conveniently return the admin role-name from AdminRole object- Returns:
-
setScopeId
Setter for the scope(organization)-id- Parameters:
scopeId-
-
getScopeId
Getter for the organization-id- Returns:
-
setHierarchicalScope
public final void setHierarchicalScope(boolean scopeHierarchical) Setter for the hierarchical flag that indicates whether user has admin rights on the the child organizations too.- Parameters:
scopeHierarchical-
-
isHierarchicalScope
public final boolean isHierarchicalScope()Getter for the hierarchical flag that indicates whether user has admin rights on the the child organizations too.- Returns:
-
getRootScopeId
- Returns:
- the rootScopeId
-
setRootScopeId
- Parameters:
rootScopeId- the rootScopeId to set
-
getScopeIdAsLong
- Returns:
- the scopeIdAsLong
-
setRootScopeIdAsLong
- Parameters:
rootScopeIdAsLong- the rootScopeIdAsLong to set
-
toString
-