|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.dataservices.model.policy.GroupTarget
public class GroupTarget
The GroupTarget
class allows for an ITIM policy
to target individual groups, all groups in the organization, or all
groups on a particular service.
Field Summary | |
---|---|
static java.lang.String |
ALL_SERVICES
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ALL_SERVICES
Constructor Detail |
---|
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.Method Detail |
---|
public boolean isExistInTargetList(java.util.Collection<IPolicyTarget> targetList)
IPolicyTarget
IPolicyTarget
instances.
isExistInTargetList
in interface IPolicyTarget
targetList
- a collection of IPolicyTarget objects
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- 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.Object
Object.toString()
public java.lang.String convertToLDAPString()
String
representation for storage in LDAP.
convertToLDAPString
in interface IPolicyTarget
String
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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |