|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.avm.AVMNodeImpl
public abstract class AVMNodeImpl
Base class for all repository file system like objects.
| Field Summary | |
|---|---|
protected static boolean |
DEBUG
|
| Constructor Summary | |
|---|---|
protected |
AVMNodeImpl()
Default constructor. |
protected |
AVMNodeImpl(long id,
AVMStore store)
Constructor used when creating a new concrete subclass instance. |
| Method Summary | |
|---|---|
void |
addProperties(java.util.Map properties)
Add properties to those that already exist. |
void |
changeAncestor(AVMNode ancestor)
Change the ancestor of this node. |
protected void |
checkReadOnly()
|
protected void |
copyACLs(AVMNode other,
java.lang.Long parentAcl,
ACLCopyMode mode)
|
protected void |
copyAspects(AVMNode other)
Copy all aspects from another node. |
void |
copyMetaDataFrom(AVMNode other,
java.lang.Long parentAcl)
Copy out metadata from another node. |
protected void |
copyProperties(AVMNode other)
Copy all properties from another node. |
void |
deleteProperties()
Delete all properties from this node. |
void |
deleteProperty(java.lang.Long qnameEntityId)
Delete a property from this node. |
boolean |
equals(java.lang.Object obj)
Equality based on object ids. |
DbAccessControlList |
getAcl()
Get the ACL on this node. |
AVMNode |
getAncestor()
Get the ancestor of this node. |
java.util.Set |
getAspects()
Get the Aspects that this node has. |
org.alfresco.repo.avm.BasicAttributes |
getBasicAttributes()
Get the basic attributes. |
java.lang.String |
getGuid()
Get the GUID associated with this version. |
long |
getId()
Get the id of this node. |
boolean |
getIsNew()
Get whether this is a new node. |
boolean |
getIsRoot()
Get whether this is a root node. |
AVMNode |
getMergedFrom()
Get the node that was merged into this. |
java.util.Map |
getProperties()
Get all the properties associated with this node. |
PropertyValue |
getProperty(java.lang.Long qnameEntityId)
Get a property by name. |
AVMStore |
getStoreNew()
Get the possibly null store we are new in. |
protected long |
getVers()
Get the version for concurrency control. |
int |
getVersionID()
Get the version id of this node. |
int |
hashCode()
Get a reasonable hash value. |
void |
setAcl(DbAccessControlList acl)
Set the ACL on this node. |
void |
setAncestor(AVMNode ancestor)
Set the ancestor of this node. |
void |
setAspects(java.util.Set aspects)
Set the aspects on this node. |
protected void |
setBasicAttributes(org.alfresco.repo.avm.BasicAttributes attrs)
Set the basic attributes. |
void |
setGuid(java.lang.String guid)
Set the GUID associated with this version. |
protected void |
setId(long id)
Set the object id. |
void |
setIsRoot(boolean isRoot)
Set whether this node to be a root of a AVMStore |
void |
setMergedFrom(AVMNode mergedFrom)
Set the node that was merged into this. |
void |
setProperties(java.util.Map properties)
Set a collection of properties on this node. |
void |
setProperty(java.lang.Long qnameEntityId,
PropertyValue value)
Set a property on a node. |
void |
setStoreNew(AVMStore store)
Set the store we are new in. |
protected void |
setVers(long vers)
Set the version for concurrency control |
void |
setVersionID(int versionID)
Set the versionID for this node. |
void |
updateModTime()
Update the modification time of this node. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.alfresco.repo.avm.AVMNode |
|---|
copy, getDescriptor, getDescriptor, getDescriptor, getType, toString |
| Field Detail |
|---|
protected static final boolean DEBUG
| Constructor Detail |
|---|
protected AVMNodeImpl()
protected AVMNodeImpl(long id,
AVMStore store)
id - The object id.store - The AVMStore that owns this.| Method Detail |
|---|
public void setAncestor(AVMNode ancestor)
setAncestor in interface AVMNodeancestor - The ancestor to set.public void changeAncestor(AVMNode ancestor)
changeAncestor in interface AVMNodeancestor - The new ancestor to give it.public AVMNode getAncestor()
getAncestor in interface AVMNodepublic void setMergedFrom(AVMNode mergedFrom)
setMergedFrom in interface AVMNodemergedFrom - The node that was merged into this.public AVMNode getMergedFrom()
getMergedFrom in interface AVMNodepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The thing to compare against.
public int hashCode()
hashCode in class java.lang.Objectprotected void setId(long id)
id - The id to set.public long getId()
getId in interface AVMNodepublic void setVersionID(int versionID)
setVersionID in interface AVMNodeversionID - The id to set.public int getVersionID()
getVersionID in interface AVMNodeprotected void setBasicAttributes(org.alfresco.repo.avm.BasicAttributes attrs)
attrs - public org.alfresco.repo.avm.BasicAttributes getBasicAttributes()
getBasicAttributes in interface AVMNodepublic boolean getIsNew()
getIsNew in interface AVMNodeprotected void setVers(long vers)
vers - protected long getVers()
public boolean getIsRoot()
getIsRoot in interface AVMNodepublic void setIsRoot(boolean isRoot)
AVMNode
setIsRoot in interface AVMNodeisRoot - public void updateModTime()
AVMNode
updateModTime in interface AVMNodeprotected void copyProperties(AVMNode other)
other - The other node.protected void copyAspects(AVMNode other)
other - The other node.
protected void copyACLs(AVMNode other,
java.lang.Long parentAcl,
ACLCopyMode mode)
public void copyMetaDataFrom(AVMNode other,
java.lang.Long parentAcl)
copyMetaDataFrom in interface AVMNodeother - The other node.
public void setProperty(java.lang.Long qnameEntityId,
PropertyValue value)
setProperty in interface AVMNodename - The name of the property.value - The value to set.public void addProperties(java.util.Map properties)
AVMNode
addProperties in interface AVMNodeproperties - The properties to add.public void setProperties(java.util.Map properties)
setProperties in interface AVMNodeproperties - The Map of QNames to PropertyValues.public PropertyValue getProperty(java.lang.Long qnameEntityId)
getProperty in interface AVMNodename - The name of the property.
public java.util.Map getProperties()
getProperties in interface AVMNodepublic void deleteProperty(java.lang.Long qnameEntityId)
deleteProperty in interface AVMNodename - The name of the property.public void deleteProperties()
deleteProperties in interface AVMNodepublic void setAcl(DbAccessControlList acl)
setAcl in interface AVMNodeacl - The ACL to set.public DbAccessControlList getAcl()
getAcl in interface AVMNodepublic void setStoreNew(AVMStore store)
setStoreNew in interface AVMNodestore - The store we are new in.public AVMStore getStoreNew()
getStoreNew in interface AVMNodeprotected void checkReadOnly()
public java.lang.String getGuid()
AVMNode
getGuid in interface AVMNodepublic void setGuid(java.lang.String guid)
AVMNode
setGuid in interface AVMNodepublic java.util.Set getAspects()
AVMNode
getAspects in interface AVMNodepublic void setAspects(java.util.Set aspects)
aspects -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||