Class ProfileManagerBinding


  • public final class ProfileManagerBinding
    extends java.lang.Object
    Code for reading and writing ProfileManager objects as XML
    Author:
    Kim Rutherford
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ZERO_PROFILE_VERSION
      Default version of profile if it is not specified.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void marshal​(ProfileManager profileManager, javax.xml.stream.XMLStreamWriter writer)
      Convert the contents of a ProfileManager to XML and write the XML to the given writer.
      static void unmarshal​(java.io.Reader reader, ProfileManager profileManager, ObjectStoreWriter osw)
      Read a ProfileManager from an XML stream Reader.
      static void unmarshal​(java.io.Reader reader, ProfileManager profileManager, ObjectStoreWriter osw, boolean abortOnError)
      Read a ProfileManager from an XML stream Reader
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ZERO_PROFILE_VERSION

        public static final java.lang.String ZERO_PROFILE_VERSION
        Default version of profile if it is not specified.
        See Also:
        Constant Field Values
    • Method Detail

      • marshal

        public static void marshal​(ProfileManager profileManager,
                                   javax.xml.stream.XMLStreamWriter writer)
        Convert the contents of a ProfileManager to XML and write the XML to the given writer.
        Parameters:
        profileManager - the ProfileManager
        writer - the XMLStreamWriter to write to
      • unmarshal

        public static void unmarshal​(java.io.Reader reader,
                                     ProfileManager profileManager,
                                     ObjectStoreWriter osw,
                                     boolean abortOnError)
        Read a ProfileManager from an XML stream Reader
        Parameters:
        reader - contains the ProfileManager XML
        profileManager - the ProfileManager to store the unmarshalled Profiles to
        osw - ObjectStoreWriter used to resolve object ids and write bags correspond to object in old bags.
        abortOnError - if true, throw an exception if there is a problem. If false, log the problem and continue if possible (used by read-userprofile-xml).
      • unmarshal

        public static void unmarshal​(java.io.Reader reader,
                                     ProfileManager profileManager,
                                     ObjectStoreWriter osw)
        Read a ProfileManager from an XML stream Reader. If there is a problem, throw an exception.
        Parameters:
        reader - contains the ProfileManager XML
        profileManager - the ProfileManager to store the unmarshalled Profiles to
        osw - ObjectStoreWriter used to resolve object ids and write bags correspond to object in old bags.