|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.sec.document.authorization.SecAccountingLineAuthorizer
public class SecAccountingLineAuthorizer
AccountingLineAuthorizer that wraps access security checks around another AccountingLineAuthorizer configured for the document type
| Field Summary | |
|---|---|
protected AccountingLineAuthorizer |
lineAuthorizer
|
| Constructor Summary | |
|---|---|
SecAccountingLineAuthorizer()
|
|
| 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)
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.bo.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.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) |
void |
setLineAuthorizer(AccountingLineAuthorizer lineAuthorizer)
Sets the lineAuthorizer attribute value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AccountingLineAuthorizer lineAuthorizer
| Constructor Detail |
|---|
public SecAccountingLineAuthorizer()
| Method Detail |
|---|
public List<AccountingLineViewAction> getActions(AccountingDocument accountingDocument,
AccountingLineRenderingContext accountingLineRenderingContext,
String accountingLinePropertyName,
Integer lineIndex,
org.kuali.rice.kim.bo.Person currentUser,
String groupTitle)
AccountingLineAuthorizer
getActions 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 dictionary
public Set<String> getUnviewableBlocks(AccountingDocument accountingDocument,
AccountingLine accountingLine,
boolean newLine,
org.kuali.rice.kim.bo.Person currentUser)
AccountingLineAuthorizer
getUnviewableBlocks 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 not
public boolean hasEditPermissionOnAccountingLine(AccountingDocument accountingDocument,
AccountingLine accountingLine,
String accountingLineCollectionProperty,
org.kuali.rice.kim.bo.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 not
AccountingLineAuthorizer.hasEditPermissionOnAccountingLine(org.kuali.kfs.sys.document.AccountingDocument, org.kuali.kfs.sys.businessobject.AccountingLine, java.lang.String, org.kuali.rice.kim.bo.Person, boolean)
public boolean hasEditPermissionOnField(AccountingDocument accountingDocument,
AccountingLine accountingLine,
String accountingLineCollectionProperty,
String fieldName,
boolean editableLine,
boolean editablePage,
org.kuali.rice.kim.bo.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 user
AccountingLineAuthorizer.hasEditPermissionOnField(org.kuali.kfs.sys.document.AccountingDocument, org.kuali.kfs.sys.businessobject.AccountingLine, java.lang.String, java.lang.String, boolean, boolean, org.kuali.rice.kim.bo.Person)
public boolean isGroupEditable(AccountingDocument accountingDocument,
List<? extends AccountingLineRenderingContext> accountingLineRenderingContexts,
org.kuali.rice.kim.bo.Person currentUser)
AccountingLineAuthorizer
isGroupEditable 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 user
public boolean renderNewLine(AccountingDocument accountingDocument,
String accountingGroupProperty)
AccountingLineAuthorizer
renderNewLine in interface AccountingLineAuthorizeraccountingDocument - the document that has accounting lines being authorizedaccountingGroupProperty - the property of this accounting group
public void setLineAuthorizer(AccountingLineAuthorizer lineAuthorizer)
lineAuthorizer - The lineAuthorizer to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||