|
|||||||||
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 AVMNode
ancestor
- The ancestor to set.public void changeAncestor(AVMNode ancestor)
changeAncestor
in interface AVMNode
ancestor
- The new ancestor to give it.public AVMNode getAncestor()
getAncestor
in interface AVMNode
public void setMergedFrom(AVMNode mergedFrom)
setMergedFrom
in interface AVMNode
mergedFrom
- The node that was merged into this.public AVMNode getMergedFrom()
getMergedFrom
in interface AVMNode
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The thing to compare against.
public int hashCode()
hashCode
in class java.lang.Object
public void setId(long id)
id
- The id to set.public long getId()
getId
in interface AVMNode
public void setVersionID(int versionID)
setVersionID
in interface AVMNode
versionID
- The id to set.public int getVersionID()
getVersionID
in interface AVMNode
public void setBasicAttributes(BasicAttributes attrs)
attrs
- public BasicAttributes getBasicAttributes()
getBasicAttributes
in interface AVMNode
public boolean getIsNew()
getIsNew
in interface AVMNode
public void setVers(long vers)
The
- version for optimistic locks.public long getVers()
public boolean getIsRoot()
getIsRoot
in interface AVMNode
public void setIsRoot(boolean isRoot)
AVMNode
setIsRoot
in interface AVMNode
isRoot
- public void updateModTime()
AVMNode
updateModTime
in interface AVMNode
protected 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 AVMNode
other
- The other node.public void setProperty(org.alfresco.service.namespace.QName qname, PropertyValue value)
setProperty
in interface AVMNode
name
- The name of the property.value
- The value to set.public void addProperties(java.util.Map properties)
AVMNode
addProperties
in interface AVMNode
properties
- The properties to add.public void setProperties(java.util.Map properties)
setProperties
in interface AVMNode
properties
- The Map of QNames to PropertyValues.public PropertyValue getProperty(org.alfresco.service.namespace.QName qname)
getProperty
in interface AVMNode
name
- The name of the property.
public java.util.Map getProperties()
getProperties
in interface AVMNode
public void deleteProperty(org.alfresco.service.namespace.QName qname)
deleteProperty
in interface AVMNode
name
- The name of the property.public void deleteProperties()
deleteProperties
in interface AVMNode
public void setAcl(Acl acl)
setAcl
in interface AVMNode
acl
- The ACL to set.public Acl getAcl()
getAcl
in interface AVMNode
public void setStoreNew(AVMStore store)
setStoreNew
in interface AVMNode
store
- The store we are new in.public AVMStore getStoreNew()
getStoreNew
in interface AVMNode
protected void checkReadOnly()
public java.lang.String getGuid()
AVMNode
getGuid
in interface AVMNode
public void setGuid(java.lang.String guid)
AVMNode
setGuid
in interface AVMNode
public java.util.Set getAspects()
AVMNode
getAspects
in interface AVMNode
public void setAspects(java.util.Set aspects)
aspects
- public void addAspect(org.alfresco.service.namespace.QName aspectQName)
addAspect
in interface AVMNode
public void removeAspect(org.alfresco.service.namespace.QName aspectQName)
removeAspect
in interface AVMNode
public 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 |