|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.firebirdsql.management.FBServiceManager
org.firebirdsql.management.FBUserManager
public class FBUserManager
Implements the display/add/delete/modify user functionality of the Firebird Services API.
Field Summary |
---|
Fields inherited from class org.firebirdsql.management.FBServiceManager |
---|
BUFFER_SIZE |
Constructor Summary | |
---|---|
FBUserManager()
Create a new instance of FBMaintenanceManager based on
the default GDSType. |
|
FBUserManager(org.firebirdsql.gds.impl.GDSType gdsType)
Create a new instance of FBMaintenanceManager based on
a given GDSType. |
|
FBUserManager(java.lang.String gdsType)
Create a new instance of FBMaintenanceManager based on
a given GDSType. |
Method Summary | |
---|---|
void |
add(User user)
Add a user to the Firebird Security Database. |
void |
delete(User user)
Delete a user to the Firebird Security Database. |
void |
dropAdminRoleMapping()
Drops AUTO ADMIN MAPPING from role RDB$ADMIN in security database |
java.util.Map |
getUsers()
Return all valid users in the Firebird Security Database. |
void |
setAdminRoleMapping()
Sets AUTO ADMIN MAPPING for role RDB$ADMIN in security database |
void |
setSecurityDatabase(java.lang.String securityDatabase)
Sets the security database and therefore overrides the per default used security database (e.g. security2.fdb) Supported since Firebird 2.1 |
void |
update(User user)
Update a user to the Firebird Security Database. |
Methods inherited from class org.firebirdsql.management.FBServiceManager |
---|
attachServiceManager, createRequestBuffer, detachServiceManager, executeServicesOperation, getDatabase, getGds, getHost, getLogger, getPassword, getPort, getServiceName, getUser, queueService, setDatabase, setHost, setLogger, setPassword, setPort, setUser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.firebirdsql.management.ServiceManager |
---|
getDatabase, getHost, getLogger, getPassword, getPort, getUser, setDatabase, setHost, setLogger, setPassword, setPort, setUser |
Constructor Detail |
---|
public FBUserManager()
FBMaintenanceManager
based on
the default GDSType.
public FBUserManager(java.lang.String gdsType)
FBMaintenanceManager
based on
a given GDSType.
gdsType
- type must be PURE_JAVA, EMBEDDED, or NATIVEpublic FBUserManager(org.firebirdsql.gds.impl.GDSType gdsType)
FBMaintenanceManager
based on
a given GDSType.
gdsType
- The GDS implementation type to useMethod Detail |
---|
public void add(User user) throws java.sql.SQLException, java.io.IOException
UserManager
add
in interface UserManager
user
- to the Firebird Security Database.
java.sql.SQLException
java.io.IOException
public void delete(User user) throws java.sql.SQLException, java.io.IOException
UserManager
delete
in interface UserManager
user
- to the Firebird Security Database.
java.sql.SQLException
java.io.IOException
public void update(User user) throws java.sql.SQLException, java.io.IOException
UserManager
update
in interface UserManager
user
- to the Firebird Security Database.
java.sql.SQLException
java.io.IOException
public java.util.Map getUsers() throws java.sql.SQLException, java.io.IOException
UserManager
getUsers
in interface UserManager
java.sql.SQLException
java.io.IOException
public void setSecurityDatabase(java.lang.String securityDatabase)
UserManager
setSecurityDatabase
in interface UserManager
securityDatabase
- name/path of securityDatabasepublic void setAdminRoleMapping() throws java.sql.SQLException, java.io.IOException
UserManager
setAdminRoleMapping
in interface UserManager
java.sql.SQLException
java.io.IOException
public void dropAdminRoleMapping() throws java.sql.SQLException, java.io.IOException
UserManager
dropAdminRoleMapping
in interface UserManager
java.sql.SQLException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |