org.kuali.rice.kim.impl.jaxb
Class KimXmlUtil

java.lang.Object
  extended by org.kuali.rice.kim.impl.jaxb.KimXmlUtil

public final class KimXmlUtil
extends Object

Helper class for importing and exporting KIM XML.

TODO: Should this be converted into a service instead?

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
static void exportKimXml(OutputStream outputStream, List<? extends Object> permissions, List<? extends Object> roles)
          Exports one or more sets of KIM objects to XML.
static void parseKimXml(InputStream inputStream)
          Parses permissions and/or roles from XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseKimXml

public static void parseKimXml(InputStream inputStream)
Parses permissions and/or roles from XML.

Parameters:
inputStream - The input stream to read the XML from.

exportKimXml

public static void exportKimXml(OutputStream outputStream,
                                List<? extends Object> permissions,
                                List<? extends Object> roles)
Exports one or more sets of KIM objects to XML.

Parameters:
outputStream - The output stream to write the XML to.
permissions - The KIM permissions to export; set to a null or empty list to prevent exportation of a <permissionData> element.
roles - The KIM roles to export; set to a null or empty list to prevent exportation of a <roleData> element.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.