org.kuali.kfs.coa.service.impl
Class OrganizationReversionDetailTrickleDownInactivationServiceImpl

java.lang.Object
  extended by org.kuali.kfs.coa.service.impl.OrganizationReversionDetailTrickleDownInactivationServiceImpl
All Implemented Interfaces:
OrganizationReversionDetailTrickleDownInactivationService

public class OrganizationReversionDetailTrickleDownInactivationServiceImpl
extends Object
implements OrganizationReversionDetailTrickleDownInactivationService

The default implementation of the OrganizationReversionDetailTrickleDownService


Nested Class Summary
protected  class OrganizationReversionDetailTrickleDownInactivationServiceImpl.TrickleDownStatus
          Inner class to keep track of what organization reversions were inactivated and which had errors when the persisting of the inactivation was attempted
 
Field Summary
protected  org.kuali.rice.kns.service.BusinessObjectService businessObjectService
           
protected  org.kuali.rice.kns.service.DocumentHeaderService documentHeaderService
           
protected  org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService
           
protected  org.kuali.rice.kns.service.NoteService noteService
           
 
Constructor Summary
OrganizationReversionDetailTrickleDownInactivationServiceImpl()
           
 
Method Summary
protected  boolean allowActivation(OrganizationReversionDetail detail)
          Determines whether the given organization reversion detail can be activated: ie, that both its owning OrganizationReversion and its related OrganizationReversionCategory are both active
 org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
          Gets the businessObjectService attribute.
 org.kuali.rice.kns.service.DocumentHeaderService getDocumentHeaderService()
          Gets the documentHeaderService attribute.
 org.kuali.rice.kns.service.KualiConfigurationService getKualiConfigurationService()
          Gets the kualiConfigurationService attribute.
 org.kuali.rice.kns.service.NoteService getNoteService()
          Gets the noteService attribute.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setDocumentHeaderService(org.kuali.rice.kns.service.DocumentHeaderService documentHeaderService)
          Sets the documentHeaderService attribute value.
 void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
          Sets the kualiConfigurationService attribute value.
 void setNoteService(org.kuali.rice.kns.service.NoteService noteService)
          Sets the noteService attribute value.
protected  void trickleDownActivations(List<OrganizationReversionDetail> organizationReversionDetails, String documentNumber)
          The method which actually does the work of activating the details
 void trickleDownActiveOrganizationReversionDetails(OrganizationReversionCategory organizationReversionCategory, String documentNumber)
          Activates (or "boxes") organization reversion details whose related organization reversion category is being inactivated, and writes notes on the Organization Reversion Category maintenance document about it
 void trickleDownActiveOrganizationReversionDetails(OrganizationReversion organizationReversion, String documentNumber)
          Activates organization reversion details whose containing organization reversion is being inactivated, and writes notes on the Organization Reversion maintenance document about it
protected  void trickleDownInactivations(List<OrganizationReversionDetail> organizationReversionDetails, String documentNumber)
          The method which actually does the work of inactivating the details
 void trickleDownInactiveOrganizationReversionDetails(OrganizationReversionCategory organizationReversionCategory, String documentNumber)
          Inactivates (or "boxes") organization reversion details whose related organization reversion category is being inactivated, and writes notes on the Organization Reversion Category maintenance document about it
 void trickleDownInactiveOrganizationReversionDetails(OrganizationReversion organizationReversion, String documentNumber)
          Inactivates organization reversion details whose containing organization reversion is being inactivated, and writes notes on the Organization Reversion maintenance document about it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noteService

protected org.kuali.rice.kns.service.NoteService noteService

kualiConfigurationService

protected org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService

businessObjectService

protected org.kuali.rice.kns.service.BusinessObjectService businessObjectService

documentHeaderService

protected org.kuali.rice.kns.service.DocumentHeaderService documentHeaderService
Constructor Detail

OrganizationReversionDetailTrickleDownInactivationServiceImpl

public OrganizationReversionDetailTrickleDownInactivationServiceImpl()
Method Detail

trickleDownInactiveOrganizationReversionDetails

public void trickleDownInactiveOrganizationReversionDetails(OrganizationReversion organizationReversion,
                                                            String documentNumber)
Description copied from interface: OrganizationReversionDetailTrickleDownInactivationService
Inactivates organization reversion details whose containing organization reversion is being inactivated, and writes notes on the Organization Reversion maintenance document about it

Specified by:
trickleDownInactiveOrganizationReversionDetails in interface OrganizationReversionDetailTrickleDownInactivationService
Parameters:
organizationReversion - the deactivating organization reversion
documentNumber - the document id of the organization reversion document causing an inactivation
See Also:
OrganizationReversionDetailTrickleDownInactivationService.trickleDownInactiveOrganizationReversionDetails(org.kuali.kfs.coa.businessobject.OrganizationReversion, java.lang.String)

trickleDownInactiveOrganizationReversionDetails

public void trickleDownInactiveOrganizationReversionDetails(OrganizationReversionCategory organizationReversionCategory,
                                                            String documentNumber)
Description copied from interface: OrganizationReversionDetailTrickleDownInactivationService
Inactivates (or "boxes") organization reversion details whose related organization reversion category is being inactivated, and writes notes on the Organization Reversion Category maintenance document about it

Specified by:
trickleDownInactiveOrganizationReversionDetails in interface OrganizationReversionDetailTrickleDownInactivationService
Parameters:
organizationReversionCategory - the deactivating organization reversion category
documentNumber - the document id of the organization reversion category document causing an inactivation
See Also:
OrganizationReversionDetailTrickleDownInactivationService.trickleDownInactiveOrganizationReversionDetails(org.kuali.kfs.coa.businessobject.OrganizationReversionCategory, java.lang.String)

trickleDownActiveOrganizationReversionDetails

public void trickleDownActiveOrganizationReversionDetails(OrganizationReversion organizationReversion,
                                                          String documentNumber)
Description copied from interface: OrganizationReversionDetailTrickleDownInactivationService
Activates organization reversion details whose containing organization reversion is being inactivated, and writes notes on the Organization Reversion maintenance document about it

Specified by:
trickleDownActiveOrganizationReversionDetails in interface OrganizationReversionDetailTrickleDownInactivationService
Parameters:
organizationReversion - the deactivating organization reversion
documentNumber - the document id of the organization reversion document causing an inactivation
See Also:
OrganizationReversionDetailTrickleDownInactivationService.trickleDownActiveOrganizationReversionDetails(org.kuali.kfs.coa.businessobject.OrganizationReversion, java.lang.String)

trickleDownActiveOrganizationReversionDetails

public void trickleDownActiveOrganizationReversionDetails(OrganizationReversionCategory organizationReversionCategory,
                                                          String documentNumber)
Description copied from interface: OrganizationReversionDetailTrickleDownInactivationService
Activates (or "boxes") organization reversion details whose related organization reversion category is being inactivated, and writes notes on the Organization Reversion Category maintenance document about it

Specified by:
trickleDownActiveOrganizationReversionDetails in interface OrganizationReversionDetailTrickleDownInactivationService
Parameters:
organizationReversionCategory - the deactivating organization reversion category
documentNumber - the document id of the organization reversion category document causing an inactivation
See Also:
OrganizationReversionDetailTrickleDownInactivationService.trickleDownActiveOrganizationReversionDetails(org.kuali.kfs.coa.businessobject.OrganizationReversionCategory, java.lang.String)

trickleDownInactivations

protected void trickleDownInactivations(List<OrganizationReversionDetail> organizationReversionDetails,
                                        String documentNumber)
The method which actually does the work of inactivating the details

Parameters:
organizationReversionDetails - the details to inactivate
documentNumber - the document number which has the inactivations as part of it

trickleDownActivations

protected void trickleDownActivations(List<OrganizationReversionDetail> organizationReversionDetails,
                                      String documentNumber)
The method which actually does the work of activating the details

Parameters:
organizationReversionDetails - the details to inactivate
documentNumber - the document number which has the inactivations as part of it

allowActivation

protected boolean allowActivation(OrganizationReversionDetail detail)
Determines whether the given organization reversion detail can be activated: ie, that both its owning OrganizationReversion and its related OrganizationReversionCategory are both active

Parameters:
detail - the detail to check
Returns:
true if the detail can be activated, false otherwise

getKualiConfigurationService

public org.kuali.rice.kns.service.KualiConfigurationService getKualiConfigurationService()
Gets the kualiConfigurationService attribute.

Returns:
Returns the kualiConfigurationService.

setKualiConfigurationService

public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
Sets the kualiConfigurationService attribute value.

Parameters:
kualiConfigurationService - The kualiConfigurationService to set.

getNoteService

public org.kuali.rice.kns.service.NoteService getNoteService()
Gets the noteService attribute.

Returns:
Returns the noteService.

setNoteService

public void setNoteService(org.kuali.rice.kns.service.NoteService noteService)
Sets the noteService attribute value.

Parameters:
noteService - The noteService to set.

getBusinessObjectService

public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
Gets the businessObjectService attribute.

Returns:
Returns the businessObjectService.

setBusinessObjectService

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

Parameters:
businessObjectService - The businessObjectService to set.

getDocumentHeaderService

public org.kuali.rice.kns.service.DocumentHeaderService getDocumentHeaderService()
Gets the documentHeaderService attribute.

Returns:
Returns the documentHeaderService.

setDocumentHeaderService

public void setDocumentHeaderService(org.kuali.rice.kns.service.DocumentHeaderService documentHeaderService)
Sets the documentHeaderService attribute value.

Parameters:
documentHeaderService - The documentHeaderService to set.


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