org.kuali.kfs.fp.document.authorization
Class BudgetAdjustmentAccountingLineAuthorizer
java.lang.Object
org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase
org.kuali.kfs.fp.document.authorization.BudgetAdjustmentAccountingLineAuthorizer
- All Implemented Interfaces:
- AccountingLineAuthorizer
public class BudgetAdjustmentAccountingLineAuthorizer
- extends AccountingLineAuthorizerBase
The line authorizer for Budget Adjustment documents, which makes the base amount read only if it can't be edited for the given
fiscal year
| Methods inherited from class org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase |
approvedForUnqualifiedEditing, determineEditPermissionOnLine, getActionInfixForExtantAccountingLine, getActionInfixForNewAccountingLine, getActionLabel, getActionMap, getActions, getAddAction, getAddMethod, getBalanceInquiryAction, getBalanceInquiryMethod, getDeleteAction, getDeleteLineMethod, getFieldName, getKFSImagePath, getKimHappyPropertyNameForField, getRiceImagePath, getUnviewableBlocks, hasEditPermissionOnAccountingLine, hasEditPermissionOnField, isErrorMapContainingErrorsOnLine, isGroupEditable, renderNewLine, replaceCollectionElementsWithPlurals, stripDocumentPrefixFromName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BudgetAdjustmentAccountingLineAuthorizer
public BudgetAdjustmentAccountingLineAuthorizer()
determineEditPermissionOnField
public boolean determineEditPermissionOnField(AccountingDocument accountingDocument,
AccountingLine accountingLine,
String accountingLineCollectionProperty,
String fieldName,
boolean editablePage)
- Overridden to make base amount read only if it is not available to be edited for the given fiscal year
- Overrides:
determineEditPermissionOnField in class AccountingLineAuthorizerBase
- Parameters:
accountingDocument - the accounting document the line to test is onaccountingLine - the accounting line to testaccountingLineCollectionProperty - the property that the accounting line lives infieldName - the name of the field we are testingeditablePage - whether the parent page of this field is editable
- Returns:
- true if the field can be edited (subject to subsequence KIM check); false otherwise
- See Also:
org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase#determineFieldModifyability(org.kuali.kfs.sys.document.AccountingDocument,
org.kuali.kfs.sys.businessobject.AccountingLine, org.kuali.kfs.sys.document.web.AccountingLineViewField, java.util.Map)
getBaseAmountPropertyName
protected String getBaseAmountPropertyName()
- Returns:
- the property name of the base amount field, which will be set to read only under certain conditions
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.