|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.openexchange.admin.storage.interfaces.OXUserStorageInterface
public abstract class OXUserStorageInterface
This interface provides an abstraction to the storage of the user information
Constructor Summary | |
---|---|
OXUserStorageInterface()
|
Method Summary | |
---|---|
abstract void |
change(Context ctx,
User usrdata)
Manipulate user data within the given context. |
abstract void |
changeLastModified(int user_id,
Context ctx,
Connection write_ox_con)
Changes last modified data in database |
abstract void |
changeModuleAccess(Context ctx,
int[] user_ids,
UserModuleAccess moduleAccess)
Manipulate users module access within the given context. |
abstract void |
changeModuleAccess(Context ctx,
int userId,
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,
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,
Connection write_ox_con)
Fetch all data from current user and add it to "del_user" |
abstract void |
delete(Context ctx,
User user)
Delete one user in given context |
abstract void |
delete(Context ctx,
User[] users)
Delete users in given context |
abstract void |
delete(Context ctx,
User[] user_ids,
Connection write_ox_con)
Delete an user or multiple from given context in given connection |
abstract void |
deleteAllRecoveryData(Context ctx,
Connection con)
Delete from "del_user" for given context |
abstract void |
deleteRecoveryData(Context ctx,
int user_id,
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(). |
static OXUserStorageInterface |
getInstance()
Creates a new instance implementing the group storage interface. |
abstract UserModuleAccess |
getModuleAccess(Context ctx,
int user_id)
Retrieve the ModuleAccess for an user. |
abstract User[] |
list(Context ctx,
String search_pattern)
Retrieve all user objects for a given context. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OXUserStorageInterface()
Method Detail |
---|
public static OXUserStorageInterface getInstance() throws StorageException
StorageException
- Storage exceptionpublic abstract UserModuleAccess getModuleAccess(Context ctx, int user_id) throws StorageException
context
- Contextuser_id
- long containing the user id.
StorageException
public abstract void changeModuleAccess(Context ctx, int userId, UserModuleAccess moduleAccess) throws StorageException
ctx
- Context object.userId
- int[] containing the user id.moduleAccess
- UserModuleAccess containing module access.
StorageException
public abstract void changeModuleAccess(Context ctx, int[] user_ids, UserModuleAccess moduleAccess) throws StorageException
ctx
- Context object.user_ids
- int[] containing the user ids.moduleAccess
- UserModuleAccess containing module access.
StorageException
public abstract User[] getData(Context ctx, User[] users) throws StorageException
context
- Context object.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
RemoteException
StorageException
public abstract void change(Context ctx, User usrdata) throws StorageException
context
- Context in which the new user will be modified.usrdata
- User containing user data.
StorageException
public abstract void changeLastModified(int user_id, Context ctx, Connection write_ox_con) throws StorageException
StorageException
public abstract int create(Context ctx, User usrdata, UserModuleAccess moduleAccess, Connection write_ox_con, int internal_user_id, int contact_id, int uid_number) throws StorageException
StorageException
public abstract int create(Context ctx, User usrdata, UserModuleAccess moduleAccess) throws StorageException
StorageException
public abstract int[] getAll(Context ctx) throws StorageException
ctx
- numerical context identifier
StorageException
public abstract User[] list(Context ctx, String search_pattern) throws StorageException
ctx
- numerical context identifier
StorageException
public abstract void delete(Context ctx, User[] user_ids, Connection write_ox_con) throws StorageException
StorageException
public abstract void delete(Context ctx, User[] users) throws StorageException
StorageException
public abstract void delete(Context ctx, User user) throws StorageException
StorageException
public abstract void createRecoveryData(Context ctx, int user_id, Connection write_ox_con) throws StorageException
StorageException
public abstract void deleteRecoveryData(Context ctx, int user_id, Connection con) throws StorageException
StorageException
public abstract void deleteAllRecoveryData(Context ctx, Connection con) throws StorageException
StorageException
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |