|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kim.impl.jaxb.KimImporterAndExporter
public class KimImporterAndExporter
Imports and exports roles and permissions from/to XML via JAXB.
TODO: Do we need to restrict XML additions or updates based on which user is performing the ingestion?
TODO: It may be best to make this class into a "service" instead.
| Constructor Summary | |
|---|---|
KimImporterAndExporter()
|
|
| Method Summary | |
|---|---|
void |
export(Class<?> dataObjectClass,
List<? extends Object> dataObjects,
String exportFormat,
OutputStream outputStream)
Exports the List of BusinessObjects to the specified ExportFormat. |
List<String> |
getSupportedFormats(Class<?> dataObjectClass)
Returns a List of ExportFormats supported by this Exporter for the given DataOject class. |
void |
loadXml(InputStream inputStream,
String principalId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KimImporterAndExporter()
| Method Detail |
|---|
public void loadXml(InputStream inputStream,
String principalId)
loadXml in interface XmlLoaderXmlLoader.loadXml(java.io.InputStream, java.lang.String)
public void export(Class<?> dataObjectClass,
List<? extends Object> dataObjects,
String exportFormat,
OutputStream outputStream)
throws IOException,
ExportNotSupportedException
Exporter
export in interface ExporterdataObjectClass - the type of DataObjects being exportedexportFormat - the export format in which to export the DataObjectsoutputStream - the OutputStream to write the exported data to
IOException - if the process encounters an I/O issue
ExportNotSupportedException - if the given ExportFormat is not supportedExporter.export(java.lang.Class, java.util.List, java.lang.String, java.io.OutputStream)public List<String> getSupportedFormats(Class<?> dataObjectClass)
Exporter
getSupportedFormats in interface ExporterdataObjectClass - the class of the DataObjects being exported
Exporter.getSupportedFormats(java.lang.Class)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||