|
||||||||||
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.module.ld.document.authorization.LaborExpenseTransferAccountingLineAuthorizer
public class LaborExpenseTransferAccountingLineAuthorizer
Data dictionary definition that includes metadata for an accounting document about one of its groups of accounting lines (typically source vs. target, but this should open things up).
Constructor Summary | |
---|---|
LaborExpenseTransferAccountingLineAuthorizer()
|
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 |
protected AccountingLineViewAction |
getCopyAction(AccountingLine accountingLine,
String accountingLinePropertyName,
Integer accountingLineIndex,
String groupTitle)
construct the copy action for the given accounting line, typically, a new accounting line |
protected String |
getCopyLineMethod(AccountingLine accountingLine,
String accountingLineProperty,
Integer accountingLineIndex)
Builds the action method name of the method that deletes accounting lines for this group |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LaborExpenseTransferAccountingLineAuthorizer()
Method Detail |
---|
public boolean determineEditPermissionOnField(AccountingDocument accountingDocument, AccountingLine accountingLine, String accountingLineCollectionProperty, String fieldName, boolean editablePage)
AccountingLineAuthorizerBase
determineEditPermissionOnField
in class AccountingLineAuthorizerBase
accountingDocument
- 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#determineEditPermissionOnField(org.kuali.kfs.sys.document.AccountingDocument, org.kuali.kfs.sys.businessobject.AccountingLine, java.lang.String, java.lang.String)
protected Map<String,AccountingLineViewAction> getActionMap(AccountingLineRenderingContext accountingLineRenderingContext, String accountingLinePropertyName, Integer accountingLineIndex, String groupTitle)
AccountingLineAuthorizerBase
getActionMap
in class AccountingLineAuthorizerBase
accountingLinePropertyName
- the property name of the given account line, typically, the form nameaccountingLineIndex
- the index of the given accounting line in its accounting line groupgroupTitle
- the title of the accounting line group
org.kuali.kfs.sys.document.authorization.AccountingLineAuthorizerBase#getActionMap(org.kuali.kfs.sys.businessobject.AccountingLine,
java.lang.String, java.lang.Integer, java.lang.String)
protected AccountingLineViewAction getCopyAction(AccountingLine accountingLine, String accountingLinePropertyName, Integer accountingLineIndex, String groupTitle)
accountingLine
- the given accounting lineaccountingLinePropertyName
- the property name of the given account line, typically, the form nameaccountingLineIndex
- the index of the given accounting line in its accounting line groupgroupTitle
- the title of the accounting line group
protected String getCopyLineMethod(AccountingLine accountingLine, String accountingLineProperty, Integer accountingLineIndex)
accountingLine
- the accounting line an action is being checked foraccountingLinePropertyName
- the property name of the accounting lineaccountingLineIndex
- the index of the given accounting line within the the group being rendered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |