@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class ExperimenterGroup extends Object implements Serializable, IObject, IGlobal, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
ExperimenterGroup.Details |
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
_dynamicFields |
protected boolean |
_loaded |
protected Set<ExperimenterGroupAnnotationLink> |
annotationLinks |
static String |
ANNOTATIONLINKS |
static String |
ANNOTATIONLINKSCOUNTPEROWNER |
protected List<NamedValue> |
config |
static String |
CONFIG |
protected String |
description |
static String |
DESCRIPTION |
protected Details |
details |
static String |
DETAILS |
static String |
EVENT_FILTER_ANNOTATIONLINKS |
static Set<String> |
FIELDS |
static String |
GROUP_FILTER_ANNOTATIONLINKS |
protected Set<GroupExperimenterMap> |
groupExperimenterMap |
static String |
GROUPEXPERIMENTERMAP |
protected Long |
id |
static String |
ID |
protected Boolean |
ldap |
static String |
LDAP |
protected String |
name |
static String |
NAME |
static String |
OWNER_FILTER_ANNOTATIONLINKS |
static String |
PERMS_FILTER_ANNOTATIONLINKS |
protected Integer |
version |
static String |
VERSION |
Modifier | Constructor and Description |
---|---|
|
ExperimenterGroup() |
protected |
ExperimenterGroup(Long id) |
|
ExperimenterGroup(Long id,
boolean loaded)
Main constructor.
|
|
ExperimenterGroup(String _name,
Boolean _ldap) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addExperimenterGroupAnnotationLink(ExperimenterGroupAnnotationLink target)
use instead of setAnnotationLinks .
|
void |
addExperimenterGroupAnnotationLink(ExperimenterGroupAnnotationLink link,
boolean bothSides)
Adds a ome.model.annotations.ExperimenterGroupAnnotationLink to annotationLinks, allowing for recursion -- whether
or not addExperimenterGroupAnnotationLink will be called on the addition if it is loaded
|
void |
addExperimenterGroupAnnotationLinkSet(Collection<ExperimenterGroupAnnotationLink> targets)
use like addExperimenterGroupAnnotationLink.
|
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(Collection<GroupExperimenterMap> targets)
use like addGroupExperimenterMap.
|
void |
clearAnnotationLinks()
clears the set.
|
void |
clearExperimenterLinks()
clears the set.
|
<E> List<E> |
collectAnnotationLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.ExperimenterGroupAnnotationLink while
collecting the results.
|
<E> 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> 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> List<E> |
eachLinkedExperimenter(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.meta.Experimenter while
collecting the results.
|
protected void |
errorIfUnloaded() |
Set<String> |
fields()
returns a Set of field names that belong to this class
|
Set<ExperimenterGroupAnnotationLink> |
findExperimenterGroupAnnotationLink(Annotation target)
find all ome.model.annotations.ExperimenterGroupAnnotationLink which have the argument as their child.
|
Set<GroupExperimenterMap> |
findGroupExperimenterMap(Experimenter target)
find all ome.model.meta.GroupExperimenterMap which have the argument as their child.
|
protected Set<ExperimenterGroupAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
Map<Long,Long> |
getAnnotationLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.annotations.ExperimenterGroupAnnotationLink that a user has.
|
List<NamedValue> |
getConfig() |
String |
getDescription()
Simple field ome.model.meta.ExperimenterGroup.description (java.lang.String)
|
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
protected Set<GroupExperimenterMap> |
getGroupExperimenterMap()
returns groupExperimenterMap .
|
Long |
getId()
The DB unique identifier for this object.
|
Boolean |
getLdap()
Simple field ome.model.meta.ExperimenterGroup.ldap (java.lang.Boolean)
|
String |
getName()
Simple field ome.model.meta.ExperimenterGroup.name (java.lang.String)
|
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() |
Iterator<ExperimenterGroupAnnotationLink> |
iterateAnnotationLinks()
should be used rather than accessing the annotationLinks set directly.
|
Iterator<GroupExperimenterMap> |
iterateGroupExperimenterMap()
should be used rather than accessing the groupExperimenterMap set directly.
|
ExperimenterGroupAnnotationLink |
linkAnnotation(Annotation addition)
Adds a ome.model.annotations.ExperimenterGroupAnnotationLink to annotationLinks .
|
Iterator<Annotation> |
linkedAnnotationIterator()
provides an iterator over the parent values of the annotationLinks.
|
List<Annotation> |
linkedAnnotationList()
produces a
List -copy of the underlying collection. |
Iterator<Experimenter> |
linkedExperimenterIterator()
provides an iterator over the parent values of the groupExperimenterMap.
|
List<Experimenter> |
linkedExperimenterList()
produces a
List -copy of the underlying collection. |
GroupExperimenterMap |
linkExperimenter(Experimenter addition)
Adds a ome.model.meta.GroupExperimenterMap to groupExperimenterMap .
|
ExperimenterGroup |
newInstance() |
ExperimenterGroup |
proxy() |
void |
putAt(String field,
Object value)
stores a value in this instance.
|
void |
removeExperimenterGroupAnnotationLink(ExperimenterGroupAnnotationLink target)
removes a single element from this set and makes the inverse call on ome.model.annotations.ExperimenterGroupAnnotationLink
|
void |
removeExperimenterGroupAnnotationLink(ExperimenterGroupAnnotationLink link,
boolean bothSides)
removes the given ExperimenterGroupAnnotationLink from annotationLinks, allowing for recursion -- whether
or not the removal will call unlinkExperimenterGroup again if loaded.
|
void |
removeExperimenterGroupAnnotationLinkSet(Collection<ExperimenterGroupAnnotationLink> targets)
use like removeExperimenterGroupAnnotationLink
|
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 unlinkExperimenterGroup again if loaded.
|
void |
removeGroupExperimenterMapSet(Collection<GroupExperimenterMap> targets)
use like removeGroupExperimenterMap
|
Object |
retrieve(String field)
retrieves a value from this instance.
|
protected void |
setAnnotationLinks(Set<ExperimenterGroupAnnotationLink> annotationLinks)
setter for annotationLinks should be avoided.
|
protected void |
setAnnotationLinksCountPerOwner(Map<Long,Long> map) |
void |
setConfig(List<NamedValue> map) |
void |
setDescription(String description) |
protected void |
setDetails(Details details)
Use the
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the ExperimenterGroup.Details instance instead. |
protected void |
setGroupExperimenterMap(Set<GroupExperimenterMap> groupExperimenterMap)
setter for groupExperimenterMap should be avoided.
|
void |
setId(Long id)
usually unneeded.
|
void |
setLdap(Boolean ldap) |
void |
setName(String name) |
void |
setVersion(Integer version)
use with caution.
|
int |
sizeOfAnnotationLinks()
returns the size of annotationLinks.
|
int |
sizeOfGroupExperimenterMap()
returns the size of groupExperimenterMap.
|
protected void |
throwNullCollectionException(String propertyName) |
String |
toString() |
void |
unlinkAnnotation(Annotation removal)
unlinks all ome.model.annotations.Annotation instances from this instance.
|
void |
unlinkExperimenter(Experimenter removal)
unlinks all ome.model.meta.Experimenter instances from this instance.
|
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
Collection<ExperimenterGroupAnnotationLink> |
unmodifiableAnnotationLinks()
Returns an unmodifiable collection-view
|
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 String ID
protected Long id
public static final String VERSION
protected Integer version
protected String name
protected Boolean ldap
protected Set<GroupExperimenterMap> groupExperimenterMap
protected List<NamedValue> config
protected Set<ExperimenterGroupAnnotationLink> annotationLinks
public static final String OWNER_FILTER_ANNOTATIONLINKS
public static final String GROUP_FILTER_ANNOTATIONLINKS
public static final String EVENT_FILTER_ANNOTATIONLINKS
public static final String PERMS_FILTER_ANNOTATIONLINKS
protected String description
protected Details details
public static final String NAME
public static final String LDAP
public static final String GROUPEXPERIMENTERMAP
public static final String CONFIG
public static final String ANNOTATIONLINKSCOUNTPEROWNER
public static final String ANNOTATIONLINKS
public static final String DESCRIPTION
public static final String DETAILS
protected boolean _loaded
public ExperimenterGroup()
protected ExperimenterGroup(Long id)
public ExperimenterGroup(Long id, boolean loaded)
@DocumentId public Long getId()
public void setId(Long id)
IObject
public Integer getVersion()
getVersion
in interface IMutable
public void setVersion(Integer version)
IMutable
setVersion
in interface IMutable
version
- Value for this objects version.@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getName()
public void setName(String name)
public Boolean getLdap()
public void setLdap(Boolean ldap)
protected Set<GroupExperimenterMap> getGroupExperimenterMap()
protected void setGroupExperimenterMap(Set<GroupExperimenterMap> groupExperimenterMap)
public int sizeOfGroupExperimenterMap()
public Iterator<GroupExperimenterMap> iterateGroupExperimenterMap()
EmptyIterator
. To test for a null collection,
see of sizeOfGroupExperimenterMap()
is less than zero.public Collection<GroupExperimenterMap> unmodifiableGroupExperimenterMap()
public <E> 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(Collection<GroupExperimenterMap> targets)
public void removeGroupExperimenterMap(GroupExperimenterMap target)
public void removeGroupExperimenterMapSet(Collection<GroupExperimenterMap> targets)
public GroupExperimenterMap linkExperimenter(Experimenter addition)
public void addGroupExperimenterMap(GroupExperimenterMap link, boolean bothSides)
public Iterator<Experimenter> linkedExperimenterIterator()
ConcurrentModificationException
.
Use linkedExperimenterList()
instead.public Set<GroupExperimenterMap> findGroupExperimenterMap(Experimenter target)
public List<Experimenter> linkedExperimenterList()
List
-copy of the underlying collection. Unlike,
linkedExperimenterIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.public <E> List<E> eachLinkedExperimenter(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.public void unlinkExperimenter(Experimenter removal)
public void removeGroupExperimenterMap(GroupExperimenterMap link, boolean bothSides)
public void clearExperimenterLinks()
public void setConfig(List<NamedValue> map)
public List<NamedValue> getConfig()
protected Set<ExperimenterGroupAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(Set<ExperimenterGroupAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public Iterator<ExperimenterGroupAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public Collection<ExperimenterGroupAnnotationLink> unmodifiableAnnotationLinks()
unmodifiableAnnotationLinks
in interface IAnnotated
public <E> 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 addExperimenterGroupAnnotationLink(ExperimenterGroupAnnotationLink target)
public void addExperimenterGroupAnnotationLinkSet(Collection<ExperimenterGroupAnnotationLink> targets)
public void removeExperimenterGroupAnnotationLink(ExperimenterGroupAnnotationLink target)
public void removeExperimenterGroupAnnotationLinkSet(Collection<ExperimenterGroupAnnotationLink> targets)
public ExperimenterGroupAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addExperimenterGroupAnnotationLink(ExperimenterGroupAnnotationLink link, boolean bothSides)
public Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public Set<ExperimenterGroupAnnotationLink> findExperimenterGroupAnnotationLink(Annotation target)
public 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> 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 removeExperimenterGroupAnnotationLink(ExperimenterGroupAnnotationLink link, boolean bothSides)
public void clearAnnotationLinks()
clearAnnotationLinks
in interface IAnnotated
public Map<Long,Long> getAnnotationLinksCountPerOwner()
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getDescription()
public void setDescription(String description)
public Details getDetails()
Details
type.getDetails
in interface IObject
protected void setDetails(Details details)
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the ExperimenterGroup.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public ExperimenterGroup newInstance()
public ExperimenterGroup proxy()
public boolean acceptFilter(Filter __filter)
acceptFilter
in interface Filterable
public Set<String> fields()
IObject
public Object retrieve(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(String field, 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(String propertyName)
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.