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.
ServiceTarget(java.lang.String serviceProfileName, java.util.Collection<java.lang.String> serviceTags)
          The service target value object constructor.
 
Method Summary
 java.util.Collection<java.lang.String> getServiceTags()
          Access method for the serviceTags property.
 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 setServiceTags(java.util.Collection<java.lang.String> serviceTags)
          Sets the value of the serviceTags property.
 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

ServiceTarget

public ServiceTarget(java.lang.String serviceProfileName,
                     java.util.Collection<java.lang.String> serviceTags)
The service target value object constructor. This constructor implies the target type as TYPE_SERVICE_TYPE.

Parameters:
serviceProfileName - The service profile name.
serviceTags - the collection of service tags.
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.

setServiceTags

public void setServiceTags(java.util.Collection<java.lang.String> serviceTags)
Sets the value of the serviceTags property.

Parameters:
serviceTags - the new value of the serviceTags property.

getServiceTags

public java.util.Collection<java.lang.String> getServiceTags()
Access method for the serviceTags property.

Returns:
the Collection of service tags

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 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.