com.ibm.itim.apps.policy
Class ServiceTarget

java.lang.Object
  extended by com.ibm.itim.apps.policy.ServiceTarget
All Implemented Interfaces:
java.io.Serializable

public class ServiceTarget
extends java.lang.Object
implements java.io.Serializable

This class represents a target service, which could be either a specific service instance, an instance specified by a service selection policy, all services of the specified profile, or all services of any profile.

See Also:
Serialized Form

Field Summary
static long TYPE_ALL
           
static long TYPE_HOST_SELECTION_POLICY
           
static long TYPE_NONE
           
static long TYPE_SERVICE_NAME
           
static long TYPE_SERVICE_TYPE
           
 
Constructor Summary
ServiceTarget(long targetType, java.lang.String targetName)
          Constructor for a construction of a complete ServiceTarget.
 
Method Summary
 java.lang.String getTargetName()
          Returns the targetName property of the ServiceTarget.
 long getTargetType()
          Returns the targetType of the ServiceTarget.
 boolean isExistInTargetList(java.util.Collection targetList)
          Checks if self exists in the passing Target list.
 void setTargetName(java.lang.String name)
          Sets the value of the targetName property of the ServiceTarget.
 void setTargetType(long type)
          Sets the value of the targetType property of the ServiceTarget.
 java.lang.String toString()
          Method returns a string representation of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_SERVICE_TYPE

public static final long TYPE_SERVICE_TYPE
See Also:
Constant Field Values

TYPE_SERVICE_NAME

public static final long TYPE_SERVICE_NAME
See Also:
Constant Field Values

TYPE_ALL

public static final long TYPE_ALL
See Also:
Constant Field Values

TYPE_HOST_SELECTION_POLICY

public static final long TYPE_HOST_SELECTION_POLICY
See Also:
Constant Field Values

TYPE_NONE

public static final long TYPE_NONE
See Also:
Constant Field Values
Constructor Detail

ServiceTarget

public ServiceTarget(long targetType,
                     java.lang.String targetName)
Constructor for a construction of a complete ServiceTarget.

Parameters:
targetType - The target type which must be one of the 4 target type constants defined in this class.
targetName - Stores the service dn if the target type is TYPE_SERVICE_NAME; Stores the service profile name if the target type is TYPE_SERVICE_TYPE or TYPE_HOST_SELECTION_POLICY; Stores a wildcard character "*" if the target type is TYPE_ALL
Method Detail

getTargetType

public long getTargetType()
Returns the targetType of the ServiceTarget.

Returns:
the current value of the targetType property.

setTargetType

public void setTargetType(long type)
Sets the value of the targetType property of the ServiceTarget.

Parameters:
type - The new value of the targetType property.

setTargetName

public void setTargetName(java.lang.String name)
Sets the value of the targetName property of the ServiceTarget.

Parameters:
name - The new value of the targetName property.

getTargetName

public java.lang.String getTargetName()
Returns the targetName property of the ServiceTarget.

Returns:
The current value of the targetName property.

toString

public java.lang.String toString()
Method returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
String representing a textual description of this object.

isExistInTargetList

public boolean isExistInTargetList(java.util.Collection targetList)
Checks if self exists in the passing Target list.

Parameters:
targetList - a collection of ServiceTarget objects
Returns:
true if existing in the target list, false otherwise


IBM Tivoli Identity Manager 5.1
© Copyright International Business Machines Corporation 2007, 2009. All rightsreserved. US Government Users Restricited RightsUse, duplication or disclosure restricted by GSA ADP ScheduleContract with IBM Corp.