|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kns.rules.DocumentRuleBase
org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
org.kuali.kfs.module.cg.document.validation.impl.CGMaintenanceDocumentRuleBase
public class CGMaintenanceDocumentRuleBase
Rules for the Proposal/Award maintenance document.
| Field Summary | |
|---|---|
protected static String |
AGENCY_TYPE_CODE_FEDERAL
|
protected static String |
PROJECT_DIRECTOR_DECEASED
|
protected static String[] |
PROJECT_DIRECTOR_INVALID_STATUSES
|
| Fields inherited from class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase |
|---|
boDictionaryService, boService, businessObjectAuthorizationService, configService, ddService, dictionaryValidationService, DOCUMENT_ERROR_PREFIX, documentHelperService, LOG, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceService, persistenceStructureService, personService, priorErrorPath, roleService, workflowDocumentService |
| Constructor Summary | |
|---|---|
CGMaintenanceDocumentRuleBase()
|
|
| Method Summary | ||
|---|---|---|
protected boolean |
checkAgencyNotEqualToFederalPassThroughAgency(Agency agency,
Agency federalPassThroughAgency,
String agencyPropertyName,
String fedPassThroughAgencyPropertyName)
This method checks to see if the two agency values passed in are the same Agency. |
|
protected boolean |
checkEndAfterBegin(Date begin,
Date end,
String propertyName)
Checks to see if the end date is after the begin date |
|
protected boolean |
checkFederalPassThrough(boolean federalPassThroughIndicator,
Agency primaryAgency,
String federalPassThroughAgencyNumber,
Class propertyClass,
String federalPassThroughIndicatorFieldName)
Checks if the required federal pass through fields are filled in if the federal pass through indicator is yes. |
|
protected
|
checkPrimary(Collection<E> primaryables,
Class<E> elementClass,
String collectionName,
Class<? extends org.kuali.rice.kns.bo.BusinessObject> boClass)
|
|
protected
|
checkProjectDirectorsAreDirectors(List<T> projectDirectors,
Class<T> elementClass,
String collectionName)
|
|
protected
|
checkProjectDirectorsExist(List<T> projectDirectors,
Class<T> elementClass,
String collectionName)
|
|
protected
|
checkProjectDirectorsStatuses(List<T> projectDirectors,
Class<T> elementClass,
String propertyName)
This method takes in a collection of ProjectDirectors and reviews them to see if any have invalid states for being
added to a Proposal. |
|
| Methods inherited from class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase |
|---|
apcRuleFails, applyApcRule, checkEmptyBOField, checkEmptyDocumentField, checkEmptyValue, checkForPartiallyFilledOutReferenceForeignKeys, clearErrorPath, consolidateFieldNames, dataDictionaryValidate, errorAlreadyExists, getBoDictionaryService, getBoService, getBusinessObjectAuthorizationService, getConfigService, getDateTimeService, getDdService, getDictionaryValidationService, getDocumentHelperService, getFieldLabel, getFieldLabel, getHumanReadablePrimaryKeyFieldNames, getMaintDocDictionaryService, getNewBo, getOldBo, getPersistenceService, getPersistenceStructureService, getPersonService, getRoleService, getWorkflowDocumentService, isCorrectMaintenanceClass, isDocumentInactivatingBusinessObject, isDocumentValidForSave, primaryKeyCheck, processAddCollectionLineBusinessRules, processApproveDocument, processCustomAddCollectionLineBusinessRules, processCustomApproveDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processGlobalApproveDocumentBusinessRules, processGlobalRouteDocumentBusinessRules, processGlobalSaveDocumentBusinessRules, processInactivationBlockChecking, processInactivationBlockChecking, processRouteDocument, processSaveDocument, putDocumentError, putDocumentError, putFieldError, putFieldError, putFieldError, putFieldErrorWithShortLabel, putGlobalError, putGlobalError, putGlobalError, putGlobalsError, putGlobalsError, putInactivationBlockingErrorOnPage, resumeErrorPath, setBoDictionaryService, setBoService, setBusinessObjectAuthorizationService, setConfigService, setDdService, setDictionaryValidationService, setDocumentHelperService, setMaintDocDictionaryService, setNewBo, setPersistenceService, setPersistenceStructureService, setPersonService, setupBaseConvenienceObjects, setupConvenienceObjects, setWorkflowDocumentService, showErrorMap, validateDocumentStructure, validateDuplicateIdentifierInDataDictionary, validateGlobalBusinessObjectPersistable, validateMaintenanceDocument |
| Methods inherited from class org.kuali.rice.kns.rules.DocumentRuleBase |
|---|
getDataDictionaryService, getIdentityManagementService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getWorkflowInfoService, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processCustomSendAdHocRequests, processSendAdHocRequests, setMaxDictionaryValidationDepth, validateSensitiveDataValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String PROJECT_DIRECTOR_DECEASED
protected static final String[] PROJECT_DIRECTOR_INVALID_STATUSES
protected static final String AGENCY_TYPE_CODE_FEDERAL
| Constructor Detail |
|---|
public CGMaintenanceDocumentRuleBase()
| Method Detail |
|---|
protected boolean checkEndAfterBegin(Date begin,
Date end,
String propertyName)
begin - end - propertyName -
protected <E extends Primaryable> boolean checkPrimary(Collection<E> primaryables,
Class<E> elementClass,
String collectionName,
Class<? extends org.kuali.rice.kns.bo.BusinessObject> boClass)
E - primaryables - elementClass - collectionName - boClass -
protected <T extends CGProjectDirector> boolean checkProjectDirectorsExist(List<T> projectDirectors,
Class<T> elementClass,
String collectionName)
T - projectDirectors - elementClass - collectionName -
protected <T extends CGProjectDirector> boolean checkProjectDirectorsAreDirectors(List<T> projectDirectors,
Class<T> elementClass,
String collectionName)
T - projectDirectors - elementClass - collectionName -
protected <T extends CGProjectDirector> boolean checkProjectDirectorsStatuses(List<T> projectDirectors,
Class<T> elementClass,
String propertyName)
ProjectDirectors and reviews them to see if any have invalid states for being
added to a Proposal. An example would be a status code of "D" which means "Deceased". Project Directors with a
status of "D" cannot be added to a Proposal or Award.
projectDirectors - Collection of project directors to be reviewed.elementClass - Type of object that the collection belongs to.propertyName - Name of field that error will be attached to.
protected boolean checkAgencyNotEqualToFederalPassThroughAgency(Agency agency,
Agency federalPassThroughAgency,
String agencyPropertyName,
String fedPassThroughAgencyPropertyName)
Agency. The agency for a C&G document
cannot be the same as the Federal Pass Through Agency for that same document.
agency - federalPassThroughAgency - agencyPropertyName -
protected boolean checkFederalPassThrough(boolean federalPassThroughIndicator,
Agency primaryAgency,
String federalPassThroughAgencyNumber,
Class propertyClass,
String federalPassThroughIndicatorFieldName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||