public abstract class AVMNodeImpl extends java.lang.Object implements AVMNode
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEBUG |
| Modifier | Constructor and Description |
|---|---|
protected |
AVMNodeImpl()
Default constructor.
|
protected |
AVMNodeImpl(AVMStore store)
Constructor used when creating a new concrete subclass instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAspect(org.alfresco.service.namespace.QName aspectQName) |
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() |
void |
copyACLs(Acl otherAcl,
Acl parentAcl,
ACLCopyMode mode) |
void |
copyACLs(AVMNode other,
ACLCopyMode mode)
Copy ACL from another node.
|
protected void |
copyACLs(AVMNode other,
java.lang.Long parentAcl,
ACLCopyMode mode) |
protected void |
copyACLs(java.lang.Long otherAcl,
java.lang.Long parentAcl,
ACLCopyMode mode) |
protected void |
copyAspects(AVMNode other)
Copy all aspects from another node.
|
protected void |
copyCreationAndOwnerBasicAttributes(AVMNode other) |
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(org.alfresco.service.namespace.QName qname)
Delete a property from this node.
|
boolean |
equals(java.lang.Object obj)
Equality based on object ids.
|
Acl |
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.
|
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(org.alfresco.service.namespace.QName qname)
Get a property by name.
|
AVMStore |
getStoreNew()
Get the possibly null store we are new in.
|
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 |
removeAspect(org.alfresco.service.namespace.QName aspectQName) |
void |
setAcl(Acl 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.
|
void |
setBasicAttributes(BasicAttributes attrs)
Set the basic attributes.
|
void |
setGuid(java.lang.String guid)
Set the GUID associated with this version.
|
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(org.alfresco.service.namespace.QName qname,
PropertyValue value)
Set a property on a node.
|
void |
setStoreNew(AVMStore store)
Set the store we are new in.
|
void |
setVers(long vers)
Set the version (for concurrency control).
|
void |
setVersionID(int versionID)
Set the versionID for this node.
|
java.lang.String |
toString() |
void |
updateModTime()
Update the modification time of this node.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopy, getDescriptor, getDescriptor, getDescriptor, getType, toStringprotected AVMNodeImpl()
protected AVMNodeImpl(AVMStore store)
store - The AVMStore that owns this.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.Objectpublic void setId(long id)
id - The id to set.public long getId()
public void setVersionID(int versionID)
setVersionID in interface AVMNodeversionID - The id to set.public int getVersionID()
getVersionID in interface AVMNodepublic void setBasicAttributes(BasicAttributes attrs)
attrs - public BasicAttributes getBasicAttributes()
getBasicAttributes in interface AVMNodepublic boolean getIsNew()
public void setVers(long vers)
The - version for optimistic locks.public long getVers()
public boolean getIsRoot()
public void setIsRoot(boolean isRoot)
AVMNodepublic void updateModTime()
AVMNodeupdateModTime in interface AVMNodeprotected void copyProperties(AVMNode other)
other - The other node.protected void copyAspects(AVMNode other)
other - The other node.protected void copyCreationAndOwnerBasicAttributes(AVMNode other)
public void copyACLs(AVMNode other, ACLCopyMode mode)
AVMNodepublic void copyACLs(Acl otherAcl, Acl parentAcl, ACLCopyMode mode)
protected void copyACLs(AVMNode other, java.lang.Long parentAcl, ACLCopyMode mode)
protected void copyACLs(java.lang.Long otherAcl,
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(org.alfresco.service.namespace.QName qname,
PropertyValue value)
setProperty in interface AVMNodename - The name of the property.value - The value to set.public void addProperties(java.util.Map properties)
AVMNodeaddProperties 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(org.alfresco.service.namespace.QName qname)
getProperty in interface AVMNodename - The name of the property.public java.util.Map getProperties()
getProperties in interface AVMNodepublic void deleteProperty(org.alfresco.service.namespace.QName qname)
deleteProperty in interface AVMNodename - The name of the property.public void deleteProperties()
deleteProperties in interface AVMNodepublic void setAcl(Acl acl)
public Acl getAcl()
public 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()
AVMNodepublic void setGuid(java.lang.String guid)
AVMNodepublic java.util.Set getAspects()
AVMNodegetAspects in interface AVMNodepublic void setAspects(java.util.Set aspects)
aspects - public void addAspect(org.alfresco.service.namespace.QName aspectQName)
public void removeAspect(org.alfresco.service.namespace.QName aspectQName)
removeAspect in interface AVMNodepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.