|
||||||||||
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.rules.TransactionalDocumentRuleBase
org.kuali.kfs.module.endow.document.validation.impl.EndowmentTransactionalDocumentBaseRule
public class EndowmentTransactionalDocumentBaseRule
Constructor Summary | |
---|---|
EndowmentTransactionalDocumentBaseRule()
|
Method Summary | |
---|---|
protected boolean |
errorAlreadyExists(String propertyName,
String errorConstant)
Convenience method to determine whether the field already has the message indicated. |
protected EndowmentTransactionSecurity |
getEndowmentTransactionSecurity(EndowmentTransactionalDocument document,
boolean isSource)
This method returns the Security line associated with a Transaction. |
protected String |
getEndowmentTransactionSecurityPrefix(EndowmentTransactionalDocument document,
boolean isSource)
This method obtains the Prefix for displaying errors on the UI for Source & Target lines. |
protected boolean |
isRegistrationCodeActive(EndowmentSecurityDetailsDocument document,
boolean isSource)
This method checks if the Registration Code is Active. |
protected boolean |
isRegistrationCodeEmpty(EndowmentTransactionalDocument document,
boolean isSource)
This method validates the Registration code. |
protected boolean |
isSecurityActive(EndowmentSecurityDetailsDocument document,
boolean isSource)
This method checks if the Security is Active. |
protected boolean |
isSecurityCodeEmpty(EndowmentTransactionalDocument document,
boolean isSource)
This method validate the Security code. |
protected boolean |
isSubTypeEmpty(EndowmentTransactionalDocument document)
This method validates the Sub Type Code. |
protected boolean |
processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
|
protected void |
putDocumentError(String propertyName,
String errorConstant,
String parameter)
This method is a convenience method to add a property-specific document error to the global errors list. |
protected void |
putDocumentError(String propertyName,
String errorConstant,
String[] parameters)
This method is a convenience method to add a property-specific document error to the global errors list. |
protected void |
putFieldError(String propertyName,
String errorConstant)
This method is a convenience method to add a property-specific error to the global errors list. |
protected void |
putFieldError(String propertyName,
String errorConstant,
String parameter)
This method is a convenience method to add a property-specific error to the global errors list. |
protected void |
putFieldError(String propertyName,
String errorConstant,
String[] parameters)
This method is a convenience method to add a property-specific error to the global errors list. |
protected void |
putGlobalError(String errorConstant)
This method is a convenience method to easily add a Document level error (ie, one not tied to a specific field, but applicable to the whole document). |
protected void |
putGlobalError(String errorConstant,
String parameter)
This method is a convenience method to easily add a Document level error (ie, one not tied to a specific field, but applicable to the whole document). |
protected void |
putGlobalError(String errorConstant,
String[] parameters)
This method is a convenience method to easily add a Document level error (ie, one not tied to a specific field, but applicable to the whole document). |
protected void |
putGlobalsError(String propertyName,
String errorConstant)
This method specifically doesn't put any prefixes before the error so that the developer can do things specific to the globals errors (like newDelegateChangeDocument errors) |
protected void |
putGlobalsError(String propertyName,
String errorConstant,
String parameter)
This method specifically doesn't put any prefixes before the error so that the developer can do things specific to the globals errors (like newDelegateChangeDocument errors) |
protected boolean |
validateRegistrationCode(EndowmentSecurityDetailsDocument document,
boolean isSource)
This method validates the Registration code by trying to create a RegistrationCode object from the code. |
protected boolean |
validateSecurityClassCodeTypeNotLiability(EndowmentSecurityDetailsDocument document,
boolean isSource)
Validates that the security class code type is not Liability. |
protected boolean |
validateSecurityClassTypeCode(EndowmentSecurityDetailsDocument document,
boolean isSource,
String classCodeType)
This method validates the Security Class Type Code. |
protected boolean |
validateSecurityCode(EndowmentSecurityDetailsDocument document,
boolean isSource)
This method validates the Security code by trying to create a Security object from the code. |
Methods inherited from class org.kuali.rice.kns.rules.DocumentRuleBase |
---|
getDataDictionaryService, getDictionaryValidationService, getDocumentHelperService, getIdentityManagementService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPersonService, getWorkflowInfoService, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setMaxDictionaryValidationDepth, validateSensitiveDataValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EndowmentTransactionalDocumentBaseRule()
Method Detail |
---|
protected void putGlobalError(String errorConstant)
errorConstant
- - Error Constant that can be mapped to a resource for the actual text message.protected void putGlobalError(String errorConstant, String parameter)
errorConstant
- - Error Constant that can be mapped to a resource for the actual text message.parameter
- - Replacement value for part of the error message.protected void putGlobalError(String errorConstant, String[] parameters)
errorConstant
- - Error Constant that can be mapped to a resource for the actual text message.parameters
- - Array of replacement values for part of the error message.protected void putFieldError(String propertyName, String errorConstant)
propertyName
- - Property name of the element that is associated with the error. Used to mark the field as errored in
the UI.errorConstant
- - Error Constant that can be mapped to a resource for the actual text message.protected void putFieldError(String propertyName, String errorConstant, String parameter)
propertyName
- - Property name of the element that is associated with the error. Used to mark the field as errored in
the UI.errorConstant
- - Error Constant that can be mapped to a resource for the actual text message.parameter
- - Single parameter value that can be used in the message so that you can display specific values to the
user.protected void putFieldError(String propertyName, String errorConstant, String[] parameters)
propertyName
- - Property name of the element that is associated with the error. Used to mark the field as errored in
the UI.errorConstant
- - Error Constant that can be mapped to a resource for the actual text message.parameters
- - Array of strings holding values that can be used in the message so that you can display specific values
to the user.protected void putDocumentError(String propertyName, String errorConstant, String parameter)
propertyName
- - Property name of the element that is associated with the error. Used to mark the field as errored in
the UI.errorConstant
- - Error Constant that can be mapped to a resource for the actual text message.parameter
- - Single parameter value that can be used in the message so that you can display specific values to the
user.protected void putDocumentError(String propertyName, String errorConstant, String[] parameters)
propertyName
- - Property name of the element that is associated with the error. Used to mark the field as errored in
the UI.errorConstant
- - Error Constant that can be mapped to a resource for the actual text message.parameters
- - Array of String parameters that can be used in the message so that you can display specific values to the
user.protected boolean errorAlreadyExists(String propertyName, String errorConstant)
propertyName
- - propertyName you want to test onerrorConstant
- - errorConstant you want to test
protected void putGlobalsError(String propertyName, String errorConstant)
propertyName
- errorConstant
- protected void putGlobalsError(String propertyName, String errorConstant, String parameter)
propertyName
- errorConstant
- parameter
- protected String getEndowmentTransactionSecurityPrefix(EndowmentTransactionalDocument document, boolean isSource)
document
- isSource
-
protected EndowmentTransactionSecurity getEndowmentTransactionSecurity(EndowmentTransactionalDocument document, boolean isSource)
document
- isSource
-
protected boolean isSecurityCodeEmpty(EndowmentTransactionalDocument document, boolean isSource)
tranSecurity
-
protected boolean isRegistrationCodeEmpty(EndowmentTransactionalDocument document, boolean isSource)
tranSecurity
-
protected boolean validateSecurityCode(EndowmentSecurityDetailsDocument document, boolean isSource)
document
- isSource
-
protected boolean validateRegistrationCode(EndowmentSecurityDetailsDocument document, boolean isSource)
document
- isSource
-
protected boolean isSecurityActive(EndowmentSecurityDetailsDocument document, boolean isSource)
document
- isSource
-
protected boolean validateSecurityClassCodeTypeNotLiability(EndowmentSecurityDetailsDocument document, boolean isSource)
endowmentTransactionSecurity
-
protected boolean isRegistrationCodeActive(EndowmentSecurityDetailsDocument document, boolean isSource)
document
- isSource
-
protected boolean validateSecurityClassTypeCode(EndowmentSecurityDetailsDocument document, boolean isSource, String classCodeType)
document
- isSource
- classCodeType
-
protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
processCustomRouteDocumentBusinessRules
in class org.kuali.rice.kns.rules.DocumentRuleBase
DocumentRuleBase.processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document)
protected boolean isSubTypeEmpty(EndowmentTransactionalDocument document)
document
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |