org.kuali.kfs.module.ec.service.impl
Class EffortCertificationReportDefinitionServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.ec.service.impl.EffortCertificationReportDefinitionServiceImpl
All Implemented Interfaces:
EffortCertificationReportDefinitionService

public class EffortCertificationReportDefinitionServiceImpl
extends Object
implements EffortCertificationReportDefinitionService

Provide the implementation of the service methods related to EffortCertificationReportDefinition

See Also:
EffortCertificationReportDefinition

Constructor Summary
EffortCertificationReportDefinitionServiceImpl()
           
 
Method Summary
 List<String> findPositionObjectGroupCodes(EffortCertificationReportDefinition reportDefinition)
          find all position object group codes for the given report definition
 EffortCertificationReportDefinition findReportDefinitionByPrimaryKey(Map<String,String> fieldValues)
          find a report definition by the primary key.
 Map<String,Set<String>> findReportEarnCodePayGroups(EffortCertificationReportDefinition reportDefinition)
          store the earn code and pay group combination in a Map for the specified report definition
 Collection<EffortCertificationReportEarnPaygroup> findReportEarnPay(EffortCertificationReportDefinition reportDefinition)
          find the earn code and pay group combination for the specified report definition
 boolean hasApprovedEffortCertification(String emplid, EffortCertificationReportDefinition reportDefinition)
          determine whether there is any approved effort certification for the given report definition and employee
 boolean hasBeenUsedForEffortCertificationGeneration(EffortCertificationReportDefinition reportDefinition)
          determine whether the given report definition has been used to generate effort certification document
 boolean hasBeenUsedForEffortCertificationGeneration(String emplid, EffortCertificationReport reportDefinition)
          determine whether the given report definition has been used to generate effort certification documents for the given employee
 boolean hasPendingEffortCertification(String emplid, EffortCertificationReportDefinition reportDefinition)
          determine whether there is any pending/temporary effort certification waiting for the given report definition
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 String validateEffortCertificationReportDefinition(EffortCertificationReportDefinition effortCertificationReportDefinition)
          check if an effort certification report has been defined.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EffortCertificationReportDefinitionServiceImpl

public EffortCertificationReportDefinitionServiceImpl()
Method Detail

findReportDefinitionByPrimaryKey

public EffortCertificationReportDefinition findReportDefinitionByPrimaryKey(Map<String,String> fieldValues)
Description copied from interface: EffortCertificationReportDefinitionService
find a report definition by the primary key. The primary key is provided by the given field values.

Specified by:
findReportDefinitionByPrimaryKey in interface EffortCertificationReportDefinitionService
Parameters:
fieldValues - the given field values containing the primary key of a report definition
Returns:
a report definition with the given primary key
See Also:
EffortCertificationReportDefinitionService.findReportDefinitionByPrimaryKey(java.util.Map)

validateEffortCertificationReportDefinition

public String validateEffortCertificationReportDefinition(EffortCertificationReportDefinition effortCertificationReportDefinition)
Description copied from interface: EffortCertificationReportDefinitionService
check if an effort certification report has been defined.

Specified by:
validateEffortCertificationReportDefinition in interface EffortCertificationReportDefinitionService
Parameters:
effortCertificationReportDefinition - the given effort certification report definition
Returns:
a message if a report has not been defined; otherwise, return null
See Also:
EffortCertificationReportDefinitionService.validateEffortCertificationReportDefinition(org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition)

findPositionObjectGroupCodes

public List<String> findPositionObjectGroupCodes(EffortCertificationReportDefinition reportDefinition)
Description copied from interface: EffortCertificationReportDefinitionService
find all position object group codes for the given report definition

Specified by:
findPositionObjectGroupCodes in interface EffortCertificationReportDefinitionService
Parameters:
reportDefinition - the specified report definition
Returns:
all position object group codes for the given report definition
See Also:
EffortCertificationReportDefinitionService.findPositionObjectGroupCodes(org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition)

findReportEarnCodePayGroups

public Map<String,Set<String>> findReportEarnCodePayGroups(EffortCertificationReportDefinition reportDefinition)
Description copied from interface: EffortCertificationReportDefinitionService
store the earn code and pay group combination in a Map for the specified report definition

Specified by:
findReportEarnCodePayGroups in interface EffortCertificationReportDefinitionService
Parameters:
reportDefinition - the specified report definition
Returns:
the earn code and pay group combination for the specified report definition as a Map
See Also:
EffortCertificationReportDefinitionService.findReportEarnCodePayGroups(org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition)

findReportEarnPay

public Collection<EffortCertificationReportEarnPaygroup> findReportEarnPay(EffortCertificationReportDefinition reportDefinition)
Description copied from interface: EffortCertificationReportDefinitionService
find the earn code and pay group combination for the specified report definition

Specified by:
findReportEarnPay in interface EffortCertificationReportDefinitionService
Parameters:
reportDefinition - the specified report definition
Returns:
the earn code and pay group combination for the specified report definition
See Also:
EffortCertificationReportDefinitionService.findReportEarnPay(org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition)

hasPendingEffortCertification

public boolean hasPendingEffortCertification(String emplid,
                                             EffortCertificationReportDefinition reportDefinition)
Description copied from interface: EffortCertificationReportDefinitionService
determine whether there is any pending/temporary effort certification waiting for the given report definition

Specified by:
hasPendingEffortCertification in interface EffortCertificationReportDefinitionService
reportDefinition - the given report definition
Returns:
true if there is any pending/temporary effort certification waiting for process; otherwise, false
See Also:
org.kuali.kfs.module.ec.service.EffortCertificationReportDefinitionService#existsPendingEffortCertification(org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition)

hasApprovedEffortCertification

public boolean hasApprovedEffortCertification(String emplid,
                                              EffortCertificationReportDefinition reportDefinition)
Description copied from interface: EffortCertificationReportDefinitionService
determine whether there is any approved effort certification for the given report definition and employee

Specified by:
hasApprovedEffortCertification in interface EffortCertificationReportDefinitionService
Parameters:
emplid - the given employee id
reportDefinition - the given report definition
Returns:
true if there is any approved effort certification for the employee; otherwise, false
See Also:
EffortCertificationReportDefinitionService.hasApprovedEffortCertification(java.lang.String, org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition)

hasBeenUsedForEffortCertificationGeneration

public boolean hasBeenUsedForEffortCertificationGeneration(EffortCertificationReportDefinition reportDefinition)
Description copied from interface: EffortCertificationReportDefinitionService
determine whether the given report definition has been used to generate effort certification document

Specified by:
hasBeenUsedForEffortCertificationGeneration in interface EffortCertificationReportDefinitionService
Parameters:
reportDefinition - the given report definition
Returns:
true if the given report definition has been used; otherwise, false
See Also:
EffortCertificationReportDefinitionService.hasBeenUsedForEffortCertificationGeneration(org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition)

hasBeenUsedForEffortCertificationGeneration

public boolean hasBeenUsedForEffortCertificationGeneration(String emplid,
                                                           EffortCertificationReport reportDefinition)
Description copied from interface: EffortCertificationReportDefinitionService
determine whether the given report definition has been used to generate effort certification documents for the given employee

Specified by:
hasBeenUsedForEffortCertificationGeneration in interface EffortCertificationReportDefinitionService
Parameters:
emplid - the given employee id
reportDefinition - the given report definition
Returns:
true if the given report definition has been used for the employee; otherwise, false
See Also:
org.kuali.kfs.module.ec.service.EffortCertificationReportDefinitionService#hasBeenUsedForEffortCertificationGeneration(java.lang.String, org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition)

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService - The businessObjectService to set.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.