|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfulmine.context.DefaultPermissionProfile
public class DefaultPermissionProfile
A permission profile that has permission only for the
default application and
default permission code. This
means that, by default, this profile can view all IFields that are
created with no application or permission details.
When application code provides a permission profile via
IFulmineContext.setPermissionProfile(IPermissionProfile), the
application profile is merged with the default profile; this allows the
application's context to still view fields that have no permission (they use
the default application and permission).
| Field Summary |
|---|
| Fields inherited from interface fulmine.context.IPermissionProfile |
|---|
DEFAULT_APPLICATION, DEFAULT_PERMISSION |
| Constructor Summary | |
|---|---|
DefaultPermissionProfile()
|
|
| Method Summary | |
|---|---|
boolean |
contains(byte application,
short permission)
Determine if the application and permission arguments are contained by this permission profile. |
byte |
getApplicationCode()
Get the application code of this profile |
IPermissionProfile |
getApplicationPermissions()
Get the application permissions |
short |
getPermissionCode()
Get the permission code of this profile |
boolean |
matches(byte receivedApplication,
short receivedPermission,
byte matchWithApplication,
short matchWithPermission)
Determine if the received application and permission codes are matched with a set of application and permission codes. |
void |
setApplicationPermissions(IPermissionProfile applicationPermissions)
Set the application permissions |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPermissionProfile()
| Method Detail |
|---|
public boolean contains(byte application,
short permission)
IPermissionProfile
This is generally used when reading the wire-state of an IField
and determines if the data is de-serialised into the remote instance;
basically prevents data from being read in a context that does not have
permission to do so.
contains in interface IPermissionProfileapplication - the application codepermission - the permission code
true if the application and permission codes are
contained by (matched by) this profile, false
otherwise
public boolean matches(byte receivedApplication,
short receivedPermission,
byte matchWithApplication,
short matchWithPermission)
IPermissionProfile
This is generally used when handling RPC operations received from a
remote context to update a local container. The permission attributes of
the remote context need to be compared with those of the target
IField in the local container to determine if the operation
should proceed.
matches in interface IPermissionProfilereceivedApplication - the received application code (generally the application code
of a remote context)receivedPermission - the received permission code (generally the permission code of
a remote context)matchWithApplication - the application code to match with the received one (generally
the application code of the field being updated)matchWithPermission - the permission code to match with the received one (generally
the permission code of the field being updated)
true if the received application and permission
codes are matched by the application and permission codes to
compare with, false otherwiseIRemoteUpdateHandlerpublic IPermissionProfile getApplicationPermissions()
IFulmineContext.setPermissionProfile(IPermissionProfile)public void setApplicationPermissions(IPermissionProfile applicationPermissions)
applicationPermissions - the permissions for the applicationIFulmineContext.setPermissionProfile(IPermissionProfile)public byte getApplicationCode()
IPermissionProfile
getApplicationCode in interface IPermissionProfilepublic short getPermissionCode()
IPermissionProfile
getPermissionCode in interface IPermissionProfilepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||