Class Hierarchy Previous Next Index
java.lang.Object | +----COM.cloudscape.database.UserUtility
This utility class provides static methods for managing users and their authorization in a Cloudscape database.
The methods in this class can only be used within an SQL-J statement. Using the methods in application-side Java code results in Exceptions being thrown.
Cloudscape reserves the right to change, rename, or remove this interface at any time.
public static final java.lang.String READ_ACCESS_PERMISSION
public static final java.lang.String FULL_ACCESS_PERMISSION
public static final void add(java.lang.String userName, java.lang.String permission) throws java.sql.SQLException
Only users with FULL_ACCESS_PERMISSION may use this.
userName
- the user's name. A valid possibly delimited
SQL identifier.
permission
- READ_ACCESS_PERMISSION or FULL_ACCESS_PERMISSION.
public static final void set(java.lang.String userName, java.lang.String permission) throws java.sql.SQLException
Only users with FULL_ACCESS_PERMISSION may use this.
userName
- the user's name. A valid possibly delimited
SQL identifier.
permission
- READ_ACCESS_PERMISSION or FULL_ACCESS_PERMISSION.
public static final void drop(java.lang.String userName) throws java.sql.SQLException
Only users with FULL_ACCESS_PERMISSION may use this.
userName
- the user's name. A valid possibly delimited
SQL identifier.
public static final java.lang.String getPermission(java.lang.String userName) throws java.sql.SQLException
Users with FULL_ACCESS_PERMISSION or READ_ACCESS_PERMISSION may use this.
userName
- the user's name. A valid possibly delimited
SQL identifier.
Class Hierarchy Previous Next Index