com.ibm.itim.apps.policy

Class ServiceTarget

  • java.lang.Object
    • 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
    • Constructor Summary

      Constructors 
      Constructor and Description
      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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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
    • 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