Entity
- public abstract class Entity extends AbstractObservable implements EntityInterface
Abstract base class for all the important entity classes.
This is the central data class of the server. It represents Records, RecordTypes, Properties, and Files.
This class holds the messages and other transient information as well as the actual data that is being retrieved from or written to the back-end during a transaction.
- Author:
Timm Fitschen
Fields
DATATYPE_CHANGED_EVENT
ENTITY_STATUS_CHANGED_EVENT
isParsed
- boolean isParsed
Constructors
Entity
- public Entity()
Entity
Entity
Entity
Entity
Entity
Entity
- public Entity(Element e)
Methods
addError
addInfo
addInfo
addMessage
- public final void addMessage(ToElementable m)
addParent
addProperty
addProperty
addSelections
- public EntityInterface addSelections(List<Selection> selections)
addToElement
- public final void addToElement(Element element)
addToElement
- public void addToElement(Element element, SerializeFieldStrategy strategy)
addTransactionLog
- public void addTransactionLog(TransactionLogMessage transactionLogMessage)
addWarning
checkPermission
- public void checkPermission(Subject subject, Permission permission)
checkPermission
- public void checkPermission(Permission permission)
getCuid
getDatatype
- public final AbstractDatatype getDatatype()
getDescription
getDomain
getEntityACL
getEntityStatus
- public final EntityStatus getEntityStatus()
getFileProperties
- public final FileProperties getFileProperties()
getFlag
getFlags
getId
getIdVersion
- public String getIdVersion()
Return “id@version” if there is versioning information, else only “id”.
getMessages
- public final Set<ToElementable> getMessages()
getMessages
getName
getParents
- public final ParentContainer getParents()
getProperties
- public final PropertyContainer getProperties()
getQueryTemplateDefinition
getRole
getSelections
getSerializeFieldStrategy
- public SerializeFieldStrategy getSerializeFieldStrategy()
getSparseEntity
- public SparseEntity getSparseEntity()
getStatementStatus
- public StatementStatusInterface getStatementStatus()
statementStatus getter.
getToElementStrategy
- public ToElementStrategy getToElementStrategy()
getTransactionLogMessages
- public List<TransactionLogMessage> getTransactionLogMessages()
getUnit
getValue
getVersion
getVerySparseEntity
- public VerySparseEntity getVerySparseEntity()
hasCuid
- public final boolean hasCuid()
cuid hasser. Does this wrapped entity have a cuid?
- Returns:
true if cuid != null, false otherwise.
hasDatatype
- public boolean hasDatatype()
hasDescription
- public final boolean hasDescription()
hasEntityACL
- public boolean hasEntityACL()
hasEntityStatus
- public final boolean hasEntityStatus()
hasFileProperties
- public final boolean hasFileProperties()
hasId
- public final boolean hasId()
hasMessage
hasMessages
- public boolean hasMessages()
hasName
- public final boolean hasName()
hasParents
- public final boolean hasParents()
hasPermission
- public boolean hasPermission(Permission permission)
hasPermission
- public boolean hasPermission(Subject subject, Permission permission)
hasProperties
- public final boolean hasProperties()
hasRole
- public final boolean hasRole()
hasStatementStatus
- public final boolean hasStatementStatus()
statementStatus hasser.
- Returns:
true id statementStatus!= null, false otherwise.
hasTransactionLogMessages
- public boolean hasTransactionLogMessages()
hasUnit
- public boolean hasUnit()
hasValue
- public final boolean hasValue()
hasVersion
- public boolean hasVersion()
isDatatypeOverride
- public boolean isDatatypeOverride()
isDescOverride
- public boolean isDescOverride()
isNameOverride
- public boolean isNameOverride()
isReference
- public boolean isReference()
isReferenceList
- public boolean isReferenceList()
linkIdToEntity
- public EntityInterface linkIdToEntity(EntityInterface link)
parseFromElement
- public void parseFromElement(Element element)
parseSparseEntity
- public final EntityInterface parseSparseEntity(SparseEntity spe)
parseValue
- public void parseValue()
removeMessage
setCuid
- public final void setCuid(String cuid)
cuid setter.
- Parameters:
cuid –
- Throws:
CaosDBException
– if one tried to set it once again.
setDatatype
- public final void setDatatype(AbstractDatatype datatype)
setDatatype
setDatatypeOverride
- public EntityInterface setDatatypeOverride(boolean b)
setDescOverride
- public EntityInterface setDescOverride(boolean b)
setDescription
setEntityACL
setEntityACL
setEntityStatus
- public final void setEntityStatus(EntityStatus entityStatus)
setFileProperties
- public final void setFileProperties(FileProperties fileProperties)
setFlag
setId
setName
setNameOverride
- public EntityInterface setNameOverride(boolean b)
setProperties
- public void setProperties(PropertyContainer properties)
setQueryTemplateDefinition
setRole
setRole
setSerializeFieldStrategy
- public void setSerializeFieldStrategy(SerializeFieldStrategy s)
setStatementStatus
- public void setStatementStatus(StatementStatusInterface statementStatus)
statementStatus setter.
setStatementStatus
setToElementStragegy
- public void setToElementStragegy(ToElementStrategy s)
setUnit
setValue
setVersion
skipJob
- public boolean skipJob()
toElement
- public final Element toElement()