org.alfresco.repo.avm
Class DeletedNodeImpl

java.lang.Object
  extended by org.alfresco.repo.avm.AVMNodeImpl
      extended by org.alfresco.repo.avm.DeletedNodeImpl
All Implemented Interfaces:
AVMNode, DeletedNode

public class DeletedNodeImpl
extends AVMNodeImpl
implements DeletedNode

Place holder for a deleted node.


Field Summary
 
Fields inherited from class org.alfresco.repo.avm.AVMNodeImpl
DEBUG
 
Constructor Summary
DeletedNodeImpl()
          Default constructor.
DeletedNodeImpl(AVMStore store, Acl acl)
          Create a new one from scratch.
DeletedNodeImpl(DeletedNode other, AVMStore store, java.lang.Long parentAcl, ACLCopyMode mode)
           
 
Method Summary
 AVMNode copy(org.alfresco.repo.avm.Lookup lPath)
          This is only called rarely.
 int getDeletedType()
          Getter.
 AVMNodeDescriptor getDescriptor(org.alfresco.repo.avm.Lookup lPath)
          Get a descriptor.
 AVMNodeDescriptor getDescriptor(org.alfresco.repo.avm.Lookup lPath, java.lang.String name)
          Get a descriptor.
 AVMNodeDescriptor getDescriptor(java.lang.String parentPath, java.lang.String name, java.lang.String parentIndirection, int parentIndirectionVersion)
          Get a descriptor.
 int getType()
          Get the type of this node.
 void setDeletedType(int type)
          Setter.
 java.lang.String toString(org.alfresco.repo.avm.Lookup lPath)
          Get a descriptive string representation.
 
Methods inherited from class org.alfresco.repo.avm.AVMNodeImpl
addAspect, addProperties, changeAncestor, checkReadOnly, copyACLs, copyACLs, copyACLs, copyACLs, copyAspects, copyCreationAndOwnerBasicAttributes, copyMetaDataFrom, copyProperties, deleteProperties, deleteProperty, equals, getAcl, getAncestor, getAspects, getBasicAttributes, getGuid, getId, getIsNew, getIsRoot, getMergedFrom, getProperties, getProperty, getStoreNew, getVers, getVersionID, hashCode, removeAspect, setAcl, setAncestor, setAspects, setBasicAttributes, setGuid, setId, setIsRoot, setMergedFrom, setProperties, setProperty, setStoreNew, setVers, setVersionID, toString, updateModTime
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.alfresco.repo.avm.AVMNode
addAspect, addProperties, changeAncestor, copyACLs, copyACLs, copyMetaDataFrom, deleteProperties, deleteProperty, getAcl, getAncestor, getAspects, getBasicAttributes, getGuid, getId, getIsNew, getIsRoot, getMergedFrom, getProperties, getProperty, getStoreNew, getVersionID, removeAspect, setAcl, setAncestor, setGuid, setIsRoot, setMergedFrom, setProperties, setProperty, setStoreNew, setVersionID, updateModTime
 

Constructor Detail

DeletedNodeImpl

public DeletedNodeImpl()
Default constructor.


DeletedNodeImpl

public DeletedNodeImpl(AVMStore store,
                       Acl acl)
Create a new one from scratch.

Parameters:
store - The store it's being created in.

DeletedNodeImpl

public DeletedNodeImpl(DeletedNode other,
                       AVMStore store,
                       java.lang.Long parentAcl,
                       ACLCopyMode mode)
Method Detail

setDeletedType

public void setDeletedType(int type)
Setter.


getDeletedType

public int getDeletedType()
Getter.

Specified by:
getDeletedType in interface DeletedNode
Returns:
The type of node that was deleted.

copy

public AVMNode copy(org.alfresco.repo.avm.Lookup lPath)
This is only called rarely.

Specified by:
copy in interface AVMNode
Parameters:
lPath - The Lookup for this node.
Returns:
A copy of ourself or null if no copy was necessary.

getDescriptor

public AVMNodeDescriptor getDescriptor(org.alfresco.repo.avm.Lookup lPath,
                                       java.lang.String name)
Get a descriptor.

Specified by:
getDescriptor in interface AVMNode
Parameters:
lPath - The Lookup to this node's parent.
name - The name of this node.
Returns:
An AVMNodeDescriptor

getDescriptor

public AVMNodeDescriptor getDescriptor(org.alfresco.repo.avm.Lookup lPath)
Get a descriptor.

Specified by:
getDescriptor in interface AVMNode
Parameters:
lPath - The full Lookup to this.
Returns:
An AVMNodeDescriptor.

getDescriptor

public AVMNodeDescriptor getDescriptor(java.lang.String parentPath,
                                       java.lang.String name,
                                       java.lang.String parentIndirection,
                                       int parentIndirectionVersion)
Get a descriptor.

Specified by:
getDescriptor in interface AVMNode
Parameters:
parentPath -
name -
parentIndirection - Ignored.
parentIndirectionVersion - The indirection version of the parent.
Returns:
An AVMNodeDescriptor.

getType

public int getType()
Get the type of this node.

Specified by:
getType in interface AVMNode
Returns:
The AVMNodeType of this.

toString

public java.lang.String toString(org.alfresco.repo.avm.Lookup lPath)
Get a descriptive string representation.

Specified by:
toString in interface AVMNode
Parameters:
lPath - The lookup we've been found through.
Returns:
A String representation.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.