|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase
org.kuali.kfs.fp.document.authorization.FinancialProcessingAccountingLineAuthorizer
org.kuali.kfs.fp.document.authorization.DistributionOfIncomeAndExpenseAccountingLineAuthorizer
public class DistributionOfIncomeAndExpenseAccountingLineAuthorizer
Authorizer which deals with financial processing document issues, specifically sales tax lines on documents This class utilizes the new accountingLine model.
| Constructor Summary | |
|---|---|
DistributionOfIncomeAndExpenseAccountingLineAuthorizer()
|
|
| Method Summary | |
|---|---|
boolean |
determineEditPermissionOnField(AccountingDocument accountingDocument,
AccountingLine accountingLine,
String accountingLineCollectionProperty,
String fieldName,
boolean editablePage)
This method determines if the current accounting line is editable based upon if electronic claims exists on the DI document. |
boolean |
determineEditPermissionOnLine(AccountingDocument accountingDocument,
AccountingLine accountingLine,
String accountingLineCollectionProperty,
boolean currentUserIsDocumentInitiator,
boolean pageIsEditable)
There's no edit permission on lines in the source group on documents claiming electronic payments |
protected boolean |
hasElectronicPaymentClaims(AccountingDocument accountingDocument)
Determines if the DI document has electronic payment claims associated with it |
boolean |
renderNewLine(AccountingDocument accountingDocument,
String accountingGroupProperty)
Don't render a new line if this is the source group and there's electronic payment claims |
| Methods inherited from class org.kuali.kfs.fp.document.authorization.FinancialProcessingAccountingLineAuthorizer |
|---|
getUnviewableBlocks, salesTaxUnviewable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DistributionOfIncomeAndExpenseAccountingLineAuthorizer()
| Method Detail |
|---|
public boolean determineEditPermissionOnField(AccountingDocument accountingDocument,
AccountingLine accountingLine,
String accountingLineCollectionProperty,
String fieldName,
boolean editablePage)
determineEditPermissionOnField in class AccountingLineAuthorizerBaseaccountingDocument - the accounting document the line to test is onaccountingLine - the accounting line to testaccountingLineCollectionProperty - the property that the accounting line lives infieldName - the name of the field we are testingeditablePage - whether the parent page of this field is editable
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)
public boolean renderNewLine(AccountingDocument accountingDocument,
String accountingGroupProperty)
renderNewLine in interface AccountingLineAuthorizerrenderNewLine in class AccountingLineAuthorizerBaseaccountingDocument - the document that has accounting lines being authorizedaccountingGroupProperty - the property of this accounting group
AccountingLineAuthorizerBase.renderNewLine(org.kuali.kfs.sys.document.AccountingDocument, java.lang.String)
public boolean determineEditPermissionOnLine(AccountingDocument accountingDocument,
AccountingLine accountingLine,
String accountingLineCollectionProperty,
boolean currentUserIsDocumentInitiator,
boolean pageIsEditable)
determineEditPermissionOnLine in class AccountingLineAuthorizerBaseaccountingDocument - 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?
org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase#determineEditPermissionOnLine(org.kuali.kfs.sys.document.AccountingDocument, org.kuali.kfs.sys.businessobject.AccountingLine, java.lang.String)protected boolean hasElectronicPaymentClaims(AccountingDocument accountingDocument)
accountingDocument - a DI document
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||