Package org.firebirdsql.management
Class FBUserManager
- java.lang.Object
- 
- org.firebirdsql.management.FBServiceManager
- 
- org.firebirdsql.management.FBUserManager
 
 
- 
- All Implemented Interfaces:
- ServiceManager,- UserManager
 
 public class FBUserManager extends FBServiceManager implements 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.FBServiceManagerBUFFER_SIZE
 
- 
 - 
Constructor SummaryConstructors Constructor Description FBUserManager()Create a new instance ofFBMaintenanceManagerbased on the default GDSType.FBUserManager(java.lang.String gdsType)Create a new instance ofFBMaintenanceManagerbased on a given GDSType.FBUserManager(GDSType gdsType)Create a new instance ofFBMaintenanceManagerbased on a given GDSType.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(User user)Add a user to the Firebird Security Database.voiddelete(User user)Delete a user to the Firebird Security Database.voiddropAdminRoleMapping()Drops AUTO ADMIN MAPPING from role RDB$ADMIN in security databasejava.util.Map<java.lang.String,User>getUsers()Return all valid users in the Firebird Security Database.voidsetAdminRoleMapping()Sets AUTO ADMIN MAPPING for role RDB$ADMIN in security databasevoidsetSecurityDatabase(java.lang.String securityDatabase)Sets the security database and therefore overrides the per default used security database (e.g.voidupdate(User user)Update a user to the Firebird Security Database.- 
Methods inherited from class org.firebirdsql.management.FBServiceManagerattachDatabase, 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, setWireCrypt
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.firebirdsql.management.ServiceManagergetAuthPlugins, getCharSet, getDatabase, getDbCryptConfig, getHost, getLogger, getPassword, getPort, getServerVersion, getUser, getWireCrypt, isWireCompression, setAuthPlugins, setCharSet, setDatabase, setDbCryptConfig, setHost, setLogger, setPassword, setPort, setUser, setWireCompression, setWireCrypt
 
- 
 
- 
- 
- 
Constructor Detail- 
FBUserManagerpublic FBUserManager() Create a new instance ofFBMaintenanceManagerbased on the default GDSType.
 - 
FBUserManagerpublic FBUserManager(java.lang.String gdsType) Create a new instance ofFBMaintenanceManagerbased on a given GDSType.- Parameters:
- gdsType- type must be PURE_JAVA, EMBEDDED, or NATIVE
 
 - 
FBUserManagerpublic FBUserManager(GDSType gdsType) Create a new instance ofFBMaintenanceManagerbased on a given GDSType.- Parameters:
- gdsType- The GDS implementation type to use
 
 
- 
 - 
Method Detail- 
addpublic void add(User user) throws java.sql.SQLException, java.io.IOException Description copied from interface:UserManagerAdd a user to the Firebird Security Database.- Specified by:
- addin interface- UserManager
- Parameters:
- user- to the Firebird Security Database.
- Throws:
- java.sql.SQLException
- java.io.IOException
 
 - 
deletepublic void delete(User user) throws java.sql.SQLException, java.io.IOException Description copied from interface:UserManagerDelete a user to the Firebird Security Database.- Specified by:
- deletein interface- UserManager
- Parameters:
- user- to the Firebird Security Database.
- Throws:
- java.sql.SQLException
- java.io.IOException
 
 - 
updatepublic void update(User user) throws java.sql.SQLException, java.io.IOException Description copied from interface:UserManagerUpdate a user to the Firebird Security Database.- Specified by:
- updatein interface- UserManager
- Parameters:
- user- to the Firebird Security Database.
- Throws:
- java.sql.SQLException
- java.io.IOException
 
 - 
getUserspublic java.util.Map<java.lang.String,User> getUsers() throws java.sql.SQLException, java.io.IOException Description copied from interface:UserManagerReturn all valid users in the Firebird Security Database.- Specified by:
- getUsersin interface- UserManager
- Returns:
- all valid users in the Firebird Security Database.
- Throws:
- java.sql.SQLException
- java.io.IOException
 
 - 
setSecurityDatabasepublic void setSecurityDatabase(java.lang.String securityDatabase) 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 interface- UserManager
- Parameters:
- securityDatabase- name/path of securityDatabase
 
 - 
setAdminRoleMappingpublic void setAdminRoleMapping() throws java.sql.SQLException, java.io.IOExceptionDescription copied from interface:UserManagerSets AUTO ADMIN MAPPING for role RDB$ADMIN in security database- Specified by:
- setAdminRoleMappingin interface- UserManager
- Throws:
- java.sql.SQLException
- java.io.IOException
 
 - 
dropAdminRoleMappingpublic void dropAdminRoleMapping() throws java.sql.SQLException, java.io.IOExceptionDescription copied from interface:UserManagerDrops AUTO ADMIN MAPPING from role RDB$ADMIN in security database- Specified by:
- dropAdminRoleMappingin interface- UserManager
- Throws:
- java.sql.SQLException
- java.io.IOException
 
 
- 
 
-