|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccountingLineAuthorizer
Methods used to determine certain permissions associated with an accounting line.
Method Summary | |
---|---|
List<AccountingLineViewAction> |
getActions(AccountingDocument accountingDocument,
AccountingLineRenderingContext accountingLineRenderingContext,
String accountingLinePropertyName,
Integer lineIndex,
org.kuali.rice.kim.bo.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.bo.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.bo.Person currentUser,
boolean pageIsEditable)
determine whether the current user has permission to edit the given accounting line as a whole |
boolean |
hasEditPermissionOnField(AccountingDocument accountingDocument,
AccountingLine accountingLine,
String accountingLineCollectionProperty,
String fieldName,
boolean editableLine,
boolean editablePage,
org.kuali.rice.kim.bo.Person currentUser)
determine whether the current user has permission to edit the given field in the given accounting line |
boolean |
isGroupEditable(AccountingDocument accountingDocument,
List<? extends AccountingLineRenderingContext> accountingLineRenderingContexts,
org.kuali.rice.kim.bo.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) |
Method Detail |
---|
Set<String> getUnviewableBlocks(AccountingDocument accountingDocument, AccountingLine accountingLine, boolean newLine, org.kuali.rice.kim.bo.Person currentUser)
accountingDocument
- 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 not
List<AccountingLineViewAction> getActions(AccountingDocument accountingDocument, AccountingLineRenderingContext accountingLineRenderingContext, String accountingLinePropertyName, Integer lineIndex, org.kuali.rice.kim.bo.Person currentUser, String groupTitle)
accountingDocument
- 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 dictionary
boolean renderNewLine(AccountingDocument accountingDocument, String accountingGroupProperty)
accountingDocument
- the document that has accounting lines being authorizedaccountingGroupProperty
- the property of this accounting group
boolean isGroupEditable(AccountingDocument accountingDocument, List<? extends AccountingLineRenderingContext> accountingLineRenderingContexts, org.kuali.rice.kim.bo.Person currentUser)
accountingDocument
- the accounting document which the collection of line are onaccountingLineRenderingContexts
- the accounting lines of the group, wrapped in AccountingLineRenderingContext implementationscurrentUser
- the current user
boolean hasEditPermissionOnField(AccountingDocument accountingDocument, AccountingLine accountingLine, String accountingLineCollectionProperty, String fieldName, boolean editableLine, boolean editablePage, org.kuali.rice.kim.bo.Person currentUser)
accountingDocument
- 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 user
boolean hasEditPermissionOnAccountingLine(AccountingDocument accountingDocument, AccountingLine accountingLine, String accountingLineCollectionProperty, org.kuali.rice.kim.bo.Person currentUser, boolean pageIsEditable)
accountingDocument
- 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 not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |