public class LoadExtractOM extends Object implements Serializable
This class is having APIs for loading/extracting various artifacts listed below.
1. Security.
2. Metadata.
3. MemberList.
4. Rules.
5. Module config.
6. Data.
The below code snippet explains how to load Data using loadData API.
List<DataLoadOptions> dataLoadOptions = new ArrayList<DataLoadOptions>();
DataLoadOptions dlOptions = new DataLoadOptions();
dlOptions.setAccumulateWithinFile(false);
dlOptions.setAppendToLogFile(false);
dlOptions.setContainSharesData(true);
dlOptions.setContainSubmissionPhaseData(false);
dlOptions.setDecimalChar("");
dlOptions.setDelimiter(";");
dlOptions.setDuplicates(DATALOAD_DUPLICATE_HANDLING.DATALOAD_MERGE);
dlOptions.setFileFormat(DATALOAD_FILE_FORMAT.DATALOAD_FILE_FORMAT_NATIVE);
dlOptions.loadCalculated = false;
dlOptions.setMode(LOAD_MODE.LOAD);
dlOptions.setThousandsChar("");
dlOptions.setUserFileName("C:\Data.dat");
dataLoadOptions.add(dlOptions);
String fileWithPath = new File("C:\Data.dat");
ArrayList<String> files = new ArrayList<String>(1);
files.add(fileWithPath);
LoadExtractOM loadOM = new LoadExtractOM(session);
List<Integer> taskIDs = loadOM.loadData(files, dataLoadOptions);
//need to check the running task completion status..
List<RunningTaskProgress> listStatus = new AdministrationOM(session).getCurrentTaskProgress(taskIDs);
| Constructor and Description |
|---|
LoadExtractOM(SessionInfo sessionInfo)
Creates an instance of the LoadExtractOM object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTemplate(String templateName)
Deletes a specific template from the user params table.
|
List<String> |
enumDataExtractTemplates()
Gets templates registered with extended analytics.
|
int |
extractData(DataExtractOptions dataOptions)
This method will extract data using the Extended Analytics extract engine.
|
LoadExtractInfo |
extractDrillableRegions1(List<String> regionNames)
extractDrillableRegions extracts Drillable Regions for an application.
|
LoadExtractStatus |
extractDrillableRegionsInternal(List<String> regionNames)
Internal Use Only
extractDrillableRegions extracts Drillable Regions for an application.
|
LoadExtractInfo |
extractICTransactions(ICTransactionsExtractOptions ICTOptions)
extractICTransactions extract ICTransaction for an Application.
|
LoadExtractStatus |
extractICTransactionsInternal(ICTransactionsExtractOptions ICTOptions)
Internal Use Only
extractICTransactions extract ICTransaction for an Application.
|
LoadExtractInfo |
extractJournals(JournalExtractOptions journalOptions)
extractJournals extract Journals for an Application.
|
LoadExtractStatus |
extractJournalsInternal(JournalExtractOptions journalOptions)
Internal Use Only
extractMetadata extract Metadata for an Application.
|
LoadExtractInfo |
extractMemberLists()
extractMemberLists extract MemberList for an Application.
|
LoadExtractStatus |
extractMemberListsInternal()
Internal Use Only
extractMemberLists extract MemberList for an Application.
|
LoadExtractInfo |
extractMetadata(MetadataExtractOptions metadataOptions)
extractMetadata extract Metadata for an Application.
|
LoadExtractStatus |
extractMetadataInternal(MetadataExtractOptions metadataOptions)
Internal Use Only
extractMetadata extract Metadata for an Application.
|
LoadExtractInfo |
extractModuleConfig()
extractModuleConfig extract ModuleConfig for an Application.
|
LoadExtractStatus |
extractModuleConfigInternal()
Internal Use Only
extractModuleConfig extract ModuleConfig for an Application.
|
LoadExtractInfo |
extractRules(RULESEXTRACT_FILE_FORMAT fileFormat)
extractRules extract rules for an Application.
|
LoadExtractStatus |
extractRulesInternal(RULESEXTRACT_FILE_FORMAT fileFormat)
Internal Use Only
extractRules extract rules for an Application.
|
LoadExtractInfo |
extractSecurity(SecurityExtractOptions securityOptions)
extractSecurity extract Security for an Application.
|
LoadExtractStatus |
extractSecurityInternal(SecurityExtractOptions securityOptions)
Internal Use Only
extractSecurity extract Security for an Application.
|
List<String> |
getDSNs()
Get list of DSNs.
|
ExtractTemplate |
getTemplate(String templateName)
Gets a specific template from the user params table.
|
List<Integer> |
loadData(List<String> filePaths,
List<DataLoadOptions> dataOptions)
loadData loads Data for an Application.
|
void |
loadDataAsynch(List<String> filePaths,
List<DataLoadOptions> dataOptions)
loadDataAsynch loads Data for an Application ,This is an asynchronous task, and the status can be tracked using Running task ID.
|
List<LoadExtractInfo> |
loadDocuments(List<File> files,
List<DocumentLoadOptions> documentOptions)
loadDocuments loads documents for an application.
|
List<LoadExtractStatus> |
loadDocumentsInternal(List<String> filePaths,
List<DocumentLoadOptions> documentOptions)
Internal Use Only
loadDocuments loads documents for an Application.
|
LoadExtractInfo |
loadDrillableRegions(File file,
DRILL_REGIONS_LOAD_MODE loadMode)
loadDrillableRegions loads ERPI Drillable Regions.
|
LoadExtractStatus |
loadDrillableRegionsInternal(String filePath,
DRILL_REGIONS_LOAD_MODE loadMode)
Internal Use Only
loadDrillableRegions loads ERPI Drillable Regions.
|
List<Integer> |
loadICTransactions(List<String> filePaths,
List<ICTransactionsLoadOptions> ICTOptions)
loadICTransactions loads ICTransactions for an Application.
|
void |
loadICTransactionsAsynch(List<String> filePaths,
List<ICTransactionsLoadOptions> ICTOptions)
loadICTransactionsAsynch loads ICTransactions for an Application Asynchronously.
|
List<LoadExtractInfo> |
loadJournals(List<File> files,
List<JournalLoadOptions> journalOptions)
loadJournals loads Journals for an Application.
|
List<LoadExtractStatus> |
loadJournalsInternal(List<String> filePaths,
List<JournalLoadOptions> journalOptions)
Internal Use Only
loadJournals loads Journals for an Application.
|
LoadExtractInfo |
loadMemberList(File file,
boolean scanOnly)
loadMemberList loads MemberList for an Application.
|
LoadExtractStatus |
loadMemberListInternal(String filePath,
boolean scanOnly)
Internal Use Only
loadMemberLists loads MemberLists for an Application.
|
LoadExtractInfo |
loadMetadata(File file,
MetadataLoadOptions metadataOptions)
LoadMetadata loads Metadata for an Application.
|
LoadExtractStatus |
loadMetadataInternal(String filePath,
MetadataLoadOptions metadataOptions)
Internal Use Only
LoadMetadata loads Metadata for an Application.
|
LoadExtractInfo |
loadModuleConfig(File file)
loadModuleConfig loads ModuleConfig for an Application.
|
LoadExtractStatus |
loadModuleConfigInternal(String filePath)
Internal Use Only
loadModuleConfig loads ModuleConfig for an Application.
|
LoadExtractInfo |
loadRule(File file,
RulesLoadOptions ruleOptions)
loadRule loads rule for an Application.
|
LoadExtractStatus |
loadRuleInternal(String filePath,
RulesLoadOptions ruleOptions)
Internal Use Only
loadRule loads rule for an Application.
|
LoadExtractInfo |
loadSecurity(File file,
SecurityLoadOptions securityOptions)
LoadSecurity loads Security for an Application.
|
LoadExtractStatus |
loadSecurityInternal(String filePath,
SecurityLoadOptions securityOptions)
Internal Use Only
LoadSecurity loads Security for an Application.
|
void |
saveTemplate(ExtractTemplate eTemplate)
Saves a template to the user parameters table.
|
public LoadExtractOM(SessionInfo sessionInfo) throws HFMException
sessionInfo - session informationHFMExceptionpublic List<String> getDSNs() throws HFMException
HFMExceptionpublic LoadExtractStatus loadSecurityInternal(String filePath, SecurityLoadOptions securityOptions) throws HFMException
filePath - The full filepathsecurityOptions - The SecurityLoadOptions objectHFMExceptionpublic LoadExtractStatus loadRuleInternal(String filePath, RulesLoadOptions ruleOptions) throws HFMException
filePath - The file path to be loadedruleOptions - The ruleLoadOptions objectHFMExceptionpublic LoadExtractStatus loadMetadataInternal(String filePath, MetadataLoadOptions metadataOptions) throws HFMException
filePath - The file path to be loadedmetadataOptions - The MetadataLoadOptions objectHFMExceptionpublic LoadExtractStatus loadMemberListInternal(String filePath, boolean scanOnly) throws HFMException
filePath - The file path to be loadedscanOnly - The Load or Scan OptionHFMExceptionpublic LoadExtractStatus loadModuleConfigInternal(String filePath) throws HFMException
filePath - The file path to be loaded.HFMExceptionpublic List<Integer> loadData(List<String> filePaths, List<DataLoadOptions> dataOptions) throws HFMException
filePaths - the full file paths to be loadeddataOptions - The list of DataLoadOptions object , one each corresponding to the input fileHFMExceptionpublic void loadDataAsynch(List<String> filePaths, List<DataLoadOptions> dataOptions) throws HFMException
filePaths - the file paths to be loadeddataOptions - The list of DataLoadOptions object , one each corresponding to the input fileHFMExceptionpublic void loadICTransactionsAsynch(List<String> filePaths, List<ICTransactionsLoadOptions> ICTOptions) throws HFMException
filePaths - the list of file path to be loadedICTOptions - list of ICTransactionsLoadOptions object , one each corresponding to the input fileHFMExceptionpublic List<Integer> loadICTransactions(List<String> filePaths, List<ICTransactionsLoadOptions> ICTOptions) throws HFMException
filePaths - the list of file path to be loadedICTOptions - list of ICTransactionsLoadOptions object , one each corresponding to the input fileHFMExceptionpublic LoadExtractStatus loadDrillableRegionsInternal(String filePath, DRILL_REGIONS_LOAD_MODE loadMode) throws HFMException
filePath - the full file paths to be loadedloadMode - DRILL_REGIONS_LOAD_MODEHFMExceptionpublic List<LoadExtractStatus> loadJournalsInternal(List<String> filePaths, List<JournalLoadOptions> journalOptions) throws HFMException
filePaths - the list of file paths to be loadedjournalOptions - list of JournalLoadOptions object , one each corresponding to the input fileHFMExceptionpublic List<LoadExtractStatus> loadDocumentsInternal(List<String> filePaths, List<DocumentLoadOptions> documentOptions) throws HFMException
filePaths - the list of file paths to be loadeddocumentOptions - The list of DocumentLoadOptions object , one each corresponding to the input fileHFMExceptionpublic LoadExtractStatus extractMetadataInternal(MetadataExtractOptions metadataOptions) throws HFMException
metadataOptions - The MetadataExtractOptions objectHFMExceptionpublic LoadExtractStatus extractJournalsInternal(JournalExtractOptions journalOptions) throws HFMException
journalOptions - The JournalExtractOptions objectHFMExceptionpublic LoadExtractStatus extractSecurityInternal(SecurityExtractOptions securityOptions) throws HFMException
securityOptions - The SecurityExtractOptions objectHFMExceptionpublic LoadExtractStatus extractICTransactionsInternal(ICTransactionsExtractOptions ICTOptions) throws HFMException
ICTOptions - The ICTransactionsExtractOptions objectHFMExceptionpublic LoadExtractStatus extractRulesInternal(RULESEXTRACT_FILE_FORMAT fileFormat) throws HFMException
fileFormat - - RULESEXTRACT_FILE_FORMATHFMExceptionpublic LoadExtractStatus extractMemberListsInternal() throws HFMException
HFMExceptionpublic LoadExtractStatus extractModuleConfigInternal() throws HFMException
HFMExceptionpublic int extractData(DataExtractOptions dataOptions) throws HFMException
dataOptions - The DataExtractOptions objectHFMExceptionpublic LoadExtractStatus extractDrillableRegionsInternal(List<String> regionNames) throws HFMException
regionNames - (urlNames)that need to extractHFMExceptionpublic List<String> enumDataExtractTemplates() throws HFMException
HFMExceptionpublic ExtractTemplate getTemplate(String templateName) throws HFMException
templateName - the name of the template to retrive from user params.HFMExceptionpublic void deleteTemplate(String templateName) throws HFMException
templateName - the name of the template to delete from user params.HFMExceptionpublic void saveTemplate(ExtractTemplate eTemplate) throws HFMException
eTemplate - the template to saveHFMExceptionpublic LoadExtractInfo loadSecurity(File file, SecurityLoadOptions securityOptions) throws HFMException
file - The security file to be loaded.securityOptions - The SecurityLoadOptions objectHFMExceptionpublic LoadExtractInfo loadRule(File file, RulesLoadOptions ruleOptions) throws HFMException
file - The Rule file to be loadedruleOptions - The ruleLoadOptions objectHFMExceptionpublic LoadExtractInfo loadMetadata(File file, MetadataLoadOptions metadataOptions) throws HFMException
file - The Metadata file path to be loadedmetadataOptions - The MetadataLoadOptions objectHFMExceptionpublic LoadExtractInfo loadMemberList(File file, boolean scanOnly) throws HFMException
file - The Member list file to be loadedscanOnly - The Load or Scan OptionHFMExceptionpublic LoadExtractInfo loadModuleConfig(File file) throws HFMException
file - The file to be loadedHFMExceptionpublic LoadExtractInfo loadDrillableRegions(File file, DRILL_REGIONS_LOAD_MODE loadMode) throws HFMException
file - , The File to be loaded.loadMode - DRILL_REGIONS_LOAD_MODEHFMExceptionpublic List<LoadExtractInfo> loadJournals(List<File> files, List<JournalLoadOptions> journalOptions) throws HFMException
files - the list of Files to be loadedjournalOptions - list of JournalLoadOptions object , one each corresponding to the input fileHFMExceptionpublic List<LoadExtractInfo> loadDocuments(List<File> files, List<DocumentLoadOptions> documentOptions) throws HFMException
files - list of Document Files to load.documentOptions - options.HFMExceptionpublic LoadExtractInfo extractSecurity(SecurityExtractOptions securityOptions) throws HFMException
securityOptions - The SecurityExtractOptions objectHFMExceptionpublic LoadExtractInfo extractRules(RULESEXTRACT_FILE_FORMAT fileFormat) throws HFMException
fileFormat - - RULESEXTRACT_FILE_FORMATHFMExceptionpublic LoadExtractInfo extractMetadata(MetadataExtractOptions metadataOptions) throws HFMException
metadataOptions - The MetadataExtractOptions objectHFMExceptionpublic LoadExtractInfo extractMemberLists() throws HFMException
HFMExceptionpublic LoadExtractInfo extractModuleConfig() throws HFMException
HFMExceptionpublic LoadExtractInfo extractJournals(JournalExtractOptions journalOptions) throws HFMException
journalOptions - The JournalExtractOptions objectHFMExceptionpublic LoadExtractInfo extractICTransactions(ICTransactionsExtractOptions ICTOptions) throws HFMException
ICTOptions - The ICTransactionsExtractOptions objectHFMExceptionpublic LoadExtractInfo extractDrillableRegions1(List<String> regionNames) throws HFMException
regionNames - (urlNames)that need to extractHFMExceptionCopyright 2007, 2026, Oracle. All rights reserved.