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

java.lang.Object
  extended by org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase
      extended by org.kuali.kfs.fp.document.authorization.FinancialProcessingAccountingLineAuthorizer
All Implemented Interfaces:
AccountingLineAuthorizer
Direct Known Subclasses:
CustomerInvoiceDocumentSourceLinesAuthorizer, DistributionOfIncomeAndExpenseAccountingLineAuthorizer, ProcurementCardAccountingLineAuthorizer

public class FinancialProcessingAccountingLineAuthorizer
extends AccountingLineAuthorizerBase

Authorizer which deals with financial processing document issues, specifically sales tax lines on documents


Constructor Summary
FinancialProcessingAccountingLineAuthorizer()
           
 
Method Summary
 Set<String> getUnviewableBlocks(AccountingDocument accountingDocument, AccountingLine accountingLine, boolean newLine, org.kuali.rice.kim.bo.Person currentUser)
          Returns a new empty HashSet
protected  boolean salesTaxUnviewable(AccountingDocument document, AccountingLine line)
          Determines if the given line on the given document should not show any sales tax block it has
 
Methods inherited from class org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase
approvedForUnqualifiedEditing, determineEditPermissionOnField, determineEditPermissionOnLine, getActionInfixForExtantAccountingLine, getActionInfixForNewAccountingLine, getActionLabel, getActionMap, getActions, getAddAction, getAddMethod, getBalanceInquiryAction, getBalanceInquiryMethod, getDeleteAction, getDeleteLineMethod, getFieldName, getKFSImagePath, getKimHappyPropertyNameForField, getRiceImagePath, 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

FinancialProcessingAccountingLineAuthorizer

public FinancialProcessingAccountingLineAuthorizer()
Method Detail

getUnviewableBlocks

public Set<String> getUnviewableBlocks(AccountingDocument accountingDocument,
                                       AccountingLine accountingLine,
                                       boolean newLine,
                                       org.kuali.rice.kim.bo.Person currentUser)
Description copied from class: AccountingLineAuthorizerBase
Returns a new empty HashSet

Specified by:
getUnviewableBlocks in interface AccountingLineAuthorizer
Overrides:
getUnviewableBlocks in class AccountingLineAuthorizerBase
Parameters:
accountingDocument - the accounting document the line to authorize is owned by
accountingLine - the accounting line that is being authorized against
newLine - whether the line is a new line or not
Returns:
a Set of the names of blocks that should not being in any way rendered
See Also:
AccountingLineAuthorizerBase.getUnviewableBlocks(org.kuali.kfs.sys.document.AccountingDocument, org.kuali.kfs.sys.businessobject.AccountingLine, boolean, org.kuali.rice.kim.bo.Person)

salesTaxUnviewable

protected boolean salesTaxUnviewable(AccountingDocument document,
                                     AccountingLine line)
Determines if the given line on the given document should not show any sales tax block it has

Parameters:
document - the document the line lives on (or will live on)
line - the accounting line which perhaps should be hiding any sales tax information
Returns:
true if sales tax should not be seen for the line, false otherwise


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