Class Role

All Implemented Interfaces:
Serializable

public class Role extends AbstractRiskAwareEntity implements Serializable
Author:
stblack Class Role General purpose Role class for all OIM modules. Represents an enterprise role that any number of Users may have within an enterprise. Also known as "business-role" or "job-role." This is distinguished from an "application-role" or "duty-role" that applies only within the context of a particular Resource (system or application). Notes: - Initially developed for the access review module (OIA identity certification or IDC). - OIA represents an "application-role" as an entitlement. In OIA the definition of an application-role is an entitlement-definition, and an instance of an application-role assigned to an account is an account-attribute-value. Relevant fields from superclasses: id, name, createDate, updateDate, createdById, updatedById Relevant risk related fields from superclasses: itemRisk, riskUpdateDate
See Also:
  • Constructor Details

    • Role

      public Role()
  • Method Details

    • getDescription

      public String getDescription()
      Gets the description for the Role
      Returns:
      the description
    • setDescription

      public void setDescription(String dStr)
      Sets the description for the Role
      Parameters:
      dStr - the description to set
    • getOwnerId

      public Long getOwnerId()
      Gets unique identifier for the User who owns the role.
      Returns:
      Unique identifier for the User who owns the role.
    • setOwnerId

      public void setOwnerId(Long guid)
      Sets unique identifier for the User who owns the role
      Parameters:
      guid - Unique identifier for the User who owns the role.
    • getMemberUserIds

      public List<Long> getMemberUserIds()
      Gets list of Users (unique Ids) who are members of the Role Returns a copy. TODO/TBD: Also could return an immutable view of the list:
      Returns:
      a copy of the list of unique Ids of Users who are members of the Role
    • setMemberUserIds

      public void setMemberUserIds(List<Long> guidList)
      Sets list of Users (unique Ids) who are members of the Role Makes a defensive copy.
      Parameters:
      guidList - the list of unique Ids of Users who are members of the Role
    • getParentIds

      public List<Long> getParentIds()
      Gets the list of Roles (Ids) that directly contain this Role Returns a copy. TODO/TBD: Also could return an immutable view of the list:
      Returns:
      a copy of the list of Roles that directly contain this Role
    • setParentIds

      public void setParentIds(List<Long> guidList)
      Sets the list of Roles (Ids) that directly contain this Role Makes a defensive copy.
      Parameters:
      guidList - the list of Ids of Roles that directly contain this Role
    • getChildIds

      public List<Long> getChildIds()
      Gets the list of Roles (Ids) that are direct children of this Role Returns a copy. TODO/TBD: Also could return an immutable view of the list:
      Returns:
      the list of Ids of Roles that are direct children of this Role
    • setChildIds

      public void setChildIds(List<Long> guidList)
      Sets the list of Roles (Ids) that are direct children of this Role Makes a defensive copy.
      Parameters:
      guidList - the list of Ids of Roles that are direct children of this Role
    • getPolicyIds

      public List<Long> getPolicyIds()
      Gets the list of Policies (Ids) that are part of this Role Returns a copy. TODO/TBD: Also could return an immutable view of the list:
      Returns:
      the list of Ids of Policies that are part off this Role
    • setPolicyIds

      public void setPolicyIds(List<Long> guidList)
      Sets the list of Policies (Ids) that are part of this Role Makes a defensive copy.
      Parameters:
      guidList - the list of Ids of Policies that are part of this Role
    • getCustomProperties

      public List<String> getCustomProperties()
      Gets custom properties (also known as User Defined Fields, or UDFs) Returns a copy. TODO/TBD: Also could return an immutable view of the list: return Collections.unmodifiableList(customProperties);
      Returns:
      a copy of customProperties
    • setCustomProperties

      public void setCustomProperties(List<String> propList)
      Sets custom properties (also known as User Defined Fields, or UDFs) Makes a defensive copy.
      Parameters:
      propList - the list of custom properties to set
    • setPolicies

      public void setPolicies(List<Policy> policies)
    • getPolicies

      public List<Policy> getPolicies()
    • setUsers

      public void setUsers(List<User> users)
    • getUsers

      public List<User> getUsers()
    • setUserRoleAssignments

      public void setUserRoleAssignments(List<UserRoleAssignment> userRoleAssignments)
    • getUserRoleAssignments

      public List<UserRoleAssignment> getUserRoleAssignments()
    • setPolicyAssociations

      public void setPolicyAssociations(List<RolePolicyAssociation> policyAssociations)
    • getPolicyAssociations

      public List<RolePolicyAssociation> getPolicyAssociations()
    • setStatusId

      public void setStatusId(Long statusId)
    • getStatusId

      public Long getStatusId()
    • setCatalog

      public void setCatalog(Catalog catalog)
    • getCatalog

      public Catalog getCatalog()
    • setUdfAttributeMap

      public void setUdfAttributeMap(Map<String,Object> udfAttributeMap)
    • getUdfAttributeMap

      public Map<String,Object> getUdfAttributeMap()
    • setDataLevel

      public void setDataLevel(Long dataLevel)
    • getDataLevel

      public Long getDataLevel()
    • setRoleCategoryId

      public void setRoleCategoryId(Long roleCategoryId)
    • getRoleCategoryId

      public Long getRoleCategoryId()