Package org.firebirdsql.management
Class FBUserManager
java.lang.Object
org.firebirdsql.management.FBServiceManager
org.firebirdsql.management.FBUserManager
- All Implemented Interfaces:
ServiceManager,UserManager
Implements the display/add/delete/modify user functionality of the Firebird Services API.
- Author:
- Steven Jardine, Mark Rotteveel
-
Field Summary
Fields inherited from class org.firebirdsql.management.FBServiceManager
BUFFER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance ofFBMaintenanceManagerbased on the default GDSType.FBUserManager(String gdsType) Create a new instance ofFBMaintenanceManagerbased on a given GDSType.FBUserManager(GDSType gdsType) Create a new instance ofFBMaintenanceManagerbased on a given GDSType. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a user to the Firebird Security Database.voidDelete a user to the Firebird Security Database.voidDrops AUTO ADMIN MAPPING from role RDB$ADMIN in security databasegetUsers()Return all valid users in the Firebird Security Database.voidSets AUTO ADMIN MAPPING for role RDB$ADMIN in security databasevoidsetSecurityDatabase(String securityDatabase) Sets the security database and therefore overrides the per default used security database (e.g.voidUpdate a user to the Firebird Security Database.Methods inherited from class org.firebirdsql.management.FBServiceManager
attachDatabase, attachServiceManager, createRequestBuffer, executeServicesOperation, executeServicesOperation, getAuthPlugins, getCharSet, getDatabase, getDbCryptConfig, getHost, getLogger, getPassword, getPort, getServerVersion, getServiceName, getUser, getWireCrypt, isWireCompression, queueService, setAuthPlugins, setCharSet, setDatabase, setDbCryptConfig, setHost, setLogger, setPassword, setPort, setUser, setWireCompression, setWireCryptMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.firebirdsql.management.ServiceManager
getAuthPlugins, getCharSet, getDatabase, getDbCryptConfig, getHost, getLogger, getPassword, getPort, getServerVersion, getUser, getWireCrypt, isWireCompression, setAuthPlugins, setCharSet, setDatabase, setDbCryptConfig, setHost, setLogger, setPassword, setPort, setUser, setWireCompression, setWireCrypt
-
Constructor Details
-
FBUserManager
public FBUserManager()Create a new instance ofFBMaintenanceManagerbased on the default GDSType. -
FBUserManager
Create a new instance ofFBMaintenanceManagerbased on a given GDSType.- Parameters:
gdsType- type must be PURE_JAVA, EMBEDDED, or NATIVE
-
FBUserManager
Create a new instance ofFBMaintenanceManagerbased on a given GDSType.- Parameters:
gdsType- The GDS implementation type to use
-
-
Method Details
-
add
Description copied from interface:UserManagerAdd a user to the Firebird Security Database.- Specified by:
addin interfaceUserManager- Parameters:
user- to the Firebird Security Database.- Throws:
SQLExceptionIOException
-
delete
Description copied from interface:UserManagerDelete a user to the Firebird Security Database.- Specified by:
deletein interfaceUserManager- Parameters:
user- to the Firebird Security Database.- Throws:
SQLExceptionIOException
-
update
Description copied from interface:UserManagerUpdate a user to the Firebird Security Database.- Specified by:
updatein interfaceUserManager- Parameters:
user- to the Firebird Security Database.- Throws:
SQLExceptionIOException
-
getUsers
Description copied from interface:UserManagerReturn all valid users in the Firebird Security Database.- Specified by:
getUsersin interfaceUserManager- Returns:
- all valid users in the Firebird Security Database.
- Throws:
SQLExceptionIOException
-
setSecurityDatabase
Description copied from interface:UserManagerSets the security database and therefore overrides the per default used security database (e.g. security2.fdb) Supported since Firebird 2.1- Specified by:
setSecurityDatabasein interfaceUserManager- Parameters:
securityDatabase- name/path of securityDatabase
-
setAdminRoleMapping
Description copied from interface:UserManagerSets AUTO ADMIN MAPPING for role RDB$ADMIN in security database- Specified by:
setAdminRoleMappingin interfaceUserManager- Throws:
SQLExceptionIOException
-
dropAdminRoleMapping
Description copied from interface:UserManagerDrops AUTO ADMIN MAPPING from role RDB$ADMIN in security database- Specified by:
dropAdminRoleMappingin interfaceUserManager- Throws:
SQLExceptionIOException
-