Class RoleDocument

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, net.anotheria.anodoc.data.IBasicStoreableObject, net.anotheria.anodoc.data.ICompositeDataObject, Role, net.anotheria.asg.data.DataObject, net.anotheria.asg.data.LockableObject, net.anotheria.util.sorter.IComparable

    public class RoleDocument
    extends net.anotheria.asg.data.AbstractASGDocument
    implements Role, net.anotheria.util.sorter.IComparable
    See Also:
    Serialized Form
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addContextInitializersElement​(java.lang.String contextInitializer)
      Adds a new element to the list.
      void addPermissionsElement​(java.lang.String permission)
      Adds a new element to the list.
      int compareTo​(Role comparable)  
      int compareTo​(net.anotheria.util.sorter.IComparable anotherComparable, int method)  
      boolean equals​(java.lang.Object o)  
      java.util.List<java.lang.String> getContextInitializers()
      Returns the value of the contextInitializers attribute.
      java.lang.String getContextInitializersElement​(int index)
      Returns the element at the position index in the list.
      int getContextInitializersSize()
      Returns the number of elements in the "contextInitializers" container
      java.lang.String getDefinedName()  
      java.lang.String getDefinedParentName()  
      java.lang.String getDescription()
      Returns the value of the description attribute.
      java.lang.String getFootprint()  
      java.lang.String getName()
      Returns the value of the name attribute.
      java.util.List<java.lang.String> getPermissions()
      Returns the value of the permissions attribute.
      java.lang.String getPermissionsElement​(int index)
      Returns the element at the position index in the list.
      int getPermissionsSize()
      Returns the number of elements in the "permissions" container
      void removeContextInitializersElement​(int index)
      Removes the element at position index from the list.
      void removePermissionsElement​(int index)
      Removes the element at position index from the list.
      void setContextInitializers​(java.util.List<java.lang.String> value)
      Sets the value of the contextInitializers attribute.
      void setDescription​(java.lang.String value)
      Sets the value of the description attribute.
      void setName​(java.lang.String value)
      Sets the value of the name attribute.
      void setPermissions​(java.util.List<java.lang.String> value)
      Sets the value of the permissions attribute.
      void swapContextInitializersElement​(int index1, int index2)
      Swaps elements at positions index1 and index2 in the list.
      void swapPermissionsElement​(int index1, int index2)
      Swaps elements at positions index1 and index2 in the list.
      java.lang.String toString()  
      • 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 Detail

      • RoleDocument

        public RoleDocument()
      • RoleDocument

        public RoleDocument​(java.lang.String id)
      • RoleDocument

        public RoleDocument​(RoleDocument toClone)
    • Method Detail

      • getName

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

        public void setName​(java.lang.String value)
        Description copied from interface: Role
        Sets the value of the name attribute.
        Specified by:
        setName in interface Role
      • getPermissions

        public java.util.List<java.lang.String> getPermissions()
        Description copied from interface: Role
        Returns the value of the permissions attribute.
        Specified by:
        getPermissions in interface Role
      • setPermissions

        public void setPermissions​(java.util.List<java.lang.String> value)
        Description copied from interface: Role
        Sets the value of the permissions attribute.
        Specified by:
        setPermissions in interface Role
      • getContextInitializers

        public java.util.List<java.lang.String> getContextInitializers()
        Description copied from interface: Role
        Returns the value of the contextInitializers attribute.
        Specified by:
        getContextInitializers in interface Role
      • setContextInitializers

        public void setContextInitializers​(java.util.List<java.lang.String> value)
        Description copied from interface: Role
        Sets the value of the contextInitializers attribute.
        Specified by:
        setContextInitializers in interface Role
      • getDescription

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

        public void setDescription​(java.lang.String value)
        Description copied from interface: Role
        Sets the value of the description attribute.
        Specified by:
        setDescription in interface Role
      • toString

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

        public int getPermissionsSize()
        Description copied from interface: Role
        Returns the number of elements in the "permissions" container
        Specified by:
        getPermissionsSize in interface Role
      • addPermissionsElement

        public void addPermissionsElement​(java.lang.String permission)
        Description copied from interface: Role
        Adds a new element to the list.
        Specified by:
        addPermissionsElement in interface Role
      • removePermissionsElement

        public void removePermissionsElement​(int index)
        Description copied from interface: Role
        Removes the element at position index from the list.
        Specified by:
        removePermissionsElement in interface Role
      • swapPermissionsElement

        public void swapPermissionsElement​(int index1,
                                           int index2)
        Description copied from interface: Role
        Swaps elements at positions index1 and index2 in the list.
        Specified by:
        swapPermissionsElement in interface Role
      • getPermissionsElement

        public java.lang.String getPermissionsElement​(int index)
        Description copied from interface: Role
        Returns the element at the position index in the list.
        Specified by:
        getPermissionsElement in interface Role
      • getContextInitializersSize

        public int getContextInitializersSize()
        Description copied from interface: Role
        Returns the number of elements in the "contextInitializers" container
        Specified by:
        getContextInitializersSize in interface Role
      • addContextInitializersElement

        public void addContextInitializersElement​(java.lang.String contextInitializer)
        Description copied from interface: Role
        Adds a new element to the list.
        Specified by:
        addContextInitializersElement in interface Role
      • removeContextInitializersElement

        public void removeContextInitializersElement​(int index)
        Description copied from interface: Role
        Removes the element at position index from the list.
        Specified by:
        removeContextInitializersElement in interface Role
      • swapContextInitializersElement

        public void swapContextInitializersElement​(int index1,
                                                   int index2)
        Description copied from interface: Role
        Swaps elements at positions index1 and index2 in the list.
        Specified by:
        swapContextInitializersElement in interface Role
      • getContextInitializersElement

        public java.lang.String getContextInitializersElement​(int index)
        Description copied from interface: Role
        Returns the element at the position index in the list.
        Specified by:
        getContextInitializersElement in interface Role
      • compareTo

        public int compareTo​(Role 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 java.lang.String getDefinedName()
        Specified by:
        getDefinedName in interface net.anotheria.asg.data.DataObject
      • getDefinedParentName

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

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object