Package org.intermine.api.userprofile
Class UserProfile
- java.lang.Object
-
- org.intermine.api.userprofile.UserProfile
-
- All Implemented Interfaces:
FastPathObject
,InterMineFastPathObject
,InterMineObject
public class UserProfile extends java.lang.Object implements InterMineObject
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
apiKey
protected java.lang.Integer
id
protected boolean
localAccount
protected java.lang.String
password
protected java.util.Set<PermanentToken>
permanentTokens
protected java.util.Set<SavedBag>
savedBags
protected java.util.Set<SavedQuery>
savedQuerys
protected java.util.Set<SavedTemplateQuery>
savedTemplateQuerys
protected boolean
superuser
protected java.util.Set<Tag>
tags
protected java.lang.String
username
-
Constructor Summary
Constructors Constructor Description UserProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCollectionElement(java.lang.String fieldName, InterMineObject element)
void
addPermanentTokens(PermanentToken arg)
void
addSavedBags(SavedBag arg)
void
addSavedQuerys(SavedQuery arg)
void
addSavedTemplateQuerys(SavedTemplateQuery arg)
void
addTags(Tag arg)
boolean
equals(java.lang.Object o)
java.lang.String
getApiKey()
java.lang.Class<?>
getElementType(java.lang.String fieldName)
Returns the element type of a collection by name.java.lang.Object
getFieldProxy(java.lang.String fieldName)
Returns the value of a field without dereferencing any ProxyReference objects.java.lang.Class<?>
getFieldType(java.lang.String fieldName)
Returns the type of a field by name.java.lang.Object
getFieldValue(java.lang.String fieldName)
Returns the value of a field by name.java.lang.Integer
getId()
Getter for the ID field - ensures that every object in the database has an ID.boolean
getLocalAccount()
StringConstructor
getoBJECT()
Returns the NotXml serialised version of this object.java.lang.String
getPassword()
java.util.Set<PermanentToken>
getPermanentTokens()
java.util.Set<SavedBag>
getSavedBags()
java.util.Set<SavedQuery>
getSavedQuerys()
java.util.Set<SavedTemplateQuery>
getSavedTemplateQuerys()
boolean
getSuperuser()
java.util.Set<Tag>
getTags()
java.lang.String
getUsername()
int
hashCode()
void
setApiKey(java.lang.String apiKey)
void
setFieldValue(java.lang.String fieldName, java.lang.Object value)
Sets the value of a field by name.void
setId(java.lang.Integer id)
Setter for the ID field.void
setLocalAccount(boolean localAccount)
void
setoBJECT(java.lang.String[] notXml, ObjectStore os)
Sets the values of the fields to the values in the given split NotXml.void
setoBJECT(java.lang.String notXml, ObjectStore os)
Sets the values of the fields to the values in the given NotXml.void
setPassword(java.lang.String password)
void
setPermanentTokens(java.util.Set<PermanentToken> permanentTokens)
void
setSavedBags(java.util.Set<SavedBag> savedBags)
void
setSavedQuerys(java.util.Set<SavedQuery> savedQuerys)
void
setSavedTemplateQuerys(java.util.Set<SavedTemplateQuery> savedTemplateQuerys)
void
setSuperuser(boolean superuser)
void
setTags(java.util.Set<Tag> tags)
void
setUsername(java.lang.String username)
java.lang.String
toString()
-
-
-
Field Detail
-
username
protected java.lang.String username
-
password
protected java.lang.String password
-
apiKey
protected java.lang.String apiKey
-
localAccount
protected boolean localAccount
-
superuser
protected boolean superuser
-
savedBags
protected java.util.Set<SavedBag> savedBags
-
savedQuerys
protected java.util.Set<SavedQuery> savedQuerys
-
savedTemplateQuerys
protected java.util.Set<SavedTemplateQuery> savedTemplateQuerys
-
tags
protected java.util.Set<Tag> tags
-
permanentTokens
protected java.util.Set<PermanentToken> permanentTokens
-
id
protected java.lang.Integer id
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
-
setUsername
public void setUsername(java.lang.String username)
-
getPassword
public java.lang.String getPassword()
-
setPassword
public void setPassword(java.lang.String password)
-
getApiKey
public java.lang.String getApiKey()
-
setApiKey
public void setApiKey(java.lang.String apiKey)
-
getLocalAccount
public boolean getLocalAccount()
-
setLocalAccount
public void setLocalAccount(boolean localAccount)
-
getSuperuser
public boolean getSuperuser()
-
setSuperuser
public void setSuperuser(boolean superuser)
-
getSavedBags
public java.util.Set<SavedBag> getSavedBags()
-
setSavedBags
public void setSavedBags(java.util.Set<SavedBag> savedBags)
-
addSavedBags
public void addSavedBags(SavedBag arg)
-
getSavedQuerys
public java.util.Set<SavedQuery> getSavedQuerys()
-
setSavedQuerys
public void setSavedQuerys(java.util.Set<SavedQuery> savedQuerys)
-
addSavedQuerys
public void addSavedQuerys(SavedQuery arg)
-
getSavedTemplateQuerys
public java.util.Set<SavedTemplateQuery> getSavedTemplateQuerys()
-
setSavedTemplateQuerys
public void setSavedTemplateQuerys(java.util.Set<SavedTemplateQuery> savedTemplateQuerys)
-
addSavedTemplateQuerys
public void addSavedTemplateQuerys(SavedTemplateQuery arg)
-
getTags
public java.util.Set<Tag> getTags()
-
setTags
public void setTags(java.util.Set<Tag> tags)
-
addTags
public void addTags(Tag arg)
-
getPermanentTokens
public java.util.Set<PermanentToken> getPermanentTokens()
-
setPermanentTokens
public void setPermanentTokens(java.util.Set<PermanentToken> permanentTokens)
-
addPermanentTokens
public void addPermanentTokens(PermanentToken arg)
-
getId
public java.lang.Integer getId()
Description copied from interface:InterMineObject
Getter for the ID field - ensures that every object in the database has an ID.- Specified by:
getId
in interfaceInterMineFastPathObject
- Specified by:
getId
in interfaceInterMineObject
- Returns:
- an Integer
-
setId
public void setId(java.lang.Integer id)
Description copied from interface:InterMineObject
Setter for the ID field.- Specified by:
setId
in interfaceInterMineFastPathObject
- Specified by:
setId
in interfaceInterMineObject
- Parameters:
id
- an Integer
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getFieldValue
public java.lang.Object getFieldValue(java.lang.String fieldName) throws java.lang.IllegalAccessException
Description copied from interface:FastPathObject
Returns the value of a field by name.- Specified by:
getFieldValue
in interfaceFastPathObject
- Parameters:
fieldName
- the name of the field- Returns:
- the value of the field
- Throws:
java.lang.IllegalAccessException
- when something goes wrong
-
getFieldProxy
public java.lang.Object getFieldProxy(java.lang.String fieldName) throws java.lang.IllegalAccessException
Description copied from interface:FastPathObject
Returns the value of a field without dereferencing any ProxyReference objects.- Specified by:
getFieldProxy
in interfaceFastPathObject
- Parameters:
fieldName
- the name of the field- Returns:
- the value of the field, or a ProxyReference representing it
- Throws:
java.lang.IllegalAccessException
- when something goes wrong
-
setFieldValue
public void setFieldValue(java.lang.String fieldName, java.lang.Object value)
Description copied from interface:FastPathObject
Sets the value of a field by name.- Specified by:
setFieldValue
in interfaceFastPathObject
- Parameters:
fieldName
- the name of the fieldvalue
- the value of the field, or a ProxyReference representing it
-
getFieldType
public java.lang.Class<?> getFieldType(java.lang.String fieldName)
Description copied from interface:FastPathObject
Returns the type of a field by name.- Specified by:
getFieldType
in interfaceFastPathObject
- Parameters:
fieldName
- the name of the field- Returns:
- the type of the field
-
getoBJECT
public StringConstructor getoBJECT()
Description copied from interface:InterMineObject
Returns the NotXml serialised version of this object.- Specified by:
getoBJECT
in interfaceInterMineFastPathObject
- Specified by:
getoBJECT
in interfaceInterMineObject
- Returns:
- a StringConstructor containing the NotXml
-
setoBJECT
public void setoBJECT(java.lang.String notXml, ObjectStore os)
Description copied from interface:InterMineObject
Sets the values of the fields to the values in the given NotXml.- Specified by:
setoBJECT
in interfaceInterMineObject
- Parameters:
notXml
- a String containing NotXml for this classos
- an ObjectStore from which to create proxies
-
setoBJECT
public void setoBJECT(java.lang.String[] notXml, ObjectStore os)
Description copied from interface:InterMineObject
Sets the values of the fields to the values in the given split NotXml.- Specified by:
setoBJECT
in interfaceInterMineObject
- Parameters:
notXml
- a String array containing the NotXml split with the delimiteros
- an ObjectStore from which to create proxies
-
addCollectionElement
public void addCollectionElement(java.lang.String fieldName, InterMineObject element)
-
getElementType
public java.lang.Class<?> getElementType(java.lang.String fieldName)
Description copied from interface:InterMineObject
Returns the element type of a collection by name.- Specified by:
getElementType
in interfaceInterMineFastPathObject
- Specified by:
getElementType
in interfaceInterMineObject
- Parameters:
fieldName
- the name of the collection- Returns:
- the type of the elements of the collection
-
-