Package org.opencms.db
Class CmsDriverManager.ResourceOUMap
- java.lang.Object
-
- org.opencms.db.CmsDriverManager.ResourceOUMap
-
- Enclosing class:
- CmsDriverManager
public static class CmsDriverManager.ResourceOUMap extends java.lang.Object
Helper class used to store information about resources assigned to OUs in a cache.
-
-
Constructor Summary
Constructors Constructor Description ResourceOUMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CmsOrganizationalUnit>
getResourceOrgUnits(java.lang.String rootPath)
Gets the list of organizational units to which a given root path belongs, according to the cached OU resource assignments.void
init(java.util.Collection<CmsRelation> ouRelations, java.util.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 Detail
-
ResourceOUMap
public ResourceOUMap()
-
-
Method Detail
-
getResourceOrgUnits
public java.util.List<CmsOrganizationalUnit> getResourceOrgUnits(java.lang.String rootPath)
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 usedbc
- the current DB context- Throws:
CmsException
- if something goes wrong
-
init
public void init(java.util.Collection<CmsRelation> ouRelations, java.util.Collection<CmsOrganizationalUnit> ous)
Initializes the OU resource data.- Parameters:
ouRelations
- the current list of OU relationsous
- the current list of OUs
-
-