public class PlainDirectoryNodeImpl extends DirectoryNodeImpl implements PlainDirectoryNode
DEBUG| Constructor and Description |
|---|
PlainDirectoryNodeImpl()
Default constructor.
|
PlainDirectoryNodeImpl(AVMStore store)
Make up a new directory with nothing in it.
|
PlainDirectoryNodeImpl(PlainDirectoryNode other,
AVMStore store,
java.lang.Long parentAcl,
ACLCopyMode mode)
Copy like constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AVMNode |
copy(org.alfresco.repo.avm.Lookup lPath)
Copy on write logic.
|
java.util.List |
getDeletedNames()
Get the names of nodes deleted in this directory.
|
AVMNodeDescriptor |
getDescriptor(org.alfresco.repo.avm.Lookup lPath)
Get the descriptor for this node.
|
AVMNodeDescriptor |
getDescriptor(org.alfresco.repo.avm.Lookup lPath,
java.lang.String name)
Get the descriptor for this node.
|
AVMNodeDescriptor |
getDescriptor(java.lang.String parentPath,
java.lang.String name,
java.lang.String parentIndirection,
int parentIndirectionVersion)
Get this node's descriptor.
|
java.util.SortedMap |
getListing(AVMNodeDescriptor dir,
boolean includeDeleted)
Get a listing of from a directory node descriptor.
|
java.util.SortedMap |
getListing(AVMNodeDescriptor dir,
java.lang.String childNamePattern,
boolean includeDeleted)
Get a listing of from a directory node descriptor.
|
java.util.Map |
getListing(org.alfresco.repo.avm.Lookup lPath,
boolean includeDeleted)
Get a directory listing.
|
java.util.Map |
getListing(org.alfresco.repo.avm.Lookup lPath,
java.lang.String childNamePattern,
boolean includeDeleted)
Get a directory listing.
|
java.util.SortedMap |
getListingDirect(AVMNodeDescriptor dir,
boolean includeDeleted)
Get a listing of the nodes directly contained by a directory.
|
java.util.Map |
getListingDirect(org.alfresco.repo.avm.Lookup lPath,
boolean includeDeleted)
Get a listing of the nodes directly contained by a directory.
|
int |
getType()
Get the type of this node.
|
void |
link(org.alfresco.repo.avm.Lookup lPath,
java.lang.String name,
AVMNodeDescriptor toLink)
Link a node with the given id into this directory.
|
AVMNodeDescriptor |
lookupChild(AVMNodeDescriptor mine,
java.lang.String name,
boolean includeDeleted)
Lookup a child using a node descriptor as context.
|
org.alfresco.util.Pair |
lookupChildEntry(org.alfresco.repo.avm.Lookup lPath,
java.lang.String name,
boolean includeDeleted)
Lookup a child entry by name.
|
void |
putChild(java.lang.String name,
AVMNode node)
Put a new child node into this directory.
|
void |
removeChild(org.alfresco.repo.avm.Lookup lPath,
java.lang.String name)
Remove a child, no copying.
|
void |
retarget(org.alfresco.repo.avm.Lookup lPath,
java.lang.String target)
Retarget this directory.
|
java.lang.String |
toString(org.alfresco.repo.avm.Lookup lPath)
Get a diagnostic String representation.
|
void |
turnPrimary(org.alfresco.repo.avm.Lookup lPath)
Turn this into a primary indirection.
|
directlyContains, link, lookupChildaddAspect, 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, updateModTimeclone, finalize, getClass, notify, notifyAll, wait, wait, waitdirectlyContains, link, lookupChild, setIsRootaddAspect, addProperties, changeAncestor, copyACLs, copyACLs, copyMetaDataFrom, deleteProperties, deleteProperty, getAcl, getAncestor, getAspects, getBasicAttributes, getGuid, getId, getIsNew, getIsRoot, getMergedFrom, getProperties, getProperty, getStoreNew, getVersionID, removeAspect, setAcl, setAncestor, setGuid, setMergedFrom, setProperties, setProperty, setStoreNew, setVersionID, updateModTimepublic PlainDirectoryNodeImpl(AVMStore store)
store - public PlainDirectoryNodeImpl()
public PlainDirectoryNodeImpl(PlainDirectoryNode other, AVMStore store, java.lang.Long parentAcl, ACLCopyMode mode)
other - The other directory.repos - The AVMStore Object that will own us.public java.util.Map getListing(org.alfresco.repo.avm.Lookup lPath,
boolean includeDeleted)
getListing in interface DirectoryNodelPath - The lookup path.public java.util.Map getListing(org.alfresco.repo.avm.Lookup lPath,
java.lang.String childNamePattern,
boolean includeDeleted)
getListing in interface DirectoryNodelPath - The lookup path.childNamePattern - A child name pattern.includeDeleted - Include deleted nodes.public java.util.Map getListingDirect(org.alfresco.repo.avm.Lookup lPath,
boolean includeDeleted)
getListingDirect in interface DirectoryNodelPath - The Lookup to this directory.public java.util.SortedMap getListingDirect(AVMNodeDescriptor dir, boolean includeDeleted)
getListingDirect in interface DirectoryNodedir - The node's descriptor.includeDeleted - Whether to include deleted nodes.public java.util.SortedMap getListing(AVMNodeDescriptor dir, boolean includeDeleted)
getListing in interface DirectoryNodedir - The directory node descriptor.public java.util.SortedMap getListing(AVMNodeDescriptor dir, java.lang.String childNamePattern, boolean includeDeleted)
getListing in interface DirectoryNodedir - The directory node descriptor.childNamePattern - - pattern to match for child names - may be nullincludeDeleted - = include deleted childrenpublic java.util.List getDeletedNames()
getDeletedNames in interface DirectoryNodepublic org.alfresco.util.Pair lookupChildEntry(org.alfresco.repo.avm.Lookup lPath,
java.lang.String name,
boolean includeDeleted)
lookupChildEntry in interface DirectoryNodelPath - The lookup path so far.name - The name to lookup.includeDeleted - Whether to lookup deleted nodes.public AVMNodeDescriptor lookupChild(AVMNodeDescriptor mine, java.lang.String name, boolean includeDeleted)
lookupChild in interface DirectoryNodemine - The node descriptor for this.name - The name of the child to lookup.public void removeChild(org.alfresco.repo.avm.Lookup lPath,
java.lang.String name)
removeChild in interface DirectoryNodelPath - The path by which this was found.name - The name of the child to remove.public void putChild(java.lang.String name,
AVMNode node)
putChild in interface DirectoryNodename - The name of the child.node - The node to add.public AVMNode copy(org.alfresco.repo.avm.Lookup lPath)
public int getType()
public java.lang.String toString(org.alfresco.repo.avm.Lookup lPath)
public void turnPrimary(org.alfresco.repo.avm.Lookup lPath)
turnPrimary in interface DirectoryNodelPath - The Lookup.public void retarget(org.alfresco.repo.avm.Lookup lPath,
java.lang.String target)
retarget in interface DirectoryNodelPath - The Lookup.target - The target path.public AVMNodeDescriptor getDescriptor(org.alfresco.repo.avm.Lookup lPath, java.lang.String name)
getDescriptor in interface AVMNodelPath - The Lookup.name - The name of this node in this context.public AVMNodeDescriptor getDescriptor(org.alfresco.repo.avm.Lookup lPath)
getDescriptor in interface AVMNodelPath - The Lookup.public AVMNodeDescriptor getDescriptor(java.lang.String parentPath, java.lang.String name, java.lang.String parentIndirection, int parentIndirectionVersion)
getDescriptor in interface AVMNodeparentPath - The parent path.name - The name that we were looked up under.parentIndirection - The parent indirection.parentIndirectionVersion - The indirection version of the parent.public void link(org.alfresco.repo.avm.Lookup lPath,
java.lang.String name,
AVMNodeDescriptor toLink)
link in interface DirectoryNodelPath - The Lookup for this directory.name - The name to give the node.toLink - The node to link in.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.