com.ibm.itim.dataservices.model.policy
Class SeparationOfDutyPolicy

java.lang.Object
  extended by com.ibm.itim.dataservices.model.DirectoryEntry
      extended by com.ibm.itim.dataservices.model.DirectoryObject
          extended by com.ibm.itim.dataservices.model.policy.DirectoryPolicy
              extended by com.ibm.itim.dataservices.model.policy.SeparationOfDutyPolicy
All Implemented Interfaces:
Policy, ProtectedObject, com.ibm.itim.util.Sortable, com.ibm.itim.util.xml.objectstream.Importable, java.io.Serializable

public class SeparationOfDutyPolicy
extends DirectoryPolicy

This class is the value object for the separation of duty policy entity.

Since:
ITIM 5.1
See Also:
SeparationOfDutyRule, Serialized Form

Field Summary
static java.lang.String OWNER
          The attribute for storing the owner of the policy
static java.lang.String PROFILE_NAME
          The profile name for SeparationOfDutyPolicy
static java.lang.String SEPARATION_OF_DUTY_RULE
          The attribute for storing the Separation Of Duty Rule information
 
Fields inherited from class com.ibm.itim.dataservices.model.policy.DirectoryPolicy
POLICY_ATTR_CAPTION, POLICY_ATTR_DESCRIPTION, POLICY_ATTR_ENABLED, POLICY_ATTR_ISDRAFT, POLICY_ATTR_KEY_WORDS, POLICY_ATTR_NAME, POLICY_ATTR_PRIORITY
 
Fields inherited from class com.ibm.itim.dataservices.model.DirectoryObject
ATTR_ACCESS_RIGHT, ATTR_LIFECYCLE_ENABLE, ATTR_URI, DESCRIPTION, NAME
 
Fields inherited from interface com.ibm.itim.util.Sortable
ATTR_NAME
 
Constructor Summary
SeparationOfDutyPolicy()
          Default constructor
SeparationOfDutyPolicy(java.lang.String name, java.lang.String description, boolean enabled, java.util.Collection<SeparationOfDutyRule> rules)
          The separation of duty value object constructor with full set of parameters.
 
Method Summary
 boolean equals(java.lang.Object policy)
          Very crude version of equals.
 java.util.Collection<DistinguishedName> getOwnerDNs()
          Get the collection of DistinguishedName that are defined as the owner for this policy
 java.lang.String getProfileName()
          Returns the name of the profile associated to the object
 java.util.Collection<SeparationOfDutyRule> getRules()
          Get the collection of SeparationOfDutyRules that are defined for this policy
 int hashCode()
           
 void removeOwnerDNs()
          Removes the owner(s) of the policy.
 void setOwnerDNs(java.util.Collection<DistinguishedName> owners)
          Sets the value of the owner attribute.
 void setRules(java.util.Collection<SeparationOfDutyRule> rules)
          Sets the value of the separation of duty rules attribute.
 
Methods inherited from class com.ibm.itim.dataservices.model.policy.DirectoryPolicy
getCaption, getDescription, getKeywords, getName, getParentDN, isEnabled, setCaption, setDescription, setEnabled, setKeywords, setName
 
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObject
addAttribute, addAttributeValues, getAccessRights, getAttribute, getAttributes, getAuthorizationOwners, getMapAttributeNames, getMappedAttributes, getNameAttribute, getOldMappedAttributes, getRawAttributes, getSortValue, getTenantDN, isLifecycleDefined, removeAttribute, removeAttribute, setAccessRights, setAttribute, setAttributes, setAuthorizationOwners, setProfileName, setTenantDN, toString
 
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryEntry
clearChange, clearChanges, getChanges, getDistinguishedName, getLastModified, getObjectClasses, getOldAttributes, setDistinguishedName
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROFILE_NAME

public static final java.lang.String PROFILE_NAME
The profile name for SeparationOfDutyPolicy

See Also:
Constant Field Values

SEPARATION_OF_DUTY_RULE

public static final java.lang.String SEPARATION_OF_DUTY_RULE
The attribute for storing the Separation Of Duty Rule information

See Also:
Constant Field Values

OWNER

public static final java.lang.String OWNER
The attribute for storing the owner of the policy

See Also:
Constant Field Values
Constructor Detail

SeparationOfDutyPolicy

public SeparationOfDutyPolicy()
Default constructor


SeparationOfDutyPolicy

public SeparationOfDutyPolicy(java.lang.String name,
                              java.lang.String description,
                              boolean enabled,
                              java.util.Collection<SeparationOfDutyRule> rules)
The separation of duty value object constructor with full set of parameters.

Parameters:
name - The policy name
description - The policy description
enabled - The policy status
rules - A collection of SeparationOfDutyRule objects
Method Detail

getProfileName

public java.lang.String getProfileName()
Description copied from class: DirectoryObject
Returns the name of the profile associated to the object

Overrides:
getProfileName in class DirectoryObject
Returns:
String profile name. Returns null when there is no object profile associated with this object.

setRules

public void setRules(java.util.Collection<SeparationOfDutyRule> rules)
Sets the value of the separation of duty rules attribute.

Parameters:
rules - The collection of SeparationOfDutyRules to set for this policy.

getRules

public java.util.Collection<SeparationOfDutyRule> getRules()
Get the collection of SeparationOfDutyRules that are defined for this policy

Returns:
Collection of SeparationOfDutyRule for this policy.

setOwnerDNs

public void setOwnerDNs(java.util.Collection<DistinguishedName> owners)
Sets the value of the owner attribute. Only collections of Org Role DNs and/or collections of Person DNs should be used (can be a mix)

Parameters:
rules - The collection of DistinguishedNames to set as the owners for this policy.

getOwnerDNs

public java.util.Collection<DistinguishedName> getOwnerDNs()
Get the collection of DistinguishedName that are defined as the owner for this policy

Returns:
Collection of DistinguishedName that contains the owners defined for this policy. This collection will contain a collection of Or Role DNs and or a Collection of person DNs. There is no referential integrity checking for the DNs returned by this call.

removeOwnerDNs

public void removeOwnerDNs()
Removes the owner(s) of the policy.


equals

public boolean equals(java.lang.Object policy)
Very crude version of equals.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.