public class JournalOM extends Object implements Serializable
| Constructor and Description |
|---|
JournalOM(SessionInfo sessionInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
addJournalGroups(List<JournalGroup> journalGroups)
Adds one or more journal groups to the application
|
Journal |
checkForValidJournal(String journalLabel,
String scenario,
String year,
String period)
This function checks whether a journal is valid or not
|
GridDefinition |
constructGridDef(List<JournalLineItem> lineItems,
List<JournalDimension> jrnlPOV)
Constructs the grid definition from the given line items.
|
void |
deleteAllJournalGroups()
Deletes all the journal groups currently in the application
|
void |
deleteJournalGroups(List<JournalGroup> journalGroups)
Deletes one or more journal groups from the application
|
void |
deleteJournalTemplates(List<String> templateLabels)
Deletes one or more journal templates from the application
|
List<JournalGroup> |
enumJournalGroups()
Enumerates the journal groups found for the current application
|
List<Integer> |
enumJournalIds(String scenario,
String year,
String period,
String value,
JournalFilter filter)
Retrieves the journal ids for a given pov and filter
|
List<JournalPeriod> |
enumJournalPeriods(String scenario,
String year)
Get the journal periods for the scenario/year combination
|
List<JournalDisplayLine> |
enumJournals(String scenario,
String year,
String period,
String value,
JournalFilter filter)
Retrieves the journal line info for the filter and pov
|
List<JournalDisplayLine> |
enumJournalsByIds(String scenario,
String year,
String period,
String value,
List<Integer> journalIds,
List<JOURNAL_COLUMN_TYPES> columnTypes)
Retrieves the journal info for the requested journal ids
|
List<JournalDisplayLine> |
enumJournalTemplates(TemplateFilter filter)
Gets the Journal Templates that match the file
|
List<JournalErrorDetail> |
generateJournalFromTemplate(String scenario,
String year,
String period,
List<String> journalLabels)
Method for generating labels from a template
|
JournalFilter |
getCurrentJournalFilter(boolean getSystemFilter)
Gets the currently set journal filter
|
TemplateFilter |
getCurrentTemplateFilter(boolean getSystemFilter)
Gets the currently set template filter
|
Journal |
getJournal(int journalId,
String scenario,
String year,
String period) |
Journal |
getJournal(int journalId,
String scenario,
String year,
String period,
boolean varianceRequired) |
Journal |
getJournalByName(String journalLabel,
String scenario,
String year,
String period)
Gets a journal with the specified name
|
Journal |
getJournalByName(String journalLabel,
String scenario,
String year,
String period,
boolean varianceRequired)
Gets a journal with the specified name
|
Journal |
getJournalTemplate(String templateLabel)
Retrieves a journal template with a given name
|
Journal |
getJournalTemplate(String templateLabel,
boolean varianceRequired)
Retrieves a journal template with a given name
|
JournalVariance |
getVariance(Journal journal,
REPORT_QUERY_TYPE type) |
void |
manageJournalPeriods(String scenario,
String year,
List<JournalPeriod> journalPeriods)
Set the journal periods for the specificed scenario/year combination
|
List<String> |
performJournalAction(List<String> journalLabels,
String scenario,
String year,
String period,
JOURNAL_ACTION journalAction)
Executes a journal action for a given set of journal labels, and pov
|
List<JournalErrorDetail> |
performScan(Journal journal)
Validates the contents of a journal
|
int |
saveJournal(Journal journal)
Saves the journal
|
void |
saveJournalTemplate(Journal template)
Saves the journal template
|
void |
setCurrentJournalFilter(JournalFilter journalFilter)
Sets the current journal filter for the user in the current applicaiton
|
void |
setCurrentTemplateFilter(TemplateFilter templateFilter)
Sets the current template filter for the user in the current applicaiton
|
String |
validateJournalPOV(String povStr)
Validates the POV for a Journal, checks that the account is valid, that the custom members are
contained in the decendants list of the account's customXTopMember and that if ICP is enabled
and the ICP member is valid
|
public JournalOM(SessionInfo sessionInfo) throws HFMException
HFMExceptionpublic List<JournalGroup> enumJournalGroups() throws HFMException
HFMExceptionpublic void addJournalGroups(List<JournalGroup> journalGroups) throws HFMException
journalGroups - the groups to addHFMExceptionpublic void deleteJournalGroups(List<JournalGroup> journalGroups) throws HFMException
journalGroups - the groups to deleteHFMExceptionpublic void deleteAllJournalGroups()
throws HFMException
HFMExceptionpublic List<JournalPeriod> enumJournalPeriods(String scenario, String year) throws HFMException
scenario - the scenario for which the periods will be retrievedyear - the year for which the periods will be retrievedHFMExceptionpublic void manageJournalPeriods(String scenario, String year, List<JournalPeriod> journalPeriods) throws HFMException
scenario - the scenario for the journal periodsyear - the year for the journal periodsjournalPeriods - the periods and the status that they need to be set toHFMExceptionpublic List<JournalDisplayLine> enumJournals(String scenario, String year, String period, String value, JournalFilter filter) throws HFMException
scenario - Scenario for which journals display info to be retreivedyear - Year for which journals display info to be retreivedperiod - Period for which journals display info to be retreivedvalue - Value for which journals display info to be retreivedfilter - journal filter optionsHFMExceptionpublic List<JournalDisplayLine> enumJournalsByIds(String scenario, String year, String period, String value, List<Integer> journalIds, List<JOURNAL_COLUMN_TYPES> columnTypes) throws HFMException
scenario - Scenario for which journals display info to be retreivedyear - Yesr for which journals display info to be retreivedperiod - Period for which journals display info to be retreivedvalue - Value for which journals display info to be retreivedjournalIds - journal ids for which data has to be retreivedcolumnTypes - columns to be retrievedHFMExceptionpublic List<Integer> enumJournalIds(String scenario, String year, String period, String value, JournalFilter filter) throws HFMException
scenario - Scenario for which journals display info to be retrievedyear - Year for which journals display info to be retrievedperiod - Period for which journals display info to be retrievedvalue - Value for which journals display info to be retrievedfilter - journal filter optionsHFMExceptionpublic List<JournalDisplayLine> enumJournalTemplates(TemplateFilter filter) throws HFMException
filter - the filter to matchHFMExceptionpublic Journal getJournal(int journalId, String scenario, String year, String period) throws HFMException
HFMExceptionpublic Journal getJournal(int journalId, String scenario, String year, String period, boolean varianceRequired) throws HFMException
HFMExceptionpublic Journal getJournalByName(String journalLabel, String scenario, String year, String period) throws HFMException
journalLabel - the name of the journalscenario - the scenario for the journalyear - the year for the journalperiod - the period for the journalHFMExceptionpublic Journal getJournalByName(String journalLabel, String scenario, String year, String period, boolean varianceRequired) throws HFMException
journalLabel - the name of the journalscenario - the scenario for the journalyear - the year for the journalperiod - the period for the journalvarianceRequired - whether to return variance infoHFMExceptionpublic Journal checkForValidJournal(String journalLabel, String scenario, String year, String period) throws HFMException
journalLabel - the journal namescenario - the scenario for the journalyear - the year for the journalperiod - the period for the journalHFMExceptionpublic Journal getJournalTemplate(String templateLabel) throws HFMException
templateLabel - the name of the templateHFMExceptionpublic Journal getJournalTemplate(String templateLabel, boolean varianceRequired) throws HFMException
templateLabel - the name of the templatevarianceRequired - whether to get variance informationHFMExceptionpublic int saveJournal(Journal journal) throws HFMException
journal - objectHFMExceptionpublic void saveJournalTemplate(Journal template) throws HFMException
template - Journal objectHFMExceptionpublic List<String> performJournalAction(List<String> journalLabels, String scenario, String year, String period, JOURNAL_ACTION journalAction) throws HFMException
journalLabels - the journals action will be taken onscenario - the scenario the journals are foryear - the year the journals are forperiod - the period the journals are forjournalAction - the action to takeHFMExceptionpublic void deleteJournalTemplates(List<String> templateLabels) throws HFMException
templateLabels - the name of the templates to deleteHFMExceptionpublic List<JournalErrorDetail> performScan(Journal journal) throws HFMException
journal - the journal to validateHFMExceptionpublic JournalFilter getCurrentJournalFilter(boolean getSystemFilter) throws HFMException
HFMExceptionpublic TemplateFilter getCurrentTemplateFilter(boolean getSystemFilter) throws HFMException
HFMExceptionpublic void setCurrentJournalFilter(JournalFilter journalFilter) throws HFMException
journalFilter - the journal filter to setHFMExceptionpublic void setCurrentTemplateFilter(TemplateFilter templateFilter) throws HFMException
templateFilter - the template filter to setHFMExceptionpublic JournalVariance getVariance(Journal journal, REPORT_QUERY_TYPE type) throws HFMException
HFMExceptionpublic String validateJournalPOV(String povStr) throws HFMException
povStr - HFMExceptionpublic List<JournalErrorDetail> generateJournalFromTemplate(String scenario, String year, String period, List<String> journalLabels) throws HFMException
scenario - The scenario to useyear - The year to useperiod - The period to usejournalLabels - The labels of the journals to be generatedHFMExceptionpublic GridDefinition constructGridDef(List<JournalLineItem> lineItems, List<JournalDimension> jrnlPOV) throws HFMException
GridDefinition is prepared with the following rules.
jrnlPOV.
"Entity Currency", columns will have 3 value members which will be "Entity Currency, Entity Curr Adjs and Entity Curr Total".
"Parent Curr Adjs", columns will have 3 value members which will be "Parent Currency, Parent Curr Adjs and Parent Curr Total".
"[Parent Adjs]", columns will have 6 value members which will be "Entity Currency, Entity Curr Adjs,Entity Curr Total, [Parent], [Parent Adjs] and [Parent Total]".
"[Contribution Adjs]", columns will have 6 value members which will be "Entity Currency, Entity Curr Adjs,Entity Curr Total, [Contribution],[Contribution Adjs] and [Contribution Total]".
lineItems - list of JournalLineItem which will be parsed for constructing Grid DefinitionjrnlPOV - list of JournalDimensionGridDefinition, null if lineItems is empty or if jrnlPOV does not have "Value" dimension memberHFMException - when the value dimension member is of "[Proportion]" or "[Elimination]"Copyright 2007, 2026, Oracle. All rights reserved.