org.alfresco.repo.avm
Interface LayeredDirectoryNode

All Superinterfaces:
AVMNode, DirectoryNode

public interface LayeredDirectoryNode
extends DirectoryNode

Interface for Layered Directories.


Method Summary
 void flatten(java.lang.String name)
          Remove name without leaving behind a deleted node.
 java.lang.String getIndirection()
          Get the raw indirection of a layered node.
 java.lang.Integer getIndirectionVersion()
          Get the indirection version.
 long getLayerID()
          Get the layer id for this node.
 boolean getOpacity()
          Get the opacity of this.
 boolean getPrimaryIndirection()
          Does this node have a primary indirection.
 java.lang.String getUnderlying(org.alfresco.repo.avm.Lookup lookup)
          Get the indirection, or underlying path that this node points to.
 int getUnderlyingVersion(org.alfresco.repo.avm.Lookup lookup)
          Get the indirection version.
 void rawSetPrimary(org.alfresco.repo.avm.Lookup lPath, java.lang.String path)
          Set this to be a primary indirection from the path passed in.
 void retarget(org.alfresco.repo.avm.Lookup lPath, java.lang.String target)
          Retarget this directory.
 void setIndirection(java.lang.String indirection)
          Set the indirection.
 void setIndirectionVersion(java.lang.Integer version)
          Set the indirection version for this layered node.
 void setLayerID(long id)
          Set the layer id for this node.
 void setOpacity(boolean opacity)
          Set the opacity of this.
 void setPrimaryIndirection(boolean has)
          Set whether this has a primary indirection.
 void turnPrimary(org.alfresco.repo.avm.Lookup lPath)
          Turn this node into a primary indirection node with the indirection taken from the Lookup passed in.
 void uncover(org.alfresco.repo.avm.Lookup lPath, java.lang.String name)
          Make visible a node deleted in a layer.
 
Methods inherited from interface org.alfresco.repo.avm.DirectoryNode
directlyContains, getDeletedNames, getListing, getListing, getListingDirect, getListingDirect, link, link, lookupChild, lookupChild, putChild, removeChild, setIsRoot
 
Methods inherited from interface org.alfresco.repo.avm.AVMNode
addProperties, changeAncestor, copy, copyMetaDataFrom, deleteProperties, deleteProperty, getAcl, getAncestor, getAspects, getBasicAttributes, getDescriptor, getDescriptor, getDescriptor, getGuid, getId, getIsNew, getIsRoot, getMergedFrom, getProperties, getProperty, getStoreNew, getType, getVersionID, setAcl, setAncestor, setGuid, setMergedFrom, setProperties, setProperty, setStoreNew, setVersionID, toString, updateModTime
 

Method Detail

getPrimaryIndirection

boolean getPrimaryIndirection()
Does this node have a primary indirection.

Returns:
Whether this is a primary indirection.

setPrimaryIndirection

void setPrimaryIndirection(boolean has)
Set whether this has a primary indirection.

Parameters:
has - Whether this has a primary indirection.

getLayerID

long getLayerID()
Get the layer id for this node.

Returns:
The layer id.

setLayerID

void setLayerID(long id)
Set the layer id for this node.

Parameters:
id - The id to set.

rawSetPrimary

void rawSetPrimary(org.alfresco.repo.avm.Lookup lPath,
                   java.lang.String path)
Set this to be a primary indirection from the path passed in.

Parameters:
path - The indirection path.

turnPrimary

void turnPrimary(org.alfresco.repo.avm.Lookup lPath)
Turn this node into a primary indirection node with the indirection taken from the Lookup passed in. Performs a copy on write.

Specified by:
turnPrimary in interface DirectoryNode
Parameters:
lPath -

retarget

void retarget(org.alfresco.repo.avm.Lookup lPath,
              java.lang.String target)
Retarget this directory.

Specified by:
retarget in interface DirectoryNode
Parameters:
lPath - The Lookup.
target - The new target path.

uncover

void uncover(org.alfresco.repo.avm.Lookup lPath,
             java.lang.String name)
Make visible a node deleted in a layer.

Parameters:
lPath - The Lookup.
name - The name to make visible.

flatten

void flatten(java.lang.String name)
Remove name without leaving behind a deleted node.

Parameters:
name - The name of the child to flatten.

setIndirection

void setIndirection(java.lang.String indirection)
Set the indirection.

Parameters:
indirection -

getIndirectionVersion

java.lang.Integer getIndirectionVersion()
Get the indirection version.

Returns:
The indirection version.

setOpacity

void setOpacity(boolean opacity)
Set the opacity of this.

Parameters:
opacity - Whether this should be opaque, i.e. not see the things it in its indirection.

getOpacity

boolean getOpacity()
Get the opacity of this.

Returns:
The opacity.

getUnderlying

java.lang.String getUnderlying(org.alfresco.repo.avm.Lookup lookup)
Get the indirection, or underlying path that this node points to.

Parameters:
lookup - The lookup path. Needed for most nodes to determine underlying path.
Returns:
The underlying indirection.

getUnderlyingVersion

int getUnderlyingVersion(org.alfresco.repo.avm.Lookup lookup)
Get the indirection version.

Parameters:
lookup - The lookup path.
Returns:
The underlying indirection version.

getIndirection

java.lang.String getIndirection()
Get the raw indirection of a layered node.

Returns:
The raw indirection, which will be null for LayeredDirectoryNodes that are not primary indirections.

setIndirectionVersion

void setIndirectionVersion(java.lang.Integer version)
Set the indirection version for this layered node.

Parameters:
version - The indirection version to set.


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