public abstract class ResearchDocumentRuleBase
extends org.kuali.rice.krad.rules.DocumentRuleBase
implements org.kuali.rice.krad.rules.rule.DocumentAuditRule
| Modifier and Type | Field and Description |
|---|---|
static boolean |
CHOMP_LAST_LETTER_S_FROM_COLLECTION_NAME |
static String |
DOCUMENT_ERROR_PATH |
static boolean |
VALIDATION_REQUIRED |
| Constructor and Description |
|---|
ResearchDocumentRuleBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAuditError(org.kuali.rice.kns.util.AuditError error,
String errorKey,
String clusterLabel,
String clusterCategory)
Delegates to
ErrorReporter#reportAuditError(AuditError, String, String, String)
to keep api compatibility. |
protected org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService()
Locate in Spring the
singleton instance |
ErrorReporter |
getErrorReporter()
Gets the error reporter.
|
protected org.kuali.rice.kns.service.DictionaryValidationService |
getKnsDictionaryValidationService() |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService()
Looks up and returns the ParameterService.
|
Map<String,Collection<SoftError>> |
getSoftErrors()
Delegates to
ErrorReporter#getSoftErrors()
to keep api compatibility. |
protected boolean |
hasPermission(ProposalDevelopmentDocument doc,
String permissionName)
Does the current user have the given permission for the proposal?
|
protected boolean |
hasPermission(String userId,
ProposalDevelopmentDocument doc,
String permissionName)
Does the given user have the given permission for the proposal?
|
protected boolean |
hasRole(ProposalDevelopmentDocument doc,
String roleName)
Does the current user have the given role for the proposal?
|
protected boolean |
hasRole(String userId,
ProposalDevelopmentDocument doc,
String roleName)
Does the given user have the given role for the proposal?
|
protected boolean |
isInvalid(Class<?> boClass,
Map.Entry<String,String>... entries)
The opposite of
|
protected boolean |
isValid(Class<?> boClass,
Map.Entry<String,String>... entries)
Is the given code valid? Query the database for a matching code
If found, it is valid; otherwise it is invalid.
|
protected Map.Entry<String,String> |
keyValue(String key,
Object value)
Convenience method for creating a
out of a key/value pair |
protected boolean |
processBudgetVersionsBusinessRule(BudgetParentDocument budgetParentDocument,
boolean runDatactionaryValidation)
This method checks budget versions business rules.
|
boolean |
processRunAuditBusinessRules(org.kuali.rice.krad.document.Document document) |
protected void |
reportError(String propertyName,
String errorKey,
String... errorParams)
Delegates to
ErrorReporter#reportError(String, String, String...)
to keep api compatibility. |
protected void |
reportErrorWithoutFullErrorPath(String propertyName,
String errorKey,
String... errorParams)
Wrapper around global errorMap.put call, to allow better logging
|
protected void |
reportSoftError(String propertyName,
String errorKey,
String... errorParams)
Delegates to
ErrorReporter#reportSoftError(String, String, String...)
to keep api compatibility. |
protected void |
reportWarning(String propertyName,
String errorKey,
String... errorParams)
Delegates to
ErrorReporter#reportError(String, String, String...)
to keep api compatibility. |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
This is a convenience method to use jmock to set the businessObjectService for unit testing.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
This is a convenience method to use jmock to set the parameterService for unit testing.
|
buildDocumentTypeActionRequestPermissionDetails, 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, processCustomSaveDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setDocumentDictionaryService, setMaxDictionaryValidationDepth, useKimPermission, validateSensitiveDataValuepublic static final String DOCUMENT_ERROR_PATH
public static final boolean VALIDATION_REQUIRED
public static final boolean CHOMP_LAST_LETTER_S_FROM_COLLECTION_NAME
protected void reportError(String propertyName, String errorKey, String... errorParams)
ErrorReporter#reportError(String, String, String...)
to keep api compatibility.protected void reportWarning(String propertyName, String errorKey, String... errorParams)
ErrorReporter#reportError(String, String, String...)
to keep api compatibility.protected void addAuditError(org.kuali.rice.kns.util.AuditError error,
String errorKey,
String clusterLabel,
String clusterCategory)
ErrorReporter#reportAuditError(AuditError, String, String, String)
to keep api compatibility.protected void reportSoftError(String propertyName, String errorKey, String... errorParams)
ErrorReporter#reportSoftError(String, String, String...)
to keep api compatibility.public Map<String,Collection<SoftError>> getSoftErrors()
ErrorReporter#getSoftErrors()
to keep api compatibility.ErrorReporter.getSoftErrors()protected void reportErrorWithoutFullErrorPath(String propertyName, String errorKey, String... errorParams)
propertyName - errorKey - errorParams - public boolean processRunAuditBusinessRules(org.kuali.rice.krad.document.Document document)
processRunAuditBusinessRules in interface org.kuali.rice.krad.rules.rule.DocumentAuditRuleprotected boolean processBudgetVersionsBusinessRule(BudgetParentDocument budgetParentDocument, boolean runDatactionaryValidation)
budgetParentDocument - the documentrunDatactionaryValidation - if dd validation should be runNullPointerException - if the proposalDevelopmentDocument is nullprotected boolean hasPermission(ProposalDevelopmentDocument doc, String permissionName)
doc - the Proposal Development DocumentpermissionName - the name of the permissionprotected boolean hasRole(ProposalDevelopmentDocument doc, String roleName)
doc - the Proposal Development DocumentroleName - the name of the roleprotected boolean hasPermission(String userId, ProposalDevelopmentDocument doc, String permissionName)
username - the user's usernamedoc - the Proposal Development DocumentpermissionName - the name of the permissionprotected boolean hasRole(String userId, ProposalDevelopmentDocument doc, String roleName)
username - the user's usernamedoc - the Proposal Development DocumentroleName - the name of the roleprotected Map.Entry<String,String> keyValue(String key, Object value)
AbstractMap.SimpleEntry out of a key/value pairkey - value - protected boolean isInvalid(Class<?> boClass, Map.Entry<String,String>... entries)
#isValid(Class, SimpleEntry...)boClass - the class of the business object to validateentries - varargs array of AbstractMap.SimpleEntry key/value pair instances#isValid(Class, SimpleImmutableEntry...)protected boolean isValid(Class<?> boClass, Map.Entry<String,String>... entries)
boClass - the class of the business object to validateentries - varargs array of AbstractMap.SimpleEntry key/value pair instances#isInvalid(Class, SimpleImmutableEntry...)protected final org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
BusinessObjectService singleton instancepublic void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService - protected org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
businessObjectService - public ErrorReporter getErrorReporter()
protected org.kuali.rice.kns.service.DictionaryValidationService getKnsDictionaryValidationService()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.