com.waveset.ui
Class HierarchicalTable.HierContents

java.lang.Object
  extended bycom.waveset.ui.HierarchicalTable.HierContents
Enclosing class:
HierarchicalTable

public class HierarchicalTable.HierContents
extends java.lang.Object

Get the administrators and organizations to display (end up with folder and admin ArrayLists. This falls into two cases: we are already navigating (id=folder), or we are starting out. If we are starting out, we want to get the "top" organizations. Because the administrator may not have view rights to the top, we get the "topmost" organizations she can view. Given that, there are two cases - one "topmost" directory or multiple ones. If there is only one topmost organization, we display the contents of that by hitting the repository for administrators and organizations that have "topmost" as their object group. If there are multiples, we make our own list from a session call that gets the topmost object groups.


Constructor Summary
HierarchicalTable.HierContents(ObjectGroup currentOrg, java.util.ArrayList subordinateOrgs)
           
HierarchicalTable.HierContents(ObjectGroup currentOrg, java.util.ArrayList subordinateOrgs, RepositoryResult currentUsers, RepositoryResult currentAdministrators)
           
 
Method Summary
 RepositoryResult getAdminObjects()
           
 ObjectGroup getCurrentOrganization()
           
 java.util.ArrayList getSubordinateOrgs()
           
 RepositoryResult getUserObjects()
           
 void setAdminObjects(RepositoryResult currentAdministrators)
           
 void setUserObjects(RepositoryResult currentUsers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HierarchicalTable.HierContents

public HierarchicalTable.HierContents(ObjectGroup currentOrg,
                                      java.util.ArrayList subordinateOrgs,
                                      RepositoryResult currentUsers,
                                      RepositoryResult currentAdministrators)

HierarchicalTable.HierContents

public HierarchicalTable.HierContents(ObjectGroup currentOrg,
                                      java.util.ArrayList subordinateOrgs)
Method Detail

getSubordinateOrgs

public java.util.ArrayList getSubordinateOrgs()

setUserObjects

public void setUserObjects(RepositoryResult currentUsers)

setAdminObjects

public void setAdminObjects(RepositoryResult currentAdministrators)

getUserObjects

public RepositoryResult getUserObjects()

getAdminObjects

public RepositoryResult getAdminObjects()

getCurrentOrganization

public ObjectGroup getCurrentOrganization()