@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class Experimenter extends java.lang.Object implements java.io.Serializable, IObject, IGlobal, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
Experimenter.Details |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
_dynamicFields |
protected boolean |
_loaded |
protected java.util.Set<ExperimenterAnnotationLink> |
annotationLinks |
static java.lang.String |
ANNOTATIONLINKS |
static java.lang.String |
ANNOTATIONLINKSCOUNTPEROWNER |
protected java.util.List<NamedValue> |
config |
static java.lang.String |
CONFIG |
protected Details |
details |
static java.lang.String |
DETAILS |
protected java.lang.String |
email |
static java.lang.String |
EMAIL |
static java.lang.String |
EVENT_FILTER_ANNOTATIONLINKS |
static java.util.Set<java.lang.String> |
FIELDS |
protected java.lang.String |
firstName |
static java.lang.String |
FIRSTNAME |
static java.lang.String |
GROUP_FILTER_ANNOTATIONLINKS |
protected java.util.List<GroupExperimenterMap> |
groupExperimenterMap |
static java.lang.String |
GROUPEXPERIMENTERMAP |
protected java.lang.Long |
id |
static java.lang.String |
ID |
protected java.lang.String |
institution |
static java.lang.String |
INSTITUTION |
protected java.lang.String |
lastName |
static java.lang.String |
LASTNAME |
protected java.lang.Boolean |
ldap |
static java.lang.String |
LDAP |
protected java.lang.String |
middleName |
static java.lang.String |
MIDDLENAME |
protected java.lang.String |
omeName |
static java.lang.String |
OMENAME |
static java.lang.String |
OWNER_FILTER_ANNOTATIONLINKS |
static java.lang.String |
PERMS_FILTER_ANNOTATIONLINKS |
protected java.lang.Integer |
version |
static java.lang.String |
VERSION |
Modifier | Constructor and Description |
---|---|
|
Experimenter() |
protected |
Experimenter(java.lang.Long id) |
|
Experimenter(java.lang.Long id,
boolean loaded)
Main constructor.
|
|
Experimenter(java.lang.String _omeName,
java.lang.String _firstName,
java.lang.String _lastName,
java.lang.Boolean _ldap) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addExperimenterAnnotationLink(ExperimenterAnnotationLink target)
use instead of setAnnotationLinks .
|
void |
addExperimenterAnnotationLink(ExperimenterAnnotationLink link,
boolean bothSides)
Adds a ome.model.annotations.ExperimenterAnnotationLink to annotationLinks, allowing for recursion -- whether
or not addExperimenterAnnotationLink will be called on the addition if it is loaded
|
void |
addExperimenterAnnotationLinkSet(java.util.Collection<ExperimenterAnnotationLink> targets)
use like addExperimenterAnnotationLink.
|
void |
addGroupExperimenterMap(GroupExperimenterMap target)
use instead of setGroupExperimenterMap .
|
void |
addGroupExperimenterMap(GroupExperimenterMap link,
boolean bothSides)
Adds a ome.model.meta.GroupExperimenterMap to groupExperimenterMap, allowing for recursion -- whether
or not addGroupExperimenterMap will be called on the addition if it is loaded
|
void |
addGroupExperimenterMapSet(java.util.Collection<GroupExperimenterMap> targets)
use like addGroupExperimenterMap.
|
void |
clearAnnotationLinks()
clears the set.
|
void |
clearExperimenterGroupLinks()
clears the set.
|
<E> java.util.List<E> |
collectAnnotationLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.ExperimenterAnnotationLink while
collecting the results.
|
<E> java.util.List<E> |
collectGroupExperimenterMap(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.meta.GroupExperimenterMap while
collecting the results.
|
<E> java.util.List<E> |
eachLinkedAnnotation(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.Annotation while
collecting the results.
|
<E> java.util.List<E> |
eachLinkedExperimenterGroup(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.meta.ExperimenterGroup while
collecting the results.
|
protected void |
errorIfUnloaded() |
java.util.Set<java.lang.String> |
fields()
returns a Set of field names that belong to this class
|
java.util.Set<ExperimenterAnnotationLink> |
findExperimenterAnnotationLink(Annotation target)
find all ome.model.annotations.ExperimenterAnnotationLink which have the argument as their child.
|
java.util.Set<GroupExperimenterMap> |
findGroupExperimenterMap(ExperimenterGroup target)
find all ome.model.meta.GroupExperimenterMap which have the argument as their parent.
|
protected java.util.Set<ExperimenterAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
java.util.Map<java.lang.Long,java.lang.Long> |
getAnnotationLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.annotations.ExperimenterAnnotationLink that a user has.
|
java.util.List<NamedValue> |
getConfig() |
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
java.lang.String |
getEmail()
Simple field ome.model.meta.Experimenter.email (java.lang.String)
|
java.lang.String |
getFirstName()
Simple field ome.model.meta.Experimenter.firstName (java.lang.String)
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
protected java.util.List<GroupExperimenterMap> |
getGroupExperimenterMap()
returns groupExperimenterMap .
|
GroupExperimenterMap |
getGroupExperimenterMap(int index)
Gets the ome.model.meta.GroupExperimenterMap at the given index.
|
java.lang.Long |
getId()
The DB unique identifier for this object.
|
java.lang.String |
getInstitution()
Simple field ome.model.meta.Experimenter.institution (java.lang.String)
|
java.lang.String |
getLastName()
Simple field ome.model.meta.Experimenter.lastName (java.lang.String)
|
java.lang.Boolean |
getLdap()
Simple field ome.model.meta.Experimenter.ldap (java.lang.Boolean)
|
java.lang.String |
getMiddleName()
Simple field ome.model.meta.Experimenter.middleName (java.lang.String)
|
java.lang.String |
getOmeName()
Simple field ome.model.meta.Experimenter.omeName (java.lang.String)
|
GroupExperimenterMap |
getPrimaryGroupExperimenterMap()
Gets the first element of groupExperimenterMap which can be interpreted as the
primary or default element in some situations.
|
java.lang.Integer |
getVersion()
This version number is controlled by the database for optimisitic
locking.
|
boolean |
isLoaded()
transient field (not stored in the DB) which specifies whether this
object has been loaded from the DB or is only a wrapper around the ID.
|
boolean |
isValid()
calls the class-specific validator for this instance and returns the
value from
Validation.isValid() |
java.util.Iterator<ExperimenterAnnotationLink> |
iterateAnnotationLinks()
should be used rather than accessing the annotationLinks set directly.
|
java.util.Iterator<GroupExperimenterMap> |
iterateGroupExperimenterMap()
should be used rather than accessing the groupExperimenterMap set directly.
|
ExperimenterAnnotationLink |
linkAnnotation(Annotation addition)
Adds a ome.model.annotations.ExperimenterAnnotationLink to annotationLinks .
|
java.util.Iterator<Annotation> |
linkedAnnotationIterator()
provides an iterator over the parent values of the annotationLinks.
|
java.util.List<Annotation> |
linkedAnnotationList()
produces a
List -copy of the underlying collection. |
java.util.Iterator<ExperimenterGroup> |
linkedExperimenterGroupIterator()
provides an iterator over the child values of the groupExperimenterMap.
|
java.util.List<ExperimenterGroup> |
linkedExperimenterGroupList()
produces a
List -copy of the underlying collection. |
GroupExperimenterMap |
linkExperimenterGroup(ExperimenterGroup addition)
Adds a ome.model.meta.GroupExperimenterMap to groupExperimenterMap .
|
Experimenter |
newInstance() |
Experimenter |
proxy() |
void |
putAt(java.lang.String field,
java.lang.Object value)
stores a value in this instance.
|
void |
removeExperimenterAnnotationLink(ExperimenterAnnotationLink target)
removes a single element from this set and makes the inverse call on ome.model.annotations.ExperimenterAnnotationLink
|
void |
removeExperimenterAnnotationLink(ExperimenterAnnotationLink link,
boolean bothSides)
removes the given ExperimenterAnnotationLink from annotationLinks, allowing for recursion -- whether
or not the removal will call unlinkExperimenter again if loaded.
|
void |
removeExperimenterAnnotationLinkSet(java.util.Collection<ExperimenterAnnotationLink> targets)
use like removeExperimenterAnnotationLink
|
void |
removeGroupExperimenterMap(GroupExperimenterMap target)
removes a single element from this set and makes the inverse call on ome.model.meta.GroupExperimenterMap
|
void |
removeGroupExperimenterMap(GroupExperimenterMap link,
boolean bothSides)
removes the given GroupExperimenterMap from groupExperimenterMap, allowing for recursion -- whether
or not the removal will call unlinkExperimenter again if loaded.
|
void |
removeGroupExperimenterMapSet(java.util.Collection<GroupExperimenterMap> targets)
use like removeGroupExperimenterMap
|
java.lang.Object |
retrieve(java.lang.String field)
retrieves a value from this instance.
|
protected void |
setAnnotationLinks(java.util.Set<ExperimenterAnnotationLink> annotationLinks)
setter for annotationLinks should be avoided.
|
protected void |
setAnnotationLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map) |
void |
setConfig(java.util.List<NamedValue> map) |
protected void |
setDetails(Details details) |
void |
setEmail(java.lang.String email) |
void |
setFirstName(java.lang.String firstName) |
GroupExperimenterMap |
setGroupExperimenterMap(int index,
GroupExperimenterMap element)
Sets the ome.model.meta.GroupExperimenterMap at the given index.
|
protected void |
setGroupExperimenterMap(java.util.List<GroupExperimenterMap> groupExperimenterMap)
setter for groupExperimenterMap should be avoided.
|
void |
setId(java.lang.Long id)
usually unneeded.
|
void |
setInstitution(java.lang.String institution) |
void |
setLastName(java.lang.String lastName) |
void |
setLdap(java.lang.Boolean ldap) |
void |
setMiddleName(java.lang.String middleName) |
void |
setOmeName(java.lang.String omeName) |
GroupExperimenterMap |
setPrimaryGroupExperimenterMap(GroupExperimenterMap element)
Swaps the first element of groupExperimenterMap with the first instance of the
given element.
|
void |
setVersion(java.lang.Integer version)
use with caution.
|
int |
sizeOfAnnotationLinks()
returns the size of annotationLinks.
|
int |
sizeOfGroupExperimenterMap()
returns the size of groupExperimenterMap.
|
protected void |
throwNullCollectionException(java.lang.String propertyName) |
java.lang.String |
toString() |
void |
unlinkAnnotation(Annotation removal)
unlinks all ome.model.annotations.Annotation instances from this instance.
|
void |
unlinkExperimenterGroup(ExperimenterGroup removal)
unlinks all ome.model.meta.ExperimenterGroup instances from this instance.
|
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
java.util.Collection<ExperimenterAnnotationLink> |
unmodifiableAnnotationLinks()
Returns an unmodifiable collection-view
|
java.util.Collection<GroupExperimenterMap> |
unmodifiableGroupExperimenterMap()
Returns an unmodifiable collection-view
|
Validation |
validate()
calls the class-specific validator for this instance and returns the
Validation object. |
public static final java.lang.String ID
protected java.lang.Long id
public static final java.lang.String VERSION
protected java.lang.Integer version
protected java.util.List<GroupExperimenterMap> groupExperimenterMap
protected java.lang.String omeName
protected java.lang.String firstName
protected java.lang.String middleName
protected java.lang.String lastName
protected java.lang.String institution
protected java.lang.Boolean ldap
protected java.lang.String email
protected java.util.List<NamedValue> config
protected java.util.Set<ExperimenterAnnotationLink> annotationLinks
public static final java.lang.String OWNER_FILTER_ANNOTATIONLINKS
public static final java.lang.String GROUP_FILTER_ANNOTATIONLINKS
public static final java.lang.String EVENT_FILTER_ANNOTATIONLINKS
public static final java.lang.String PERMS_FILTER_ANNOTATIONLINKS
protected Details details
public static final java.lang.String GROUPEXPERIMENTERMAP
public static final java.lang.String OMENAME
public static final java.lang.String FIRSTNAME
public static final java.lang.String MIDDLENAME
public static final java.lang.String LASTNAME
public static final java.lang.String INSTITUTION
public static final java.lang.String LDAP
public static final java.lang.String EMAIL
public static final java.lang.String CONFIG
public static final java.lang.String ANNOTATIONLINKSCOUNTPEROWNER
public static final java.lang.String ANNOTATIONLINKS
public static final java.lang.String DETAILS
public static final java.util.Set<java.lang.String> FIELDS
protected java.util.Map<java.lang.String,java.lang.Object> _dynamicFields
protected boolean _loaded
public Experimenter()
protected Experimenter(java.lang.Long id)
public Experimenter(java.lang.Long id, boolean loaded)
public Experimenter(java.lang.String _omeName, java.lang.String _firstName, java.lang.String _lastName, java.lang.Boolean _ldap)
@DocumentId public java.lang.Long getId()
public void setId(java.lang.Long id)
IObject
public java.lang.Integer getVersion()
getVersion
in interface IMutable
public void setVersion(java.lang.Integer version)
IMutable
setVersion
in interface IMutable
version
- Value for this objects version.protected java.util.List<GroupExperimenterMap> getGroupExperimenterMap()
protected void setGroupExperimenterMap(java.util.List<GroupExperimenterMap> groupExperimenterMap)
public int sizeOfGroupExperimenterMap()
public java.util.Iterator<GroupExperimenterMap> iterateGroupExperimenterMap()
EmptyIterator
. To test for a null collection,
see of sizeOfGroupExperimenterMap()
is less than zero.public java.util.Collection<GroupExperimenterMap> unmodifiableGroupExperimenterMap()
public <E> java.util.List<E> collectGroupExperimenterMap(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateGroupExperimenterMap()
internally and so will return a value
even if the underlying collection is null.public void addGroupExperimenterMap(GroupExperimenterMap target)
public void addGroupExperimenterMapSet(java.util.Collection<GroupExperimenterMap> targets)
public void removeGroupExperimenterMap(GroupExperimenterMap target)
public void removeGroupExperimenterMapSet(java.util.Collection<GroupExperimenterMap> targets)
public GroupExperimenterMap getGroupExperimenterMap(int index) throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
public GroupExperimenterMap setGroupExperimenterMap(int index, GroupExperimenterMap element) throws java.lang.IndexOutOfBoundsException
List.set(int, Object)
contract. To extend the list, use addGroupExperimenterMap(GroupExperimenterMap)
.java.lang.IndexOutOfBoundsException
List.set(int, Object)
public GroupExperimenterMap getPrimaryGroupExperimenterMap() throws java.lang.IndexOutOfBoundsException
IndexOutOfBoundsException
is throws. This method
will also throw an ApiUsageException
if the collection is
unloaded. See sizeOfGroupExperimenterMap()
for more information.java.lang.IndexOutOfBoundsException
public GroupExperimenterMap setPrimaryGroupExperimenterMap(GroupExperimenterMap element) throws java.lang.IndexOutOfBoundsException
IndexOutOfBoundsException
will be thrown. Returns the swapped
element. This method
will also throw an ApiUsageException
if the collection is
unloaded. See sizeOfGroupExperimenterMap()
for more information.java.lang.IndexOutOfBoundsException
public GroupExperimenterMap linkExperimenterGroup(ExperimenterGroup addition)
public void addGroupExperimenterMap(GroupExperimenterMap link, boolean bothSides)
public java.util.Iterator<ExperimenterGroup> linkedExperimenterGroupIterator()
ConcurrentModificationException
.
Use linkedExperimenterGroupList()
instead.public java.util.Set<GroupExperimenterMap> findGroupExperimenterMap(ExperimenterGroup target)
public java.util.List<ExperimenterGroup> linkedExperimenterGroupList()
List
-copy of the underlying collection. Unlike,
linkedExperimenterGroupIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.public <E> java.util.List<E> eachLinkedExperimenterGroup(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.public void unlinkExperimenterGroup(ExperimenterGroup removal)
public void removeGroupExperimenterMap(GroupExperimenterMap link, boolean bothSides)
public void clearExperimenterGroupLinks()
@Field(index=TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.String getOmeName()
public void setOmeName(java.lang.String omeName)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.String getFirstName()
public void setFirstName(java.lang.String firstName)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.String getMiddleName()
public void setMiddleName(java.lang.String middleName)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.String getLastName()
public void setLastName(java.lang.String lastName)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.String getInstitution()
public void setInstitution(java.lang.String institution)
public java.lang.Boolean getLdap()
public void setLdap(java.lang.Boolean ldap)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.String getEmail()
public void setEmail(java.lang.String email)
public void setConfig(java.util.List<NamedValue> map)
public java.util.List<NamedValue> getConfig()
protected java.util.Set<ExperimenterAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(java.util.Set<ExperimenterAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public java.util.Iterator<ExperimenterAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public java.util.Collection<ExperimenterAnnotationLink> unmodifiableAnnotationLinks()
unmodifiableAnnotationLinks
in interface IAnnotated
public <E> java.util.List<E> collectAnnotationLinks(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateAnnotationLinks()
internally and so will return a value
even if the underlying collection is null.collectAnnotationLinks
in interface IAnnotated
public void addExperimenterAnnotationLink(ExperimenterAnnotationLink target)
public void addExperimenterAnnotationLinkSet(java.util.Collection<ExperimenterAnnotationLink> targets)
public void removeExperimenterAnnotationLink(ExperimenterAnnotationLink target)
public void removeExperimenterAnnotationLinkSet(java.util.Collection<ExperimenterAnnotationLink> targets)
public ExperimenterAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addExperimenterAnnotationLink(ExperimenterAnnotationLink link, boolean bothSides)
public java.util.Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public java.util.Set<ExperimenterAnnotationLink> findExperimenterAnnotationLink(Annotation target)
public java.util.List<Annotation> linkedAnnotationList()
List
-copy of the underlying collection. Unlike,
linkedAnnotationIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.linkedAnnotationList
in interface IAnnotated
public <E> java.util.List<E> eachLinkedAnnotation(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.eachLinkedAnnotation
in interface IAnnotated
public void unlinkAnnotation(Annotation removal)
unlinkAnnotation
in interface IAnnotated
public void removeExperimenterAnnotationLink(ExperimenterAnnotationLink link, boolean bothSides)
public void clearAnnotationLinks()
clearAnnotationLinks
in interface IAnnotated
protected void setAnnotationLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map)
public java.util.Map<java.lang.Long,java.lang.Long> getAnnotationLinksCountPerOwner()
public Details getDetails()
Details
type.getDetails
in interface IObject
protected void setDetails(Details details)
public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public Experimenter newInstance()
public Experimenter proxy()
public boolean acceptFilter(Filter __filter)
acceptFilter
in interface Filterable
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<java.lang.String> fields()
IObject
public java.lang.Object retrieve(java.lang.String field)
IObject
field
which match a field of this instance will be delegated to the accessors.
Otherwise, values will be retrieved from a lazy-loaded map filled by
calls to IObject.putAt(String, Object)
public void putAt(java.lang.String field, java.lang.Object value)
IObject
field
which
match a field of this instance will be delegated to the accessors.
Otherwise, values will be stored in a lazy-loaded map.public boolean isLoaded()
IObject
protected void errorIfUnloaded()
public void unload()
IObject
public final GraphHolder getGraphHolder()
IObject
GraphHolder
for this entity. If the GraphHolder has
not been actively set, a new one will be instatiated.getGraphHolder
in interface IObject
protected void throwNullCollectionException(java.lang.String propertyName)