com.ibm.itim.dataservices.model.policy

Class ServicePolicy

  • All Implemented Interfaces:
    Policy, ProtectedObject, com.ibm.itim.util.Sortable, com.ibm.itim.util.xml.objectstream.Importable, java.io.Serializable
    Direct Known Subclasses:
    RecertificationPolicy


    public abstract class ServicePolicy
    extends ScopedPolicy
    This class is a specialization of the ScopedPolicy class that provides the base value object of all ServicePolicyEntities.
    See Also:
    ServicePolicyEntity, Serialized Form
    • Field Detail

      • POLICY_ATTR_POLICY_TARGET

        public static final java.lang.String POLICY_ATTR_POLICY_TARGET
        String constant for the target attribute name.
        See Also:
        Constant Field Values
      • POLICY_ATTR_REQ_POLICY_TARGET

        public static final java.lang.String POLICY_ATTR_REQ_POLICY_TARGET
        String constant for the target attribute name
        See Also:
        Constant Field Values
      • POLICY_ATTR_OBJECT_PROFILE_NAME

        public static final java.lang.String POLICY_ATTR_OBJECT_PROFILE_NAME
        String constant for the object profile name
        See Also:
        Constant Field Values
    • Method Detail

      • addTarget

        public void addTarget(IPolicyTarget target)
        Adds a new IPolicyTarget object.
        Parameters:
        target - a IPolicyTarget object.
      • removeTarget

        public boolean removeTarget(int index)
        Removes a IPolicyTarget object indicated by the index.
        Parameters:
        int - index
      • removeTarget

        public boolean removeTarget(IPolicyTarget target)
        Removes the given IPolicyTarget object.
        Parameters:
        target - the IPolicyTarget to be removed.
      • setTargets

        public void setTargets(java.util.Collection<IPolicyTarget> newTargets)
        Sets the value of the targets attribute.
        Parameters:
        newTargets - the new value of the targets attribute.
      • getTargets

        public java.util.Collection<IPolicyTarget> getTargets()
        Returns the value of the targets attribute.
        Returns:
        the current value (a collection of IPolicyTarget objects) of the targets attribute.
      • getTargetsByReference

        public java.util.Collection<IPolicyTarget> getTargetsByReference()
        Returns the value of the targets attribute. Overridden in extended classes to return a reference to IPolicyTarget object for better performance.
        Returns:
        the current value (a collection of IPolicyTarget objects) of the targets attribute.