| org.kuali.kfs.document.authorization.AccountingDocumentAuthorizer
All known Subclasses: org.kuali.kfs.document.authorization.AccountingDocumentAuthorizerBase,
AccountingDocumentAuthorizer | public interface AccountingDocumentAuthorizer extends TransactionalDocumentAuthorizer(Code) | | Extension to TransactionalDocumentAuthorizer interface which adds financial-document-specific methods.
|
getAccountingLineEditableFields | public Map getAccountingLineEditableFields(Document document, UniversalUser user)(Code) | | Parameters: document - Parameters: user - Map with field names as keys that are allowed to be edited in special edit modes. |
getEditMode | public Map getEditMode(Document document, UniversalUser user, List sourceAccountingLines, List targetAccountingLines)(Code) | | Variant version of getEditMode which uses passed-in sourceAccountingLines and targetAccountingLines instead of getting them
out of the given Document, since the Document may (when this gets called from KualiDocumentActionBase) contain invalid
accountingLines whose invalidity will prevent the editMode from being calculated correctly.
Parameters: document - Parameters: user - Parameters: sourceAccountingLines - Parameters: targetAccountingLines - Map with keys AuthorizationConstants.EditMode value (String) which indicates what operations the user is currentlyallowed to take on that document. |
getEditableAccounts | public Map getEditableAccounts(TransactionalDocument document, ChartUser user)(Code) | | Initially wanted to use a Set, but JSTL doesn't seem to allow me to navigate Sets as easily as Maps. Initially used Account
objects as keys, but the Accounts of AccountingLines are sometimes left unpopulated when you reach the JSP, so I had to add a
method to Account and to AccountingLine which would generate a well-formatted String from the primitive account-related keys
in an Account or AccountingLine; that well-formatted String is now used as the key in this Map.
Parameters: document - Parameters: user - Map of Account objects, indexed by accountKey (return value of account.buildAccountKey), which the given user shouldbe allowed to edit |
getEditableAccounts | public Map getEditableAccounts(List<AccountingLine> lines, ChartUser user)(Code) | | This method takes a list of accounting lines, and it returns a map with the keys being well-formatted representations of the
primary keys of the accounts that the given user can actually edit.
Parameters: lines - the accountingLine objects to check for editability. Parameters: user - the user to authorize each accounting line for a map with keys holding well formated primary keys of the editable accounts. |
|
|