Class HSqlDbUserHandler
- java.lang.Object
-
- com.openindex.openestate.tool.db.DbUserHandlerImpl
-
- com.openindex.openestate.tool.db.hsql.HSqlDbUserHandler
-
- All Implemented Interfaces:
DbUserHandler
public class HSqlDbUserHandler extends DbUserHandlerImpl
HSqlDbUserHandler.- Author:
- Andreas Rudolph
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description HSqlDbUserHandler()
-
Method Summary
-
Methods inherited from class com.openindex.openestate.tool.db.DbUserHandlerImpl
getGroup, getGroup, getGroupIds, getGroupNames, getGroups, getPermission, getPermission, getPermissionIds, getPermissionIds, getPermissions, getPermissions, getUser, getUser, getUserId, getUserIds, getUsers, loadGroupPermissions, loadGroupUsers, loadUserEffectivePermissions, loadUserGroups, loadUserPermissions, loadUserSettings, removeGroup, removeGroup, removeGroups, removePermission, removePermission, removePermissions, removeUser, removeUser, removeUsers, saveGroup, saveUserCompletely, saveUserProfile, setUserLastLogin
-
-
-
-
Field Detail
-
PROC_REMOVE_GROUPS
public static final String PROC_REMOVE_GROUPS
- See Also:
- Constant Field Values
-
PROC_REMOVE_GROUPS_PERMISSIONS
public static final String PROC_REMOVE_GROUPS_PERMISSIONS
- See Also:
- Constant Field Values
-
PROC_REMOVE_PERMISSIONS
public static final String PROC_REMOVE_PERMISSIONS
- See Also:
- Constant Field Values
-
PROC_REMOVE_USERS
public static final String PROC_REMOVE_USERS
- See Also:
- Constant Field Values
-
PROC_REMOVE_USERS_GROUPS
public static final String PROC_REMOVE_USERS_GROUPS
- See Also:
- Constant Field Values
-
PROC_REMOVE_USERS_PERMISSIONS
public static final String PROC_REMOVE_USERS_PERMISSIONS
- See Also:
- Constant Field Values
-
PROC_REMOVE_USERS_SETTINGS
public static final String PROC_REMOVE_USERS_SETTINGS
- See Also:
- Constant Field Values
-
PROC_SAVE_GROUPS
public static final String PROC_SAVE_GROUPS
- See Also:
- Constant Field Values
-
PROC_SAVE_GROUPS_PERMISSIONS
public static final String PROC_SAVE_GROUPS_PERMISSIONS
- See Also:
- Constant Field Values
-
PROC_SAVE_PERMISSIONS
public static final String PROC_SAVE_PERMISSIONS
- See Also:
- Constant Field Values
-
PROC_SAVE_USERS
public static final String PROC_SAVE_USERS
- See Also:
- Constant Field Values
-
PROC_SAVE_USERS_GROUPS
public static final String PROC_SAVE_USERS_GROUPS
- See Also:
- Constant Field Values
-
PROC_SAVE_USERS_PERMISSIONS
public static final String PROC_SAVE_USERS_PERMISSIONS
- See Also:
- Constant Field Values
-
PROC_SAVE_USERS_SETTINGS
public static final String PROC_SAVE_USERS_SETTINGS
- See Also:
- Constant Field Values
-
PROC_SET_USERS_LAST_LOGIN
public static final String PROC_SET_USERS_LAST_LOGIN
- See Also:
- Constant Field Values
-
VIEW_GROUPS
public static final String VIEW_GROUPS
- See Also:
- Constant Field Values
-
VIEW_GROUPS_PERMISSIONS
public static final String VIEW_GROUPS_PERMISSIONS
- See Also:
- Constant Field Values
-
VIEW_PERMISSIONS
public static final String VIEW_PERMISSIONS
- See Also:
- Constant Field Values
-
VIEW_USERS
public static final String VIEW_USERS
- See Also:
- Constant Field Values
-
VIEW_USERS_GROUPS
public static final String VIEW_USERS_GROUPS
- See Also:
- Constant Field Values
-
VIEW_USERS_PERMISSIONS
public static final String VIEW_USERS_PERMISSIONS
- See Also:
- Constant Field Values
-
VIEW_USERS_SETTINGS
public static final String VIEW_USERS_SETTINGS
- See Also:
- Constant Field Values
-
FIELD_USER_ID
public static final String FIELD_USER_ID
- See Also:
- Constant Field Values
-
FIELD_USER_LOGIN
public static final String FIELD_USER_LOGIN
- See Also:
- Constant Field Values
-
FIELD_USER_NOTES
public static final String FIELD_USER_NOTES
- See Also:
- Constant Field Values
-
FIELD_GROUP_ID
public static final String FIELD_GROUP_ID
- See Also:
- Constant Field Values
-
FIELD_GROUP_NAME
public static final String FIELD_GROUP_NAME
- See Also:
- Constant Field Values
-
FIELD_GROUP_NOTES
public static final String FIELD_GROUP_NOTES
- See Also:
- Constant Field Values
-
FIELD_PERMISSION_ID
public static final String FIELD_PERMISSION_ID
- See Also:
- Constant Field Values
-
FIELD_PERMISSION_KEY
public static final String FIELD_PERMISSION_KEY
- See Also:
- Constant Field Values
-
FIELD_SETTING_KEY
public static final String FIELD_SETTING_KEY
- See Also:
- Constant Field Values
-
FIELD_SETTING_VALUE
public static final String FIELD_SETTING_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getGroups
public DbGroup[] getGroups(Connection c, long[] ids) throws SQLException
- Specified by:
getGroups
in interfaceDbUserHandler
- Specified by:
getGroups
in classDbUserHandlerImpl
- Throws:
SQLException
-
getGroups
public DbGroup[] getGroups(Connection c, String[] names) throws SQLException
- Specified by:
getGroups
in interfaceDbUserHandler
- Specified by:
getGroups
in classDbUserHandlerImpl
- Throws:
SQLException
-
getGroupIds
public long[] getGroupIds(Connection c, String[] names) throws SQLException
- Specified by:
getGroupIds
in interfaceDbUserHandler
- Specified by:
getGroupIds
in classDbUserHandlerImpl
- Throws:
SQLException
-
getGroupNames
public String[] getGroupNames(Connection c, long[] ids) throws SQLException
- Specified by:
getGroupNames
in interfaceDbUserHandler
- Specified by:
getGroupNames
in classDbUserHandlerImpl
- Throws:
SQLException
-
getGroupPermissions
public Map<String,List<String>> getGroupPermissions(Connection c, long groupId) throws SQLException
- Specified by:
getGroupPermissions
in interfaceDbUserHandler
- Specified by:
getGroupPermissions
in classDbUserHandlerImpl
- Throws:
SQLException
-
getPermissionIds
public long[] getPermissionIds(Connection c, long pluginId, String[] keys) throws SQLException
- Specified by:
getPermissionIds
in interfaceDbUserHandler
- Specified by:
getPermissionIds
in classDbUserHandlerImpl
- Throws:
SQLException
-
getPermissionKeys
public String[] getPermissionKeys(Connection c, long pluginId) throws SQLException
- Specified by:
getPermissionKeys
in interfaceDbUserHandler
- Specified by:
getPermissionKeys
in classDbUserHandlerImpl
- Throws:
SQLException
-
getPermissions
public DbPermission[] getPermissions(Connection c, long[] ids) throws SQLException
- Specified by:
getPermissions
in interfaceDbUserHandler
- Specified by:
getPermissions
in classDbUserHandlerImpl
- Throws:
SQLException
-
getPermissions
public DbPermission[] getPermissions(Connection c, long pluginId, String[] keys) throws SQLException
- Specified by:
getPermissions
in interfaceDbUserHandler
- Specified by:
getPermissions
in classDbUserHandlerImpl
- Throws:
SQLException
-
getUsers
public DbUser[] getUsers(Connection c, long[] ids) throws SQLException
- Specified by:
getUsers
in interfaceDbUserHandler
- Specified by:
getUsers
in classDbUserHandlerImpl
- Throws:
SQLException
-
getUsers
public DbUser[] getUsers(Connection c, String[] logins) throws SQLException
- Specified by:
getUsers
in interfaceDbUserHandler
- Specified by:
getUsers
in classDbUserHandlerImpl
- Throws:
SQLException
-
getUserIds
public long[] getUserIds(Connection c, String[] logins) throws SQLException
- Specified by:
getUserIds
in interfaceDbUserHandler
- Specified by:
getUserIds
in classDbUserHandlerImpl
- Throws:
SQLException
-
getUserLogins
public String[] getUserLogins(Connection c) throws SQLException
- Specified by:
getUserLogins
in interfaceDbUserHandler
- Specified by:
getUserLogins
in classDbUserHandlerImpl
- Throws:
SQLException
-
getUserPermissions
public Map<String,List<String>> getUserPermissions(Connection c, long userId) throws SQLException
- Specified by:
getUserPermissions
in interfaceDbUserHandler
- Specified by:
getUserPermissions
in classDbUserHandlerImpl
- Throws:
SQLException
-
loadGroupUsers
public void loadGroupUsers(Connection c, DbGroup[] groups) throws SQLException
- Specified by:
loadGroupUsers
in interfaceDbUserHandler
- Specified by:
loadGroupUsers
in classDbUserHandlerImpl
- Throws:
SQLException
-
loadUserGroups
public void loadUserGroups(Connection c, DbUser[] users) throws SQLException
- Specified by:
loadUserGroups
in interfaceDbUserHandler
- Specified by:
loadUserGroups
in classDbUserHandlerImpl
- Throws:
SQLException
-
loadUserSettings
public void loadUserSettings(Connection c, DbUser[] users) throws SQLException
- Specified by:
loadUserSettings
in interfaceDbUserHandler
- Specified by:
loadUserSettings
in classDbUserHandlerImpl
- Throws:
SQLException
-
removeGroups
public void removeGroups(Connection c, long[] ids) throws SQLException
- Specified by:
removeGroups
in interfaceDbUserHandler
- Specified by:
removeGroups
in classDbUserHandlerImpl
- Throws:
SQLException
-
removePermissions
public void removePermissions(Connection c, long[] ids) throws SQLException
- Specified by:
removePermissions
in interfaceDbUserHandler
- Specified by:
removePermissions
in classDbUserHandlerImpl
- Throws:
SQLException
-
removeUsers
public void removeUsers(Connection c, long[] ids) throws SQLException
- Specified by:
removeUsers
in interfaceDbUserHandler
- Specified by:
removeUsers
in classDbUserHandlerImpl
- Throws:
SQLException
-
saveGroup
public void saveGroup(Connection c, DbPluginHandler pluginHandler, DbGroup group) throws SQLException
- Specified by:
saveGroup
in interfaceDbUserHandler
- Specified by:
saveGroup
in classDbUserHandlerImpl
- Throws:
SQLException
-
savePermission
public void savePermission(Connection c, DbPermission permission) throws SQLException
- Specified by:
savePermission
in interfaceDbUserHandler
- Specified by:
savePermission
in classDbUserHandlerImpl
- Throws:
SQLException
-
saveUserCompletely
public void saveUserCompletely(Connection c, DbPluginHandler pluginHandler, DbUser user) throws SQLException
- Specified by:
saveUserCompletely
in interfaceDbUserHandler
- Specified by:
saveUserCompletely
in classDbUserHandlerImpl
- Throws:
SQLException
-
saveUserProfile
public void saveUserProfile(Connection c, DbPluginHandler pluginHandler, DbUser user) throws SQLException
- Specified by:
saveUserProfile
in interfaceDbUserHandler
- Specified by:
saveUserProfile
in classDbUserHandlerImpl
- Throws:
SQLException
-
setUserLastLogin
public void setUserLastLogin(Connection c, long userId, Date lastLogin) throws SQLException
- Specified by:
setUserLastLogin
in interfaceDbUserHandler
- Specified by:
setUserLastLogin
in classDbUserHandlerImpl
- Throws:
SQLException
-
-