com.ibm.itim.dataservices.model

Class AttributeRight

  • java.lang.Object
    • com.ibm.itim.dataservices.model.AttributeRight
  • All Implemented Interfaces:
    java.io.Serializable


    public class AttributeRight
    extends java.lang.Object
    implements java.io.Serializable
    Class representing a right, or operation, that can be performed on a set of attributes.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String R
      String constant for read operation
      static java.lang.String RW
      String constant for read-write operation
      static java.lang.String W
      String constant for write operation
    • Constructor Summary

      Constructors 
      Constructor and Description
      AttributeRight()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Collection<java.lang.String> getAttributes()
      Returns the list of attributes the right applies to.
      java.lang.String getOperations()
      Returns the operations that define the right.
      boolean isForAllAttributes()
      Returns whether the right applies to all attributes of the target.
      void setForAllAttributes(boolean isForAllAttributes)
      Changes whether the right applies to all attributes of the target.
      void setOperations(java.lang.String operations)
      Changes the operations for the right.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • R

        public static final java.lang.String R
        String constant for read operation
        See Also:
        Constant Field Values
      • W

        public static final java.lang.String W
        String constant for write operation
        See Also:
        Constant Field Values
      • RW

        public static final java.lang.String RW
        String constant for read-write operation
        See Also:
        Constant Field Values
    • Constructor Detail

      • AttributeRight

        public AttributeRight()
        Default constructor.
    • Method Detail

      • isForAllAttributes

        public boolean isForAllAttributes()
        Returns whether the right applies to all attributes of the target.
        Returns:
        boolean, true if all attributes, false if not.
      • setForAllAttributes

        public void setForAllAttributes(boolean isForAllAttributes)
        Changes whether the right applies to all attributes of the target. If this is changed to true, any attributes currently stored will be removed.
        Parameters:
        isForAllAttributes - boolean, true if all attribute, false if not
      • getOperations

        public java.lang.String getOperations()
        Returns the operations that define the right.
        Returns:
        String representation of the operations, R, W, or RW.
      • setOperations

        public void setOperations(java.lang.String operations)
        Changes the operations for the right.
        Parameters:
        operations - String representation of the operations, R, W, or RW.
      • getAttributes

        public java.util.Collection<java.lang.String> getAttributes()
        Returns the list of attributes the right applies to. If none are returned, check the isForAllAttributes method to determine whether no attributes are affected or all attributes are affected.
        Returns:
        Collection of Strings holding the attribute names. This collection is not a copy and all updates to it will be reflected in the AttributeRight object.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object