public class ProposalStateServiceImpl extends Object implements ProposalStateService
| Constructor and Description |
|---|
ProposalStateServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
computeProposalStateForApproved(ProposalDevelopmentDocument proposalDevelopmentDocument,
boolean isRouteStatusChanged)
Compute the proposal state when the proposal is in the workflow APPROVED state.
|
protected String |
computeProposalStateForCanceled(ProposalDevelopmentDocument proposalDevelopmentDocument)
Compute the proposal state when the proposal is in the workflow CANCELED state.
|
protected String |
computeProposalStateForDisapproved(ProposalDevelopmentDocument proposalDevelopmentDocument,
boolean isRouteStatusChanged)
Compute the proposal state when the proposal is in the workflow DISAPPROVED state.
|
protected String |
computeProposalStateForEnRoute(ProposalDevelopmentDocument proposalDevelopmentDocument)
Compute the proposal state when the proposal is in the workflow ENROUTE state.
|
protected String |
computeProposalStateForException(ProposalDevelopmentDocument proposalDevelopmentDocument)
Compute the proposal state when the proposal is in the workflow EXCEPTION state.
|
protected String |
computeProposalStateForInitiated(ProposalDevelopmentDocument proposalDevelopmentDocument)
Compute the proposal state when the proposal is in the workflow INITIATED state.
|
protected String |
computeProposalStateForRejected(ProposalDevelopmentDocument proposalDevelopmentDocument)
Compute the proposal state when the proposal has been rejected ( sent to initial node ).
|
protected String |
computeProposalStateForSaved(ProposalDevelopmentDocument proposalDevelopmentDocument)
Compute the proposal state when the proposal is in the workflow SAVED state.
|
ProposalHierarchyService |
getProposalHierarchyService() |
String |
getProposalStateTypeCode(ProposalDevelopmentDocument proposalDevelopmentDocument,
boolean isRouteStatusChanged,
boolean isRejectAction)
Get the Proposal State type code based upon the current configuration of the
given proposal.
|
protected boolean |
isSubmitted(ProposalDevelopmentDocument proposalDevelopmentDocument)
Has the proposal been submitted to the sponsor?
|
void |
setProposalHierarchyService(ProposalHierarchyService proposalHierarchyService) |
public String getProposalStateTypeCode(ProposalDevelopmentDocument proposalDevelopmentDocument, boolean isRouteStatusChanged, boolean isRejectAction)
ProposalStateServicegetProposalStateTypeCode in interface ProposalStateServiceproposalDevelopmentDocument - the proposal development documentisRouteStatusChanged - was the route status just changed (if false, the proposal was submitted to the sponsor)isRejectAction - was the action taken a rejection of the document?org.kuali.kra.proposaldevelopment.service.ProposalStateService#getProposalStateTypeCode(org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument, boolean)protected String computeProposalStateForInitiated(ProposalDevelopmentDocument proposalDevelopmentDocument)
proposalDevelopmentDocument - the proposal development documentprotected String computeProposalStateForSaved(ProposalDevelopmentDocument proposalDevelopmentDocument)
proposalDevelopmentDocument - the proposal development documentprotected String computeProposalStateForEnRoute(ProposalDevelopmentDocument proposalDevelopmentDocument)
proposalDevelopmentDocument - the proposal development documentprotected String computeProposalStateForApproved(ProposalDevelopmentDocument proposalDevelopmentDocument, boolean isRouteStatusChanged)
proposalDevelopmentDocument - the proposal development documentisRouteStatusChanged - was the route status just changed (if false, the proposal was submitted to the sponsor)protected String computeProposalStateForDisapproved(ProposalDevelopmentDocument proposalDevelopmentDocument, boolean isRouteStatusChanged)
proposalDevelopmentDocument - the proposal development documentisRouteStatusChanged - was the route status just changed (if false, the proposal was submitted to the sponsor)protected String computeProposalStateForRejected(ProposalDevelopmentDocument proposalDevelopmentDocument)
proposalDevelopmentDocument - the proposal development documentisRouteStatusChanged - was the route status just changed (if false, the proposal was submitted to the sponsor)protected String computeProposalStateForCanceled(ProposalDevelopmentDocument proposalDevelopmentDocument)
proposalDevelopmentDocument - the proposal development documentprotected String computeProposalStateForException(ProposalDevelopmentDocument proposalDevelopmentDocument)
proposalDevelopmentDocument - the proposal development documentprotected boolean isSubmitted(ProposalDevelopmentDocument proposalDevelopmentDocument)
proposalDevelopmentDocument - the proposal development documentpublic ProposalHierarchyService getProposalHierarchyService()
public void setProposalHierarchyService(ProposalHierarchyService proposalHierarchyService)
Copyright © 2013 The Kuali Foundation. All Rights Reserved.