Package org.kuali.rice.kim.impl.jaxb
Class KimImporterAndExporter
- java.lang.Object
-
- org.kuali.rice.kim.impl.jaxb.KimImporterAndExporter
-
public class KimImporterAndExporter extends Object implements XmlLoader, Exporter
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.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
-
Constructor Summary
Constructors Constructor Description KimImporterAndExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexport(Class<?> dataObjectClass, List<? extends Object> dataObjects, String exportFormat, OutputStream outputStream)List<String>getSupportedFormats(Class<?> dataObjectClass)voidloadXml(InputStream inputStream, String principalId)
-
-
-
Method Detail
-
loadXml
public void loadXml(InputStream inputStream, String principalId)
- Specified by:
loadXmlin interfaceXmlLoader- See Also:
XmlLoader.loadXml(java.io.InputStream, java.lang.String)
-
export
public void export(Class<?> dataObjectClass, List<? extends Object> dataObjects, String exportFormat, OutputStream outputStream) throws IOException, ExportNotSupportedException
- Specified by:
exportin interfaceExporter- Throws:
IOExceptionExportNotSupportedException- See Also:
Exporter.export(java.lang.Class, java.util.List, java.lang.String, java.io.OutputStream)
-
getSupportedFormats
public List<String> getSupportedFormats(Class<?> dataObjectClass)
- Specified by:
getSupportedFormatsin interfaceExporter- See Also:
Exporter.getSupportedFormats(java.lang.Class)
-
-