public class OdsxSecurityHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_SECURITY
The string presentation of the attribute security level.
|
static java.lang.String |
ELEMENT_SECURITY
The string presentation of the element security level.
|
static java.lang.String |
INSTANCE_SECURITY
The string presentation of the instance security level.
|
static java.lang.String |
NO_SECURITY
The string presentation of the no security level.
|
static java.lang.String |
SEC_DELETE
The string presentation of the DELETE right.
|
static java.lang.String |
SEC_GRANT
The string presentation of the GRANT right.
|
static java.lang.String |
SEC_INSERT
The string presentation of the INSERT right.
|
static java.lang.String |
SEC_NONE
The string presentation of the no right.
|
static java.lang.String |
SEC_READ
The string presentation of the READ right.
|
static java.lang.String |
SEC_UPDATE
The string presentation of the UPDATE right.
|
static java.lang.String |
version |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getVersion() |
static void |
main(java.lang.String[] args)
The main test procedure.
|
static int |
parseSecurityLevel(java.lang.String secLevelString)
This method returns the value of the SecurityLevel string
as an integer.
|
static int |
parseSecurityRights(java.lang.String secLevelString)
This method returns the value of the SecurityLevel string
as an integer.
|
static java.lang.String |
securityLevelToString(int secLevel)
This method returns the value of a SecurityLevel
as a string.
|
static java.lang.String[] |
securityLevelToStringArray(int secLevel)
This method returns the value of a SecurityLevel
as a string array.
|
static java.lang.String |
securityRightsToString(int right)
This method returns the value of a security right
as a string.
|
static java.lang.String[] |
securityRightsToStringArray(int right)
This method returns the value of a security right
as a string array.
|
public static final java.lang.String version
public static final java.lang.String SEC_DELETE
public static final java.lang.String SEC_GRANT
public static final java.lang.String SEC_INSERT
public static final java.lang.String SEC_READ
public static final java.lang.String SEC_UPDATE
public static final java.lang.String SEC_NONE
public static final java.lang.String ATTRIBUTE_SECURITY
public static final java.lang.String ELEMENT_SECURITY
public static final java.lang.String INSTANCE_SECURITY
public static final java.lang.String NO_SECURITY
public static java.lang.String getVersion()
public static java.lang.String securityLevelToString(int secLevel)
secLevel
- The security level.public static java.lang.String[] securityLevelToStringArray(int secLevel)
secLevel
- The security level.public static int parseSecurityLevel(java.lang.String secLevelString)
secLevelString
- The security level as string.public static java.lang.String securityRightsToString(int right)
rights
- The security rights.public static java.lang.String[] securityRightsToStringArray(int right)
rights
- The security rights.public static int parseSecurityRights(java.lang.String secLevelString)
secLevelString
- The security level as string.public static void main(java.lang.String[] args)