@MappedSuperclass public abstract class Details extends Object implements Filterable, Serializable
IObject
objects. Details instances are given special
treatment through the Omero system, especially during
ome.api.IUpdate
update.Modifier and Type | Field and Description |
---|---|
protected IObject |
_context |
protected Event |
_creation |
protected Map |
_dynamicFields |
protected ExternalInfo |
_externalInfo |
protected Set<String> |
_filteredCollections |
protected ExperimenterGroup |
_group |
protected Experimenter |
_owner |
protected Permissions |
_perms |
protected Event |
_update |
protected Object[] |
contexts |
static String |
CREATIONEVENT |
static String |
EXTERNALINFO |
static String |
GROUP |
static String |
OWNER |
static String |
PERMISSIONS |
static String |
UPDATEEVENT |
Constructor and Description |
---|
Details()
default constructor.
|
Details(Details copy)
copy-constructor
|
Details(Object[] contexts) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter filter) |
void |
addFiltered(Collection<String> collection)
consider all the collections named by the elements of collection to be a
"filtered" representation of the DB.
|
void |
addFiltered(String collectionName)
consider the collection named by
collectionName to be a
"filtered" representation of the DB. |
void |
clearFiltered()
all currently marked collections are released.
|
Object |
contextAt(int i) |
Details |
copy() |
void |
copy(Details copy)
Method which takes all field values from the given
Details
instance and copies them into the current instance. |
void |
copyWhereUnset(Details mask,
Details copyFrom)
For any field of this which is null (and is NOT null on mask -- assuming
mask is not null), copy the same value from copyFrom
into this object.
|
static Details |
create()
Call
create(Object[]) with null. |
static Details |
create(Object[] contexts)
|
Set<String> |
filteredSet()
copy of the current collection of filtered names.
|
int |
filteredSize()
the count of collections which were filtered.
|
IObject |
getContext()
reference to the entity which this Details is contained in.
|
Event |
getCreationEvent() |
ExternalInfo |
getExternalInfo() |
ExperimenterGroup |
getGroup() |
Experimenter |
getOwner() |
Permissions |
getPermissions()
Permissions is a component embedded into the Details component.
|
Event |
getUpdateEvent() |
boolean |
isFiltered(String collectionName)
Was this collection filtered during creation?
|
abstract Details |
newInstance() |
void |
putAt(String field,
Object value) |
Object |
retrieve(String field) |
void |
setContext(IObject myContext)
set entity to which this Details belongs.
|
void |
setContexts(Object[] contexts) |
void |
setCreationEvent(Event e) |
void |
setExternalInfo(ExternalInfo info) |
void |
setGroup(ExperimenterGroup _group) |
void |
setOwner(Experimenter exp) |
void |
setPermissions(Permissions perms) |
void |
setUpdateEvent(Event e) |
Details |
shallowCopy() |
void |
shallowCopy(Details copy)
Method which takes all the fields of the given
Details instance
and sets unloaded proxies of them into the current instance. |
String |
toString()
simple view of the Details.
|
void |
toString(StringBuilder sb) |
public static final String PERMISSIONS
public static final String EXTERNALINFO
public static final String CREATIONEVENT
public static final String OWNER
public static final String GROUP
public static final String UPDATEEVENT
protected Event _update
protected IObject _context
protected Permissions _perms
protected ExternalInfo _externalInfo
protected Event _creation
protected Experimenter _owner
protected ExperimenterGroup _group
protected Map _dynamicFields
protected Object[] contexts
public Details()
public Details(Object[] contexts)
public Details(Details copy)
public static final Details create()
create(Object[])
with null.public static final Details create(Object[] contexts)
Details
implementation for passing
in API calls, but cannot be stored within an IObject
instance.
Use copy(Details)
or shallowCopy(Details)
instead.public Object contextAt(int i)
public void setContexts(Object[] contexts)
public Details shallowCopy()
public Details copy()
public void copy(Details copy)
Details
instance and copies them into the current instance.copy
- public void copyWhereUnset(Details mask, Details copyFrom)
mask
- copyFrom
- public void shallowCopy(Details copy)
Details
instance
and sets unloaded proxies of them into the current instance.public void addFiltered(String collectionName)
collectionName
to be a
"filtered" representation of the DB. This collection should not be saved,
at most compared with the current DB to find added entities.public void addFiltered(Collection<String> collection)
public boolean isFiltered(String collectionName)
public void clearFiltered()
public int filteredSize()
public Set<String> filteredSet()
public IObject getContext()
public void setContext(IObject myContext)
myContext
- entity which this Details belongs topublic abstract Details newInstance()
public String toString()
public void toString(StringBuilder sb)
public Permissions getPermissions()
public void setPermissions(Permissions perms)
public ExternalInfo getExternalInfo()
public void setExternalInfo(ExternalInfo info)
public Experimenter getOwner()
public void setOwner(Experimenter exp)
public Event getCreationEvent()
public void setCreationEvent(Event e)
public ExperimenterGroup getGroup()
public void setGroup(ExperimenterGroup _group)
public Event getUpdateEvent()
public void setUpdateEvent(Event e)
public boolean acceptFilter(Filter filter)
acceptFilter
in interface Filterable
Version: 5.2.0-ice35-b12
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.