public interface ProposalHierarchyService
| Modifier and Type | Method and Description |
|---|---|
boolean |
allChildBudgetsAreComplete(String parentProposalNumber) |
void |
calculateAndSetProposalAppDocStatus(ProposalDevelopmentDocument doc,
org.kuali.rice.kew.framework.postprocessor.DocumentRouteStatusChange dto) |
String |
createHierarchy(DevelopmentProposal initialChild)
This method takes a proposal, creates a Hierarchy
and links the proposal as the initial child.
|
List<ProposalDevelopmentDocument> |
getChildProposalDevelopmentDocuments(String parentProposalNumber)
Get a list of ProposalDevelopmentDocuments that are children of proposal number provided.
|
DevelopmentProposal |
getDevelopmentProposal(String proposalNumber) |
List<DevelopmentProposal> |
getHierarchyChildren(String parentProposalNumber)
Get a list of DevelopmentProposals that are children of proposal number provided.
|
String |
getHierarchyChildRouteStatus(String oldStatus,
String newStatus)
Calculate the AppDocStatus that should be applied to children of
a parent moving from oldStatus to newStatus.
|
List<HierarchyPersonnelSummary> |
getHierarchyPersonnelSummaries(String parentProposalNumber) |
List<HierarchyProposalSummary> |
getHierarchyProposalSummaries(String proposalNumber) |
ProposalDevelopmentDocument |
getParentDocument(ProposalDevelopmentDocument doc)
Get the parent document of the hierarchy child document.
|
org.kuali.rice.kew.api.WorkflowDocument |
getParentWorkflowDocument(ProposalDevelopmentDocument doc)
Get the parent workflow document of the hierarchy child document.
|
HierarchyProposalSummary |
getProposalSummary(String proposalNumber) |
BudgetDocument<DevelopmentProposal> |
getSyncableBudget(DevelopmentProposal childProposal)
Gets the budget for hierarchy sync.
|
void |
linkToHierarchy(DevelopmentProposal hierarchyProposal,
DevelopmentProposal newChildProposal,
String hierarchyBudgetTypeCode)
This method links a proposal to a Hierarchy.
|
DevelopmentProposal |
lookupParent(DevelopmentProposal childProposal) |
void |
rejectProposalDevelopmentDocument(String proposalNumber,
String reason,
String principalId,
org.apache.struts.upload.FormFile rejectFile)
Reject a proposal development document by proposal number.
|
void |
removeFromHierarchy(DevelopmentProposal childProposal)
This method removes childProposal from the hierarchy of which it is a member
|
void |
routeHierarchyChildren(ProposalDevelopmentDocument proposalDevelopmentDocument,
org.kuali.rice.kew.framework.postprocessor.DocumentRouteStatusChange dto)
Given the proposalDevelopmentDocument, RouteStatusChangeDTO, and the current user principal name, route all of the child proposal appropriately.
|
void |
synchronizeAllChildren(ProposalDevelopmentDocument hierarchyProposalDocument)
This method synchronizes the contents of all children into the hierarchy.
|
void |
synchronizeChild(DevelopmentProposal childProposal)
This method synchronizes the contents of one child into its hierarchy.
|
void |
synchronizeChildProposalBudget(ProposalDevelopmentBudgetExt budget,
DevelopmentProposal childProposal)
This method syncs only the budget from the child proposal specificed to the hierarchy budget.
|
void |
updateAppDocStatus(ProposalDevelopmentDocument doc,
String principalId,
String newStatus)
Update the app doc status for the given document.
|
ProposalHierarchyErrorDto |
validateChildBudgetPeriods(DevelopmentProposal hierarchyProposal,
DevelopmentProposal childProposal,
boolean allowEndDateChange) |
boolean |
validateRemovePermissions(DevelopmentProposal childProposal,
String principalId) |
static final String HIERARCHY_CHILD_ENROUTE_APPSTATUS
static final String HIERARCHY_CHILD_CANCEL_APPSTATUS
static final String HIERARCHY_CHILD_DISAPPROVE_APPSTATUS
static final String HIERARCHY_CHILD_PROCESSED_APPSTATUS
static final String HIERARCHY_CHILD_FINAL_APPSTATUS
static final String HIERARCHY_CHILD_REJECTED_APPSTATUS
static final String HIERARCHY_REJECTED_APPSTATUS
static final String HIERARCHY_ENROUTE_APPSTATUS
static final String HIERARCHY_CANCEL_APPSTATUS
static final String HIERARCHY_DISAPPROVE_APPSTATUS
static final String HIERARCHY_PROCESSED_APPSTATUS
static final String HIERARCHY_FINAL_APPSTATUS
static final String HIERARCHY_ROUTING_PARENT_DISAPPROVED_ANNOTATION
static final String HIERARCHY_ROUTING_PARENT_APPROVED_ANNOTATION
static final String HIERARCHY_ROUTING_PARENT_CANCELLED_ANNOTATION
static final String HIERARCHY_ROUTING_PARENT_SUBMITTED_ANNOTATION
static final String HIERARCHY_ROUTING_PARENT_RESUBMITTED_ANNOTATION
static final String HIERARCHY_ROUTING_PARENT_REJECTED_ANNOTATION
static final String PROPOSAL_ROUTING_REJECTED_ANNOTATION
static final String PROPOSAL_DEVELOPMENT_DOCUMENT_TYPE
String createHierarchy(DevelopmentProposal initialChild) throws ProposalHierarchyException
initialChildProposal - ProposalHierarchyException - if the proposal is already a member of a hierarchyvoid linkToHierarchy(DevelopmentProposal hierarchyProposal, DevelopmentProposal newChildProposal, String hierarchyBudgetTypeCode) throws ProposalHierarchyException
hierarchyProposal - the hierarchy to link the new child tonewChildProposal - the proposal to link to the hierarchyhierarchyBudgetTypeCode - the type of budget syncing to perform with the childProposalHierarchyException - if hierarchyProposal is not a valid Hierarchy
or if newChildProposal is already a member of a hierarchy or does not existvoid removeFromHierarchy(DevelopmentProposal childProposal) throws ProposalHierarchyException
childProposal - the proposal to removeProposalHierarchyException - if childProposal is not a member of a hierarchyvoid synchronizeChild(DevelopmentProposal childProposal) throws ProposalHierarchyException
childProposal - the child proposal in questionProposalHierarchyException - if childProposal is not a member of a hierarchyvoid synchronizeChildProposalBudget(ProposalDevelopmentBudgetExt budget, DevelopmentProposal childProposal) throws ProposalHierarchyException
childProposal - ProposalHierarchyExceptionvoid synchronizeAllChildren(ProposalDevelopmentDocument hierarchyProposalDocument) throws ProposalHierarchyException
hierarchyProposalDocument - the hierarchy in questionProposalHierarchyException - if hierarchyProposalDocument is not a valid HierarchyDevelopmentProposal getDevelopmentProposal(String proposalNumber)
DevelopmentProposal lookupParent(DevelopmentProposal childProposal) throws ProposalHierarchyException
ProposalHierarchyExceptionList<HierarchyPersonnelSummary> getHierarchyPersonnelSummaries(String parentProposalNumber) throws ProposalHierarchyException
ProposalHierarchyExceptionList<HierarchyProposalSummary> getHierarchyProposalSummaries(String proposalNumber) throws ProposalHierarchyException
ProposalHierarchyExceptionProposalHierarchyErrorDto validateChildBudgetPeriods(DevelopmentProposal hierarchyProposal, DevelopmentProposal childProposal, boolean allowEndDateChange) throws ProposalHierarchyException
ProposalHierarchyExceptionorg.kuali.rice.kew.api.WorkflowDocument getParentWorkflowDocument(ProposalDevelopmentDocument doc) throws ProposalHierarchyException
doc - The child in questionProposalHierarchyException - if the provided proposal is not in a hierarchy.ProposalDevelopmentDocument getParentDocument(ProposalDevelopmentDocument doc) throws ProposalHierarchyException
doc - The child in questionProposalHierarchyException - if the provided proposal is not in a hierarchy.String getHierarchyChildRouteStatus(String oldStatus, String newStatus)
oldStatus - The old workflow status of the parent document.newStatus - The new workflow status of the parent document.List<DevelopmentProposal> getHierarchyChildren(String parentProposalNumber) throws ProposalHierarchyException
parentProposalNumber - the proposal number of the hierarchy parent.ProposalHierarchyException - if the provided proposal is not a hierarchy.List<ProposalDevelopmentDocument> getChildProposalDevelopmentDocuments(String parentProposalNumber) throws ProposalHierarchyException
parentProposalNumber - the proposal number of the hierarchy parent.ProposalHierarchyException - if the provided proposal is not a hierarchy.void rejectProposalDevelopmentDocument(String proposalNumber, String reason, String principalId, org.apache.struts.upload.FormFile rejectFile) throws org.kuali.rice.kew.api.exception.WorkflowException, ProposalHierarchyException, IOException
proposalNumber - the proposalNumber you wish to rejectreason - the reason why it is rejected. Will be added to the route log.principalId - The princpal to reject the document as.rejectFile - The file uploaded when the proposoal development was rejected.org.kuali.rice.kew.api.exception.WorkflowException - if there is a problem getting the workflow document, or rejecting the document.ProposalHierarchyExceptionIOException - if there is a problem with the upload file.void routeHierarchyChildren(ProposalDevelopmentDocument proposalDevelopmentDocument, org.kuali.rice.kew.framework.postprocessor.DocumentRouteStatusChange dto) throws ProposalHierarchyException
proposalDevelopmentDocument - The heirarchy being routed.dto - the route status change dto object.currentUserPrincipalName - the name of the user to perform submit or approve operations on the child document.ProposalHierarchyException - If there is a problem routing the children.boolean allChildBudgetsAreComplete(String parentProposalNumber)
boolean validateRemovePermissions(DevelopmentProposal childProposal, String principalId)
void updateAppDocStatus(ProposalDevelopmentDocument doc, String principalId, String newStatus) throws ProposalHierarchyException
doc - The proposal dev document you want to update.principalId - the principal id to update it as.newStatus - the new status, can be any string.ProposalHierarchyExceptionvoid calculateAndSetProposalAppDocStatus(ProposalDevelopmentDocument doc, org.kuali.rice.kew.framework.postprocessor.DocumentRouteStatusChange dto) throws ProposalHierarchyException
ProposalHierarchyExceptionBudgetDocument<DevelopmentProposal> getSyncableBudget(DevelopmentProposal childProposal) throws ProposalHierarchyException
childProposal - ProposalHierarchyExceptionHierarchyProposalSummary getProposalSummary(String proposalNumber) throws ProposalHierarchyException
ProposalHierarchyExceptionCopyright © 2013 The Kuali Foundation. All Rights Reserved.