|
![]() |
||||||||
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
public abstract class OXUserSQLStorage
This class implements the global storage interface and creates a layer between the abstract storage definition and a storage in a SQL accessible database
Constructor Summary | |
---|---|
OXUserSQLStorage()
|
Method Summary | |
---|---|
abstract void |
change(Context ctx,
User usrdata)
Manipulate user data within the given context. |
abstract void |
changeLastModified(int user_id,
Context ctx,
java.sql.Connection write_ox_con)
Changes last modified data in database |
abstract void |
changeModuleAccess(Context ctx,
int user_id,
UserModuleAccess moduleAccess)
Manipulate user module access within the given context. |
abstract int |
create(Context ctx,
User usrdata,
UserModuleAccess moduleAccess)
Create new user in context ctx |
abstract int |
create(Context ctx,
User usrdata,
UserModuleAccess moduleAccess,
java.sql.Connection write_ox_con,
int internal_user_id,
int contact_id,
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 |
abstract void |
createRecoveryData(Context ctx,
int user_id,
java.sql.Connection write_ox_con)
Fetch all data from current user and add it to "del_user" |
abstract void |
deleteAllRecoveryData(Context ctx,
java.sql.Connection con)
Delete from "del_user" for given context |
abstract void |
deleteRecoveryData(Context ctx,
int user_id,
java.sql.Connection con)
Delete from "del_user" for given context and user |
abstract int[] |
getAll(Context ctx)
Retrieve all user ids for a given context. |
abstract User[] |
getData(Context ctx,
User[] users)
Retrieve user objects for a range of users identified by User.getUsername(). |
abstract UserModuleAccess |
getModuleAccess(Context ctx,
int user_id)
Retrieve the ModuleAccess for an user. |
Methods inherited from class com.openexchange.admin.storage.interfaces.OXUserStorageInterface |
---|
changeModuleAccess, delete, delete, delete, getInstance, list |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OXUserSQLStorage()
Method Detail |
---|
public abstract void changeLastModified(int user_id, Context ctx, java.sql.Connection write_ox_con) throws StorageException
OXUserStorageInterface
changeLastModified
in class OXUserStorageInterface
StorageException
public abstract void change(Context ctx, User usrdata) throws StorageException
OXUserStorageInterface
change
in class OXUserStorageInterface
usrdata
- User containing user data.
StorageException
public abstract void changeModuleAccess(Context ctx, int user_id, UserModuleAccess moduleAccess) throws StorageException
OXUserStorageInterface
changeModuleAccess
in class OXUserStorageInterface
ctx
- Context object.user_id
- int[] containing the user id.moduleAccess
- UserModuleAccess containing module access.
StorageException
public abstract int create(Context ctx, User usrdata, UserModuleAccess moduleAccess, java.sql.Connection write_ox_con, int internal_user_id, int contact_id, int uid_number) throws StorageException
OXUserStorageInterface
create
in class OXUserStorageInterface
StorageException
public abstract int create(Context ctx, User usrdata, UserModuleAccess moduleAccess) throws StorageException
OXUserStorageInterface
create
in class OXUserStorageInterface
StorageException
public abstract void createRecoveryData(Context ctx, int user_id, java.sql.Connection write_ox_con) throws StorageException
OXUserStorageInterface
createRecoveryData
in class OXUserStorageInterface
StorageException
public abstract void deleteRecoveryData(Context ctx, int user_id, java.sql.Connection con) throws StorageException
OXUserStorageInterface
deleteRecoveryData
in class OXUserStorageInterface
StorageException
public abstract void deleteAllRecoveryData(Context ctx, java.sql.Connection con) throws StorageException
OXUserStorageInterface
deleteAllRecoveryData
in class OXUserStorageInterface
StorageException
public abstract int[] getAll(Context ctx) throws StorageException
OXUserStorageInterface
getAll
in class OXUserStorageInterface
ctx
- numerical context identifier
StorageException
public abstract 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 abstract UserModuleAccess getModuleAccess(Context ctx, int user_id) throws StorageException
OXUserStorageInterface
getModuleAccess
in class OXUserStorageInterface
user_id
- long containing the user id.
StorageException
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |