Class PermissionDocument

java.lang.Object
net.anotheria.anodoc.data.DataHolder
net.anotheria.anodoc.data.Document
net.anotheria.asg.data.AbstractASGDocument
net.anotheria.anosite.gen.anoaccessconfiguration.data.PermissionDocument
All Implemented Interfaces:
Serializable, Cloneable, net.anotheria.anodoc.data.IBasicStoreableObject, net.anotheria.anodoc.data.ICompositeDataObject, Permission, net.anotheria.asg.data.DataObject, net.anotheria.asg.data.LockableObject, net.anotheria.util.sorter.IComparable

public class PermissionDocument extends net.anotheria.asg.data.AbstractASGDocument implements Permission, net.anotheria.util.sorter.IComparable
See Also:
  • Field Summary

    Fields inherited from class net.anotheria.asg.data.AbstractASGDocument

    INT_PROPERTY_MULTILINGUAL_DISABLED

    Fields inherited from class net.anotheria.anodoc.data.Document

    PROP_AUTHOR, PROP_LAST_UPDATE, PROP_TYPE_IDENTIFIER

    Fields inherited from interface net.anotheria.asg.data.LockableObject

    INT_LOCK_PROPERTY_NAME, INT_LOCKER_ID_PROPERTY_NAME, INT_LOCKING_TIME_PROPERTY_NAME

    Fields inherited from interface net.anotheria.anosite.gen.anoaccessconfiguration.data.Permission

    LINK_PROP_ACCESS_OPERATION, PROP_CONSTRAINTS, PROP_DENY, PROP_DESCRIPTION, PROP_ID, PROP_NAME, PROP_PRIORITY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a new element to the list.
    int
    compareTo(Permission comparable)
     
    int
    compareTo(net.anotheria.util.sorter.IComparable anotherComparable, int method)
     
    boolean
     
    Returns the value of the accessOperation attribute.
    Returns the value of the constraints attribute.
    Returns the element at the position index in the list.
    int
    Returns the number of elements in the "constraints" container
     
     
    boolean
    Returns the value of the deny attribute.
    Returns the value of the description attribute.
     
    Returns the value of the name attribute.
    int
    Returns the value of the priority attribute.
    void
    Removes the element at position index from the list.
    void
    Sets the value of the accessOperation attribute.
    void
    Sets the value of the constraints attribute.
    void
    setDeny(boolean value)
    Sets the value of the deny attribute.
    void
    Sets the value of the description attribute.
    void
    setName(String value)
    Sets the value of the name attribute.
    void
    setPriority(int value)
    Sets the value of the priority attribute.
    void
    swapConstraintsElement(int index1, int index2)
    Swaps elements at positions index1 and index2 in the list.
     

    Methods inherited from class net.anotheria.asg.data.AbstractASGDocument

    getInternalProperty, getLockerId, getLockingTime, getObjectInfo, isLocked, setInternalProperty, setLocked, setLockerId, setLockingTime

    Methods inherited from class net.anotheria.anodoc.data.Document

    addDataHolder, clone, copyFromBooleanList, copyFromDoubleList, copyFromFloatList, copyFromIntegerList, copyFromLongList, copyFromStringList, copyToBooleanList, copyToDoubleList, copyToFloatList, copyToIntegerList, copyToLongList, copyToStringList, createDocument, createDocumentList, createListProperty, getAuthor, getBoolean, getBooleanProperty, getDataHolder, getDocument, getDocumentAnyCase, getDocumentList, getDocumentListAnyCase, getDouble, getDoubleProperty, getEmptyBoolean, getEmptyDouble, getEmptyFloat, getEmptyInt, getEmptyList, getEmptyLong, getEmptyString, getFloat, getFloatProperty, getInt, getIntProperty, getKeys, getLastUpdateTimestamp, getList, getListProperty, getListPropertyAnyCase, getLong, getLongProperty, getObject, getProperties, getProperty, getPropertyValue, getSizeInBytes, getStorageId, getString, getStringProperty, getTypeIdentifier, putBooleanProperty, putDocument, putDoubleProperty, putFloatProperty, putIntProperty, putList, putListProperty, putLongProperty, putProperty, putStringProperty, removeDataHolder, removeDataHolder, removeProperty, removeProperty, renameTo, setBoolean, setCallContextAuthor, setDouble, setFloat, setInt, setLastUpdateNow, setList, setLong, setString, setTypeIdentifier, toXMLNode

    Methods inherited from class net.anotheria.anodoc.data.DataHolder

    getId, hashCode, setId

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.anotheria.asg.data.DataObject

    clone, getId, getLastUpdateTimestamp, getObjectInfo, getPropertyValue, toXMLNode
  • Constructor Details

    • PermissionDocument

      public PermissionDocument()
    • PermissionDocument

      public PermissionDocument(String id)
    • PermissionDocument

      public PermissionDocument(PermissionDocument toClone)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Permission
      Returns the value of the name attribute.
      Specified by:
      getName in interface Permission
    • setName

      public void setName(String value)
      Description copied from interface: Permission
      Sets the value of the name attribute.
      Specified by:
      setName in interface Permission
    • getPriority

      public int getPriority()
      Description copied from interface: Permission
      Returns the value of the priority attribute.
      Specified by:
      getPriority in interface Permission
    • setPriority

      public void setPriority(int value)
      Description copied from interface: Permission
      Sets the value of the priority attribute.
      Specified by:
      setPriority in interface Permission
    • getDeny

      public boolean getDeny()
      Description copied from interface: Permission
      Returns the value of the deny attribute.
      Specified by:
      getDeny in interface Permission
    • setDeny

      public void setDeny(boolean value)
      Description copied from interface: Permission
      Sets the value of the deny attribute.
      Specified by:
      setDeny in interface Permission
    • getConstraints

      public List<String> getConstraints()
      Description copied from interface: Permission
      Returns the value of the constraints attribute.
      Specified by:
      getConstraints in interface Permission
    • setConstraints

      public void setConstraints(List<String> value)
      Description copied from interface: Permission
      Sets the value of the constraints attribute.
      Specified by:
      setConstraints in interface Permission
    • getDescription

      public String getDescription()
      Description copied from interface: Permission
      Returns the value of the description attribute.
      Specified by:
      getDescription in interface Permission
    • setDescription

      public void setDescription(String value)
      Description copied from interface: Permission
      Sets the value of the description attribute.
      Specified by:
      setDescription in interface Permission
    • getAccessOperation

      public String getAccessOperation()
      Description copied from interface: Permission
      Returns the value of the accessOperation attribute.
      Specified by:
      getAccessOperation in interface Permission
    • setAccessOperation

      public void setAccessOperation(String value)
      Description copied from interface: Permission
      Sets the value of the accessOperation attribute.
      Specified by:
      setAccessOperation in interface Permission
    • toString

      public String toString()
      Overrides:
      toString in class net.anotheria.anodoc.data.Document
    • getConstraintsSize

      public int getConstraintsSize()
      Description copied from interface: Permission
      Returns the number of elements in the "constraints" container
      Specified by:
      getConstraintsSize in interface Permission
    • addConstraintsElement

      public void addConstraintsElement(String constraint)
      Description copied from interface: Permission
      Adds a new element to the list.
      Specified by:
      addConstraintsElement in interface Permission
    • removeConstraintsElement

      public void removeConstraintsElement(int index)
      Description copied from interface: Permission
      Removes the element at position index from the list.
      Specified by:
      removeConstraintsElement in interface Permission
    • swapConstraintsElement

      public void swapConstraintsElement(int index1, int index2)
      Description copied from interface: Permission
      Swaps elements at positions index1 and index2 in the list.
      Specified by:
      swapConstraintsElement in interface Permission
    • getConstraintsElement

      public String getConstraintsElement(int index)
      Description copied from interface: Permission
      Returns the element at the position index in the list.
      Specified by:
      getConstraintsElement in interface Permission
    • compareTo

      public int compareTo(Permission comparable)
    • compareTo

      public int compareTo(net.anotheria.util.sorter.IComparable anotherComparable, int method)
      Specified by:
      compareTo in interface net.anotheria.util.sorter.IComparable
    • getDefinedName

      public String getDefinedName()
      Specified by:
      getDefinedName in interface net.anotheria.asg.data.DataObject
    • getDefinedParentName

      public String getDefinedParentName()
      Specified by:
      getDefinedParentName in interface net.anotheria.asg.data.DataObject
    • getFootprint

      public String getFootprint()
      Specified by:
      getFootprint in interface net.anotheria.asg.data.DataObject
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object