|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.avm.AVMNodeImpl
org.alfresco.repo.avm.DirectoryNodeImpl
org.alfresco.repo.avm.PlainDirectoryNodeImpl
public class PlainDirectoryNodeImpl
A plain directory. No monkey tricks except for possiblyCopy.
Field Summary |
---|
Fields inherited from class org.alfresco.repo.avm.AVMNodeImpl |
---|
DEBUG |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.alfresco.repo.avm.DirectoryNodeImpl |
---|
directlyContains, link, lookupChild |
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.DirectoryNode |
---|
directlyContains, link, lookupChild, setIsRoot |
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, setMergedFrom, setProperties, setProperty, setStoreNew, setVersionID, updateModTime |
Constructor Detail |
---|
public 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.Method Detail |
---|
public java.util.Map getListing(org.alfresco.repo.avm.Lookup lPath, boolean includeDeleted)
getListing
in interface DirectoryNode
lPath
- The lookup path.
public java.util.Map getListing(org.alfresco.repo.avm.Lookup lPath, java.lang.String childNamePattern, boolean includeDeleted)
getListing
in interface DirectoryNode
lPath
- 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 DirectoryNode
lPath
- The Lookup to this directory.
public java.util.SortedMap getListingDirect(AVMNodeDescriptor dir, boolean includeDeleted)
getListingDirect
in interface DirectoryNode
dir
- The node's descriptor.includeDeleted
- Whether to include deleted nodes.
public java.util.SortedMap getListing(AVMNodeDescriptor dir, boolean includeDeleted)
getListing
in interface DirectoryNode
dir
- The directory node descriptor.
public java.util.SortedMap getListing(AVMNodeDescriptor dir, java.lang.String childNamePattern, boolean includeDeleted)
getListing
in interface DirectoryNode
dir
- The directory node descriptor.childNamePattern
- - pattern to match for child names - may be nullincludeDeleted
- = include deleted children
public java.util.List getDeletedNames()
getDeletedNames
in interface DirectoryNode
public org.alfresco.util.Pair lookupChildEntry(org.alfresco.repo.avm.Lookup lPath, java.lang.String name, boolean includeDeleted)
lookupChildEntry
in interface DirectoryNode
lPath
- 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 DirectoryNode
mine
- 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 DirectoryNode
lPath
- 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 DirectoryNode
name
- The name of the child.node
- The node to add.public AVMNode copy(org.alfresco.repo.avm.Lookup lPath)
copy
in interface AVMNode
lPath
- The lookup path.
public int getType()
getType
in interface AVMNode
public java.lang.String toString(org.alfresco.repo.avm.Lookup lPath)
toString
in interface AVMNode
lPath
- The Lookup.
public void turnPrimary(org.alfresco.repo.avm.Lookup lPath)
turnPrimary
in interface DirectoryNode
lPath
- The Lookup.public void retarget(org.alfresco.repo.avm.Lookup lPath, java.lang.String target)
retarget
in interface DirectoryNode
lPath
- The Lookup.target
- The target path.public AVMNodeDescriptor getDescriptor(org.alfresco.repo.avm.Lookup lPath, java.lang.String name)
getDescriptor
in interface AVMNode
lPath
- The Lookup.name
- The name of this node in this context.
public AVMNodeDescriptor getDescriptor(org.alfresco.repo.avm.Lookup lPath)
getDescriptor
in interface AVMNode
lPath
- The Lookup.
public AVMNodeDescriptor getDescriptor(java.lang.String parentPath, java.lang.String name, java.lang.String parentIndirection, int parentIndirectionVersion)
getDescriptor
in interface AVMNode
parentPath
- 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 DirectoryNode
lPath
- The Lookup for this directory.name
- The name to give the node.toLink
- The node to link in.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |