org.kuali.kfs.fp.document.authorization
Class BudgetAdjustmentAccountingLineAuthorizer

java.lang.Object
  extended by org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase
      extended by 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


Constructor Summary
BudgetAdjustmentAccountingLineAuthorizer()
           
 
Method Summary
 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
protected  String getBaseAmountPropertyName()
           
 
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
 

Constructor Detail

BudgetAdjustmentAccountingLineAuthorizer

public BudgetAdjustmentAccountingLineAuthorizer()
Method Detail

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 on
accountingLine - the accounting line to test
accountingLineCollectionProperty - the property that the accounting line lives in
fieldName - the name of the field we are testing
editablePage - 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.