Package org.opencms.db
Class CmsDriverManager.ResourceOUMap
java.lang.Object
org.opencms.db.CmsDriverManager.ResourceOUMap
- Enclosing class:
- CmsDriverManager
Helper class used to store information about resources assigned to OUs in a cache.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetResourceOrgUnits
(String rootPath) Gets the list of organizational units to which a given root path belongs, according to the cached OU resource assignments.void
init
(Collection<CmsRelation> ouRelations, Collection<CmsOrganizationalUnit> ous) Initializes the OU resource data.void
init
(CmsDriverManager driverManager, CmsDbContext dbc) Reads the OU resource data from the VFS and initializes this instance with it.
-
Constructor Details
-
ResourceOUMap
public ResourceOUMap()
-
-
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
Reads the OU resource data from the VFS and initializes this instance with it.- Parameters:
driverManager
- the driver manager to usedbc
- the current DB context- Throws:
CmsException
- if something goes wrong
-
init
Initializes the OU resource data.- Parameters:
ouRelations
- the current list of OU relationsous
- the current list of OUs
-