public class PurapAccountingLineAuthorizer extends AccountingLineAuthorizerBase
kfsImagePath, riceImagePath
Constructor and Description |
---|
PurapAccountingLineAuthorizer() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowAccountingLinesAreEditable(AccountingDocument accountingDocument,
AccountingLine accountingLine)
This method checks whether the accounting lines are editable for a specific item type.
|
protected boolean |
approvedForUnqualifiedEditing(AccountingDocument accountingDocument,
AccountingLine accountingLine,
String accountingLineCollectionProperty,
boolean currentUserIsDocumentInitiator)
Determines if the given line is editable, no matter what a KIM check would say about line editability.
|
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
|
boolean |
determineEditPermissionOnLine(AccountingDocument accountingDocument,
AccountingLine accountingLine,
String accountingLineCollectionProperty,
boolean currentUserIsDocumentInitiator,
boolean pageIsEditable)
A hook to decide, pre-KIM check, if there's an edit permission on the given accounting line
|
protected PurApItem |
findTheItemForAccountingLine(AccountingDocument accountingDocument,
AccountingLine accountingLine)
Find the item to which an accounting line belongs.
|
protected String |
getAddMethod(AccountingLine accountingLine,
String accountingLineProperty)
Overrides the method in AccountingLineAuthorizerBase so that the add button would
have the line item number in addition to the rest of the insertxxxx String for
methodToCall when the user clicks on the add button.
|
protected String |
getBalanceInquiryMethod(AccountingLine accountingLine,
String accountingLineProperty,
Integer accountingLineIndex)
Overrides the method in AccountingLineAuthorizerBase so that the balance inquiry button would
have both the line item number and the accounting line number for methodToCall when the user
clicks on the balance inquiry button.
|
protected String |
getDeleteLineMethod(AccountingLine accountingLine,
String accountingLineProperty,
Integer accountingLineIndex)
Overrides the method in AccountingLineAuthorizerBase so that the delete button would have both
the line item number and the accounting line number for methodToCall when the user clicks on
the delete button.
|
protected FinancialSystemTransactionalDocumentAuthorizerBase |
getDocumentAuthorizer(AccountingDocument accountingDocument)
get the document authorizer of the given accounting document
|
boolean |
isGroupEditable(AccountingDocument accountingDocument,
List<? extends AccountingLineRenderingContext> accountingLineRenderingContexts,
org.kuali.rice.kim.api.identity.Person currentUser)
Determines if any entire group is rendered as editable, which means that a new line will appear
|
determineEditPermissionByFieldName, getActionInfixForExtantAccountingLine, getActionInfixForNewAccountingLine, getActionLabel, getActionMap, getActions, getAddAction, getBalanceInquiryAction, getConfigurationService, getDeleteAction, getFieldName, getKFSImagePath, getKimHappyPropertyNameForField, getPermissionDetails, getRiceImagePath, getRoleQualifiers, getUnviewableBlocks, hasEditPermission, hasEditPermissionOnAccountingLine, hasEditPermissionOnField, isMessageMapContainingErrorsOnLine, renderNewLine, replaceCollectionElementsWithPlurals, stripDocumentPrefixFromName
public PurapAccountingLineAuthorizer()
protected String getAddMethod(AccountingLine accountingLine, String accountingLineProperty)
getAddMethod
in class AccountingLineAuthorizerBase
accountingLine
- accountingLineProperty
- protected String getDeleteLineMethod(AccountingLine accountingLine, String accountingLineProperty, Integer accountingLineIndex)
getDeleteLineMethod
in class AccountingLineAuthorizerBase
accountingLine
- the accounting line an action is being checked foraccountingLineIndex
- the index of the given accounting line within the the group being renderedAccountingLineAuthorizerBase.getDeleteLineMethod(org.kuali.ole.sys.businessobject.AccountingLine, java.lang.String, java.lang.Integer)
protected String getBalanceInquiryMethod(AccountingLine accountingLine, String accountingLineProperty, Integer accountingLineIndex)
getBalanceInquiryMethod
in class AccountingLineAuthorizerBase
accountingLine
- the accounting line an action is being checked foraccountingLineIndex
- the index of the given accounting line within the the group being renderedAccountingLineAuthorizerBase.getBalanceInquiryMethod(org.kuali.ole.sys.businessobject.AccountingLine, java.lang.String, java.lang.Integer)
protected FinancialSystemTransactionalDocumentAuthorizerBase getDocumentAuthorizer(AccountingDocument accountingDocument)
AccountingLineAuthorizerBase
getDocumentAuthorizer
in class AccountingLineAuthorizerBase
accountingDocument
- public boolean isGroupEditable(AccountingDocument accountingDocument, List<? extends AccountingLineRenderingContext> accountingLineRenderingContexts, org.kuali.rice.kim.api.identity.Person currentUser)
AccountingLineAuthorizer
isGroupEditable
in interface AccountingLineAuthorizer
isGroupEditable
in class AccountingLineAuthorizerBase
accountingDocument
- the accounting document which the collection of line are onaccountingLineRenderingContexts
- the accounting lines of the group, wrapped in AccountingLineRenderingContext implementationscurrentUser
- the current userorg.kuali.ole.sys.document.authorization.AccountingLineAuthorizer#isGroupEditable(org.kuali.ole.sys.document.AccountingDocument,
java.lang.String, org.kuali.rice.kim.api.identity.Person)
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 editablepublic boolean determineEditPermissionOnLine(AccountingDocument accountingDocument, AccountingLine accountingLine, String accountingLineCollectionProperty, boolean currentUserIsDocumentInitiator, boolean pageIsEditable)
AccountingLineAuthorizerBase
determineEditPermissionOnLine
in class AccountingLineAuthorizerBase
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?protected boolean allowAccountingLinesAreEditable(AccountingDocument accountingDocument, AccountingLine accountingLine)
protected PurApItem findTheItemForAccountingLine(AccountingDocument accountingDocument, AccountingLine accountingLine)
accountingDocument
- the document holding both the accounting line and the item to which the
accounting line is attachedaccountingLine
- the accounting line of interest, for which a containing item should be foundprotected boolean approvedForUnqualifiedEditing(AccountingDocument accountingDocument, AccountingLine accountingLine, String accountingLineCollectionProperty, boolean currentUserIsDocumentInitiator)
approvedForUnqualifiedEditing
in class AccountingLineAuthorizerBase
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?allowAccountingLinesAreEditable(AccountingDocument, AccountingLine)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.