public class GroupTarget extends java.lang.Object implements IPolicyTarget
GroupTarget class allows for an ITIM policy
to target individual groups, all groups in the organization, or all
groups on a particular service.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALL_SERVICES |
| Constructor and Description |
|---|
GroupTarget()
Creates a
GroupTarget, targeting all managed groups
in the organization. |
GroupTarget(java.lang.String serviceId)
Creates a
GroupTarget, targeting all managed groups
on a particular service. |
GroupTarget(java.lang.String groupId,
java.lang.String serviceId)
Creates a
GroupTarget, targeting an individual managed group. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertToLDAPString()
Converts this GroupTarget instance into its
String
representation for storage in LDAP. |
boolean |
equals(java.lang.Object o)
Compares the given object with this GroupTarget object for equality.
|
java.lang.String |
getGroupId()
Returns the
String distinguished name for an individual
specified group. |
boolean |
getIncludeAll()
Returns a flag, indicating whether or not this target includes
all managed groups in the organization.
|
boolean |
getIncludeAllOnService()
Returns a flag, indicating whether or not this target includes
all groups on a particular service.
|
java.lang.String |
getServiceId()
Returns the
String distinguished name for an individual
specified service. |
int |
hashCode()
Returns the hash code value for this GroupTarget.
|
boolean |
isExistInTargetList(java.util.Collection<IPolicyTarget> targetList)
Checks to see if this target exists in the specified collection of
IPolicyTarget
instances. |
static boolean |
isGroupTarget(java.lang.String str)
Checks the
IPolicyTarget String representation
to see if it is a GroupTarget. |
static GroupTarget |
loadFromLDAPString(java.lang.String str)
Builds a new GroupTarget instance from its
String
representation. |
java.lang.String |
toString()
Returns a string representation of this GroupTarget.
|
public static final java.lang.String ALL_SERVICES
public GroupTarget()
GroupTarget, targeting all managed groups
in the organization.public GroupTarget(java.lang.String serviceId)
GroupTarget, targeting all managed groups
on a particular service. In the case that all services are specified
in combination with all groups on a specified service, a value of ALL_SERVICES
must be passed into this method. Functionaly, it is equivalent to
using the default constructor, but it is used by the user interface for distinguishing between
the Users selections for future modifications.serviceId - the String distinguished name of the service.public GroupTarget(java.lang.String groupId,
java.lang.String serviceId)
GroupTarget, targeting an individual managed group.groupId - the String distinguished name of the group.serviceId - the String distinguished name of the service.public boolean isExistInTargetList(java.util.Collection<IPolicyTarget> targetList)
IPolicyTargetIPolicyTarget
instances.isExistInTargetList in interface IPolicyTargettargetList - a collection of IPolicyTarget objectspublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to be compared for equality with this GroupTarget.Object.equals(java.lang.Object)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String convertToLDAPString()
String
representation for storage in LDAP.convertToLDAPString in interface IPolicyTargetString encoding of this target.public static boolean isGroupTarget(java.lang.String str)
IPolicyTarget String representation
to see if it is a GroupTarget.str - the String encoding of a target.public static GroupTarget loadFromLDAPString(java.lang.String str)
String
representation.str - the String encoding of this target.public java.lang.String getGroupId()
String distinguished name for an individual
specified group. If this target includes multiple groups (wildcard),
then this method may return null.String id for the targeted group.public boolean getIncludeAll()
boolean flagpublic boolean getIncludeAllOnService()
boolean flagpublic java.lang.String getServiceId()
String distinguished name for an individual
specified service. This value is set if this instance targets
an individual group or all groups on a service.String id for the targeted service.