|
|||||||||
| 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(AVMStore store)
Constructor used when creating a new concrete subclass instance. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, 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(AVMStore store)
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.Objectpublic 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 AVMNodepublic void setBasicAttributes(BasicAttributes attrs)
attrs - public BasicAttributes getBasicAttributes()
getBasicAttributes in interface AVMNodepublic boolean getIsNew()
getIsNew in interface AVMNodepublic void setVers(long vers)
The - version for optimistic locks.public 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 copyCreationAndOwnerBasicAttributes(AVMNode other)
public void copyACLs(AVMNode other,
ACLCopyMode mode)
AVMNode
copyACLs in interface AVMNode
public void copyACLs(Acl otherAcl,
Acl parentAcl,
ACLCopyMode mode)
copyACLs in interface AVMNode
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)
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(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)
setAcl in interface AVMNodeacl - The ACL to set.public Acl 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 - public void addAspect(org.alfresco.service.namespace.QName aspectQName)
addAspect in interface AVMNodepublic void removeAspect(org.alfresco.service.namespace.QName aspectQName)
removeAspect in interface AVMNodepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||