Package org.ametys.odf.orgunit
Class OrgUnitDAO
- java.lang.Object
-
- org.ametys.odf.orgunit.OrgUnitDAO
-
- All Implemented Interfaces:
Component
,Serviceable
public class OrgUnitDAO extends Object implements Serviceable, Component
DAO for manipulating OrgUnits
-
-
Field Summary
Fields Modifier and Type Field Description private ODFHelper
_odfHelper
The ODF helperprivate AmetysObjectResolver
_resolver
The Ametys Object Resolverstatic String
ROLE
The Avalon role
-
Constructor Summary
Constructors Constructor Description OrgUnitDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getOrgUnitInfos(String orgUnitId)
Gets the information about the given orgunitMap<String,Object>
getOrgUnitInfos(String orgUnitId, String rootOrgUnitId)
Gets the information about the given orgunitMap<String,Object>
getOrgUnitInfos(OrgUnit orgUnit, String rootOrgUnitId)
Gets the information about the given orgunitMap<String,Object>
getOrgUnitsInfos(List<String> orgUnitIds)
Gets the information about the given orgunitsMap<String,Object>
getOrgUnitsInfos(List<String> orgUnitIds, String rootOrgUnitId)
Gets the information about the given orgunitsvoid
service(ServiceManager manager)
-
-
-
Field Detail
-
_resolver
private AmetysObjectResolver _resolver
The Ametys Object Resolver
-
_odfHelper
private ODFHelper _odfHelper
The ODF helper
-
-
Constructor Detail
-
OrgUnitDAO
public OrgUnitDAO()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getOrgUnitsInfos
public Map<String,Object> getOrgUnitsInfos(List<String> orgUnitIds)
Gets the information about the given orgunits- Parameters:
orgUnitIds
- The orgunits ids- Returns:
- A map of information
-
getOrgUnitsInfos
public Map<String,Object> getOrgUnitsInfos(List<String> orgUnitIds, String rootOrgUnitId)
Gets the information about the given orgunits- Parameters:
orgUnitIds
- The orgunits idsrootOrgUnitId
- the root orgUnitId- Returns:
- A map of information
-
getOrgUnitInfos
public Map<String,Object> getOrgUnitInfos(String orgUnitId)
Gets the information about the given orgunit- Parameters:
orgUnitId
- The orgunit id- Returns:
- A map of information
-
getOrgUnitInfos
public Map<String,Object> getOrgUnitInfos(String orgUnitId, String rootOrgUnitId)
Gets the information about the given orgunit- Parameters:
orgUnitId
- The orgunit idrootOrgUnitId
- the root orgUnit id- Returns:
- A map of information
-
-