org.intermine.web
Class ProfileManagerBinding

java.lang.Object
  extended by org.intermine.web.ProfileManagerBinding

public class ProfileManagerBinding
extends java.lang.Object

Code for reading and writing ProfileManager objects as XML


Field Summary
static java.lang.String ZERO_PROFILE_VERSION
          Default version of profile if it is not specified.
 
Constructor Summary
ProfileManagerBinding()
           
 
Method Summary
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, PkQueryIdUpgrader idUpgrader)
          Read a ProfileManager from an XML stream Reader.
static void unmarshal(java.io.Reader reader, ProfileManager profileManager, ObjectStoreWriter osw, PkQueryIdUpgrader idUpgrader, 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
Constructor Detail

ProfileManagerBinding

public ProfileManagerBinding()
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,
                             PkQueryIdUpgrader idUpgrader,
                             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
idUpgrader - the IdUpgrader to use to find objects in the new ObjectStore that 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,
                             PkQueryIdUpgrader idUpgrader)
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
idUpgrader - the IdUpgrader to use to find objects in the new ObjectStore that correspond to object in old bags.