org.kuali.kfs.module.purap.document.authorization
Class PurchaseOrderAccountingLineAuthorizer

java.lang.Object
  extended by org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase
      extended by org.kuali.kfs.module.purap.document.authorization.PurapAccountingLineAuthorizer
          extended by org.kuali.kfs.module.purap.document.authorization.PurchaseOrderAccountingLineAuthorizer
All Implemented Interfaces:
AccountingLineAuthorizer

public class PurchaseOrderAccountingLineAuthorizer
extends PurapAccountingLineAuthorizer

Accounting line authorizer for Requisition document which allows adding accounting lines at specified nodes


Constructor Summary
PurchaseOrderAccountingLineAuthorizer()
           
 
Method Summary
protected  boolean allowAccountingLinesAreEditable(AccountingDocument accountingDocument, AccountingLine accountingLine)
          This method checks whether the accounting lines are editable for a specific item type.
 boolean determineEditPermissionOnLine(AccountingDocument accountingDocument, AccountingLine accountingLine, String accountingLineCollectionProperty, boolean currentUserIsDocumentInitiator, boolean pageIsEditable)
          A hook to decide, pre-KIM check, if there's an edit permission on the given accounting line
 boolean renderNewLine(AccountingDocument accountingDocument, String accountingGroupProperty)
          Allow new lines to be rendered at NewUnorderedItems node
 
Methods inherited from class org.kuali.kfs.module.purap.document.authorization.PurapAccountingLineAuthorizer
approvedForUnqualifiedEditing, determineEditPermissionOnField, findTheItemForAccountingLine, getAddMethod, getBalanceInquiryMethod, getDeleteLineMethod, getUnviewableBlocks, isGroupEditable
 
Methods inherited from class org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase
getActionInfixForExtantAccountingLine, getActionInfixForNewAccountingLine, getActionLabel, getActionMap, getActions, getAddAction, getBalanceInquiryAction, getDeleteAction, getFieldName, getKFSImagePath, getKimHappyPropertyNameForField, getRiceImagePath, hasEditPermissionOnAccountingLine, hasEditPermissionOnField, isErrorMapContainingErrorsOnLine, replaceCollectionElementsWithPlurals, stripDocumentPrefixFromName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PurchaseOrderAccountingLineAuthorizer

public PurchaseOrderAccountingLineAuthorizer()
Method Detail

renderNewLine

public boolean renderNewLine(AccountingDocument accountingDocument,
                             String accountingGroupProperty)
Allow new lines to be rendered at NewUnorderedItems node

Specified by:
renderNewLine in interface AccountingLineAuthorizer
Overrides:
renderNewLine in class AccountingLineAuthorizerBase
Parameters:
accountingDocument - the document that has accounting lines being authorized
accountingGroupProperty - the property of this accounting group
Returns:
true if new lines should be displayed, false otherwise
See Also:
AccountingLineAuthorizerBase.renderNewLine(org.kuali.kfs.sys.document.AccountingDocument, java.lang.String)

allowAccountingLinesAreEditable

protected boolean allowAccountingLinesAreEditable(AccountingDocument accountingDocument,
                                                  AccountingLine accountingLine)
Description copied from class: PurapAccountingLineAuthorizer
This method checks whether the accounting lines are editable for a specific item type.

Overrides:
allowAccountingLinesAreEditable in class PurapAccountingLineAuthorizer

determineEditPermissionOnLine

public boolean determineEditPermissionOnLine(AccountingDocument accountingDocument,
                                             AccountingLine accountingLine,
                                             String accountingLineCollectionProperty,
                                             boolean currentUserIsDocumentInitiator,
                                             boolean pageIsEditable)
Description copied from class: AccountingLineAuthorizerBase
A hook to decide, pre-KIM check, if there's an edit permission on the given accounting line

Overrides:
determineEditPermissionOnLine in class PurapAccountingLineAuthorizer
Parameters:
accountingDocument - the accounting document the line is or wants to be associated with
accountingLine - the accounting line itself
accountingLineCollectionProperty - the collection the accounting line is or would be part of
currentUserIsDocumentInitiator - is the current user the initiator of the document?
Returns:
true if the line as a whole can be edited, false otherwise


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.