org.kuali.kfs.module.purap.document.authorization
Class PurchaseOrderAccountingLineAuthorizer
java.lang.Object
org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase
org.kuali.kfs.module.purap.document.authorization.PurapAccountingLineAuthorizer
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
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 |
PurchaseOrderAccountingLineAuthorizer
public PurchaseOrderAccountingLineAuthorizer()
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 authorizedaccountingGroupProperty
- 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 withaccountingLine
- the accounting line itselfaccountingLineCollectionProperty
- the collection the accounting line is or would be part ofcurrentUserIsDocumentInitiator
- 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.