com.ibm.itim.dataservices.model.pim
Class SAEntitlementCriteria

java.lang.Object
  extended by com.ibm.itim.dataservices.model.pim.SAEntitlement
      extended by com.ibm.itim.dataservices.model.pim.SAEntitlementCriteria
All Implemented Interfaces:
java.io.Serializable

public class SAEntitlementCriteria
extends SAEntitlement

This class represents a shared access policy entitlement with a set of criteria.

Since:
6.0
See Also:
SharedAccessPolicy, SAEntitlement, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.itim.dataservices.model.pim.SAEntitlement
SAEntitlement.DefinitionType, SAEntitlement.Type
 
Field Summary
static java.lang.String ALL_CREDENTIAL_POOLS
           
static java.lang.String ALL_CREDENTIALS
           
 
Fields inherited from class com.ibm.itim.dataservices.model.pim.SAEntitlement
ID_NOT_ASSIGNED
 
Constructor Summary
SAEntitlementCriteria(SAEntitlement.Type type)
          Constructor for creating an entitlement for all credentials or all credential pools.
SAEntitlementCriteria(SAEntitlement.Type type, java.lang.String name, java.lang.String targetName, java.lang.String serviceProfileName, java.lang.String serviceName, java.lang.String serviceGroup)
          Constructor for creating an entitlement with a set of criteria.
 
Method Summary
 boolean equals(java.lang.Object entitlement)
          Compares the object passed in with itself.
 java.lang.String getName()
          Return the entitlement name.
 int hashCode()
          Returns a hash value that can be used in hash tables.
 boolean isAll()
          Check if this entitlement is for all credentials or credential pools.
 void setName(java.lang.String name)
          Set the entitlement name.
 void setServiceName(java.lang.String serviceName)
          Set the matching string for the service name.
 void setServiceProfileName(java.lang.String serviceProfileName)
          Set the service profile name.
 void setServiceTag(java.lang.String serviceTag)
          Set the matching string for the service tag.
 void setTargetName(java.lang.String targetName)
          Set the target name.
 
Methods inherited from class com.ibm.itim.dataservices.model.pim.SAEntitlement
getDefinitionType, getId, getServiceName, getServiceProfileName, getServiceTag, getTargetName, getType, setType
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_CREDENTIALS

public static final java.lang.String ALL_CREDENTIALS
See Also:
Constant Field Values

ALL_CREDENTIAL_POOLS

public static final java.lang.String ALL_CREDENTIAL_POOLS
See Also:
Constant Field Values
Constructor Detail

SAEntitlementCriteria

public SAEntitlementCriteria(SAEntitlement.Type type)
Constructor for creating an entitlement for all credentials or all credential pools.

Parameters:
type - Enumerated Type value which can be Type.CREDENTIAL, or Type.CREDENTIAL_POOL

SAEntitlementCriteria

public SAEntitlementCriteria(SAEntitlement.Type type,
                             java.lang.String name,
                             java.lang.String targetName,
                             java.lang.String serviceProfileName,
                             java.lang.String serviceName,
                             java.lang.String serviceGroup)
Constructor for creating an entitlement with a set of criteria. During policy evaluation, only objects that satisfied all criteria will be returned. Use separate entitlements, one containing one criteria to achieve evaluation for objects satisfying any criteria.

Parameters:
type - Enumerated Type value which can be Type.CREDENTIAL, or Type.CREDENTIAL_POOL
name - The entitement name.
targetName - The match string for the account id, or pool name or description
serviceProfileName - The service profile name or empty string representing all services
serviceName - The match string for the service name
service - group The match string for the service group attribute
Method Detail

setName

public void setName(java.lang.String name)
Set the entitlement name.

Parameters:
name - The entitement name.

setTargetName

public void setTargetName(java.lang.String targetName)
Set the target name.
  • For credential entitlement, target name represents the matching string for account id;
  • For credential pool entitlement, target name represents the matching string for pool name.
  • Parameters:
    name - The target name.

    setServiceProfileName

    public void setServiceProfileName(java.lang.String serviceProfileName)
    Set the service profile name. A empty string represents all services.

    Parameters:
    name - The service profile name.

    setServiceName

    public void setServiceName(java.lang.String serviceName)
    Set the matching string for the service name.

    Parameters:
    serviceName - The service name matching string.

    setServiceTag

    public void setServiceTag(java.lang.String serviceTag)
    Set the matching string for the service tag.

    Parameters:
    serviceTag - The service group matching string.

    equals

    public boolean equals(java.lang.Object entitlement)
    Compares the object passed in with itself.

    Overrides:
    equals in class java.lang.Object
    Parameters:
    entitlement - The object to be compared
    Returns:
    true if the passing object is the same as self, false otherwise

    hashCode

    public int hashCode()
    Returns a hash value that can be used in hash tables.

    Overrides:
    hashCode in class java.lang.Object
    Returns:
    Hash value for the distinguished name.

    isAll

    public boolean isAll()
    Check if this entitlement is for all credentials or credential pools.

    Returns:
    true if the values of targetName, serviceProfileName, serviceName, and serviceGroup are all empty, false otherwise

    getName

    public java.lang.String getName()
    Return the entitlement name.

    Overrides:
    getName in class SAEntitlement
    Returns:
    the entitlement name.


    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.