public class UnitServiceImpl extends Object implements UnitService
| Constructor and Description |
|---|
UnitServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<Unit> |
getAllSubUnits(String unitNumber)
Get the list of all of the sub-units for a given unit.
|
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService()
Accessor for
|
String |
getInitialUnitsForUnitHierarchy()
TODO : still WIP.
|
String |
getInitialUnitsForUnitHierarchy(int depth) |
int |
getMaxUnitTreeDepth()
This method returns the tree depth of the entire unit hierarchy tree;
|
List<Unit> |
getSubUnits(String unitNumber)
Get the list of immediate sub-units for the given unit.
|
protected String |
getSubUnits(Unit unit,
int level) |
String |
getSubUnitsForTreeView(String unitNumber)
This method to get the sub units for dynamic tree view
|
Unit |
getTopUnit()
This method returns the top level unit in a hierarchy.
|
Unit |
getUnit(String unitNumber)
Get the Unit based upon its unique unit number.
|
Unit |
getUnitCaseInsensitive(String unitNumber)
This method does a case insensitive search keyed on
unitNumber, and
returns the matching unit object. |
List<Unit> |
getUnitHierarchyForUnit(String unitNumber)
This method returns the unit hierarch the passed in unit.
|
UnitLookupDao |
getUnitLookupDao() |
String |
getUnitName(String unitNumber)
This method returns the Unit name for a given Unit Number.
|
Collection<Unit> |
getUnits()
Get all of the Units.
|
List<UnitAdministrator> |
retrieveUnitAdministratorsByUnitNumber(String unitNumber) |
List<UnitCorrespondent> |
retrieveUnitCorrespondentsByUnitNumber(String unitNumber)
This method returns a list of UnitCorrespondent
objects based on a passed unit number.
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.
|
void |
setUnitLookupDao(UnitLookupDao unitLookupDao) |
public Unit getUnitCaseInsensitive(String unitNumber)
UnitServiceunitNumber, and
returns the matching unit object. If there is no match, then null is returned.getUnitCaseInsensitive in interface UnitServiceUnitService.getUnitCaseInsensitive(java.lang.String)public String getUnitName(String unitNumber)
UnitServicegetUnitName in interface UnitServiceunitNumber - identifier for the unitUnitService.getUnitName(java.lang.String)public Collection<Unit> getUnits()
UnitServicegetUnits in interface UnitServiceUnitService.getUnits()public Unit getUnit(String unitNumber)
UnitServicegetUnit in interface UnitServiceunitNumber - the unit's unique unit numberUnitService.getUnit(java.lang.String)public List<Unit> getSubUnits(String unitNumber)
UnitServicegetSubUnits in interface UnitServiceunitNumber - the number of unit to find sub-units forUnitService.getSubUnits(java.lang.String)public List<Unit> getAllSubUnits(String unitNumber)
UnitServicegetAllSubUnits in interface UnitServiceunitNumber - the number of unit to find sub-units forUnitService.getAllSubUnits(java.lang.String)public List<Unit> getUnitHierarchyForUnit(String unitNumber)
UnitServicegetUnitHierarchyForUnit in interface UnitServiceUnitService.getUnitHierarchyForUnit(java.lang.String)public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService - The businessObjectService to set.public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
BusinessObjectServicepublic String getSubUnitsForTreeView(String unitNumber)
UnitServicegetSubUnitsForTreeView in interface UnitServiceUnitService.getSubUnitsForTreeView(java.lang.String)public Unit getTopUnit()
UnitServicegetTopUnit in interface UnitServiceUnitService.getTopUnit()public String getInitialUnitsForUnitHierarchy()
getInitialUnitsForUnitHierarchy in interface UnitServiceBasic data structure : Get the Top node to display.
The node data is like following : 'parentidx-unitNumber : unitName' and separated by ';1;'public String getInitialUnitsForUnitHierarchy(int depth)
getInitialUnitsForUnitHierarchy in interface UnitServicepublic List<UnitAdministrator> retrieveUnitAdministratorsByUnitNumber(String unitNumber)
retrieveUnitAdministratorsByUnitNumber in interface UnitServicepublic int getMaxUnitTreeDepth()
UnitServicegetMaxUnitTreeDepth in interface UnitServiceUnitService.getMaxUnitTreeDepth()public UnitLookupDao getUnitLookupDao()
public void setUnitLookupDao(UnitLookupDao unitLookupDao)
public List<UnitCorrespondent> retrieveUnitCorrespondentsByUnitNumber(String unitNumber)
UnitServiceretrieveUnitCorrespondentsByUnitNumber in interface UnitServiceunitNumber - identifier for the unitorg.kuali.kra.service.UnitService#retrieveUnitCorrespondentByUnitNumber(java.lang.String)Copyright © 2013 The Kuali Foundation. All Rights Reserved.