Package net.anotheria.asg.data
Class AbstractASGDocument
- java.lang.Object
-
- net.anotheria.anodoc.data.DataHolder
-
- net.anotheria.anodoc.data.Document
-
- net.anotheria.asg.data.AbstractASGDocument
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,IBasicStoreableObject,ICompositeDataObject,DataObject,LockableObject
public abstract class AbstractASGDocument extends Document implements DataObject, LockableObject
Root object for all generated classes of type Document (instead of ano-doc Document used previously).- Version:
- $Id: $Id
- Author:
- another
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringINT_PROPERTY_MULTILINGUAL_DISABLEDConstantINT_PROPERTY_MULTILINGUAL_DISABLED="ml-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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractASGDocument(java.lang.String anId)Constructor for AbstractASGDocument.protectedAbstractASGDocument(AbstractASGDocument toClone)Constructor for AbstractASGDocument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PropertygetInternalProperty(java.lang.String name)getInternalProperty.java.lang.StringgetLockerId()Returns lockerName, actually name of user - who locked current.longgetLockingTime()Returns locking time.ObjectInfogetObjectInfo()Returns the object info about this data object.booleanisLocked()Return true if current is locked, false otherwise.protected voidsetInternalProperty(Property p)setInternalProperty.voidsetLocked(boolean aLock)Allows to lock or unlock current.voidsetLockerId(java.lang.String aLockerId)Allow to modify lockerId.voidsetLockingTime(long aLockTime)Allows to modify locking time.-
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, toString, toXMLNode
-
Methods inherited from class net.anotheria.anodoc.data.DataHolder
getId, hashCode, setId
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.anotheria.asg.data.DataObject
clone, getDefinedName, getDefinedParentName, getFootprint, getId, getLastUpdateTimestamp, getPropertyValue, toXMLNode
-
-
-
-
Field Detail
-
INT_PROPERTY_MULTILINGUAL_DISABLED
protected static final java.lang.String INT_PROPERTY_MULTILINGUAL_DISABLED
ConstantINT_PROPERTY_MULTILINGUAL_DISABLED="ml-disabled"- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractASGDocument
protected AbstractASGDocument(java.lang.String anId)
Constructor for AbstractASGDocument.
- Parameters:
anId- aStringobject.
-
AbstractASGDocument
protected AbstractASGDocument(AbstractASGDocument toClone)
Constructor for AbstractASGDocument.
- Parameters:
toClone- aAbstractASGDocumentobject.
-
-
Method Detail
-
getObjectInfo
public ObjectInfo getObjectInfo()
Returns the object info about this data object.- Specified by:
getObjectInfoin interfaceDataObject- Returns:
- object info
-
getInternalProperty
protected Property getInternalProperty(java.lang.String name)
getInternalProperty.
- Parameters:
name- aStringobject.- Returns:
- a
Propertyobject.
-
setInternalProperty
protected void setInternalProperty(Property p)
setInternalProperty.
- Parameters:
p- aPropertyobject.
-
isLocked
public boolean isLocked()
Return true if current is locked, false otherwise.- Specified by:
isLockedin interfaceLockableObject- Returns:
- boolean param
-
setLocked
public void setLocked(boolean aLock)
Allows to lock or unlock current.- Specified by:
setLockedin interfaceLockableObject- Parameters:
aLock- boolean lock, unlock
-
getLockerId
public java.lang.String getLockerId()
Returns lockerName, actually name of user - who locked current.- Specified by:
getLockerIdin interfaceLockableObject- Returns:
- string user name
-
setLockerId
public void setLockerId(java.lang.String aLockerId)
Allow to modify lockerId.- Specified by:
setLockerIdin interfaceLockableObject- Parameters:
aLockerId- actually user name
-
getLockingTime
public long getLockingTime()
Returns locking time.- Specified by:
getLockingTimein interfaceLockableObject- Returns:
- long value
-
setLockingTime
public void setLockingTime(long aLockTime)
Allows to modify locking time.- Specified by:
setLockingTimein interfaceLockableObject- Parameters:
aLockTime- long time
-
-