Admin
Description
In BBj 11.0 and higher, the Admin Utility provides access to BBj user authentication and permissions via the Admin API.
Creation
The Admin class is found in <bbj install>/utils/admin.bbj.
To create an Admin object, use the default constructor:
admin! = new Admin()
Parameters
None.
Methods of Admin
Return Value |
Method |
---|---|
string |
getHost() |
string |
|
static string |
|
string |
|
int |
getPort() |
boolean |
|
int |
|
boolean |
getSSL() |
int |
|
string |
getUser() |
void |
|
void |
|
void |
saveUserCredentialsToCookie(userCredentials credentials) |
void |
setHost(string host) |
void |
setPassword(string password) |
void |
setPort(int port) |
void |
setRemember(boolean remember) |
void |
setRequiredPermissions(int permissions) |
void |
setSSL(boolean ssl) |
void |
setTimeout(int timeout) |
void |
setUser(string user) |
boolean |
validate(UserCredentials credentials) |
Remarks
None.
Constants
Name |
Value |
---|---|
NO_PERMISSIONS |
0 |
ATTACH_EXISTING_DB |
1 |
CREATE_NEW_DB |
2 |
DELETE_DB |
4 |
ADD_USER |
8 |
DELETE_USER |
16 |
SET_PERMISSIONS |
32 |
SET_PASSWORDS |
64 |
PROCESSES |
128 |
OPEN_FILES |
256 |
JDBC_CONNECTIONS |
512 |
SERVER_CONFIG |
1024 |
ALLOW_ADMIN |
2048 |
CREATE_NEW_TRIGGER |
4096 |
CONNECTION_POOLS |
8196 |
COPY_JOBS |
16384 |
TABLE_ANALYSIS_QUEUE |
32768 |
ALL_PERMISSIONS |
65536 |
Example
|