public interface AccountingLineAuthorizer
| 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)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.api.identity.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.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) | 
Set<String> getUnviewableBlocks(AccountingDocument accountingDocument, AccountingLine accountingLine, boolean newLine, org.kuali.rice.kim.api.identity.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 notList<AccountingLineViewAction> getActions(AccountingDocument accountingDocument, AccountingLineRenderingContext accountingLineRenderingContext, String accountingLinePropertyName, Integer lineIndex, org.kuali.rice.kim.api.identity.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 dictionaryboolean renderNewLine(AccountingDocument accountingDocument, String accountingGroupProperty)
accountingDocument - the document that has accounting lines being authorizedaccountingGroupProperty - the property of this accounting groupboolean isGroupEditable(AccountingDocument accountingDocument, List<? extends AccountingLineRenderingContext> accountingLineRenderingContexts, org.kuali.rice.kim.api.identity.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 userboolean hasEditPermissionOnField(AccountingDocument accountingDocument, AccountingLine accountingLine, String accountingLineCollectionProperty, String fieldName, boolean editableLine, boolean editablePage, org.kuali.rice.kim.api.identity.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 userboolean hasEditPermissionOnAccountingLine(AccountingDocument accountingDocument, AccountingLine accountingLine, String accountingLineCollectionProperty, org.kuali.rice.kim.api.identity.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 notCopyright © 2004–2014 The Kuali Foundation. All rights reserved.