public class LayeredDirectoryNodeImpl extends DirectoryNodeImpl implements LayeredDirectoryNode
DEBUG| Constructor and Description |
|---|
LayeredDirectoryNodeImpl()
Default constructor.
|
LayeredDirectoryNodeImpl(DirectoryNode dir,
AVMStore store,
org.alfresco.repo.avm.Lookup srcLookup,
String name,
Long inheritedAcl,
ACLCopyMode mode)
Create a new layered directory based on a directory we are being named from that is in not in the layer of the
source lookup.
|
LayeredDirectoryNodeImpl(LayeredDirectoryNode other,
AVMStore repos,
org.alfresco.repo.avm.Lookup lookup,
boolean copyAll,
Long parentAcl,
ACLCopyMode mode)
Kind of copy constructor, sort of.
|
LayeredDirectoryNodeImpl(PlainDirectoryNode other,
AVMStore store,
org.alfresco.repo.avm.Lookup lPath,
boolean copyContents,
Long parentAcl,
ACLCopyMode mode)
Construct one from a PlainDirectoryNode.
|
LayeredDirectoryNodeImpl(String indirection,
AVMStore store,
AVMNode toCopy,
Long parentAcl,
ACLCopyMode mode)
Make a new one from a specified indirection path.
|
| Modifier and Type | Method and Description |
|---|---|
AVMNode |
copy(org.alfresco.repo.avm.Lookup lPath)
Copy on write logic.
|
void |
flatten(String name)
Remove name without leaving behind a deleted node.
|
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 a descriptor for this.
|
String |
getIndirection()
Get the indirection path.
|
Integer |
getIndirectionVersion()
Get the indirection version.
|
long |
getLayerID()
Get the layer id.
|
SortedMap<String,AVMNodeDescriptor> |
getListing(AVMNodeDescriptor dir,
boolean includeDeleted)
Get a listing from a directory node descriptor.
|
SortedMap<String,AVMNodeDescriptor> |
getListing(AVMNodeDescriptor dir,
String childNamePattern,
boolean includeDeleted)
Get a listing from a directory node descriptor.
|
Map<String,AVMNode> |
getListing(org.alfresco.repo.avm.Lookup lPath,
boolean includeDeleted)
Get a listing of the virtual contents of this directory.
|
Map<String,AVMNode> |
getListing(org.alfresco.repo.avm.Lookup lPath,
String childNamePattern,
boolean includeDeleted)
Get a listing of the virtual contents of this directory.
|
SortedMap<String,AVMNodeDescriptor> |
getListingDirect(AVMNodeDescriptor dir,
boolean includeDeleted)
Get the direct contents of this directory.
|
Map<String,AVMNode> |
getListingDirect(org.alfresco.repo.avm.Lookup lPath,
boolean includeDeleted)
Get a listing of the nodes directly contained by a directory.
|
boolean |
getOpacity()
Get the opacity of this.
|
boolean |
getPrimaryIndirection()
Is this a primary indirection node.
|
int |
getType()
Get the type of this node.
|
String |
getUnderlying(org.alfresco.repo.avm.Lookup lPath)
Get the underlying path in the Lookup's context.
|
int |
getUnderlyingVersion(org.alfresco.repo.avm.Lookup lPath)
Get the underlying version in the lookup path context.
|
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)
Insert a child node without COW.
|
void |
rawSetPrimary(org.alfresco.repo.avm.Lookup lPath,
String path)
Set the primary indirection.
|
void |
removeChild(org.alfresco.repo.avm.Lookup lPath,
String name)
Directly remove a child.
|
void |
retarget(org.alfresco.repo.avm.Lookup lPath,
String target)
Make this point at a new target.
|
void |
setAclAndInherit(LayeredDirectoryNode layeredDirectory,
Acl acl,
String name) |
void |
setIndirection(String indirection)
Set the indirection.
|
void |
setIndirectionVersion(Integer version)
Set the indirection version for this layered node.
|
void |
setIsRoot(boolean isRoot)
Does nothing because LayeredDirectoryNodes can't be roots.
|
void |
setLayerID(long id)
Set the layer id.
|
void |
setOpacity(boolean opacity)
Set the opacity of this, ie, whether it blocks things normally seen through its indirection.
|
void |
setPrimaryIndirection(boolean has)
Set the primary indirection state of this.
|
String |
toString(org.alfresco.repo.avm.Lookup lPath)
For diagnostics.
|
void |
turnPrimary(org.alfresco.repo.avm.Lookup lPath)
Make this node become a primary indirection.
|
void |
uncover(org.alfresco.repo.avm.Lookup lPath,
String name)
Let anything behind name in this become visible.
|
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, setMergedFrom, setProperties, setProperty, setStoreNew, setVers, setVersionID, toString, updateModTimeclone, finalize, getClass, notify, notifyAll, wait, wait, waitdirectlyContains, link, lookupChildaddAspect, 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 LayeredDirectoryNodeImpl()
public LayeredDirectoryNodeImpl(String indirection, AVMStore store, AVMNode toCopy, Long parentAcl, ACLCopyMode mode)
indirection - The indirection path to set.store - The store that owns this node.public LayeredDirectoryNodeImpl(LayeredDirectoryNode other, AVMStore repos, org.alfresco.repo.avm.Lookup lookup, boolean copyAll, Long parentAcl, ACLCopyMode mode)
other - The LayeredDirectoryNode we are copied from.repos - The AVMStore object we use.public LayeredDirectoryNodeImpl(PlainDirectoryNode other, AVMStore store, org.alfresco.repo.avm.Lookup lPath, boolean copyContents, Long parentAcl, ACLCopyMode mode)
other - The PlainDirectoryNode.store - The AVMStore we should belong to.lPath - The Lookup object.public LayeredDirectoryNodeImpl(DirectoryNode dir, AVMStore store, org.alfresco.repo.avm.Lookup srcLookup, String name, Long inheritedAcl, ACLCopyMode mode)
dir - The directorystore - The storesrcLookup - The source lookup.name - The name of the target.public boolean getPrimaryIndirection()
getPrimaryIndirection in interface LayeredDirectoryNodepublic void setPrimaryIndirection(boolean has)
setPrimaryIndirection in interface LayeredDirectoryNodehas - Whether this is a primary indirection node.public String getIndirection()
getIndirection in interface Layeredpublic String getUnderlying(org.alfresco.repo.avm.Lookup lPath)
getUnderlying in interface LayeredlPath - The Lookup.public int getUnderlyingVersion(org.alfresco.repo.avm.Lookup lPath)
getUnderlyingVersion in interface LayeredlPath - The Lookup.public long getLayerID()
getLayerID in interface LayeredDirectoryNodepublic void setLayerID(long id)
setLayerID in interface LayeredDirectoryNodeid - The id to set.public AVMNode copy(org.alfresco.repo.avm.Lookup lPath)
public void putChild(String name, AVMNode node)
putChild in interface DirectoryNodename - The name to give the child.node - The child.public Map<String,AVMNode> getListing(org.alfresco.repo.avm.Lookup lPath, boolean includeDeleted)
getListing in interface DirectoryNodelPath - The Lookup.public Map<String,AVMNode> getListing(org.alfresco.repo.avm.Lookup lPath, String childNamePattern, boolean includeDeleted)
getListing in interface DirectoryNodelPath - The Lookup.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 descriptor that describes us.includeDeleted - Whether to inlude deleted nodes.public SortedMap<String,AVMNodeDescriptor> getListing(AVMNodeDescriptor dir, boolean includeDeleted)
getListing in interface DirectoryNodedir - The directory node descriptor.includeDeleted - Should DeletedNodes be shown.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 - Should DeletedNodes be shown.public 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.name - The name we are looking.version - The version in which we are looking.write - Whether this lookup is occurring in a write context.public AVMNodeDescriptor lookupChild(AVMNodeDescriptor mine, String name, boolean includeDeleted)
lookupChild in interface DirectoryNodemine - The node descriptor for this,name - The name to lookup,public void removeChild(org.alfresco.repo.avm.Lookup lPath,
String name)
removeChild in interface DirectoryNodelPath - The lookup that arrived at this.name - The name of the child to remove.public int getType()
public String toString(org.alfresco.repo.avm.Lookup lPath)
public void rawSetPrimary(org.alfresco.repo.avm.Lookup lPath,
String path)
rawSetPrimary in interface LayeredDirectoryNodepath - The indirection path.public void setAclAndInherit(LayeredDirectoryNode layeredDirectory, Acl acl, String name)
setAclAndInherit in interface LayeredDirectoryNodepublic void turnPrimary(org.alfresco.repo.avm.Lookup lPath)
turnPrimary in interface DirectoryNodeturnPrimary in interface LayeredDirectoryNodelPath - The Lookup.public void retarget(org.alfresco.repo.avm.Lookup lPath,
String target)
retarget in interface DirectoryNoderetarget in interface LayeredDirectoryNodelPath - The Lookup.target - The new target path.public void uncover(org.alfresco.repo.avm.Lookup lPath,
String name)
uncover in interface LayeredDirectoryNodelPath - The Lookup.name - The name to uncover.public AVMNodeDescriptor getDescriptor(org.alfresco.repo.avm.Lookup lPath, String name)
getDescriptor in interface AVMNodelPath - The Lookup.name - The name of this in the current 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 this was looked up with.parentIndirection - The indirection of the parent.parentIndirectionVersion - The indirection version of the parent.public void setIndirection(String indirection)
setIndirection in interface LayeredDirectoryNodeindirection - public void setIsRoot(boolean isRoot)
setIsRoot in interface AVMNodesetIsRoot in interface DirectoryNodesetIsRoot in class AVMNodeImplisRoot - public boolean getOpacity()
getOpacity in interface LayeredDirectoryNodepublic void setOpacity(boolean opacity)
setOpacity in interface LayeredDirectoryNodeopacity - public void link(org.alfresco.repo.avm.Lookup lPath,
String name,
AVMNodeDescriptor toLink)
link in interface DirectoryNodelPath - The Lookup for this.name - The name to give the node.toLink - The node to link in.public void flatten(String name)
flatten in interface LayeredDirectoryNodename - The name of the child to flatten.public void setIndirectionVersion(Integer version)
LayeredsetIndirectionVersion in interface Layeredversion - The indirection version to set.public Integer getIndirectionVersion()
getIndirectionVersion in interface LayeredDirectoryNodeCopyright © 2005–2014 Alfresco Software. All rights reserved.