| org.kuali.core.document.authorization.TransactionalDocumentAuthorizerBase org.kuali.kfs.document.authorization.AccountingDocumentAuthorizerBase
All known Subclasses: org.kuali.module.financial.document.authorization.AdvanceDepositDocumentAuthorizer, org.kuali.module.financial.document.authorization.CreditCardReceiptDocumentAuthorizer, org.kuali.module.financial.document.authorization.ProcurementCardDocumentAuthorizer, org.kuali.module.financial.document.authorization.CashReceiptDocumentAuthorizer, org.kuali.module.purap.document.authorization.PaymentRequestDocumentAuthorizer, org.kuali.module.purap.document.authorization.PurchaseOrderDocumentAuthorizer, org.kuali.module.purap.document.authorization.RequisitionDocumentAuthorizer, org.kuali.module.financial.document.authorization.JournalVoucherDocumentAuthorizer, org.kuali.module.purap.document.authorization.CreditMemoDocumentAuthorizer, org.kuali.module.financial.document.authorization.InternalBillingDocumentAuthorizer, org.kuali.module.financial.document.authorization.DisbursementVoucherDocumentAuthorizer, org.kuali.module.financial.document.authorization.ServiceBillingDocumentAuthorizer, org.kuali.module.labor.document.authorization.LaborExpenseDocumentAuthorizerBase, org.kuali.module.financial.document.authorization.BudgetAdjustmentDocumentAuthorizer,
getAccountingLineEditableFields | public Map getAccountingLineEditableFields(Document document, UniversalUser user)(Code) | | See Also: org.kuali.core.authorization.FinancialDocumentAuthorizer.getAccountingLineEditableFields(org.kuali.core.document.Documentorg.kuali.core.bo.user.KualiUser) |
getCurrentRouteLevels | protected static List getCurrentRouteLevels(KualiWorkflowDocument workflowDocument)(Code) | | A helper method for determining the route levels for a given document.
Parameters: workflowDocument - List |
getEditMode | public Map getEditMode(Document document, UniversalUser user, List sourceAccountingLines, List targetAccountingLines)(Code) | | The Kuali user interface code automatically reconstructs a complete document from a form's contents when a form is submitted,
even if that form's contents are invalid (specifically, the Source and TargetAccountingLines from the form are used even if
they contain invalid accountNumbers). Since the accounts referenced in the source and targetAccountingLines are used to
determine editMode, when a) the document is enroute; b) the user is an FO, and receives the document for approval; and c) the
user changes the accountNumbers on all accountingLines for which they are FO to something different or invalid, the form
builds a Document for which the user is FO of none of the accountingLines, which makes the editMode computation incorrectly
shift from EXPENSE_ENTRY to ACCOUNT_REVIEW, which makes it impossible for the user to restore the lines which they just
rendered invalid. The simplest way to avoid that is to allow the UI to pass in the baselineSource and target accountingLines,
so that the editability can be determined from them (since they are, by definition, valid and authoritative).
Note that document types which route straight to final will get an edit mode of VIEW_ONLY or FULL_ENTRY, never EXPENSE_ENTRY,
because even if the state is briefly enroute, the route level is never ORG_REVIEW or ACCOUNT_REVIEW.
See Also: org.kuali.module.financial.document.authorization.FinancialDocumentAuthorizer.getEditMode(org.kuali.core.document.Documentorg.kuali.core.bo.user.UniversalUserjava.util.Listjava.util.List) |
getEditableAccounts | public Map getEditableAccounts(TransactionalDocument document, ChartUser user)(Code) | | See Also: org.kuali.module.financial.document.authorization.FinancialDocumentAuthorizer.getEditableAccounts(org.kuali.core.document.TransactionalDocumentorg.kuali.module.chart.bo.ChartUser) |
userOwnsAnyAccountingLine | protected boolean userOwnsAnyAccountingLine(ChartUser user, List accountingLines)(Code) | | Parameters: accountingLines - Parameters: user - true if the given user is responsible for any accounting line of the given transactionalDocument |
|
|