public abstract class UtilEditorCallee extends ServiceCallee
busResourceURI, owner, theBus
Constructor and Description |
---|
UtilEditorCallee(ModuleContext context,
String namespace,
String ontologyURI,
String[] path,
String editedURI)
Default constructor of the class.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
executeAdd(Resource input)
When a ADD service request is received, this method is called
automatically.
|
abstract boolean |
executeChange(Resource input)
When a CHANGE service request is received, this method is called
automatically.
|
abstract Resource |
executeGet(Resource input)
When a GET service request is received, this method is called
automatically.
|
abstract boolean |
executeRemove(Resource input)
When a REMOVE service request is received, this method is called
automatically.
|
ServiceResponse |
handleCall(ServiceCall call)
The actual service method of the
ServiceCallee . |
addNewServiceProfiles, addNewServiceProfiles, busDyingOut, communicationChannelBroken, getMyID, handleRequest, removeMatchingProfiles
close, getComment, getLabel, getType, getURI, setComment, setLabel
public UtilEditorCallee(ModuleContext context, String namespace, String ontologyURI, String[] path, String editedURI)
context
- The Module Context of universAALnamespace
- The namespace of your server, ending with the character #ontologyURI
- The MY_URI of the class of Service ontology you are going to
implementpath
- The property path from the root of the Service ontology
concept to the exact concept you want to manageeditedURI
- The MY_URI of the class of the concept ontology that you want
to manage, which is at the end of the property pathpublic ServiceResponse handleCall(ServiceCall call)
ServiceCallee
ServiceCallee
. It is called
by the bus whenever there is a call that need to be serviced by this
ServiceCallee
.handleCall
in class ServiceCallee
call
- the call that needs to be serviced.public abstract Resource executeGet(Resource input)
input
- The Resource object with the instance URI for which the GET is
issued. Take into account that only the instance URI is of
interest here. You can cast it to the right class as you
defined it in the constructor for the managedURI parameter.public abstract boolean executeAdd(Resource input)
input
- The Resource object to add. You can cast it to the right class
as you defined it in the constructor for the managedURI
parameter.true
if the addition succeeded.public abstract boolean executeChange(Resource input)
input
- The Resource object to change. It is assumed, although that is
up to the implementation, that the Resource to change already
existed. You can cast it to the right class as you defined it
in the constructor for the managedURI parameter.true
if the change succeeded.public abstract boolean executeRemove(Resource input)
input
- The Resource object to remove. Take into account that only the
instance URI is of interest here. It is assumed, although that
is up to the implementation, that the Resource to remove
already existed. You can cast it to the right class as you
defined it in the constructor for the managedURI parameter.true
if the removal succeeded.Copyright © 2018 universAAL Consortium. All rights reserved.