public class VendorPreRules extends MaintenancePreRulesBase
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
LOG |
protected VendorDetail |
newVendorDetail |
protected String |
personId |
accountService, configService
Constructor and Description |
---|
VendorPreRules() |
Modifier and Type | Method and Description |
---|---|
protected void |
detectAndConfirmChangeToParent(org.kuali.rice.kns.document.MaintenanceDocument document)
This method displays a review if indicated by the vendor type and the associated text from that type This method screens the
current document for changes from division vendor to parent vendor.
|
void |
displayReview(org.kuali.rice.kns.document.MaintenanceDocument document)
Displays a review if indicated by the vendor type and the associated text from that type
|
protected boolean |
doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument document)
Sets up a convenience object and few other vendor attributes
|
String |
getPersonId()
Returns the Universal User Id of the current logged-in user
|
protected String |
removeDelimiter(String str)
This is a helper method to remove all the delimiters from the vendor name
|
protected void |
setupConvenienceObjects(org.kuali.rice.kns.document.MaintenanceDocument document)
Sets the convenience objects like newVendorDetail and oldVendorDetail, so you have short and easy handles to the new and old
objects contained in the maintenance document.
|
protected void |
setVendorNamesAndIndicator(org.kuali.rice.kns.document.MaintenanceDocument document)
Sets the vendorFirstLastNameIndicator to true if the first name and last name fields were filled in but the vendorName field
is blank and it sets the vendorFirstLastNameIndicator to false if the vendorName field is filled in and the first name and
last name fields were both blank.
|
protected void |
setVendorRestriction(org.kuali.rice.kns.document.MaintenanceDocument document)
Sets the vendorRestrictedDate and vendorRestrictedPersonIdentifier if the vendor restriction has changed from No to Yes.
|
buildContinuationConfirmationQuestion, checkForContinuationAccount, checkForContinuationAccount, doPrompts, getAccountService, getConfigService, setAccountService, setConfigService
protected static org.apache.log4j.Logger LOG
protected VendorDetail newVendorDetail
public VendorPreRules()
public String getPersonId()
protected boolean doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument document)
doCustomPreRules
in class MaintenancePreRulesBase
MaintenancePreRulesBase.doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument)
protected void setupConvenienceObjects(org.kuali.rice.kns.document.MaintenanceDocument document)
document
- - the maintenanceDocument being evaluatedprotected void setVendorNamesAndIndicator(org.kuali.rice.kns.document.MaintenanceDocument document)
document
- - the maintenanceDocument being evaluatedprotected void setVendorRestriction(org.kuali.rice.kns.document.MaintenanceDocument document)
document
- - the maintenanceDocument being evaluatedprotected String removeDelimiter(String str)
str
- the original vendorNamepublic void displayReview(org.kuali.rice.kns.document.MaintenanceDocument document)
document
- - vendordetail documentprotected void detectAndConfirmChangeToParent(org.kuali.rice.kns.document.MaintenanceDocument document)
document
- The vendor-change-containing MaintenanceDocument under examinationCopyright © 2004–2015 The Kuali Foundation. All rights reserved.