Class FBUserManager

    • Constructor Detail

      • FBUserManager

        public FBUserManager()
        Create a new instance of FBMaintenanceManager based on the default GDSType.
      • FBUserManager

        public FBUserManager​(java.lang.String gdsType)
        Create a new instance of FBMaintenanceManager based on a given GDSType.
        Parameters:
        gdsType - type must be PURE_JAVA, EMBEDDED, or NATIVE
      • FBUserManager

        public FBUserManager​(GDSType gdsType)
        Create a new instance of FBMaintenanceManager based on a given GDSType.
        Parameters:
        gdsType - the GDS implementation type to use
    • Method Detail

      • add

        public void add​(User user)
                 throws java.sql.SQLException,
                        java.io.IOException
        Description copied from interface: UserManager
        Add a user to the Firebird Security Database.
        Specified by:
        add in interface UserManager
        Parameters:
        user - to the Firebird Security Database.
        Throws:
        java.sql.SQLException
        java.io.IOException
      • delete

        public void delete​(User user)
                    throws java.sql.SQLException,
                           java.io.IOException
        Description copied from interface: UserManager
        Delete a user to the Firebird Security Database.
        Specified by:
        delete in interface UserManager
        Parameters:
        user - to the Firebird Security Database.
        Throws:
        java.sql.SQLException
        java.io.IOException
      • update

        public void update​(User user)
                    throws java.sql.SQLException,
                           java.io.IOException
        Description copied from interface: UserManager
        Update a user to the Firebird Security Database.
        Specified by:
        update in interface UserManager
        Parameters:
        user - to the Firebird Security Database.
        Throws:
        java.sql.SQLException
        java.io.IOException
      • getUsers

        public java.util.Map<java.lang.String,​User> getUsers()
                                                            throws java.sql.SQLException,
                                                                   java.io.IOException
        Description copied from interface: UserManager
        Return all valid users in the Firebird Security Database.
        Specified by:
        getUsers in interface UserManager
        Returns:
        all valid users in the Firebird Security Database.
        Throws:
        java.sql.SQLException
        java.io.IOException
      • setSecurityDatabase

        public void setSecurityDatabase​(java.lang.String securityDatabase)
        Description copied from interface: UserManager
        Sets the security database and therefore overrides the per default used security database (e.g. security2.fdb)

        Supported since Firebird 2.1

        Specified by:
        setSecurityDatabase in interface UserManager
        Parameters:
        securityDatabase - name/path of securityDatabase
      • setAdminRoleMapping

        public void setAdminRoleMapping()
                                 throws java.sql.SQLException,
                                        java.io.IOException
        Description copied from interface: UserManager
        Sets AUTO ADMIN MAPPING for role RDB$ADMIN in security database
        Specified by:
        setAdminRoleMapping in interface UserManager
        Throws:
        java.sql.SQLException
        java.io.IOException
      • dropAdminRoleMapping

        public void dropAdminRoleMapping()
                                  throws java.sql.SQLException,
                                         java.io.IOException
        Description copied from interface: UserManager
        Drops AUTO ADMIN MAPPING from role RDB$ADMIN in security database
        Specified by:
        dropAdminRoleMapping in interface UserManager
        Throws:
        java.sql.SQLException
        java.io.IOException