borland Packages  Class Hierarchy  datastore Package 

DataStoreRights interface

com.borland.datastore.DataStoreRights

About the DataStoreRights interface

Variables  

Note: This is a feature of JBuilder Professional and Enterprise.

DataStoreRights defines the rights which can be assigned to a user in the /SYS/USERS table. By default, JDataStore databases do not require users to be authenticated to access the database. User authentication becomes enabled for a database when the first user is added to the /SYS/USERS table. Note that a user that exists in the table, but has no rights assigned can open table or file streams in read-only mode.


DataStoreRights variables

Variables defined in this interface


DataStoreRights variables

ADMINISTRATOR

  static final int ADMINISTRATOR = 0x02
A user with the ADMINISTRATOR right can read the /SYS/USERS table. They can also add/remove users from the /SYS/USERS table. This right also allows encryption of the database. If a database has user authentication enabled, there must always be at least one ADMINISTRATOR.

CREATE

  static final int CREATE = 0x010
A user with the CREATE right can create table and file streams in the database.

DROP

  static final int DROP = 0x020
A user with the DROP right can drop a table or file stream in the database.

FULL_RIGHTS

  static final int FULL_RIGHTS = ADMINISTRATOR|WRITE|CREATE|DROP|RENAME|STARTUP
FULL_RIGHTS includes all of the rights for the database.

RENAME

  static final int RENAME = 0x040
A user with the RENAME right can rename a table or file stream in the database.

STARTUP

  static final int STARTUP = 0x01
A user with the STARTUP right can start up the database. The first connection opened "starts up" the database. Connections that do not have the STARTUP right cannot open a database that is not currently open by any other connections. For encrypted databases the master key is encrypted for every user that has the STARTUP right. Whenever a database is closed, it requires a user with the STARTUP right to open it. This right is only needed for the first user to open a JDataStore database.

WRITE

  static final int WRITE = 0x08
A user with the WRITE right can read and write any table or file stream in the database.