Package omero.model
Class Permissions
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.model.Permissions
-
- All Implemented Interfaces:
Ice.Object,java.io.Serializable,java.lang.Cloneable,_PermissionsOperations,_PermissionsOperationsNC
- Direct Known Subclasses:
_PermissionsTie,PermissionsI
public abstract class Permissions extends Ice.ObjectImpl implements _PermissionsOperations, _PermissionsOperationsNC
Row-level permissions definition available on every OMERO.blitz type. Represents a similar logic to the Unix filesystem.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]__idsprotected java.util.List<java.lang.String>extendedRestrictionsFurther restrictions which are specified by services at runtime.protected longperm1Internal representation.protected boolean[]restrictionsRestrictions placed on the current object for the current user.static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description Permissions()Permissions(boolean[] restrictions, java.util.List<java.lang.String> extendedRestrictions, long perm1)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)booleancanAnnotate()Whether the current user has permissions for annotating this object.booleancanChgrp()Whether the current user has the ""chgrp"" permissions for this object.booleancanChown()Whether the current user has the ""chown"" permissions for this object.booleancanDelete()Whether the current user has the ""delete"" permissions for this object.booleancanEdit()Whether the current user has the ""edit"" permissions for this object.booleancanLink()Whether the current user has the ""link"" permissions for this object.Permissionsclone()longgetPerm1()Do not use!java.lang.Stringice_id()java.lang.Stringice_id(Ice.Current __current)java.lang.String[]ice_ids()java.lang.String[]ice_ids(Ice.Current __current)booleanice_isA(java.lang.String s)booleanice_isA(java.lang.String s, Ice.Current __current)static java.lang.Stringice_staticId()booleanisDisallow(int restriction)The basis for the other canX() methods.booleanisGroupAnnotate()booleanisGroupRead()booleanisGroupWrite()booleanisRestricted(java.lang.String restriction)Returns true if the given argument is present in the extendedRestrictions set.booleanisUserAnnotate()booleanisUserRead()booleanisUserWrite()booleanisWorldAnnotate()booleanisWorldRead()booleanisWorldWrite()voidsetGroupAnnotate(boolean value)ThrowsClientErrorif mutation not allowed.voidsetGroupRead(boolean value)ThrowsClientErrorif mutation not allowed.voidsetGroupWrite(boolean value)ThrowsClientErrorif mutation not allowed.voidsetPerm1(long value)Do not use! ThrowsClientErrorif mutation not allowed.voidsetUserAnnotate(boolean value)ThrowsClientErrorif mutation not allowed.voidsetUserRead(boolean value)ThrowsClientErrorif mutation not allowed.voidsetUserWrite(boolean value)ThrowsClientErrorif mutation not allowed.voidsetWorldAnnotate(boolean value)ThrowsClientErrorif mutation not allowed.voidsetWorldRead(boolean value)ThrowsClientErrorif mutation not allowed.voidsetWorldWrite(boolean value)ThrowsClientErrorif mutation not allowed.-
Methods inherited from class Ice.ObjectImpl
___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
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface omero.model._PermissionsOperations
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
-
-
-
-
Field Detail
-
__ids
public static final java.lang.String[] __ids
-
restrictions
protected boolean[] restrictions
Restrictions placed on the current object for the current user. Indexes into this array are based on constants in theomero.constants.permissionsmodule. 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.
-
extendedRestrictions
protected java.util.List<java.lang.String> extendedRestrictions
Further restrictions which are specified by services at runtime. Individual service methods will specify which strings MAY NOT be present in this field for execution to be successful. For example, if anImagecontains a ""DOWNLOAD"" restriction, then an attempt to callomero.api.RawFileStore.readwill fail with anSecurityViolation.
-
perm1
protected long perm1
Internal representation. May change! To make working with this object more straight-forward accessors are provided for the perm1 instance though it is protected, though NO GUARANTEES are made on the representation.
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
ice_isA
public boolean ice_isA(java.lang.String s)
- Specified by:
ice_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_isA
public boolean ice_isA(java.lang.String s, Ice.Current __current)- Specified by:
ice_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids()
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids(Ice.Current __current)
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id()
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id(Ice.Current __current)
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_staticId
public static java.lang.String ice_staticId()
-
canAnnotate
public final boolean canAnnotate()
Whether the current user has permissions for annotating this object. The fact that the user has this object in hand already identifies that it's readable.- Specified by:
canAnnotatein interface_PermissionsOperationsNC
-
canChgrp
public final boolean canChgrp()
Whether the current user has the ""chgrp"" permissions for this object. This allows them to move it to a different group. The fact that the user has this object in hand already identifies that it's readable.- Specified by:
canChgrpin interface_PermissionsOperationsNC
-
canChown
public final boolean canChown()
Whether the current user has the ""chown"" permissions for this object. This allows them to give it to a different user. The fact that the user has this object in hand already identifies that it's readable.- Specified by:
canChownin interface_PermissionsOperationsNC
-
canDelete
public final boolean canDelete()
Whether the current user has the ""delete"" permissions for this object. The fact that the user has this object in hand already identifies that it's readable.- Specified by:
canDeletein interface_PermissionsOperationsNC
-
canEdit
public final boolean canEdit()
Whether the current user has the ""edit"" permissions for this object. This includes changing the values of the object. The fact that the user has this object in hand already identifies that it's readable.- Specified by:
canEditin interface_PermissionsOperationsNC
-
canLink
public final boolean canLink()
Whether the current user has the ""link"" permissions for this object. This includes adding it to data graphs. The fact that the user has this object in hand already identifies that it's readable.- Specified by:
canLinkin interface_PermissionsOperationsNC
-
getPerm1
public final long getPerm1()
Do not use!- Specified by:
getPerm1in interface_PermissionsOperationsNC
-
isDisallow
public final boolean isDisallow(int restriction)
The basis for the other canX() methods. If the restriction at the given offset in the restriction array is true, then this method returns true (otherwise false) and the canX() methods return the opposite, i.e. isDisallow(ANNOTATERESTRICTION) == ! canAnnotate()- Specified by:
isDisallowin interface_PermissionsOperationsNC
-
isGroupAnnotate
public final boolean isGroupAnnotate()
- Specified by:
isGroupAnnotatein interface_PermissionsOperationsNC
-
isGroupRead
public final boolean isGroupRead()
- Specified by:
isGroupReadin interface_PermissionsOperationsNC
-
isGroupWrite
public final boolean isGroupWrite()
- Specified by:
isGroupWritein interface_PermissionsOperationsNC
-
isRestricted
public final boolean isRestricted(java.lang.String restriction)
Returns true if the given argument is present in the extendedRestrictions set. This implies that some service-specific behavior is disallowed.- Specified by:
isRestrictedin interface_PermissionsOperationsNC
-
isUserAnnotate
public final boolean isUserAnnotate()
- Specified by:
isUserAnnotatein interface_PermissionsOperationsNC
-
isUserRead
public final boolean isUserRead()
- Specified by:
isUserReadin interface_PermissionsOperationsNC
-
isUserWrite
public final boolean isUserWrite()
- Specified by:
isUserWritein interface_PermissionsOperationsNC
-
isWorldAnnotate
public final boolean isWorldAnnotate()
- Specified by:
isWorldAnnotatein interface_PermissionsOperationsNC
-
isWorldRead
public final boolean isWorldRead()
- Specified by:
isWorldReadin interface_PermissionsOperationsNC
-
isWorldWrite
public final boolean isWorldWrite()
- Specified by:
isWorldWritein interface_PermissionsOperationsNC
-
setGroupAnnotate
public final void setGroupAnnotate(boolean value)
ThrowsClientErrorif mutation not allowed.- Specified by:
setGroupAnnotatein interface_PermissionsOperationsNC
-
setGroupRead
public final void setGroupRead(boolean value)
ThrowsClientErrorif mutation not allowed.- Specified by:
setGroupReadin interface_PermissionsOperationsNC
-
setGroupWrite
public final void setGroupWrite(boolean value)
ThrowsClientErrorif mutation not allowed.- Specified by:
setGroupWritein interface_PermissionsOperationsNC
-
setPerm1
public final void setPerm1(long value)
Do not use! ThrowsClientErrorif mutation not allowed.- Specified by:
setPerm1in interface_PermissionsOperationsNC
-
setUserAnnotate
public final void setUserAnnotate(boolean value)
ThrowsClientErrorif mutation not allowed.- Specified by:
setUserAnnotatein interface_PermissionsOperationsNC
-
setUserRead
public final void setUserRead(boolean value)
ThrowsClientErrorif mutation not allowed.- Specified by:
setUserReadin interface_PermissionsOperationsNC
-
setUserWrite
public final void setUserWrite(boolean value)
ThrowsClientErrorif mutation not allowed.- Specified by:
setUserWritein interface_PermissionsOperationsNC
-
setWorldAnnotate
public final void setWorldAnnotate(boolean value)
ThrowsClientErrorif mutation not allowed.- Specified by:
setWorldAnnotatein interface_PermissionsOperationsNC
-
setWorldRead
public final void setWorldRead(boolean value)
ThrowsClientErrorif mutation not allowed.- Specified by:
setWorldReadin interface_PermissionsOperationsNC
-
setWorldWrite
public final void setWorldWrite(boolean value)
ThrowsClientErrorif mutation not allowed.- Specified by:
setWorldWritein interface_PermissionsOperationsNC
-
___getPerm1
public static Ice.DispatchStatus ___getPerm1(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setPerm1
public static Ice.DispatchStatus ___setPerm1(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___isDisallow
public static Ice.DispatchStatus ___isDisallow(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___isRestricted
public static Ice.DispatchStatus ___isRestricted(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___canAnnotate
public static Ice.DispatchStatus ___canAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___canEdit
public static Ice.DispatchStatus ___canEdit(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___canLink
public static Ice.DispatchStatus ___canLink(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___canDelete
public static Ice.DispatchStatus ___canDelete(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___canChgrp
public static Ice.DispatchStatus ___canChgrp(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___canChown
public static Ice.DispatchStatus ___canChown(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___isUserRead
public static Ice.DispatchStatus ___isUserRead(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___isUserAnnotate
public static Ice.DispatchStatus ___isUserAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___isUserWrite
public static Ice.DispatchStatus ___isUserWrite(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___isGroupRead
public static Ice.DispatchStatus ___isGroupRead(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___isGroupAnnotate
public static Ice.DispatchStatus ___isGroupAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___isGroupWrite
public static Ice.DispatchStatus ___isGroupWrite(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___isWorldRead
public static Ice.DispatchStatus ___isWorldRead(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___isWorldAnnotate
public static Ice.DispatchStatus ___isWorldAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___isWorldWrite
public static Ice.DispatchStatus ___isWorldWrite(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setUserRead
public static Ice.DispatchStatus ___setUserRead(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setUserAnnotate
public static Ice.DispatchStatus ___setUserAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setUserWrite
public static Ice.DispatchStatus ___setUserWrite(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setGroupRead
public static Ice.DispatchStatus ___setGroupRead(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setGroupAnnotate
public static Ice.DispatchStatus ___setGroupAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setGroupWrite
public static Ice.DispatchStatus ___setGroupWrite(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setWorldRead
public static Ice.DispatchStatus ___setWorldRead(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setWorldAnnotate
public static Ice.DispatchStatus ___setWorldAnnotate(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setWorldWrite
public static Ice.DispatchStatus ___setWorldWrite(Permissions __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
__dispatch
public Ice.DispatchStatus __dispatch(IceInternal.Incoming in, Ice.Current __current)- Specified by:
__dispatchin interfaceIce.Object- Overrides:
__dispatchin classIce.ObjectImpl
-
__writeImpl
protected void __writeImpl(IceInternal.BasicStream __os)
- Overrides:
__writeImplin classIce.ObjectImpl
-
__readImpl
protected void __readImpl(IceInternal.BasicStream __is)
- Overrides:
__readImplin classIce.ObjectImpl
-
clone
public Permissions clone()
- Specified by:
clonein interfaceIce.Object- Overrides:
clonein classIce.ObjectImpl
-
-