Package org.alfresco.repo.domain.node
Class NodeEntity
- java.lang.Object
-
- org.alfresco.repo.domain.node.NodeEntity
-
- All Implemented Interfaces:
Serializable,Cloneable,Node,NodeIdAndAclId,PermissionCheckValue
- Direct Known Subclasses:
NodeUpdateEntity
public class NodeEntity extends Object implements Node, PermissionCheckValue, Serializable, Cloneable
Bean to convey alf_node data.- Since:
- 3.4
- Author:
- Derek Hulley
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeEntity()Required default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()booleanequals(Object obj)LonggetAclId()AuditablePropertiesEntitygetAuditableProperties()booleangetDeleted(QNameDAO qnameDAO)Checks thetypeof the node to determine if the node is deletedIntegergetExplicitShardId()LonggetId()LonggetLocaleId()Pair<Long,NodeRef>getNodePair()NodeRefgetNodeRef()Get the underlying node value that needs to be permission checked.NodeRef.StatusgetNodeStatus(QNameDAO qnameDAO)NodeVersionKeygetNodeVersionKey()Helper method to get a key that includes the node and its current version numberStringgetShardKey()StoreEntitygetStore()TransactionEntitygetTransaction()LonggetTypeQNameId()StringgetUuid()LonggetVersion()inthashCode()voidincrementVersion()voidlock()Lock the entity against further updates to prevent accidental modificationvoidsetAclId(Long aclId)voidsetAuditableProperties(AuditablePropertiesEntity auditableProperties)voidsetExplicitShardId(Integer explicitShardId)voidsetId(Long id)voidsetLocaleId(Long localeId)voidsetShardKey(String shardKey)voidsetStore(StoreEntity store)voidsetTransaction(TransactionEntity transaction)voidsetTypeQNameId(Long typeQNameId)voidsetUuid(String uuid)voidsetVersion(Long version)StringtoString()
-
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getNodeVersionKey
public NodeVersionKey getNodeVersionKey()
Description copied from interface:NodeHelper method to get a key that includes the node and its current version number- Specified by:
getNodeVersionKeyin interfaceNode
-
lock
public void lock()
Lock the entity against further updates to prevent accidental modification
-
incrementVersion
public void incrementVersion()
-
getNodeRef
public NodeRef getNodeRef()
Description copied from interface:PermissionCheckValueGet the underlying node value that needs to be permission checked.- Specified by:
getNodeRefin interfaceNode- Specified by:
getNodeRefin interfacePermissionCheckValue- Returns:
- the underlying value to filter
-
getNodeStatus
public NodeRef.Status getNodeStatus(QNameDAO qnameDAO)
- Specified by:
getNodeStatusin interfaceNode
-
getNodePair
public Pair<Long,NodeRef> getNodePair()
- Specified by:
getNodePairin interfaceNode
-
getDeleted
public boolean getDeleted(QNameDAO qnameDAO)
Description copied from interface:NodeChecks thetypeof the node to determine if the node is deleted- Specified by:
getDeletedin interfaceNode- Parameters:
qnameDAO- DAO to work out type IDs- Returns:
- true if the node is
ContentModel.TYPE_DELETED
-
getId
public Long getId()
- Specified by:
getIdin interfaceNodeIdAndAclId
-
setId
public void setId(Long id)
-
getVersion
public Long getVersion()
- Specified by:
getVersionin interfaceNode
-
setVersion
public void setVersion(Long version)
-
getStore
public StoreEntity getStore()
-
setStore
public void setStore(StoreEntity store)
-
setUuid
public void setUuid(String uuid)
-
getTypeQNameId
public Long getTypeQNameId()
- Specified by:
getTypeQNameIdin interfaceNode
-
setTypeQNameId
public void setTypeQNameId(Long typeQNameId)
-
getLocaleId
public Long getLocaleId()
- Specified by:
getLocaleIdin interfaceNode
-
setLocaleId
public void setLocaleId(Long localeId)
-
getAclId
public Long getAclId()
- Specified by:
getAclIdin interfaceNodeIdAndAclId
-
setAclId
public void setAclId(Long aclId)
-
getTransaction
public TransactionEntity getTransaction()
- Specified by:
getTransactionin interfaceNode
-
setTransaction
public void setTransaction(TransactionEntity transaction)
-
getAuditableProperties
public AuditablePropertiesEntity getAuditableProperties()
- Specified by:
getAuditablePropertiesin interfaceNode
-
setAuditableProperties
public void setAuditableProperties(AuditablePropertiesEntity auditableProperties)
-
getShardKey
public String getShardKey()
- Specified by:
getShardKeyin interfaceNode
-
getExplicitShardId
public Integer getExplicitShardId()
- Specified by:
getExplicitShardIdin interfaceNode
-
setShardKey
public void setShardKey(String shardKey)
-
setExplicitShardId
public void setExplicitShardId(Integer explicitShardId)
-
-