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,
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.
|
List<String> |
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,
String name)
Get the descriptor for this node.
|
AVMNodeDescriptor |
getDescriptor(String parentPath,
String name,
String parentIndirection,
int parentIndirectionVersion)
Get this node's descriptor.
|
SortedMap<String,AVMNodeDescriptor> |
getListing(AVMNodeDescriptor dir,
boolean includeDeleted)
Get a listing of from a directory node descriptor.
|
SortedMap<String,AVMNodeDescriptor> |
getListing(AVMNodeDescriptor dir,
String childNamePattern,
boolean includeDeleted)
Get a listing of from a directory node descriptor.
|
Map<String,AVMNode> |
getListing(org.alfresco.repo.avm.Lookup lPath,
boolean includeDeleted)
Get a directory listing.
|
Map<String,AVMNode> |
getListing(org.alfresco.repo.avm.Lookup lPath,
String childNamePattern,
boolean includeDeleted)
Get a directory listing.
|
SortedMap<String,AVMNodeDescriptor> |
getListingDirect(AVMNodeDescriptor dir,
boolean includeDeleted)
Get a listing of the nodes directly contained by a directory.
|
Map<String,AVMNode> |
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,
String name,
AVMNodeDescriptor toLink)
Link a node with the given id into this directory.
|
AVMNodeDescriptor |
lookupChild(AVMNodeDescriptor mine,
String name,
boolean includeDeleted)
Lookup a child using a node descriptor as context.
|
org.alfresco.util.Pair<ChildEntry,Boolean> |
lookupChildEntry(org.alfresco.repo.avm.Lookup lPath,
String name,
boolean includeDeleted)
Lookup a child entry by name.
|
void |
putChild(String name,
AVMNode node)
Put a new child node into this directory.
|
void |
removeChild(org.alfresco.repo.avm.Lookup lPath,
String name)
Remove a child, no copying.
|
void |
retarget(org.alfresco.repo.avm.Lookup lPath,
String target)
Retarget this directory.
|
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, Long parentAcl, ACLCopyMode mode)
other - The other directory.repos - The AVMStore Object that will own us.public Map<String,AVMNode> getListing(org.alfresco.repo.avm.Lookup lPath, boolean includeDeleted)
getListing in interface DirectoryNodelPath - The lookup path.public Map<String,AVMNode> getListing(org.alfresco.repo.avm.Lookup lPath, String childNamePattern, boolean includeDeleted)
getListing in interface DirectoryNodelPath - The lookup path.childNamePattern - A child name pattern.includeDeleted - Include deleted nodes.public Map<String,AVMNode> getListingDirect(org.alfresco.repo.avm.Lookup lPath, boolean includeDeleted)
getListingDirect in interface DirectoryNodelPath - The Lookup to this directory.public SortedMap<String,AVMNodeDescriptor> getListingDirect(AVMNodeDescriptor dir, boolean includeDeleted)
getListingDirect in interface DirectoryNodedir - The node's descriptor.includeDeleted - Whether to include deleted nodes.public SortedMap<String,AVMNodeDescriptor> getListing(AVMNodeDescriptor dir, boolean includeDeleted)
getListing in interface DirectoryNodedir - The directory node descriptor.public SortedMap<String,AVMNodeDescriptor> getListing(AVMNodeDescriptor dir, 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 List<String> getDeletedNames()
getDeletedNames in interface DirectoryNodepublic org.alfresco.util.Pair<ChildEntry,Boolean> lookupChildEntry(org.alfresco.repo.avm.Lookup lPath, 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, 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,
String name)
removeChild in interface DirectoryNodelPath - The path by which this was found.name - The name of the child to remove.public void putChild(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 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,
String target)
retarget in interface DirectoryNodelPath - The Lookup.target - The target path.public AVMNodeDescriptor getDescriptor(org.alfresco.repo.avm.Lookup lPath, 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(String parentPath, String name, 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,
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–2014 Alfresco Software. All rights reserved.