Just a pass at kruft removal.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3307 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-07-12 15:28:33 +00:00
parent d0b5b14af1
commit b601821d98
16 changed files with 20 additions and 145 deletions

View File

@@ -17,8 +17,6 @@
package org.alfresco.repo.avm;
import java.util.List;
/**
* Base class for Directories.
* @author britt
@@ -42,36 +40,4 @@ abstract class DirectoryNodeImpl extends AVMNodeImpl implements DirectoryNode
{
super(id, repo);
}
/**
* Retrieves the ChildEntry in this directory with the given name.
* @param name The name to look for.
* @param write Whether the child should be looked up for writing.
* @return The ChildEntry or null if not found.
*/
protected ChildEntry getChild(String name, boolean write)
{
return AVMContext.fgInstance.fChildEntryDAO.getByNameParent(name, this);
}
/**
* Get all the children of this directory. NB, this should
* really be considered an internal method but it needs to be
* exposed through the interface.
* @return A List of ChildEntries.
*/
public List<ChildEntry> getChildren()
{
return AVMContext.fgInstance.fChildEntryDAO.getByParent(this);
}
/**
* Get the ChildEntry that has the given child.
* @param child The child node to look for.
* @return The ChildEntry or null if not found.
*/
protected ChildEntry getChild(AVMNode child)
{
return AVMContext.fgInstance.fChildEntryDAO.getByParentChild(this, child);
}
}