public class PermDetails extends java.lang.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) |
java.util.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. |
java.lang.Long |
getId()
primary key of this object.
|
IObject |
getInternalContext()
In order to properly test the permissions for this object, it must be
possible to get the internal context.
|
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(java.lang.String field,
java.lang.Object value)
stores a value in this instance.
|
java.lang.Object |
retrieve(java.lang.String field)
retrieves a value from this instance.
|
void |
setId(java.lang.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 IObject getInternalContext()
public java.lang.Long getId()
IObject
public void setId(java.lang.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 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 java.util.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.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.