Package org.alfresco.repo.domain.node
Class NodeEntity
- java.lang.Object
-
- org.alfresco.repo.domain.node.NodeEntity
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,Node,NodeIdAndAclId,PermissionCheckValue
- Direct Known Subclasses:
NodeUpdateEntity
public class NodeEntity extends java.lang.Object implements Node, PermissionCheckValue, java.io.Serializable, java.lang.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 java.lang.Objectclone()booleanequals(java.lang.Object obj)java.lang.LonggetAclId()AuditablePropertiesEntitygetAuditableProperties()booleangetDeleted(QNameDAO qnameDAO)Checks thetypeof the node to determine if the node is deletedjava.lang.IntegergetExplicitShardId()java.lang.LonggetId()java.lang.LonggetLocaleId()org.alfresco.util.Pair<java.lang.Long,org.alfresco.service.cmr.repository.NodeRef>getNodePair()org.alfresco.service.cmr.repository.NodeRefgetNodeRef()Get the underlying node value that needs to be permission checked.org.alfresco.service.cmr.repository.NodeRef.StatusgetNodeStatus(QNameDAO qnameDAO)NodeVersionKeygetNodeVersionKey()Helper method to get a key that includes the node and its current version numberjava.lang.StringgetShardKey()StoreEntitygetStore()TransactionEntitygetTransaction()java.lang.LonggetTypeQNameId()java.lang.StringgetUuid()java.lang.LonggetVersion()inthashCode()voidincrementVersion()voidlock()Lock the entity against further updates to prevent accidental modificationvoidsetAclId(java.lang.Long aclId)voidsetAuditableProperties(AuditablePropertiesEntity auditableProperties)voidsetExplicitShardId(java.lang.Integer explicitShardId)voidsetId(java.lang.Long id)voidsetLocaleId(java.lang.Long localeId)voidsetShardKey(java.lang.String shardKey)voidsetStore(StoreEntity store)voidsetTransaction(TransactionEntity transaction)voidsetTypeQNameId(java.lang.Long typeQNameId)voidsetUuid(java.lang.String uuid)voidsetVersion(java.lang.Long version)java.lang.StringtoString()
-
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
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 org.alfresco.service.cmr.repository.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 org.alfresco.service.cmr.repository.NodeRef.Status getNodeStatus(QNameDAO qnameDAO)
- Specified by:
getNodeStatusin interfaceNode
-
getNodePair
public org.alfresco.util.Pair<java.lang.Long,org.alfresco.service.cmr.repository.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 java.lang.Long getId()
- Specified by:
getIdin interfaceNodeIdAndAclId
-
setId
public void setId(java.lang.Long id)
-
getVersion
public java.lang.Long getVersion()
- Specified by:
getVersionin interfaceNode
-
setVersion
public void setVersion(java.lang.Long version)
-
getStore
public StoreEntity getStore()
-
setStore
public void setStore(StoreEntity store)
-
setUuid
public void setUuid(java.lang.String uuid)
-
getTypeQNameId
public java.lang.Long getTypeQNameId()
- Specified by:
getTypeQNameIdin interfaceNode
-
setTypeQNameId
public void setTypeQNameId(java.lang.Long typeQNameId)
-
getLocaleId
public java.lang.Long getLocaleId()
- Specified by:
getLocaleIdin interfaceNode
-
setLocaleId
public void setLocaleId(java.lang.Long localeId)
-
getAclId
public java.lang.Long getAclId()
- Specified by:
getAclIdin interfaceNodeIdAndAclId
-
setAclId
public void setAclId(java.lang.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 java.lang.String getShardKey()
- Specified by:
getShardKeyin interfaceNode
-
getExplicitShardId
public java.lang.Integer getExplicitShardId()
- Specified by:
getExplicitShardIdin interfaceNode
-
setShardKey
public void setShardKey(java.lang.String shardKey)
-
setExplicitShardId
public void setExplicitShardId(java.lang.Integer explicitShardId)
-
-