Package com.openindex.openestate.tool.db
Interface DbUserHandler
-
- All Known Implementing Classes:
DbUserHandlerImpl
,HSqlDbUserHandler
public interface DbUserHandler
DbUserHandler.- Author:
- Andreas Rudolph
-
-
Method Summary
-
-
-
Method Detail
-
getGroup
DbGroup getGroup(Connection c, long id) throws SQLException
- Throws:
SQLException
-
getGroup
DbGroup getGroup(Connection c, String name) throws SQLException
- Throws:
SQLException
-
getGroups
DbGroup[] getGroups(Connection c) throws SQLException
- Throws:
SQLException
-
getGroups
DbGroup[] getGroups(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
getGroups
DbGroup[] getGroups(Connection c, String[] names) throws SQLException
- Throws:
SQLException
-
getGroupIds
long[] getGroupIds(Connection c) throws SQLException
- Throws:
SQLException
-
getGroupIds
long[] getGroupIds(Connection c, String[] names) throws SQLException
- Throws:
SQLException
-
getGroupNames
String[] getGroupNames(Connection c) throws SQLException
- Throws:
SQLException
-
getGroupNames
String[] getGroupNames(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
getGroupPermissions
Map<String,List<String>> getGroupPermissions(Connection c, long groupId) throws SQLException
- Throws:
SQLException
-
getPermission
DbPermission getPermission(Connection c, long id) throws SQLException
- Throws:
SQLException
-
getPermission
DbPermission getPermission(Connection c, long pluginId, String key) throws SQLException
- Throws:
SQLException
-
getPermissionIds
long[] getPermissionIds(Connection c) throws SQLException
- Throws:
SQLException
-
getPermissionIds
long[] getPermissionIds(Connection c, long pluginId) throws SQLException
- Throws:
SQLException
-
getPermissionIds
long[] getPermissionIds(Connection c, long pluginId, String[] keys) throws SQLException
- Throws:
SQLException
-
getPermissionKeys
String[] getPermissionKeys(Connection c, long pluginId) throws SQLException
- Throws:
SQLException
-
getPermissions
DbPermission[] getPermissions(Connection c) throws SQLException
- Throws:
SQLException
-
getPermissions
DbPermission[] getPermissions(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
getPermissions
DbPermission[] getPermissions(Connection c, long pluginId) throws SQLException
- Throws:
SQLException
-
getPermissions
DbPermission[] getPermissions(Connection c, long pluginId, String[] keys) throws SQLException
- Throws:
SQLException
-
getUser
DbUser getUser(Connection c, long id) throws SQLException
- Throws:
SQLException
-
getUser
DbUser getUser(Connection c, String login) throws SQLException
- Throws:
SQLException
-
getUsers
DbUser[] getUsers(Connection c) throws SQLException
- Throws:
SQLException
-
getUsers
DbUser[] getUsers(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
getUsers
DbUser[] getUsers(Connection c, String[] logins) throws SQLException
- Throws:
SQLException
-
getUserId
long getUserId(Connection c, String login) throws SQLException
- Throws:
SQLException
-
getUserIds
long[] getUserIds(Connection c) throws SQLException
- Throws:
SQLException
-
getUserIds
long[] getUserIds(Connection c, String[] logins) throws SQLException
- Throws:
SQLException
-
getUserLogins
String[] getUserLogins(Connection c) throws SQLException
- Throws:
SQLException
-
getUserPermissions
Map<String,List<String>> getUserPermissions(Connection c, long userId) throws SQLException
- Throws:
SQLException
-
loadGroupPermissions
void loadGroupPermissions(Connection c, DbGroup group) throws SQLException
- Throws:
SQLException
-
loadGroupUsers
void loadGroupUsers(Connection c, DbGroup group) throws SQLException
- Throws:
SQLException
-
loadGroupUsers
void loadGroupUsers(Connection c, DbGroup[] groups) throws SQLException
- Throws:
SQLException
-
loadUserEffectivePermissions
void loadUserEffectivePermissions(Connection c, DbUser user) throws SQLException
- Throws:
SQLException
-
loadUserGroups
void loadUserGroups(Connection c, DbUser user) throws SQLException
- Throws:
SQLException
-
loadUserGroups
void loadUserGroups(Connection c, DbUser[] users) throws SQLException
- Throws:
SQLException
-
loadUserPermissions
void loadUserPermissions(Connection c, DbUser user) throws SQLException
- Throws:
SQLException
-
loadUserSettings
void loadUserSettings(Connection c, DbUser user) throws SQLException
- Throws:
SQLException
-
loadUserSettings
void loadUserSettings(Connection c, DbUser[] users) throws SQLException
- Throws:
SQLException
-
removeGroup
void removeGroup(Connection c, long id) throws SQLException
- Throws:
SQLException
-
removeGroup
void removeGroup(Connection c, String name) throws SQLException
- Throws:
SQLException
-
removeGroups
void removeGroups(Connection c, String[] names) throws SQLException
- Throws:
SQLException
-
removeGroups
void removeGroups(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
removePermission
void removePermission(Connection c, long id) throws SQLException
- Throws:
SQLException
-
removePermission
void removePermission(Connection c, long pluginId, String key) throws SQLException
- Throws:
SQLException
-
removePermissions
void removePermissions(Connection c, long pluginId, String[] keys) throws SQLException
- Throws:
SQLException
-
removePermissions
void removePermissions(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
removeUser
void removeUser(Connection c, long id) throws SQLException
- Throws:
SQLException
-
removeUser
void removeUser(Connection c, String login) throws SQLException
- Throws:
SQLException
-
removeUsers
void removeUsers(Connection c, String[] logins) throws SQLException
- Throws:
SQLException
-
removeUsers
void removeUsers(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
saveGroup
void saveGroup(Connection c, DbGroup group) throws SQLException
- Throws:
SQLException
-
saveGroup
void saveGroup(Connection c, DbPluginHandler pluginHandler, DbGroup group) throws SQLException
- Throws:
SQLException
-
savePermission
void savePermission(Connection c, DbPermission permission) throws SQLException
- Throws:
SQLException
-
saveUserCompletely
void saveUserCompletely(Connection c, DbUser user) throws SQLException
- Throws:
SQLException
-
saveUserCompletely
void saveUserCompletely(Connection c, DbPluginHandler pluginHandler, DbUser user) throws SQLException
- Throws:
SQLException
-
saveUserProfile
void saveUserProfile(Connection c, DbUser user) throws SQLException
- Throws:
SQLException
-
saveUserProfile
void saveUserProfile(Connection c, DbPluginHandler pluginHandler, DbUser user) throws SQLException
- Throws:
SQLException
-
setUserLastLogin
void setUserLastLogin(Connection c, long userId) throws SQLException
- Throws:
SQLException
-
setUserLastLogin
void setUserLastLogin(Connection c, long userId, Date lastLogin) throws SQLException
- Throws:
SQLException
-
-