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:
getGroupsin interfaceDbUserHandler- Specified by:
getGroupsin classDbUserHandlerImpl- Throws:
SQLException
-
getGroups
public DbGroup[] getGroups(Connection c, String[] names) throws SQLException
- Specified by:
getGroupsin interfaceDbUserHandler- Specified by:
getGroupsin classDbUserHandlerImpl- Throws:
SQLException
-
getGroupIds
public long[] getGroupIds(Connection c, String[] names) throws SQLException
- Specified by:
getGroupIdsin interfaceDbUserHandler- Specified by:
getGroupIdsin classDbUserHandlerImpl- Throws:
SQLException
-
getGroupNames
public String[] getGroupNames(Connection c, long[] ids) throws SQLException
- Specified by:
getGroupNamesin interfaceDbUserHandler- Specified by:
getGroupNamesin classDbUserHandlerImpl- Throws:
SQLException
-
getGroupPermissions
public Map<String,List<String>> getGroupPermissions(Connection c, long groupId) throws SQLException
- Specified by:
getGroupPermissionsin interfaceDbUserHandler- Specified by:
getGroupPermissionsin classDbUserHandlerImpl- Throws:
SQLException
-
getPermissionIds
public long[] getPermissionIds(Connection c, long pluginId, String[] keys) throws SQLException
- Specified by:
getPermissionIdsin interfaceDbUserHandler- Specified by:
getPermissionIdsin classDbUserHandlerImpl- Throws:
SQLException
-
getPermissionKeys
public String[] getPermissionKeys(Connection c, long pluginId) throws SQLException
- Specified by:
getPermissionKeysin interfaceDbUserHandler- Specified by:
getPermissionKeysin classDbUserHandlerImpl- Throws:
SQLException
-
getPermissions
public DbPermission[] getPermissions(Connection c, long[] ids) throws SQLException
- Specified by:
getPermissionsin interfaceDbUserHandler- Specified by:
getPermissionsin classDbUserHandlerImpl- Throws:
SQLException
-
getPermissions
public DbPermission[] getPermissions(Connection c, long pluginId, String[] keys) throws SQLException
- Specified by:
getPermissionsin interfaceDbUserHandler- Specified by:
getPermissionsin classDbUserHandlerImpl- Throws:
SQLException
-
getUsers
public DbUser[] getUsers(Connection c, long[] ids) throws SQLException
- Specified by:
getUsersin interfaceDbUserHandler- Specified by:
getUsersin classDbUserHandlerImpl- Throws:
SQLException
-
getUsers
public DbUser[] getUsers(Connection c, String[] logins) throws SQLException
- Specified by:
getUsersin interfaceDbUserHandler- Specified by:
getUsersin classDbUserHandlerImpl- Throws:
SQLException
-
getUserIds
public long[] getUserIds(Connection c, String[] logins) throws SQLException
- Specified by:
getUserIdsin interfaceDbUserHandler- Specified by:
getUserIdsin classDbUserHandlerImpl- Throws:
SQLException
-
getUserLogins
public String[] getUserLogins(Connection c) throws SQLException
- Specified by:
getUserLoginsin interfaceDbUserHandler- Specified by:
getUserLoginsin classDbUserHandlerImpl- Throws:
SQLException
-
getUserPermissions
public Map<String,List<String>> getUserPermissions(Connection c, long userId) throws SQLException
- Specified by:
getUserPermissionsin interfaceDbUserHandler- Specified by:
getUserPermissionsin classDbUserHandlerImpl- Throws:
SQLException
-
loadGroupUsers
public void loadGroupUsers(Connection c, DbGroup[] groups) throws SQLException
- Specified by:
loadGroupUsersin interfaceDbUserHandler- Specified by:
loadGroupUsersin classDbUserHandlerImpl- Throws:
SQLException
-
loadUserGroups
public void loadUserGroups(Connection c, DbUser[] users) throws SQLException
- Specified by:
loadUserGroupsin interfaceDbUserHandler- Specified by:
loadUserGroupsin classDbUserHandlerImpl- Throws:
SQLException
-
loadUserSettings
public void loadUserSettings(Connection c, DbUser[] users) throws SQLException
- Specified by:
loadUserSettingsin interfaceDbUserHandler- Specified by:
loadUserSettingsin classDbUserHandlerImpl- Throws:
SQLException
-
removeGroups
public void removeGroups(Connection c, long[] ids) throws SQLException
- Specified by:
removeGroupsin interfaceDbUserHandler- Specified by:
removeGroupsin classDbUserHandlerImpl- Throws:
SQLException
-
removePermissions
public void removePermissions(Connection c, long[] ids) throws SQLException
- Specified by:
removePermissionsin interfaceDbUserHandler- Specified by:
removePermissionsin classDbUserHandlerImpl- Throws:
SQLException
-
removeUsers
public void removeUsers(Connection c, long[] ids) throws SQLException
- Specified by:
removeUsersin interfaceDbUserHandler- Specified by:
removeUsersin classDbUserHandlerImpl- Throws:
SQLException
-
saveGroup
public void saveGroup(Connection c, DbPluginHandler pluginHandler, DbGroup group) throws SQLException
- Specified by:
saveGroupin interfaceDbUserHandler- Specified by:
saveGroupin classDbUserHandlerImpl- Throws:
SQLException
-
savePermission
public void savePermission(Connection c, DbPermission permission) throws SQLException
- Specified by:
savePermissionin interfaceDbUserHandler- Specified by:
savePermissionin classDbUserHandlerImpl- Throws:
SQLException
-
saveUserCompletely
public void saveUserCompletely(Connection c, DbPluginHandler pluginHandler, DbUser user) throws SQLException
- Specified by:
saveUserCompletelyin interfaceDbUserHandler- Specified by:
saveUserCompletelyin classDbUserHandlerImpl- Throws:
SQLException
-
saveUserProfile
public void saveUserProfile(Connection c, DbPluginHandler pluginHandler, DbUser user) throws SQLException
- Specified by:
saveUserProfilein interfaceDbUserHandler- Specified by:
saveUserProfilein classDbUserHandlerImpl- Throws:
SQLException
-
setUserLastLogin
public void setUserLastLogin(Connection c, long userId, Date lastLogin) throws SQLException
- Specified by:
setUserLastLoginin interfaceDbUserHandler- Specified by:
setUserLastLoginin classDbUserHandlerImpl- Throws:
SQLException
-
-