|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWSCall
org.gcube.contentmanagement.viewmanager.stubs.calls.ViewCall
public class ViewCall
A call to the ViewResource Manager.
A ViewCall
call may target known service instances or else do its best
to find and talk with those which have the required plugin.
It may be used repeatedly and it will remember the service instance it last used successfully.
Constructor Summary | |
---|---|
ViewCall(GCUBEScope scope,
GCUBESecurityManager... securityManager)
Creates an instance to use in a given scope and, optionally, with a given a security manager. |
|
ViewCall(java.lang.String name,
GCUBEScope scope,
GCUBESecurityManager... securityManager)
Creates an instance to use with a given plugin in a given scope and, optionally, with a given a security manager. |
Method Summary | |
---|---|
View |
create(View view,
boolean... broadcast)
Creates a view WS-Resource. |
void |
destroy(org.apache.axis.message.addressing.EndpointReferenceType epr)
Destroys a view. |
void |
resetQuery()
Resets the default query used by the call. |
void |
setEndpoint(java.lang.String hostname,
java.lang.String port)
Convenience method to set the target endpoint from host name and port. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewCall(GCUBEScope scope, GCUBESecurityManager... securityManager) throws java.lang.Exception
name
- the name of the plugin.scope
- the scope.securityManager
- (optional) the security manager.
java.lang.Exception
- if the instance could not be created.public ViewCall(java.lang.String name, GCUBEScope scope, GCUBESecurityManager... securityManager) throws java.lang.Exception
name
- the name of the plugin.scope
- the scope.securityManager
- (optional) the security manager.
java.lang.Exception
- if the instance could not be created.Method Detail |
---|
public void setEndpoint(java.lang.String hostname, java.lang.String port) throws java.lang.Exception
hostname
- the host name.port
- the port.
java.lang.Exception
- if a reference to the endpoint could not be built from its hostname and port.public void resetQuery() throws java.lang.Exception
java.lang.Exception
- if the query could not be reset.public View create(View view, boolean... broadcast) throws java.lang.Exception, GCUBEException
parameters
- the view definition.
java.lang.Exception
- if the view could not be created for a local error.
GCUBEException
- if the view could not be created for a remote error.public void destroy(org.apache.axis.message.addressing.EndpointReferenceType epr) throws GCUBEUnrecoverableException
epr
- the reference to the view's endpoint
GCUBEUnrecovarableException
- if the operation could not be completed for a remote fault.
The fault can be found as the cause of the exception.
GCUBEUnrecoverableException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |