|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.portal.provider.v2.transport.PrefStoreTransporter
public class PrefStoreTransporter
A PrefStoreTransporter
is capable of exporting/importing data from/to
a target PreferenceStore
. The
format of the data handled by a PrefStoreTransporter
is versioned to
facilitate backwards compatibility if new data formats are introduced.
Constructor Summary | |
---|---|
PrefStoreTransporter(PreferenceStore prefStore)
Constructs a PrefStoreTransporter instance which will operate on
the supplied PreferenceStore |
Method Summary | |
---|---|
byte[] |
exportData(java.lang.String contextPath,
java.util.List preferenceTypes,
PreferenceFilter filter,
TransportLogger logger)
Exports the data set stored under the supplied context path in the preference store. |
void |
importData(java.lang.String contextPath,
byte[] data,
TransportLogger logger)
Imports the supplied data set into the PreferenceStore under the supplied
context path. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrefStoreTransporter(PreferenceStore prefStore)
PrefStoreTransporter
instance which will operate on
the supplied PreferenceStore
prefStore
- the target PreferenceStore
.Method Detail |
---|
public byte[] exportData(java.lang.String contextPath, java.util.List preferenceTypes, PreferenceFilter filter, TransportLogger logger) throws PreferenceStoreException, java.io.IOException
PreferenceFilter
will be employed
to select a subset of data stored under the context path.
contextPath
- the context path under which the target data is
stored in the preference store.filter
- a PreferenceFilter
which will be
used to query the preference store. If null
all data for
stored under the supplied context path will be exported.logger
- the appropriate TransportLogger
to use for
communicating messages back to the export initiator.
byte[]
containing the exported data set.
PreferenceStoreException
java.io.IOException
public void importData(java.lang.String contextPath, byte[] data, TransportLogger logger) throws PreferenceStoreException, java.io.IOException
PreferenceStore
under the supplied
context path. Existing data will not be overwritten for that context
if overwrite
is false
.
contextPath
- the context under which data will be imported into
the PreferenceStore
.data
- the data set to import.logger
- the appropriate TransportLogger
to use for
communicating messages back to the import initiator.
PreferenceStoreException
java.io.IOException
|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |