Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.flex.runtime.resource
Class BundleReplicationTask

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.ModelerTask
      extended by oracle.apps.fnd.applcore.flex.runtime.MonitoredModelerTask
          extended by oracle.apps.fnd.applcore.flex.runtime.resource.BundleReplicationTask

public class BundleReplicationTask
extends MonitoredModelerTask

A task that creates new resource bundles for a list of languages from existing replicable resource bundles.


Nested Class Summary
 
Nested classes/interfaces inherited from class oracle.apps.fnd.applcore.flex.runtime.ModelerTask
ModelerTask.State
 
Field Summary
protected  java.util.List<java.lang.String> bundleSearchPaths
          The paths where the bundles are.
protected  java.util.List<java.lang.String> languages
          The list of language codes.
 
Constructor Summary
protected BundleReplicationTask(java.util.List<java.lang.String> languages, java.util.List<java.lang.String> bundleSearchPaths)
          Constructs a task.
  BundleReplicationTask(java.lang.String... languages)
          Constructs a task for replicating all bundles found in /oracle/apps.
 
Method Summary
static void exportReplicableBundles(java.util.List<java.lang.String> searchPaths, java.lang.String exportPath, java.io.PrintWriter stdOut, boolean browseOnly)
          Exports all replicable bundles from MDS repository in the current ADF context.
 void performMonitoredTask(ModelerListener listener)
          Performs the task that needs to be monitored.
 
Methods inherited from class oracle.apps.fnd.applcore.flex.runtime.MonitoredModelerTask
notifyProgress, perform
 
Methods inherited from class oracle.apps.fnd.applcore.flex.runtime.ModelerTask
newProgressTracker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

languages

protected final java.util.List<java.lang.String> languages
The list of language codes.


bundleSearchPaths

protected final java.util.List<java.lang.String> bundleSearchPaths
The paths where the bundles are.

Constructor Detail

BundleReplicationTask

public BundleReplicationTask(java.lang.String... languages)
Constructs a task for replicating all bundles found in /oracle/apps.

Parameters:
languages - the list of language codes

BundleReplicationTask

protected BundleReplicationTask(java.util.List<java.lang.String> languages,
                                java.util.List<java.lang.String> bundleSearchPaths)
Constructs a task.

Parameters:
languages - the list of language codes
bundleSearchPaths - the paths where the bundles to be repilcated are
Method Detail

performMonitoredTask

public void performMonitoredTask(ModelerListener listener)
Description copied from class: MonitoredModelerTask
Performs the task that needs to be monitored.

Specified by:
performMonitoredTask in class MonitoredModelerTask
Parameters:
listener - the listener

exportReplicableBundles

public static final void exportReplicableBundles(java.util.List<java.lang.String> searchPaths,
                                                 java.lang.String exportPath,
                                                 java.io.PrintWriter stdOut,
                                                 boolean browseOnly)
                                          throws oracle.mds.exception.MDSException,
                                                 java.io.FileNotFoundException
Exports all replicable bundles from MDS repository in the current ADF context.

Parameters:
searchPaths - the paths where the replicable bundles are. If null or empty, the default search path (which is usually "/oracle/apps") is used.
exportPath - the file system path to export to
stdOut - the standard output for log messages. If null, System.out is used.*
browseOnly - true if only the list of files is needed. The list of files is printed to stdOut. If set to true, exportPath is ignored.
Throws:
oracle.mds.exception.MDSException - if an error occurs while exporting the bundles
java.io.FileNotFoundException - if the given export path does not exist
java.lang.NullPointerException - if the given export path is null

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.