public class SecAccountingLineAuthorizer extends Object implements AccountingLineAuthorizer
| Modifier and Type | Field and Description |
|---|---|
protected AccountingLineAuthorizer |
lineAuthorizer |
| Constructor and Description |
|---|
SecAccountingLineAuthorizer() |
| Modifier and Type | Method and Description |
|---|---|
List<AccountingLineViewAction> |
getActions(AccountingDocument accountingDocument,
AccountingLineRenderingContext accountingLineRenderingContext,
String accountingLinePropertyName,
Integer lineIndex,
org.kuali.rice.kim.api.identity.Person currentUser,
String groupTitle)
Determines what actions are available to act upon the given accounting line
|
Set<String> |
getUnviewableBlocks(AccountingDocument accountingDocument,
AccountingLine accountingLine,
boolean newLine,
org.kuali.rice.kim.api.identity.Person currentUser)
Determines which, if any, blocks whose children elements should not in any fashion be rendered
|
boolean |
hasEditPermissionOnAccountingLine(AccountingDocument accountingDocument,
AccountingLine accountingLine,
String accountingLineCollectionProperty,
org.kuali.rice.kim.api.identity.Person currentUser,
boolean pageIsEditable)
Makes call to check edit access security on accounting line
|
boolean |
hasEditPermissionOnField(AccountingDocument accountingDocument,
AccountingLine accountingLine,
String accountingLineCollectionProperty,
String fieldName,
boolean editableLine,
boolean editablePage,
org.kuali.rice.kim.api.identity.Person currentUser)
If access was granted to line and line authorizer allows field modify then allow field modify
|
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
|
boolean |
renderNewLine(AccountingDocument accountingDocument,
String accountingGroupProperty)
Determines if new lines should be rendered for the given accounting line group (identified by its property name)
|
void |
setLineAuthorizer(AccountingLineAuthorizer lineAuthorizer)
Sets the lineAuthorizer attribute value.
|
protected AccountingLineAuthorizer lineAuthorizer
public SecAccountingLineAuthorizer()
public List<AccountingLineViewAction> getActions(AccountingDocument accountingDocument, AccountingLineRenderingContext accountingLineRenderingContext, String accountingLinePropertyName, Integer lineIndex, org.kuali.rice.kim.api.identity.Person currentUser, String groupTitle)
AccountingLineAuthorizergetActions in interface AccountingLineAuthorizeraccountingDocument - the accounting document the line to authorize is owned byaccountingLineRenderingContext - a renderable context wrapping the accounting line that is being authorized againstaccountingLinePropertyName - the name of the property that represents the accounting linelineIndex - value, as Integer, of the index of the given accounting line within the group's collection of accounting
lines; if null, then it is assumed that this is a new linegroupTitle - title of the group from the data dictionarypublic Set<String> getUnviewableBlocks(AccountingDocument accountingDocument, AccountingLine accountingLine, boolean newLine, org.kuali.rice.kim.api.identity.Person currentUser)
AccountingLineAuthorizergetUnviewableBlocks in interface AccountingLineAuthorizeraccountingDocument - the accounting document the line to authorize is owned byaccountingLine - the accounting line that is being authorized againstnewLine - whether the line is a new line or notpublic boolean hasEditPermissionOnAccountingLine(AccountingDocument accountingDocument, AccountingLine accountingLine, String accountingLineCollectionProperty, org.kuali.rice.kim.api.identity.Person currentUser, boolean pageIsEditable)
hasEditPermissionOnAccountingLine in interface AccountingLineAuthorizeraccountingDocument - the given accounting documentaccountingLine - the given accounting line in the documentaccountingLineCollectionProperty - the property of the group that holds these accounting linescurrentUser - the current userpageIsEditable - whether the current page is editable by the current user or notAccountingLineAuthorizer.hasEditPermissionOnAccountingLine(org.kuali.ole.sys.document.AccountingDocument, org.kuali.ole.sys.businessobject.AccountingLine, java.lang.String, org.kuali.rice.kim.api.identity.Person, boolean)public boolean hasEditPermissionOnField(AccountingDocument accountingDocument, AccountingLine accountingLine, String accountingLineCollectionProperty, String fieldName, boolean editableLine, boolean editablePage, org.kuali.rice.kim.api.identity.Person currentUser)
hasEditPermissionOnField in interface AccountingLineAuthorizeraccountingDocument - the given accounting documentaccountingLine - the given accounting line in the documentaccountingLineCollectionProperty - the property of the collection the given accounting line is infieldName - the name of a field in the given accounting lineeditableLine - whether the parent line of this field is editableeditablePage - whether the parent page of this field is editablecurrentUser - the current userAccountingLineAuthorizer.hasEditPermissionOnField(org.kuali.ole.sys.document.AccountingDocument, org.kuali.ole.sys.businessobject.AccountingLine, java.lang.String, java.lang.String, boolean, boolean, org.kuali.rice.kim.api.identity.Person)public boolean isGroupEditable(AccountingDocument accountingDocument, List<? extends AccountingLineRenderingContext> accountingLineRenderingContexts, org.kuali.rice.kim.api.identity.Person currentUser)
AccountingLineAuthorizerisGroupEditable in interface AccountingLineAuthorizeraccountingDocument - the accounting document which the collection of line are onaccountingLineRenderingContexts - the accounting lines of the group, wrapped in AccountingLineRenderingContext implementationscurrentUser - the current userpublic boolean renderNewLine(AccountingDocument accountingDocument, String accountingGroupProperty)
AccountingLineAuthorizerrenderNewLine in interface AccountingLineAuthorizeraccountingDocument - the document that has accounting lines being authorizedaccountingGroupProperty - the property of this accounting grouppublic void setLineAuthorizer(AccountingLineAuthorizer lineAuthorizer)
lineAuthorizer - The lineAuthorizer to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.