|
|||||||||
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.OXResource
public class OXResource
Field Summary |
---|
Fields inherited from interface com.openexchange.admin.rmi.OXResourceInterface |
---|
RMI_NAME |
Constructor Summary | |
---|---|
OXResource(BundleContext context)
|
Method Summary | |
---|---|
void |
change(Context ctx,
Resource res,
Credentials auth)
Change resource within the given context. |
Resource |
create(Context ctx,
Resource res,
Credentials auth)
Creates a new resource within the given context. |
void |
delete(Context ctx,
Resource res,
Credentials auth)
Delete resource from given context. |
Resource[] |
getData(Context ctx,
Resource[] resources,
Credentials auth)
Get specified resources from server. |
Resource |
getData(Context ctx,
Resource res,
Credentials auth)
Get Resource from given context. |
Resource[] |
list(Context ctx,
String pattern,
Credentials auth)
List resources matching pattern in given context. |
Resource[] |
listAll(Context ctx,
Credentials auth)
List all resources in given context. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OXResource(BundleContext context) throws RemoteException, StorageException
RemoteException
StorageException
Method Detail |
---|
public void change(Context ctx, Resource res, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchResourceException
OXResourceInterface
change
in interface OXResourceInterface
ctx
- Change Resource in this Context.res
- Resource containing the data.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
NoSuchResourceException
public Resource create(Context ctx, Resource res, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException
OXResourceInterface
create
in interface OXResourceInterface
ctx
- Create Resource in this Contextres
- Resource which should be createdauth
- 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
public void delete(Context ctx, Resource res, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchResourceException
OXResourceInterface
delete
in interface OXResourceInterface
ctx
- Context object.res
- Resource which should be deleted.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
NoSuchResourceException
public Resource getData(Context ctx, Resource res, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException, NoSuchResourceException
OXResourceInterface
getData
in interface OXResourceInterface
ctx
- Context object.res
- Resource containing the resource id.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
NoSuchResourceException
public Resource[] getData(Context ctx, Resource[] resources, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, NoSuchResourceException, DatabaseUpdateException
OXResourceInterface
getData
in interface OXResourceInterface
RemoteException
StorageException
InvalidCredentialsException
NoSuchContextException
InvalidDataException
NoSuchResourceException
DatabaseUpdateException
public Resource[] list(Context ctx, String pattern, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException
OXResourceInterface
pattern
in given context.
list
in interface OXResourceInterface
ctx
- Context object.pattern
- Search pattern like * or mon* (e.g. for monitor)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
public Resource[] listAll(Context ctx, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException
OXResourceInterface
listAll
in interface OXResourceInterface
ctx
- Context object.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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |