public class PermissionsI extends Permissions implements ome.model.ModelBased
Permissions
class.
Currently, the internal representation is made public. (see the ZeroC thread
link below), but should not be used by clients.Modifier and Type | Field and Description |
---|---|
static Ice.ObjectFactory |
Factory |
__ids, extendedRestrictions, perm1, restrictions
Constructor and Description |
---|
PermissionsI() |
PermissionsI(ome.model.internal.Permissions sourceP) |
PermissionsI(PermissionsI perms) |
PermissionsI(java.lang.String representation) |
Modifier and Type | Method and Description |
---|---|
boolean |
canAnnotate(Ice.Current c)
Whether the current user has permissions
for annotating this object.
|
boolean |
canChgrp(Ice.Current c)
Whether the current user has the ""chgrp"" permissions
for this object.
|
boolean |
canChown(Ice.Current c)
Whether the current user has the ""chown"" permissions
for this object.
|
boolean |
canDelete(Ice.Current c)
Whether the current user has the ""delete"" permissions
for this object.
|
boolean |
canEdit(Ice.Current c)
Whether the current user has the ""edit"" permissions
for this object.
|
boolean |
canLink(Ice.Current c)
Whether the current user has the ""link"" permissions
for this object.
|
void |
copyObject(ome.util.Filterable model,
ome.util.ModelMapper _mapper) |
ome.util.Filterable |
fillObject(ome.util.ReverseModelMapper _mapper) |
long |
getPerm1(Ice.Current current)
Do not use!
|
protected boolean |
granted(int mask,
int shift) |
void |
ice_postUnmarshal()
Called as Ice converts from a binary stream to a PermissionsI object.
|
boolean |
isDisallow(int restriction,
Ice.Current c)
The basis for the other canX() methods.
|
boolean |
isGroupAnnotate(Ice.Current c) |
boolean |
isGroupRead(Ice.Current c) |
boolean |
isGroupWrite(Ice.Current c) |
boolean |
isRestricted(java.lang.String restriction,
Ice.Current __current)
Returns true if the given argument is present in the
extendedRestrictions set.
|
boolean |
isUserAnnotate(Ice.Current c) |
boolean |
isUserRead(Ice.Current c) |
boolean |
isUserWrite(Ice.Current c) |
boolean |
isWorldAnnotate(Ice.Current c) |
boolean |
isWorldRead(Ice.Current c) |
boolean |
isWorldWrite(Ice.Current c) |
protected void |
set(int mask,
int shift,
boolean on) |
void |
setGroupAnnotate(boolean value,
Ice.Current c)
Throws
ClientError if mutation not allowed. |
void |
setGroupRead(boolean value,
Ice.Current c)
Throws
ClientError if mutation not allowed. |
void |
setGroupWrite(boolean value,
Ice.Current c)
Throws
ClientError if mutation not allowed. |
void |
setPerm1(java.lang.Long perm1) |
void |
setPerm1(long perm1,
Ice.Current current)
Do not use!
Throws
ClientError if mutation not allowed. |
void |
setUserAnnotate(boolean value,
Ice.Current c)
Throws
ClientError if mutation not allowed. |
void |
setUserRead(boolean value,
Ice.Current c)
Throws
ClientError if mutation not allowed. |
void |
setUserWrite(boolean value,
Ice.Current c)
Throws
ClientError if mutation not allowed. |
void |
setWorldAnnotate(boolean value,
Ice.Current c)
Throws
ClientError if mutation not allowed. |
void |
setWorldRead(boolean value,
Ice.Current c)
Throws
ClientError if mutation not allowed. |
void |
setWorldWrite(boolean value,
Ice.Current c)
Throws
ClientError if mutation not allowed. |
java.lang.String |
toString()
produces a String representation of the
PermissionsI similar to
those on a Unix filesystem. |
void |
unload(Ice.Current c) |
___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, __dispatch, __readImpl, __writeImpl, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, clone, getPerm1, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, isDisallow, isGroupAnnotate, isGroupRead, isGroupWrite, isRestricted, isUserAnnotate, isUserRead, isUserWrite, isWorldAnnotate, isWorldRead, isWorldWrite, setGroupAnnotate, setGroupRead, setGroupWrite, setPerm1, setUserAnnotate, setUserRead, setUserWrite, setWorldAnnotate, setWorldRead, setWorldWrite
public PermissionsI()
public PermissionsI(java.lang.String representation)
public PermissionsI(PermissionsI perms)
public PermissionsI(ome.model.internal.Permissions sourceP)
public void ice_postUnmarshal()
__immutable
to true so that clients consuming this
object cannot alter them.ice_postUnmarshal
in interface Ice.Object
ice_postUnmarshal
in class Ice.ObjectImpl
public boolean isRestricted(java.lang.String restriction, Ice.Current __current)
_PermissionsOperations
isRestricted
in interface _PermissionsOperations
__current
- The Current object for the invocation.public boolean isDisallow(int restriction, Ice.Current c)
_PermissionsOperations
isDisallow
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean canAnnotate(Ice.Current c)
_PermissionsOperations
canAnnotate
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean canChgrp(Ice.Current c)
_PermissionsOperations
canChgrp
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean canChown(Ice.Current c)
_PermissionsOperations
canChown
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean canDelete(Ice.Current c)
_PermissionsOperations
canDelete
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean canEdit(Ice.Current c)
_PermissionsOperations
canEdit
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean canLink(Ice.Current c)
_PermissionsOperations
canLink
in interface _PermissionsOperations
c
- The Current object for the invocation.public long getPerm1(Ice.Current current)
_PermissionsOperations
getPerm1
in interface _PermissionsOperations
current
- The Current object for the invocation.public void setPerm1(long perm1, Ice.Current current)
_PermissionsOperations
ClientError
if mutation not allowed.setPerm1
in interface _PermissionsOperations
current
- The Current object for the invocation.public void setPerm1(java.lang.Long perm1)
public void copyObject(ome.util.Filterable model, ome.util.ModelMapper _mapper)
copyObject
in interface ome.model.ModelBased
public ome.util.Filterable fillObject(ome.util.ReverseModelMapper _mapper)
fillObject
in interface ome.model.ModelBased
public void unload(Ice.Current c)
public boolean isUserRead(Ice.Current c)
isUserRead
in interface _PermissionsOperations
public void setUserRead(boolean value, Ice.Current c)
_PermissionsOperations
ClientError
if mutation not allowed.setUserRead
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean isUserWrite(Ice.Current c)
isUserWrite
in interface _PermissionsOperations
public void setUserWrite(boolean value, Ice.Current c)
_PermissionsOperations
ClientError
if mutation not allowed.setUserWrite
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean isUserAnnotate(Ice.Current c)
isUserAnnotate
in interface _PermissionsOperations
public void setUserAnnotate(boolean value, Ice.Current c)
_PermissionsOperations
ClientError
if mutation not allowed.setUserAnnotate
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean isGroupRead(Ice.Current c)
isGroupRead
in interface _PermissionsOperations
public void setGroupRead(boolean value, Ice.Current c)
_PermissionsOperations
ClientError
if mutation not allowed.setGroupRead
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean isGroupWrite(Ice.Current c)
isGroupWrite
in interface _PermissionsOperations
public void setGroupWrite(boolean value, Ice.Current c)
_PermissionsOperations
ClientError
if mutation not allowed.setGroupWrite
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean isGroupAnnotate(Ice.Current c)
isGroupAnnotate
in interface _PermissionsOperations
public void setGroupAnnotate(boolean value, Ice.Current c)
_PermissionsOperations
ClientError
if mutation not allowed.setGroupAnnotate
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean isWorldRead(Ice.Current c)
isWorldRead
in interface _PermissionsOperations
public void setWorldRead(boolean value, Ice.Current c)
_PermissionsOperations
ClientError
if mutation not allowed.setWorldRead
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean isWorldWrite(Ice.Current c)
isWorldWrite
in interface _PermissionsOperations
public void setWorldWrite(boolean value, Ice.Current c)
_PermissionsOperations
ClientError
if mutation not allowed.setWorldWrite
in interface _PermissionsOperations
c
- The Current object for the invocation.public boolean isWorldAnnotate(Ice.Current c)
isWorldAnnotate
in interface _PermissionsOperations
public void setWorldAnnotate(boolean value, Ice.Current c)
_PermissionsOperations
ClientError
if mutation not allowed.setWorldAnnotate
in interface _PermissionsOperations
c
- The Current object for the invocation.protected boolean granted(int mask, int shift)
protected void set(int mask, int shift, boolean on)
public java.lang.String toString()
PermissionsI
similar to
those on a Unix filesystem. Unset bits are represented by a dash, while
other bits are represented by a symbolic value in the correct bit
position. For example, a Permissions with all rights
granted to all but WORLD roles would look like: rwrw--toString
in class java.lang.Object