com.ibm.itim.dataservices.model

Class Permission

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


    public class Permission
    extends java.lang.Object
    implements java.io.Serializable
    Class that represents a permission within an AccessRight, or ACI. A Permission may consist of class level rights and/or attribute level rights.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String DENY
      Constant defining the action for denying permission.
      static java.lang.String GRANT
      Constant defining the action for granting permission.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Permission() 
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      void addAttributeRight(AttributeRight attributeRight)
      Deprecated. 
      Add rights directly to Collection returned in getAttributeRights() instead.
      void addClassRight(java.lang.String classRight)
      Deprecated. 
      Add rights directly to Collection returned in getClassRights() instead.
      java.lang.String getAction()
      Returns the action of the Permission.
      java.util.Collection<AttributeRight> getAttributeRights()
      Returns a collection of attribute level rights.
      java.util.Collection<java.lang.String> getClassRights()
      Returns a collection of class level rights.
      void setAction(java.lang.String action)
      Changes the action of the Permission.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

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

      • GRANT

        public static final java.lang.String GRANT
        Constant defining the action for granting permission.
        See Also:
        Constant Field Values
      • DENY

        public static final java.lang.String DENY
        Constant defining the action for denying permission.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Permission

        public Permission()
    • Method Detail

      • getAction

        public java.lang.String getAction()
        Returns the action of the Permission.
        Returns:
        Enumerated String action, GRANT or DENY.
      • setAction

        public void setAction(java.lang.String action)
        Changes the action of the Permission.
        Parameters:
        action - Enumerated String action, GRANT or DENY.
      • getAttributeRights

        public java.util.Collection<AttributeRight> getAttributeRights()
        Returns a collection of attribute level rights.
        Returns:
        Collection of AttributeRight objects. This collection is not a copy and all updates to it will be reflected in the Permission object.
      • getClassRights

        public java.util.Collection<java.lang.String> getClassRights()
        Returns a collection of class level rights.
        Returns:
        Collection of Strings representing class level rights. The values of the Strings are specific to the class of the entity(s) being protected. This collection is not a copy and all updates to it will be reflected in the Permission object.
      • addClassRight

        public void addClassRight(java.lang.String classRight)
        Deprecated. Add rights directly to Collection returned in getClassRights() instead.
        Adds a class right to the collection of class level rights.
        Parameters:
        classRight - name of an operation that may be executed on the subject class of entity(s) being protected.
      • addAttributeRight

        public void addAttributeRight(AttributeRight attributeRight)
        Deprecated. Add rights directly to Collection returned in getAttributeRights() instead.
        Adds an attribute right to the collection of attribute level rights.
        Parameters:
        attributeRight - represents an operation that may be performed on an attribute of the subject class of entity(s) being protected.
      • toString

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