Class UserDataDocument

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

    public class UserDataDocument
    extends net.anotheria.asg.data.AbstractASGDocument
    implements UserData, 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 addRolesElement​(java.lang.String role)
      Adds a new element to the list.
      int compareTo​(UserData comparable)  
      int compareTo​(net.anotheria.util.sorter.IComparable anotherComparable, int method)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getDefinedName()  
      java.lang.String getDefinedParentName()  
      java.lang.String getFootprint()  
      java.util.List<java.lang.String> getRoles()
      Returns the value of the roles attribute.
      java.lang.String getRolesElement​(int index)
      Returns the element at the position index in the list.
      int getRolesSize()
      Returns the number of elements in the "roles" container
      java.lang.String getUserId()
      Returns the value of the userId attribute.
      void removeRolesElement​(int index)
      Removes the element at position index from the list.
      void setRoles​(java.util.List<java.lang.String> value)
      Sets the value of the roles attribute.
      void setUserId​(java.lang.String value)
      Sets the value of the userId attribute.
      void swapRolesElement​(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

      • UserDataDocument

        public UserDataDocument()
      • UserDataDocument

        public UserDataDocument​(java.lang.String id)
    • Method Detail

      • getUserId

        public java.lang.String getUserId()
        Description copied from interface: UserData
        Returns the value of the userId attribute.
        Specified by:
        getUserId in interface UserData
      • setUserId

        public void setUserId​(java.lang.String value)
        Description copied from interface: UserData
        Sets the value of the userId attribute.
        Specified by:
        setUserId in interface UserData
      • getRoles

        public java.util.List<java.lang.String> getRoles()
        Description copied from interface: UserData
        Returns the value of the roles attribute.
        Specified by:
        getRoles in interface UserData
      • setRoles

        public void setRoles​(java.util.List<java.lang.String> value)
        Description copied from interface: UserData
        Sets the value of the roles attribute.
        Specified by:
        setRoles in interface UserData
      • toString

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

        public int getRolesSize()
        Description copied from interface: UserData
        Returns the number of elements in the "roles" container
        Specified by:
        getRolesSize in interface UserData
      • addRolesElement

        public void addRolesElement​(java.lang.String role)
        Description copied from interface: UserData
        Adds a new element to the list.
        Specified by:
        addRolesElement in interface UserData
      • removeRolesElement

        public void removeRolesElement​(int index)
        Description copied from interface: UserData
        Removes the element at position index from the list.
        Specified by:
        removeRolesElement in interface UserData
      • swapRolesElement

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

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

        public int compareTo​(UserData 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