public class PermDetails extends Object implements IObject
select d.details.permissions from Dataset d
which returns a Permissions
object with none of the extended
restrictions (canRead, canAnnotate, etc) properly loaded, use:
select new ome.util.PermDetails(d) from Dataset d
The return value for each will be the same.Constructor and Description |
---|
PermDetails(IObject context) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter filter) |
Set<?> |
fields()
returns a Set of field names that belong to this class
|
Details |
getDetails()
Value (i.e. not entity) which is available on all rows in the database.
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
Long |
getId()
primary key of this object.
|
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() |
void |
putAt(String field,
Object value)
stores a value in this instance.
|
Object |
retrieve(String field)
retrieves a value from this instance.
|
void |
setId(Long id)
usually unneeded.
|
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
Validation |
validate()
calls the class-specific validator for this instance and returns the
Validation object. |
public PermDetails(IObject context)
public Long getId()
IObject
public void setId(Long id)
IObject
public Details getDetails()
IObject
Details
, it is important to realize that
most of the values are managed by the backend and may be replaced. For
example, a user does not have permission to change the owner of an
object, not even when owned by that user.
To replace all of the values from an existing Details
instance,
use Details.copy(Details)
or Details.shallowCopy(Details)
getDetails
in interface IObject
public boolean isLoaded()
IObject
public void unload() throws ApiUsageException
IObject
unload
in interface IObject
ApiUsageException
public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.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 Set<?> fields()
IObject
public 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
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.