|
|||||||||
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.OXGroup
public class OXGroup
Implementation for the RMI interface of group
Field Summary |
---|
Fields inherited from interface com.openexchange.admin.rmi.OXGroupInterface |
---|
RMI_NAME |
Constructor Summary | |
---|---|
OXGroup(BundleContext context)
|
Method Summary | |
---|---|
void |
addMember(Context ctx,
Group grp,
User[] members,
Credentials auth)
Adds a new member to the group within given context. |
void |
change(Context ctx,
Group grp,
Credentials auth)
Method for changing group data in given context |
Group |
create(Context ctx,
Group grp,
Credentials auth)
Create new group in given context. |
void |
delete(Context ctx,
Group[] grp,
Credentials auth)
Delete group within given context. |
void |
delete(Context ctx,
Group grp,
Credentials auth)
Method for deleting group within given context. |
Group[] |
getData(Context ctx,
Group[] groups,
Credentials auth)
Fetch specified groups from server. |
Group |
getData(Context ctx,
Group grp,
Credentials auth)
Fetch a group from server. |
Group |
getDefaultGroup(Context ctx,
Credentials auth)
Gets the default group of the specified context. |
User[] |
getMembers(Context ctx,
Group grp,
Credentials auth)
Get User IDs of the members of this group. |
Group[] |
list(Context ctx,
String pattern,
Credentials auth)
List groups within context matching the pattern. |
Group[] |
listAll(Context ctx,
Credentials auth)
List all groups within context. |
Group[] |
listGroupsForUser(Context ctx,
User usr,
Credentials auth)
|
void |
removeMember(Context ctx,
Group grp,
User[] members,
Credentials auth)
Remove member(s) from group. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OXGroup(BundleContext context) throws RemoteException, StorageException
RemoteException
StorageException
Method Detail |
---|
public void addMember(Context ctx, Group grp, User[] members, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchUserException, NoSuchGroupException
OXGroupInterface
addMember
in interface OXGroupInterface
ctx
- Context objectmembers
- User objects with the user_id field set.auth
- Credentials for authenticating against server.
RemoteException
- General RMI Exception
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
NoSuchGroupException
public void change(Context ctx, Group grp, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchGroupException, NoSuchUserException
OXGroupInterface
change
in interface OXGroupInterface
ctx
- Context objectgrp
- Group to change.auth
- Credentials for authenticating against server.
RemoteException
- General RMI Exception
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
NoSuchGroupException
NoSuchUserException
public Group create(Context ctx, Group grp, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchUserException
OXGroupInterface
create
in interface OXGroupInterface
ctx
- Context object.grp
- Group which should be created.auth
- Credentials for authenticating against server.
RemoteException
- General RMI Exception
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, Group grp, Credentials auth) throws RemoteException, InvalidCredentialsException, NoSuchContextException, StorageException, InvalidDataException, DatabaseUpdateException, NoSuchGroupException
OXGroupInterface
delete
in interface OXGroupInterface
ctx
- Context objectgrp
- Group which should be deleted from the server.auth
- Credentials for authenticating against server.
RemoteException
- General RMI Exception
InvalidCredentialsException
- When the supplied credentials were not correct or
invalid.
NoSuchContextException
- If the context does not exist in the system.
StorageException
- When an error in the subsystems occurred.
InvalidDataException
- If the data sent within the method contained invalid
data.
DatabaseUpdateException
NoSuchGroupException
public void delete(Context ctx, Group[] grp, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchGroupException
OXGroupInterface
delete
in interface OXGroupInterface
ctx
- Context objectgrp
- Contains all groups which should be deleted from the
server.auth
- Credentials for authenticating against server.
RemoteException
- General RMI Exception
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
NoSuchGroupException
public Group getData(Context ctx, Group grp, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchGroupException
OXGroupInterface
getData
in interface OXGroupInterface
ctx
- Context objectgrp
- the group to retrieve from server.auth
- Credentials for authenticating against server.
RemoteException
- General RMI Exception
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
NoSuchGroupException
public Group[] getData(Context ctx, Group[] groups, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, NoSuchGroupException, DatabaseUpdateException
OXGroupInterface
getData
in interface OXGroupInterface
RemoteException
StorageException
InvalidCredentialsException
NoSuchContextException
InvalidDataException
NoSuchGroupException
DatabaseUpdateException
public Group getDefaultGroup(Context ctx, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException
OXGroupInterface
getDefaultGroup
in interface OXGroupInterface
RemoteException
StorageException
InvalidCredentialsException
NoSuchContextException
InvalidDataException
DatabaseUpdateException
public User[] getMembers(Context ctx, Group grp, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchGroupException
OXGroupInterface
getMembers
in interface OXGroupInterface
ctx
- Context objectgrp
- group from which to retrieve the members.auth
- Credentials for authenticating against server.
RemoteException
- General RMI Exception
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
NoSuchGroupException
public Group[] list(Context ctx, String pattern, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException
OXGroupInterface
list
in interface OXGroupInterface
ctx
- Context object.pattern
- Search pattern to search for e.g. "*mygroup*"auth
- Credentials for authenticating against server.
RemoteException
- General RMI Exception
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.
DatabaseUpdateException
public Group[] listAll(Context ctx, Credentials auth) throws RemoteException, InvalidCredentialsException, NoSuchContextException, StorageException, InvalidDataException, DatabaseUpdateException
OXGroupInterface
listAll
in interface OXGroupInterface
ctx
- Context object.auth
- Credentials for authenticating against server.
RemoteException
- General RMI Exception
InvalidCredentialsException
- When the supplied credentials were not correct or
invalid.
NoSuchContextException
- If the context does not exist in the system.
StorageException
- When an error in the subsystems occurred.
InvalidDataException
- If the data sent within the method contained invalid
data.
DatabaseUpdateException
public Group[] listGroupsForUser(Context ctx, User usr, Credentials auth) throws RemoteException, InvalidCredentialsException, NoSuchContextException, StorageException, InvalidDataException, DatabaseUpdateException, NoSuchUserException
listGroupsForUser
in interface OXGroupInterface
ctx
- Context object.usr
- User objectauth
- Credentials for authenticating against server.
RemoteException
- General RMI Exception
InvalidCredentialsException
- When the supplied credentials were not correct or
invalid.
NoSuchContextException
- If the context does not exist in the system.
StorageException
- When an error in the subsystems occurred.
InvalidDataException
- if the data sent within the method contained invalid
data.
DatabaseUpdateException
NoSuchUserException
public void removeMember(Context ctx, Group grp, User[] members, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchGroupException, NoSuchUserException
OXGroupInterface
removeMember
in interface OXGroupInterface
ctx
- Context objectgrp
- the group from which the members should be removed.members
- User IDs.auth
- Credentials for authenticating against server.
RemoteException
- General RMI Exception
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
NoSuchGroupException
NoSuchUserException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |