|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsdai.lang.SdaiPermission
Enumeration class for representing access rights to remote SdaiRepositories
,
SdaiModels
and SchemaInstances
. On JSDAI-DB access rights can
be assigned to above mentioned SDAI objects as well as to user groups.
Field Summary | |
static SdaiPermission |
ADMIN
Administrative permission as SdaiPermission object. |
static int |
ADMIN_INT
Administrative permission as integer value. |
static SdaiPermission |
DEFAULT
Default permission as SdaiPermission object. |
static int |
DEFAULT_INT
Default permission as integer value. |
static SdaiPermission |
HIDDEN
Hidden permission as SdaiPermission object. |
static int |
HIDDEN_INT
No access permission as integer value. |
static SdaiPermission |
NOACCESS
No access permission as SdaiPermission object. |
static int |
NOACCESS_INT
No access permission as integer value. |
static SdaiPermission |
READ
Read only permission as SdaiPermission object. |
static int |
READ_INT
Read only permission as integer value. |
static SdaiPermission |
WRITE
Read and write permission as SdaiPermission object. |
static int |
WRITE_INT
Read and write permission as integer value. |
Method Summary | |
int |
compareTo(java.lang.Object other)
Compares this SdaiPermission object to another object. |
boolean |
equals(java.lang.Object other)
Compares this object against the specified object. |
static SdaiPermission |
getPermissionByType(int type)
Returns a SdaiPermission corresponding to specified integer value.
|
int |
getType()
Returns type of the permission. |
int |
hashCode()
Returns a hash code for this SdaiPermission object. |
java.lang.String |
toString()
Returns a string representation of this SdaiPermission object. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ADMIN_INT
ADMIN_INT
is greater than WRITE_INT
public static final SdaiPermission ADMIN
SdaiPermission
object.
public static final int WRITE_INT
WRITE_INT
is less than ADMIN_INT
and greater than READ_INT
public static final SdaiPermission WRITE
SdaiPermission
object.
public static final int READ_INT
READ_INT
is less than WRITE_INT
and greater than NOACCESS_INT
public static final SdaiPermission READ
SdaiPermission
object.
public static final int NOACCESS_INT
NOACCESS_INT
is less than READ_INT
and greater than HIDDEN_INT
public static final SdaiPermission NOACCESS
SdaiPermission
object.
public static final int HIDDEN_INT
HIDDEN_INT
is less than NOACCESS_INT
and greater than HIDDEN_INT
public static final SdaiPermission HIDDEN
SdaiPermission
object.
public static final int DEFAULT_INT
DEFAULT
for more information on default permission.
public static final SdaiPermission DEFAULT
SdaiPermission
object. Default permission can be used as
assigned permission to reflect the fact that effective permission is inherited from higher level
assigned permission. Default permission can be returned by checkPermission
methods
when the effective permission can not be known more specifically at the moment, eg.
if remote SdaiModel
was just created and not yet committed to JSDAI-DB.
Method Detail |
public final int getType()
ADMIN_INT
,
WRITE_INT
,
READ_INT
,
NOACCESS_INT
,
HIDDEN_INT
,
DEFAULT_INT
public int compareTo(java.lang.Object other)
SdaiPermission
object to another object. If the object is
a SdaiPermission
, permission type values are compared numerically as
returned by method getType
. Otherwise it throws a ClassCastException
.
compareTo
in interface java.lang.Comparable
other
- the object to be compared
java.lang.ClassCastException
- if the argument is not a SdaiPermission
public java.lang.String toString()
SdaiPermission
object.
public int hashCode()
SdaiPermission
object. The result is
this permission's type XORed with prime number 21101..
public boolean equals(java.lang.Object other)
true
if and only if the argument is a SdaiPermission
and is of type equal to
this permission's type.
other
- the object to be compared
true
if objects are equal; false
otherwise.public static SdaiPermission getPermissionByType(int type)
SdaiPermission
corresponding to specified integer value.
The following is true for any returned object except DEFAULT:
getPermissionByType(type).getType() == type
. If no
SdaiPermission
matches the specified integer value, DEFAULT is returned.
type
- the type of SdaiPermission
SdaiPermission
.
|
Copyright © LKSoftWare GmbH, 1999-2008 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |