public class ProposalDevelopmentKeyPersonsRule extends ResearchDocumentRuleBase implements AddKeyPersonRule, ChangeKeyPersonRule, CalculateCreditSplitRule
ProposalDevelopmentDocument.org.kuali.rice.kns.rules.BusinessRuleCHOMP_LAST_LETTER_S_FROM_COLLECTION_NAME, DOCUMENT_ERROR_PATH, VALIDATION_REQUIRED| Constructor and Description |
|---|
ProposalDevelopmentKeyPersonsRule() |
| Modifier and Type | Method and Description |
|---|---|
protected KcPersonService |
getKcPersonService()
Gets the KcPersonSevice.
|
boolean |
processAddKeyPersonBusinessRules(ProposalDevelopmentDocument document,
ProposalPerson person)
Validate the following
One principal investigator at a time
0 or more Key Persons or Co-Investigators are allowed
A person cannot have multiple roles, ie.
|
boolean |
processCalculateCreditSplitBusinessRules(ProposalDevelopmentDocument document)
Rule invoked upon calculating a credit split for investigators
|
boolean |
processChangeKeyPersonBusinessRules(ProposalPerson proposalPerson,
org.kuali.rice.krad.bo.BusinessObject source,
int index)
Either adding a degree or unit can trigger this rule to be validated
|
protected boolean |
processCustomSaveDocumentBusinessRules(org.kuali.rice.krad.document.Document document) |
boolean |
processSaveKeyPersonBusinessRules(ProposalDevelopmentDocument document)
Rule invoked upon saving persons to a
|
protected void |
reportErrorWithPrefix(String errorPathPrefix,
String propertyName,
String errorKey,
String... errorParams) |
addAuditError, getBusinessObjectService, getErrorReporter, getKnsDictionaryValidationService, getParameterService, getSoftErrors, hasPermission, hasPermission, hasRole, hasRole, isInvalid, isValid, keyValue, processBudgetVersionsBusinessRule, processRunAuditBusinessRules, reportError, reportErrorWithoutFullErrorPath, reportSoftError, reportWarning, setBusinessObjectService, setParameterServicebuildDocumentTypeActionRequestPermissionDetails, buildDocumentTypePermissionDetails, getDataDictionaryService, getDictionaryValidationService, getDocumentDictionaryService, getGroupService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPermissionService, getPersonService, hasAdHocRouteCompletion, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteCompletionToInitiator, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCompleteDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomCompleteDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setDocumentDictionaryService, setMaxDictionaryValidationDepth, useKimPermission, validateSensitiveDataValueprotected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.krad.document.Document document)
processCustomSaveDocumentBusinessRules in class org.kuali.rice.krad.rules.DocumentRuleBaseDocumentRuleBase.processCustomSaveDocumentBusinessRules(Document)public boolean processSaveKeyPersonBusinessRules(ProposalDevelopmentDocument document)
ProposalDevelopmentDocumentdocument - ProposalDevelopmentDocument being savedpublic boolean processAddKeyPersonBusinessRules(ProposalDevelopmentDocument document, ProposalPerson person)
processAddKeyPersonBusinessRules in interface AddKeyPersonRuleAddKeyPersonRule.processAddKeyPersonBusinessRules(ProposalDevelopmentDocument,ProposalPerson)protected void reportErrorWithPrefix(String errorPathPrefix, String propertyName, String errorKey, String... errorParams)
protected KcPersonService getKcPersonService()
public boolean processChangeKeyPersonBusinessRules(ProposalPerson proposalPerson, org.kuali.rice.krad.bo.BusinessObject source, int index)
processChangeKeyPersonBusinessRules in interface ChangeKeyPersonRulesource - the event source acting on the ruleorg.kuali.kra.proposaldevelopment.rule.ChangeKeyPersonRule#processChangeKeyPersonBusinessRules(org.kuali.kra.proposaldevelopment.bo.ProposalPerson, org.kuali.rice.krad.bo.BusinessObject),
ProposalDevelopmentKeyPersonnelAction.insertDegree(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse),
ProposalDevelopmentKeyPersonnelAction.insertUnit(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)public boolean processCalculateCreditSplitBusinessRules(ProposalDevelopmentDocument document)
CalculateCreditSplitRuleProposalDevelopmentDocumentprocessCalculateCreditSplitBusinessRules in interface CalculateCreditSplitRuleCopyright © 2013 The Kuali Foundation. All Rights Reserved.