|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.openexchange.admin.storage.interfaces.OXUserStorageInterface
com.openexchange.admin.storage.sqlStorage.OXUserSQLStorage
com.openexchange.admin.storage.mysqlStorage.OXUserMySQLStorage
public class OXUserMySQLStorage
Field Summary |
---|
Fields inherited from interface com.openexchange.admin.storage.mysqlStorage.OXMySQLDefaultValues |
---|
NOBODY, NOGROUP |
Constructor Summary | |
---|---|
OXUserMySQLStorage()
|
Method Summary | |
---|---|
void |
change(Context ctx,
User usrdata)
Manipulate user data within the given context. |
void |
changeLastModified(int user_id,
Context ctx,
Connection write_ox_con)
Changes last modified data in database |
void |
changeModuleAccess(Context ctx,
int[] userIds,
UserModuleAccess moduleAccess)
Manipulate users module access within the given context. |
void |
changeModuleAccess(Context ctx,
int userId,
UserModuleAccess moduleAccess)
Manipulate user module access within the given context. |
int |
create(Context ctx,
User usrdata,
UserModuleAccess moduleAccess)
Create new user in context ctx |
int |
create(Context ctx,
User usrdata,
UserModuleAccess moduleAccess,
Connection con,
int userId,
int contactId,
int uid_number)
Create new user in given connection with given contact and user id If the uid number feature is active then also supply a correct uid_number(IDGenerator with Type UID_NUMBER).Else set this to -1 |
void |
createRecoveryData(Context ctx,
int user_id,
Connection write_ox_con)
Fetch all data from current user and add it to "del_user" |
void |
delete(Context ctx,
User user)
Delete one user in given context |
void |
delete(Context ctx,
User[] users)
Delete users in given context |
void |
delete(Context ctx,
User[] users,
Connection write_ox_con)
Delete an user or multiple from given context in given connection |
void |
deleteAllRecoveryData(Context ctx,
Connection con)
Delete from "del_user" for given context |
void |
deleteRecoveryData(Context ctx,
int user_id,
Connection con)
Delete from "del_user" for given context and user |
int[] |
getAll(Context ctx)
Retrieve all user ids for a given context. |
static boolean |
getboolfromint(int number)
|
User[] |
getData(Context ctx,
User[] users)
Retrieve user objects for a range of users identified by User.getUsername(). |
static int |
getintfrombool(boolean bool)
|
UserModuleAccess |
getModuleAccess(Context ctx,
int user_id)
Retrieve the ModuleAccess for an user. |
User[] |
list(Context ctx,
String search_pattern)
Retrieve all user objects for a given context. |
Methods inherited from class com.openexchange.admin.storage.interfaces.OXUserStorageInterface |
---|
getInstance |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OXUserMySQLStorage()
Method Detail |
---|
public void change(Context ctx, User usrdata) throws StorageException
OXUserStorageInterface
change
in class OXUserStorageInterface
usrdata
- User containing user data.
StorageException
public int create(Context ctx, User usrdata, UserModuleAccess moduleAccess, Connection con, int userId, int contactId, int uid_number) throws StorageException
OXUserStorageInterface
create
in class OXUserStorageInterface
StorageException
public int create(Context ctx, User usrdata, UserModuleAccess moduleAccess) throws StorageException
OXUserStorageInterface
create
in class OXUserStorageInterface
StorageException
public int[] getAll(Context ctx) throws StorageException
OXUserStorageInterface
getAll
in class OXUserStorageInterface
ctx
- numerical context identifier
StorageException
public User[] list(Context ctx, String search_pattern) throws StorageException
OXUserStorageInterface
list
in class OXUserStorageInterface
ctx
- numerical context identifier
StorageException
public User[] getData(Context ctx, User[] users) throws StorageException
OXUserStorageInterface
getData
in class OXUserStorageInterface
users
- User[] with users to get data for. Attention: These objects will be cloned by a shallow copy, so
non native attributes will point to the same reference after this method
StorageException
public void delete(Context ctx, User[] users, Connection write_ox_con) throws StorageException
OXUserStorageInterface
delete
in class OXUserStorageInterface
StorageException
public void delete(Context ctx, User[] users) throws StorageException
OXUserStorageInterface
delete
in class OXUserStorageInterface
StorageException
public void delete(Context ctx, User user) throws StorageException
OXUserStorageInterface
delete
in class OXUserStorageInterface
StorageException
public void changeModuleAccess(Context ctx, int[] userIds, UserModuleAccess moduleAccess) throws StorageException
OXUserStorageInterface
changeModuleAccess
in class OXUserStorageInterface
ctx
- Context object.userIds
- int[] containing the user ids.moduleAccess
- UserModuleAccess containing module access.
StorageException
public void changeModuleAccess(Context ctx, int userId, UserModuleAccess moduleAccess) throws StorageException
OXUserStorageInterface
changeModuleAccess
in class OXUserStorageInterface
ctx
- Context object.userId
- int[] containing the user id.moduleAccess
- UserModuleAccess containing module access.
StorageException
public UserModuleAccess getModuleAccess(Context ctx, int user_id) throws StorageException
OXUserStorageInterface
getModuleAccess
in class OXUserStorageInterface
user_id
- long containing the user id.
StorageException
public void changeLastModified(int user_id, Context ctx, Connection write_ox_con) throws StorageException
OXUserStorageInterface
changeLastModified
in class OXUserStorageInterface
StorageException
public void createRecoveryData(Context ctx, int user_id, Connection write_ox_con) throws StorageException
OXUserStorageInterface
createRecoveryData
in class OXUserStorageInterface
StorageException
public void deleteAllRecoveryData(Context ctx, Connection con) throws StorageException
OXUserStorageInterface
deleteAllRecoveryData
in class OXUserStorageInterface
StorageException
public void deleteRecoveryData(Context ctx, int user_id, Connection con) throws StorageException
OXUserStorageInterface
deleteRecoveryData
in class OXUserStorageInterface
StorageException
public static int getintfrombool(boolean bool)
public static boolean getboolfromint(int number)
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |