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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetAclId()booleangetDeleted(QNameDAO qnameDAO) Checks thetypeof the node to determine if the node is deletedgetId()Get the underlying node value that needs to be permission checked.getNodeStatus(QNameDAO qnameDAO) Helper method to get a key that includes the node and its current version numbergetStore()getUuid()inthashCode()voidvoidlock()Lock the entity against further updates to prevent accidental modificationvoidvoidsetAuditableProperties(AuditablePropertiesEntity auditableProperties) voidsetExplicitShardId(Integer explicitShardId) voidvoidsetLocaleId(Long localeId) voidsetShardKey(String shardKey) voidsetStore(StoreEntity store) voidsetTransaction(TransactionEntity transaction) voidsetTypeQNameId(Long typeQNameId) voidvoidsetVersion(Long version) toString()
-
Constructor Details
-
NodeEntity
public NodeEntity()Required default constructor
-
-
Method Details
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
hashCode
public int hashCode() -
equals
-
toString
-
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
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
- Specified by:
getNodeStatusin interfaceNode
-
getNodePair
- Specified by:
getNodePairin interfaceNode
-
getDeleted
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
- Specified by:
getIdin interfaceNodeIdAndAclId
-
setId
-
getVersion
- Specified by:
getVersionin interfaceNode
-
setVersion
-
getStore
-
setStore
-
getUuid
-
setUuid
-
getTypeQNameId
- Specified by:
getTypeQNameIdin interfaceNode
-
setTypeQNameId
-
getLocaleId
- Specified by:
getLocaleIdin interfaceNode
-
setLocaleId
-
getAclId
- Specified by:
getAclIdin interfaceNodeIdAndAclId
-
setAclId
-
getTransaction
- Specified by:
getTransactionin interfaceNode
-
setTransaction
-
getAuditableProperties
- Specified by:
getAuditablePropertiesin interfaceNode
-
setAuditableProperties
-
getShardKey
- Specified by:
getShardKeyin interfaceNode
-
getExplicitShardId
- Specified by:
getExplicitShardIdin interfaceNode
-
setShardKey
-
setExplicitShardId
-