|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.web.ProfileBinding
public final class ProfileBinding
Code for reading and writing Profile objects as XML.
| Method Summary | |
|---|---|
protected static void |
getIdsFromObject(InterMineObject object,
Model model,
java.util.Set<java.lang.Integer> idsToSerialise)
For the given object, add its ID and all IDs of all objects in any of its primary keys to idsToSerialise. |
static void |
marshal(Profile profile,
ObjectStore os,
javax.xml.stream.XMLStreamWriter writer,
boolean writeUserAndPassword,
boolean writeQueries,
boolean writeTemplates,
boolean writeBags,
boolean writeTags,
boolean onlyConfigTags,
int version)
Convert a Profile to XML and write XML to given writer. |
static void |
marshal(Profile profile,
ObjectStore os,
javax.xml.stream.XMLStreamWriter writer,
int version)
Convert a Profile to XML and write XML to given writer. |
static Profile |
unmarshal(java.io.Reader reader,
ProfileManager profileManager,
java.lang.String username,
java.lang.String password,
java.util.Set<org.intermine.model.userprofile.Tag> tags,
ObjectStoreWriter osw,
int version)
Read a Profile from an XML stream Reader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void marshal(Profile profile,
ObjectStore os,
javax.xml.stream.XMLStreamWriter writer,
int version)
profile - the UserProfileos - the ObjectStore to use when looking up the ids of objects in bagswriter - the XMLStreamWriter to write toversion - the version number of the xml format, an attribute of the profile manager
public static void marshal(Profile profile,
ObjectStore os,
javax.xml.stream.XMLStreamWriter writer,
boolean writeUserAndPassword,
boolean writeQueries,
boolean writeTemplates,
boolean writeBags,
boolean writeTags,
boolean onlyConfigTags,
int version)
profile - the UserProfileos - the ObjectStore to use when looking up the ids of objects in bagswriter - the XMLStreamWriter to write towriteUserAndPassword - write username and passwordwriteQueries - save saved querieswriteTemplates - write saved templateswriteBags - write saved bagswriteTags - write saved tagsonlyConfigTags - if true, only save tags that contain a ':'version - the version number of the xml format, an attribute of the profile manager
protected static void getIdsFromObject(InterMineObject object,
Model model,
java.util.Set<java.lang.Integer> idsToSerialise)
object - the InterMineObject to addmodel - the Model to use for looking up ClassDescriptorsidsToSerialise - object ids are added to this Set
public static Profile unmarshal(java.io.Reader reader,
ProfileManager profileManager,
java.lang.String username,
java.lang.String password,
java.util.Set<org.intermine.model.userprofile.Tag> tags,
ObjectStoreWriter osw,
int version)
reader - contains the Profile XMLprofileManager - the ProfileManager to pass to the Profile constructorusername - default username - used if there is no username in the XMLpassword - default passwordtags - a set to populate with user tagsosw - an ObjectStoreWriter for the production database, to write bagsversion - the version of the XML format, an attribute on the ProfileManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||