public class CGMaintenanceDocumentRuleBase extends org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
| Modifier and Type | Field and Description |
|---|---|
protected static String |
AGENCY_TYPE_CODE_FEDERAL |
protected static String |
PROJECT_DIRECTOR_DECEASED |
protected static String[] |
PROJECT_DIRECTOR_INVALID_STATUSES |
boDictionaryService, boService, businessObjectAuthorizationService, businessObjectMetaDataService, configService, dataObjectMetaDataService, ddService, dictionaryValidationService, DOCUMENT_ERROR_PREFIX, documentHelperService, LOG, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceStructureService, personService, priorErrorPath, roleService, workflowDocumentService| Constructor and Description |
|---|
CGMaintenanceDocumentRuleBase() |
| Modifier and Type | Method and Description |
|---|---|
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 <E extends Primaryable> |
checkPrimary(Collection<E> primaryables,
Class<E> elementClass,
String collectionName,
Class<? extends org.kuali.rice.krad.bo.BusinessObject> boClass) |
protected <T extends CGProjectDirector> |
checkProjectDirectorsAreDirectors(List<T> projectDirectors,
Class<T> elementClass,
String collectionName) |
protected <T extends CGProjectDirector> |
checkProjectDirectorsExist(List<T> projectDirectors,
Class<T> elementClass,
String collectionName) |
protected <T extends CGProjectDirector> |
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. |
checkEmptyBOField, checkEmptyDocumentField, checkEmptyValue, checkForPartiallyFilledOutReferenceForeignKeys, clearErrorPath, consolidateFieldNames, dataDictionaryValidate, errorAlreadyExists, getBoService, getConfigService, getDataObjectMetaDataService, getDateTimeService, getDdService, getDictionaryValidationService, getDocumentHelperService, getFieldLabel, getFieldLabel, getHumanReadablePrimaryKeyFieldNames, getMaintDocDictionaryService, getNewBo, getOldBo, 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, setBusinessObjectMetaDataService, setConfigService, setDataObjectMetaDataService, setDdService, setDictionaryValidationService, setDocumentHelperService, setMaintDocDictionaryService, setNewBo, setPersistenceStructureService, setPersonService, setupBaseConvenienceObjects, setupConvenienceObjects, setWorkflowDocumentService, showErrorMap, validateDocumentStructure, validateDuplicateIdentifierInDataDictionary, validateGlobalBusinessObjectPersistable, validateMaintenanceDocumentbuildDocumentTypeActionRequestPermissionDetails, buildDocumentTypePermissionDetails, getDataDictionaryService, getDocumentDictionaryService, getGroupService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPermissionService, hasAdHocRouteCompletion, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteCompletionToInitiator, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processCompleteDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomCompleteDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processCustomSendAdHocRequests, processSendAdHocRequests, setDocumentDictionaryService, setMaxDictionaryValidationDepth, useKimPermission, validateSensitiveDataValueprotected static final String PROJECT_DIRECTOR_DECEASED
protected static final String[] PROJECT_DIRECTOR_INVALID_STATUSES
protected static final String AGENCY_TYPE_CODE_FEDERAL
public CGMaintenanceDocumentRuleBase()
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.krad.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)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.