public interface ServerUtilityDataProvider
Modifier and Type | Interface and Description |
---|---|
static class |
ServerUtilityDataProvider.DATA_POLICY
Enum for specifying the policy that should be used for importing LiveView metadata.
|
Modifier and Type | Method and Description |
---|---|
void |
exportMetadata(File file,
String... resources)
utility to export LiveView metadata.
|
void |
exportMetadata(OutputStream outputStream,
String... resources)
Utility to export LiveView metadata.
|
StreambaseStreams |
getStreambaseStreams(String sbUri)
Utility to get all the input streams and output streams for a given Streambase URI.
|
Map<String,DataStatus> |
importMetadata(File file,
ServerUtilityDataProvider.DATA_POLICY dataPolicy,
String... resources)
Utility to import LiveView metadata.
|
Map<String,DataStatus> |
importMetadata(InputStream inputstream,
ServerUtilityDataProvider.DATA_POLICY dataPolicy,
String... resources)
Utility to import LiveView metadata.
|
Map<String,DataStatus> importMetadata(File file, ServerUtilityDataProvider.DATA_POLICY dataPolicy, String... resources) throws LiveViewException
file
- the File
that has the Json formatted data to be imported into LiveView.dataPolicy
- the ServerUtilityDataProvider.DATA_POLICY
to use during the import process.resources
- the LiveView resources to import such as alerts, workspaces and lvweb ('lvweb' is a high level representation for all LiveView web resources that will fetch all the web resources; to fetch the detailed list of web resources, use #getSupportedMetadataResources()
). If you do not provide any LiveView resources, the method helps you import all the data from the input file.DataStatus
gives the details of import process for the corresponding resource.LiveViewException
- throws LiveView exception in case of error while importing the data.Map<String,DataStatus> importMetadata(InputStream inputstream, ServerUtilityDataProvider.DATA_POLICY dataPolicy, String... resources) throws LiveViewException
inputstream
- the InputStream
to import the LiveView metadata from.dataPolicy
- the ServerUtilityDataProvider.DATA_POLICY
to use during the import process.resources
- the LiveView resources to import such as alerts, workspaces and lvweb ('lvweb' is a high level representation for all LiveView web resources that will fetch all the web resources; to fetch the detailed list of web resources, use #getSupportedMetadataResources()
). If you do not provide any LiveView resources, the method helps you import all the data from the input file.DataStatus
gives the details of import process for the corresponding resource.LiveViewException
- throws LiveView exception in case of error while importing the data.void exportMetadata(File file, String... resources) throws LiveViewException
file
- the File
to which the exported data is to be written.resources
- the LiveView resources to export such as alerts, workspaces and lvweb ('lvweb' is a high level representation for all LiveView web resources that will fetch all the web resources; to fetch the detailed list of web resources, use #getSupportedMetadataResources()
). If you do not provide any LiveView resources, all the LiveView metadata from the server is exported.LiveViewException
- throws LiveView exception in case of error while exporting the data.void exportMetadata(OutputStream outputStream, String... resources) throws LiveViewException
outputStream
- the OutputStream
to which the exported data is to be written.resources
- the LiveView resources to export such as alerts, workspaces and lvweb ('lvweb' is a high level representation for all LiveView web resources that will fetch all the web resources; to fetch the detailed list of web resources, use #getSupportedMetadataResources()
). If you do not provide any LiveView resources, all the LiveView metadata from the server is exported.LiveViewException
- throws LiveView exception in case of error while exporting the data.StreambaseStreams getStreambaseStreams(String sbUri) throws LiveViewException
StreambaseStreams
which has all the input and output streams for a given Streambase URI.LiveViewException
Copyright © 2015–2019 Cloud Software Group, Inc.. All rights reserved.