org.kuali.kfs.module.cam.document.authorization
Class AssetPaymentAccountingLineAuthorizer

java.lang.Object
  extended by org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase
      extended by org.kuali.kfs.module.cam.document.authorization.AssetPaymentAccountingLineAuthorizer
All Implemented Interfaces:
AccountingLineAuthorizer

public class AssetPaymentAccountingLineAuthorizer
extends AccountingLineAuthorizerBase


Constructor Summary
AssetPaymentAccountingLineAuthorizer()
           
 
Method Summary
 boolean determineEditPermissionOnField(AccountingDocument accountingDocument, AccountingLine accountingLine, String accountingLineCollectionProperty, String fieldName, boolean editablePage)
          Allows the overriding of whether a field on an accounting line is editable or not
protected  Map<String,AccountingLineViewAction> getActionMap(AccountingLineRenderingContext accountingLineRenderingContext, String accountingLinePropertyName, Integer accountingLineIndex, String groupTitle)
          collection the actions that are allowed for the given accounting line
 boolean isGroupEditable(AccountingDocument accountingDocument, List<? extends AccountingLineRenderingContext> accountingLineRenderingContexts, org.kuali.rice.kim.bo.Person currentUser)
          Determines if any entire group is rendered as editable, which means that a new line will appear
 
Methods inherited from class org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase
approvedForUnqualifiedEditing, determineEditPermissionOnLine, getActionInfixForExtantAccountingLine, getActionInfixForNewAccountingLine, getActionLabel, getActions, getAddAction, getAddMethod, getBalanceInquiryAction, getBalanceInquiryMethod, getDeleteAction, getDeleteLineMethod, getFieldName, getKFSImagePath, getKimHappyPropertyNameForField, getRiceImagePath, getUnviewableBlocks, hasEditPermissionOnAccountingLine, hasEditPermissionOnField, isErrorMapContainingErrorsOnLine, renderNewLine, replaceCollectionElementsWithPlurals, stripDocumentPrefixFromName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetPaymentAccountingLineAuthorizer

public AssetPaymentAccountingLineAuthorizer()
Method Detail

determineEditPermissionOnField

public boolean determineEditPermissionOnField(AccountingDocument accountingDocument,
                                              AccountingLine accountingLine,
                                              String accountingLineCollectionProperty,
                                              String fieldName,
                                              boolean editablePage)
Description copied from class: AccountingLineAuthorizerBase
Allows the overriding of whether a field on an accounting line is editable or not

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#determineEditPermissionOnField(org.kuali.kfs.sys.document.AccountingDocument, org.kuali.kfs.sys.businessobject.AccountingLine, java.lang.String, java.lang.String)

isGroupEditable

public boolean isGroupEditable(AccountingDocument accountingDocument,
                               List<? extends AccountingLineRenderingContext> accountingLineRenderingContexts,
                               org.kuali.rice.kim.bo.Person currentUser)
Description copied from interface: AccountingLineAuthorizer
Determines if any entire group is rendered as editable, which means that a new line will appear

Specified by:
isGroupEditable in interface AccountingLineAuthorizer
Overrides:
isGroupEditable in class AccountingLineAuthorizerBase
Parameters:
accountingDocument - the accounting document which the collection of line are on
accountingLineRenderingContexts - the accounting lines of the group, wrapped in AccountingLineRenderingContext implementations
currentUser - the current user
Returns:
true if the group can be edited, false otherwise
See Also:
org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase#isGroupReadOnly(org.kuali.kfs.sys.document.AccountingDocument, java.lang.String, org.kuali.rice.kim.bo.Person)

getActionMap

protected Map<String,AccountingLineViewAction> getActionMap(AccountingLineRenderingContext accountingLineRenderingContext,
                                                            String accountingLinePropertyName,
                                                            Integer accountingLineIndex,
                                                            String groupTitle)
Description copied from class: AccountingLineAuthorizerBase
collection the actions that are allowed for the given accounting line

Overrides:
getActionMap in class AccountingLineAuthorizerBase
accountingLinePropertyName - the property name of the given account line, typically, the form name
accountingLineIndex - the index of the given accounting line in its accounting line group
groupTitle - the title of the accounting line group
Returns:
the actions that are allowed for the given accounting line


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