|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.openexchange.admin.rmi.impl.OXCommonImpl com.openexchange.admin.rmi.impl.OXUser
public class OXUser
Field Summary |
---|
Fields inherited from interface com.openexchange.admin.rmi.OXUserInterface |
---|
RMI_NAME |
Constructor Summary | |
---|---|
OXUser(BundleContext context)
|
Method Summary | |
---|---|
void |
change(Context ctx,
User usrdata,
Credentials auth)
Manipulate user data within the given context. |
void |
changeModuleAccess(Context ctx,
User user,
String access_combination_name,
Credentials auth)
Manipulate user module access within the given context. |
void |
changeModuleAccess(Context ctx,
User user,
UserModuleAccess moduleAccess,
Credentials auth)
Manipulate user module access within the given context. |
User |
create(Context ctx,
User usrdata,
Credentials auth)
Creates a new user within the given context. Default context access rights are used! |
User |
create(Context ctx,
User usrdata,
String access_combination_name,
Credentials auth)
Creates a new user within the given context. |
User |
create(Context ctx,
User usr,
UserModuleAccess access,
Credentials auth)
Creates a new user within the given context. |
void |
delete(Context ctx,
User[] users,
Credentials auth)
Delete user from given context. |
void |
delete(Context ctx,
User user,
Credentials auth)
Delete user from given context. |
String |
getAccessCombinationName(Context ctx,
User user,
Credentials auth)
Get current access combination name of an user! |
UserModuleAccess |
getContextAdminUserModuleAccess(Context ctx,
Credentials auth)
Returns the module access rights of the context-admin |
User[] |
getData(Context ctx,
User[] users,
Credentials auth)
Retrieve user objects for a range of users by username or id. |
User |
getData(Context ctx,
User user,
Credentials auth)
Retrieve user objects for a range of users by username or id. |
UserModuleAccess |
getModuleAccess(Context ctx,
User user,
Credentials auth)
Retrieve the ModuleAccess for an user. |
boolean |
isContextAdmin(Context ctx,
User user,
Credentials auth)
|
User[] |
list(Context ctx,
String search_pattern,
Credentials auth)
Retrieve all users for a given context. |
User[] |
listAll(Context ctx,
Credentials auth)
Retrieve all users for a given context. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OXUser(BundleContext context) throws StorageException
StorageException
Method Detail |
---|
public void change(Context ctx, User usrdata, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchUserException
OXUserInterface
change
in interface OXUserInterface
usrdata
- User containing user data.auth
- Credentials for authenticating against server.
StorageException
- When an error in the subsystems occurred.
InvalidCredentialsException
- When the supplied credentials were not correct or invalid.
NoSuchContextException
- If the context does not exist in the system.
InvalidDataException
- If the data sent within the method contained invalid data.
DatabaseUpdateException
NoSuchUserException
public void changeModuleAccess(Context ctx, User user, UserModuleAccess moduleAccess, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchUserException
OXUserInterface
changeModuleAccess
in interface OXUserInterface
ctx
- Context object.moduleAccess
- UserModuleAccess containing module access.auth
- Credentials for authenticating against server.
StorageException
- When an error in the subsystems occurred.
InvalidCredentialsException
- When the supplied credentials were not correct or invalid.
NoSuchContextException
- If the context does not exist in the system.
InvalidDataException
- If the data sent within the method contained invalid data.
DatabaseUpdateException
NoSuchUserException
public void changeModuleAccess(Context ctx, User user, String access_combination_name, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchUserException
OXUserInterface
changeModuleAccess
in interface OXUserInterface
ctx
- Context object.auth
- Credentials for authenticating against server.
StorageException
- When an error in the subsystems occurred.
InvalidCredentialsException
- When the supplied credentials were not correct or invalid.
NoSuchContextException
- If the context does not exist in the system.
InvalidDataException
- If the data sent within the method contained invalid data.
DatabaseUpdateException
NoSuchUserException
public User create(Context ctx, User usr, UserModuleAccess access, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException
OXUserInterface
create
in interface OXUserInterface
usr
- User containing user data.access
- UserModuleAccess containing module access for the user.auth
- Credentials for authenticating against server.
StorageException
- When an error in the subsystems occurred.
InvalidCredentialsException
- When the supplied credentials were not correct or invalid.
NoSuchContextException
- If the context does not exist in the system.
InvalidDataException
- If the data sent within the method contained invalid data.
DatabaseUpdateException
public User create(Context ctx, User usrdata, String access_combination_name, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException
OXUserInterface
create
in interface OXUserInterface
usrdata
- User containing user data.access_combination_name
- Access combination name identifying the module rights for the new user.auth
- Credentials for authenticating against server.
StorageException
- When an error in the subsystems occurred.
InvalidCredentialsException
- When the supplied credentials were not correct or invalid.
NoSuchContextException
- If the context does not exist in the system.
InvalidDataException
- If the data sent within the method contained invalid data.
DatabaseUpdateException
public User create(Context ctx, User usrdata, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException
OXUserInterface
create
in interface OXUserInterface
usrdata
- User containing user data.auth
- Credentials for authenticating against server.
StorageException
- When an error in the subsystems occurred.
InvalidCredentialsException
- When the supplied credentials were not correct or invalid.
NoSuchContextException
- If the context does not exist in the system.
InvalidDataException
- If the data sent within the method contained invalid data.
DatabaseUpdateException
public UserModuleAccess getContextAdminUserModuleAccess(Context ctx, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException
OXUserInterface
getContextAdminUserModuleAccess
in interface OXUserInterface
auth
- Credentials for authenticating against server.
StorageException
- When an error in the subsystems occurred.
InvalidCredentialsException
- When the supplied credentials were not correct or invalid.
NoSuchContextException
- If the context does not exist in the system.
InvalidDataException
- If the data sent within the method contained invalid data.
DatabaseUpdateException
public void delete(Context ctx, User user, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchUserException
OXUserInterface
delete
in interface OXUserInterface
user
- user object.auth
- Credentials for authenticating against server.
StorageException
- When an error in the subsystems occurred.
InvalidCredentialsException
- When the supplied credentials were not correct or invalid.
NoSuchContextException
- If the context does not exist in the system.
InvalidDataException
- If the data sent within the method contained invalid data.
DatabaseUpdateException
NoSuchUserException
public void delete(Context ctx, User[] users, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchUserException
OXUserInterface
delete
in interface OXUserInterface
users
- user array containing user object.auth
- Credentials for authenticating against server.
StorageException
- When an error in the subsystems occurred.
InvalidCredentialsException
- When the supplied credentials were not correct or invalid.
NoSuchContextException
- If the context does not exist in the system.
InvalidDataException
- If the data sent within the method contained invalid data.
DatabaseUpdateException
NoSuchUserException
public User getData(Context ctx, User user, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, NoSuchUserException, DatabaseUpdateException
OXUserInterface
getData
in interface OXUserInterface
user
- user object with user to get data for.auth
- Credentials for authenticating against server.
StorageException
- When an error in the subsystems occured.
InvalidCredentialsException
- When the supplied credentials were not correct or invalid.
NoSuchContextException
- If the context does not exist in the system.
InvalidDataException
- If the data sent within the method contained invalid data.
NoSuchUserException
DatabaseUpdateException
User.getUsername().
public User[] getData(Context ctx, User[] users, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, NoSuchUserException, DatabaseUpdateException
OXUserInterface
getData
in interface OXUserInterface
users
- User[] with users to get data for.auth
- Credentials for authenticating against server.
StorageException
- When an error in the subsystems occured.
InvalidCredentialsException
- When the supplied credentials were not correct or invalid.
NoSuchContextException
- If the context does not exist in the system.
InvalidDataException
- If the data sent within the method contained invalid data.
NoSuchUserException
DatabaseUpdateException
User.getUsername().
public UserModuleAccess getModuleAccess(Context ctx, User user, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchUserException
OXUserInterface
getModuleAccess
in interface OXUserInterface
auth
- Credentials for authenticating against server.
StorageException
- When an error in the subsystems occurred.
InvalidCredentialsException
- When the supplied credentials were not correct or invalid.
NoSuchContextException
- If the context does not exist in the system.
InvalidDataException
- If the data sent within the method contained invalid data.
DatabaseUpdateException
NoSuchUserException
public String getAccessCombinationName(Context ctx, User user, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchUserException
OXUserInterface
getAccessCombinationName
in interface OXUserInterface
StorageException
InvalidCredentialsException
NoSuchContextException
InvalidDataException
DatabaseUpdateException
NoSuchUserException
public boolean isContextAdmin(Context ctx, User user, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, NoSuchUserException, DatabaseUpdateException
StorageException
InvalidCredentialsException
NoSuchContextException
InvalidDataException
NoSuchUserException
DatabaseUpdateException
public User[] list(Context ctx, String search_pattern, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException
OXUserInterface
list
in interface OXUserInterface
ctx
- Context object.search_pattern
- A pattern to search forauth
- Credentials for authenticating against server.
StorageException
InvalidCredentialsException
NoSuchContextException
InvalidDataException
DatabaseUpdateException
public User[] listAll(Context ctx, Credentials auth) throws StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException
OXUserInterface
listAll
in interface OXUserInterface
ctx
- Context object.auth
- Credentials for authenticating against server.
StorageException
InvalidCredentialsException
NoSuchContextException
InvalidDataException
DatabaseUpdateException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |