public abstract class Permissions extends Ice.ObjectImpl implements _PermissionsOperations, _PermissionsOperationsNC
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
__ids |
protected java.util.List<java.lang.String> |
extendedRestrictions
Further restrictions which are specified by services
at runtime.
|
protected long |
perm1
Internal representation.
|
protected boolean[] |
restrictions
Restrictions placed on the current object for the current
user.
|
static long |
serialVersionUID |
Constructor and Description |
---|
Permissions() |
Permissions(boolean[] restrictions,
java.util.List<java.lang.String> extendedRestrictions,
long perm1) |
Modifier and Type | Method and Description |
---|---|
static Ice.DispatchStatus |
___canAnnotate(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___canChgrp(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___canChown(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___canDelete(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___canEdit(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___canLink(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___getPerm1(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___isDisallow(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___isGroupAnnotate(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___isGroupRead(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___isGroupWrite(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___isRestricted(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___isUserAnnotate(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___isUserRead(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___isUserWrite(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___isWorldAnnotate(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___isWorldRead(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___isWorldWrite(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___setGroupAnnotate(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___setGroupRead(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___setGroupWrite(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___setPerm1(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___setUserAnnotate(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___setUserRead(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___setUserWrite(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___setWorldAnnotate(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___setWorldRead(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___setWorldWrite(Permissions __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
Ice.DispatchStatus |
__dispatch(IceInternal.Incoming in,
Ice.Current __current) |
protected void |
__readImpl(IceInternal.BasicStream __is) |
protected void |
__writeImpl(IceInternal.BasicStream __os) |
boolean |
canAnnotate()
Whether the current user has permissions
for annotating this object.
|
boolean |
canChgrp()
Whether the current user has the ""chgrp"" permissions
for this object.
|
boolean |
canChown()
Whether the current user has the ""chown"" permissions
for this object.
|
boolean |
canDelete()
Whether the current user has the ""delete"" permissions
for this object.
|
boolean |
canEdit()
Whether the current user has the ""edit"" permissions
for this object.
|
boolean |
canLink()
Whether the current user has the ""link"" permissions
for this object.
|
Permissions |
clone() |
long |
getPerm1()
Do not use!
|
java.lang.String |
ice_id() |
java.lang.String |
ice_id(Ice.Current __current) |
java.lang.String[] |
ice_ids() |
java.lang.String[] |
ice_ids(Ice.Current __current) |
boolean |
ice_isA(java.lang.String s) |
boolean |
ice_isA(java.lang.String s,
Ice.Current __current) |
static java.lang.String |
ice_staticId() |
boolean |
isDisallow(int restriction)
The basis for the other canX() methods.
|
boolean |
isGroupAnnotate() |
boolean |
isGroupRead() |
boolean |
isGroupWrite() |
boolean |
isRestricted(java.lang.String restriction)
Returns true if the given argument is present in the
extendedRestrictions set.
|
boolean |
isUserAnnotate() |
boolean |
isUserRead() |
boolean |
isUserWrite() |
boolean |
isWorldAnnotate() |
boolean |
isWorldRead() |
boolean |
isWorldWrite() |
void |
setGroupAnnotate(boolean value)
Throws
ClientError if mutation not allowed. |
void |
setGroupRead(boolean value)
Throws
ClientError if mutation not allowed. |
void |
setGroupWrite(boolean value)
Throws
ClientError if mutation not allowed. |
void |
setPerm1(long value)
Do not use!
Throws
ClientError if mutation not allowed. |
void |
setUserAnnotate(boolean value)
Throws
ClientError if mutation not allowed. |
void |
setUserRead(boolean value)
Throws
ClientError if mutation not allowed. |
void |
setUserWrite(boolean value)
Throws
ClientError if mutation not allowed. |
void |
setWorldAnnotate(boolean value)
Throws
ClientError if mutation not allowed. |
void |
setWorldRead(boolean value)
Throws
ClientError if mutation not allowed. |
void |
setWorldWrite(boolean value)
Throws
ClientError if mutation not allowed. |
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __read, __read, __readImpl, __write, __write, __writeImpl, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getPerm1, isDisallow, isGroupAnnotate, isGroupRead, isGroupWrite, isRestricted, isUserAnnotate, isUserRead, isUserWrite, isWorldAnnotate, isWorldRead, isWorldWrite, setGroupAnnotate, setGroupRead, setGroupWrite, setPerm1, setUserAnnotate, setUserRead, setUserWrite, setWorldAnnotate, setWorldRead, setWorldWrite
public static final java.lang.String[] __ids
protected boolean[] restrictions
omero.constants.permissions
module. If a
restriction index is not present, then it is safe to
assume that there is no such restriction.
If null, this should be assumed to have no restrictions.protected java.util.List<java.lang.String> extendedRestrictions
Image
contains a ""DOWNLOAD"" restriction,
then an attempt to call omero.api.RawFileStore.read
will fail with an SecurityViolation
.protected long perm1
public static final long serialVersionUID
public Permissions()
public Permissions(boolean[] restrictions, java.util.List<java.lang.String> extendedRestrictions, long perm1)
public boolean ice_isA(java.lang.String s)
ice_isA
in interface Ice.Object
ice_isA
in class Ice.ObjectImpl
public boolean ice_isA(java.lang.String s, Ice.Current __current)
ice_isA
in interface Ice.Object
ice_isA
in class Ice.ObjectImpl
public java.lang.String[] ice_ids()
ice_ids
in interface Ice.Object
ice_ids
in class Ice.ObjectImpl
public java.lang.String[] ice_ids(Ice.Current __current)
ice_ids
in interface Ice.Object
ice_ids
in class Ice.ObjectImpl
public java.lang.String ice_id()
ice_id
in interface Ice.Object
ice_id
in class Ice.ObjectImpl
public java.lang.String ice_id(Ice.Current __current)
ice_id
in interface Ice.Object
ice_id
in class Ice.ObjectImpl
public static java.lang.String ice_staticId()
public final boolean canAnnotate()
canAnnotate
in interface _PermissionsOperationsNC
public final boolean canChgrp()
canChgrp
in interface _PermissionsOperationsNC
public final boolean canChown()
canChown
in interface _PermissionsOperationsNC
public final boolean canDelete()
canDelete
in interface _PermissionsOperationsNC
public final boolean canEdit()
canEdit
in interface _PermissionsOperationsNC
public final boolean canLink()
canLink
in interface _PermissionsOperationsNC
public final long getPerm1()
getPerm1
in interface _PermissionsOperationsNC
public final boolean isDisallow(int restriction)
isDisallow
in interface _PermissionsOperationsNC
public final boolean isGroupAnnotate()
isGroupAnnotate
in interface _PermissionsOperationsNC
public final boolean isGroupRead()
isGroupRead
in interface _PermissionsOperationsNC
public final boolean isGroupWrite()
isGroupWrite
in interface _PermissionsOperationsNC
public final boolean isRestricted(java.lang.String restriction)
isRestricted
in interface _PermissionsOperationsNC
public final boolean isUserAnnotate()
isUserAnnotate
in interface _PermissionsOperationsNC
public final boolean isUserRead()
isUserRead
in interface _PermissionsOperationsNC
public final boolean isUserWrite()
isUserWrite
in interface _PermissionsOperationsNC
public final boolean isWorldAnnotate()
isWorldAnnotate
in interface _PermissionsOperationsNC
public final boolean isWorldRead()
isWorldRead
in interface _PermissionsOperationsNC
public final boolean isWorldWrite()
isWorldWrite
in interface _PermissionsOperationsNC
public final void setGroupAnnotate(boolean value)
ClientError
if mutation not allowed.setGroupAnnotate
in interface _PermissionsOperationsNC
public final void setGroupRead(boolean value)
ClientError
if mutation not allowed.setGroupRead
in interface _PermissionsOperationsNC
public final void setGroupWrite(boolean value)
ClientError
if mutation not allowed.setGroupWrite
in interface _PermissionsOperationsNC
public final void setPerm1(long value)
ClientError
if mutation not allowed.setPerm1
in interface _PermissionsOperationsNC
public final void setUserAnnotate(boolean value)
ClientError
if mutation not allowed.setUserAnnotate
in interface _PermissionsOperationsNC
public final void setUserRead(boolean value)
ClientError
if mutation not allowed.setUserRead
in interface _PermissionsOperationsNC
public final void setUserWrite(boolean value)
ClientError
if mutation not allowed.setUserWrite
in interface _PermissionsOperationsNC
public final void setWorldAnnotate(boolean value)
ClientError
if mutation not allowed.setWorldAnnotate
in interface _PermissionsOperationsNC
public final void setWorldRead(boolean value)
ClientError
if mutation not allowed.setWorldRead
in interface _PermissionsOperationsNC
public final void setWorldWrite(boolean value)
ClientError
if mutation not allowed.setWorldWrite
in interface _PermissionsOperationsNC
public static Ice.DispatchStatus ___getPerm1(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___setPerm1(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___isDisallow(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___isRestricted(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___canAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___canEdit(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___canLink(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___canDelete(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___canChgrp(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___canChown(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___isUserRead(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___isUserAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___isUserWrite(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___isGroupRead(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___isGroupAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___isGroupWrite(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___isWorldRead(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___isWorldAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___isWorldWrite(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___setUserRead(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___setUserAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___setUserWrite(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___setGroupRead(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___setGroupAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___setGroupWrite(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___setWorldRead(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___setWorldAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___setWorldWrite(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
public Ice.DispatchStatus __dispatch(IceInternal.Incoming in, Ice.Current __current)
__dispatch
in interface Ice.Object
__dispatch
in class Ice.ObjectImpl
protected void __writeImpl(IceInternal.BasicStream __os)
__writeImpl
in class Ice.ObjectImpl
protected void __readImpl(IceInternal.BasicStream __is)
__readImpl
in class Ice.ObjectImpl
public Permissions clone()
clone
in interface Ice.Object
clone
in class Ice.ObjectImpl