Class CmsDriverManager.ResourceOUMap

java.lang.Object
org.opencms.db.CmsDriverManager.ResourceOUMap
Enclosing class:
CmsDriverManager

public static class CmsDriverManager.ResourceOUMap extends Object
Helper class used to store information about resources assigned to OUs in a cache.
  • Constructor Details

  • Method Details

    • getResourceOrgUnits

      Gets the list of organizational units to which a given root path belongs, according to the cached OU resource assignments.
      Parameters:
      rootPath - the root path
      Returns:
      the organizational units to which the path belongs
    • init

      public void init(CmsDriverManager driverManager, CmsDbContext dbc) throws CmsException
      Reads the OU resource data from the VFS and initializes this instance with it.
      Parameters:
      driverManager - the driver manager to use
      dbc - the current DB context
      Throws:
      CmsException - if something goes wrong
    • init

      public void init(Collection<CmsRelation> ouRelations, Collection<CmsOrganizationalUnit> ous)
      Initializes the OU resource data.
      Parameters:
      ouRelations - the current list of OU relations
      ous - the current list of OUs