public class TravelAuthTravelAdvanceValidation extends GenericValidation
Modifier and Type | Field and Description |
---|---|
protected org.kuali.rice.krad.service.DocumentDictionaryService |
documentDictionaryService |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
parameterService |
protected TemProfileService |
temProfileService |
protected TravelDocumentService |
travelDocumentService |
Constructor and Description |
---|
TravelAuthTravelAdvanceValidation() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canCurrentUserEditDocument(TravelAuthorizationDocument doc)
Uses the presentation controller and the authorizer for the travel auth doc to determine if the current user can edit the doc and if they have full edit edit mode
|
org.kuali.rice.krad.service.DocumentDictionaryService |
getDocumentDictionaryService() |
org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService() |
TemProfileService |
getTemProfileService() |
void |
setDocumentDictionaryService(org.kuali.rice.krad.service.DocumentDictionaryService documentDictionaryService)
Injects an implementation of the document dictionary service
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
void |
setTemProfileService(TemProfileService temProfileService) |
void |
setTravelDocumentService(TravelDocumentService travelDocumentService) |
boolean |
validate(AttributedDocumentEvent event)
This method validates that certain parameters
|
protected boolean |
validateAdvanceAmount(TravelDocument document) |
protected boolean |
validateDueDate(TravelAdvance advance,
Timestamp tripEnd)
Runs a number of rules against the due date of the advance: whether it has been filled it, that it's not in the past, that both it and the trip end must be filled in, and that the advance's due date is before the end of hte trip
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
protected TemProfileService temProfileService
protected org.kuali.rice.krad.service.DocumentDictionaryService documentDictionaryService
protected TravelDocumentService travelDocumentService
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
public TravelAuthTravelAdvanceValidation()
public boolean validate(AttributedDocumentEvent event)
Validation
protected boolean validateDueDate(TravelAdvance advance, Timestamp tripEnd)
advance
- the travel advance to validatetripEnd
- the specified end of the tripprotected boolean validateAdvanceAmount(TravelDocument document)
protected boolean canCurrentUserEditDocument(TravelAuthorizationDocument doc)
public TemProfileService getTemProfileService()
public void setTemProfileService(TemProfileService temProfileService)
public org.kuali.rice.krad.service.DocumentDictionaryService getDocumentDictionaryService()
public void setDocumentDictionaryService(org.kuali.rice.krad.service.DocumentDictionaryService documentDictionaryService)
documentDictionaryService
- an implementation of the document dictionary service to injectpublic void setTravelDocumentService(TravelDocumentService travelDocumentService)
public org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.