wt.ixb.handlers.netmarkets
Class OrderedFolder

java.lang.Object
  extended bywt.ixb.handlers.netmarkets.OrderedFolder

public class OrderedFolder
extends Object

This class is a ocntainer to store folders in depth first order. This is important in that it arranges for the proper import order for the folder structure.


Field Summary
private static String _rb
           
private  int depth
           
private  boolean doAcls
           
private  AdminDomainRef domRef
           
private  Map folderRolePermMap
           
private  Map rootMap
           
private  String rootPath
           
 
Constructor Summary
OrderedFolder(Folder topFolder)
           
OrderedFolder(Folder topFolder, boolean doAcls)
           
OrderedFolder(Folder topFolder, String rootPath)
           
OrderedFolder(Folder topFolder, String rootPath, boolean doAcls)
          Deprecated. use OrderedFolder(Folder topFolder, boolean doAcls) instead
 
Method Summary
 void addFolderPath(int depth, String path)
           
private  void doAcls(Folder folder, String pathName)
          We only keep track of the grant permission list.
 int getDepth()
           
 AdminDomainRef getDomainRef()
           
 List getFolderPaths(int depth)
           
 RolePermissionMap[] getRolePermissionMap(String subFolder)
           
 String getRootPath()
           
 boolean hasFolderPath(int depth, String path)
           
private  void initialize(Folder currFolder, int currDepth)
          caler knows the depth.
 void removeFolderPath(int depth, String path)
           
 String toString()
           
private  String trimLocation(String fullPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_rb

private static final String _rb

depth

private int depth

rootPath

private String rootPath

rootMap

private Map rootMap

doAcls

private boolean doAcls

folderRolePermMap

private Map folderRolePermMap

domRef

private AdminDomainRef domRef
Constructor Detail

OrderedFolder

public OrderedFolder(Folder topFolder,
                     String rootPath)
              throws WTException

OrderedFolder

public OrderedFolder(Folder topFolder)
              throws WTException

OrderedFolder

public OrderedFolder(Folder topFolder,
                     boolean doAcls)
              throws WTException

OrderedFolder

public OrderedFolder(Folder topFolder,
                     String rootPath,
                     boolean doAcls)
              throws WTException
Deprecated. use OrderedFolder(Folder topFolder, boolean doAcls) instead

Method Detail

getDomainRef

public AdminDomainRef getDomainRef()

getDepth

public int getDepth()

getFolderPaths

public List getFolderPaths(int depth)

removeFolderPath

public void removeFolderPath(int depth,
                             String path)

hasFolderPath

public boolean hasFolderPath(int depth,
                             String path)

addFolderPath

public void addFolderPath(int depth,
                          String path)

getRootPath

public String getRootPath()

getRolePermissionMap

public RolePermissionMap[] getRolePermissionMap(String subFolder)

initialize

private void initialize(Folder currFolder,
                        int currDepth)
                 throws WTException
caler knows the depth. we are going down many times so see whether the passed in depth is greater than the current depth.

Throws:
WTException

toString

public String toString()

trimLocation

private String trimLocation(String fullPath)

doAcls

private void doAcls(Folder folder,
                    String pathName)
             throws WTException
We only keep track of the grant permission list. For the project team we find all the roles, and then for each role we find a member, and find its permisisonlist. subFolderName -->role -->grantPermissions

Throws:
WTException