public class AccountingLineOverride extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AccountingLineOverride.CODE
These codes are the way the override is persisted in the AccountingLine.
|
static class |
AccountingLineOverride.COMPONENT
These are the somewhat independent components of an override.
|
Modifier and Type | Field and Description |
---|---|
static List<String> |
REFRESH_FIELDS
The names of the AccountingLine properties that the processForOutput() and determineNeededOverrides() methods use.
|
Modifier and Type | Method and Description |
---|---|
static AccountingLineOverride |
determineNeededOverrides(AccountingDocument document,
AccountingLine line)
Determines what overrides the given line needs.
|
String |
getCode()
Gets the code of this override.
|
static org.kuali.rice.krad.document.Document |
getDocument(AccountingLine line) |
boolean |
hasComponent(Integer component)
Checks whether this override contains the given component.
|
static boolean |
isValidCode(String code)
Returns whether the given String is a valid override code.
|
static boolean |
isValidComponentSet(Integer[] components)
Returns whether the given Integers are a valid set of components.
|
boolean |
isValidMask(AccountingLineOverride mask)
Returns whether this override, when masked by the given override, is valid.
|
AccountingLineOverride |
mask(AccountingLineOverride mask)
Returns the AccountingLineOverride that has the components of this AccountingLineOverride minus any components not in the
given mask.
|
static boolean |
needsExpiredAccountOverride(Account account)
Returns whether the given account needs an expired account override.
|
static boolean |
needsExpiredAccountOverride(AccountingLine line,
boolean isDocumentFinalOrProcessed)
Returns whether the given account needs an expired account override.
|
static boolean |
needsNonFringAccountOverride(Account account)
Returns whether the given account needs an expired account override.
|
static boolean |
needsObjectBudgetOverride(Account account,
ObjectCode objectCode)
Returns whether the given object code needs an object budget override
|
static void |
populateFromInput(AccountingLine line)
On the given AccountingLine, converts override input checkboxes from a Struts Form into a persistable override code.
|
static void |
processForOutput(AccountingDocument document,
AccountingLine line)
Prepares the given AccountingLine in a Struts Action for display by a JSP.
|
String |
toString() |
static AccountingLineOverride |
valueOf(Integer[] components)
Factory method from components.
|
static AccountingLineOverride |
valueOf(Set components) |
static AccountingLineOverride |
valueOf(String code)
Factory method from code.
|
public static final List<String> REFRESH_FIELDS
public boolean hasComponent(Integer component)
component
- public String toString()
toString
in class Object
Object.toString()
public AccountingLineOverride mask(AccountingLineOverride mask)
&
(a bit-wise and), if the components were bits.mask
- IllegalArgumentException
- if there is no such valid combination of componentspublic boolean isValidMask(AccountingLineOverride mask)
mask
- public static boolean isValidCode(String code)
code
- public static boolean isValidComponentSet(Integer[] components)
components
- public static AccountingLineOverride valueOf(String code)
code
- the override codeIllegalArgumentException
- if the given code is not validpublic static AccountingLineOverride valueOf(Integer[] components)
components
- the override components, treated as a setIllegalArgumentException
- if the given set of components is not validpublic static AccountingLineOverride valueOf(Set components)
public static void populateFromInput(AccountingLine line)
line
- public static void processForOutput(AccountingDocument document, AccountingLine line)
line
- public static AccountingLineOverride determineNeededOverrides(AccountingDocument document, AccountingLine line)
line
- public static boolean needsExpiredAccountOverride(Account account)
account
- public static boolean needsExpiredAccountOverride(AccountingLine line, boolean isDocumentFinalOrProcessed)
account
- public static boolean needsNonFringAccountOverride(Account account)
account
- public static boolean needsObjectBudgetOverride(Account account, ObjectCode objectCode)
account
- public static org.kuali.rice.krad.document.Document getDocument(AccountingLine line)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.