Package | Description |
---|---|
com.tailf.dp |
Data provider API package, for implementation of callbacks for validations, actions, transformation etc.
|
com.tailf.dp.annotations |
Annotations and proxy helper classes for callbacks.
|
com.tailf.dp.services |
Service callback specific context and utilities.
|
com.tailf.ncs.template |
Modifier and Type | Method and Description |
---|---|
Properties |
DpServiceCallback.create(ServiceContext context,
NavuNode service,
NavuNode root,
Properties opaque)
Create callback method.
|
Properties |
DpServiceCallback.postModification(ServiceContext context,
ServiceOperationType operation,
ConfPath path,
Properties opaque)
Post modification callback
If registered this method will be called after a CREATE, UPDATE or
DELETE of the service.
|
Properties |
DpServiceCallback.preLockCreate(ServiceContext context,
NavuNode service,
NavuNode root,
Properties opaque)
Deprecated.
use
DpServiceCallback.create(ServiceContext context,
NavuNode service, NavuNode root, Properties opaque)
This method is called when a service instance committed due to a create
or update event in the same way as the create() callback. The difference
being that this method is called outside of the transaction lock of the
current transaction making it parallel to other pre_lock_create() service
calls.
Care must be taken by the programmer so that the preLockCreate() is
designed in a thread safe manner.
This method returns a opaque as a Properties object that can be null.
If not null it is stored persistently by Ncs.
This object is then delivered as argument to new calls of the create
method for this service (fastmap algorithm).
This way the user can store and later modify persistent data outside
the service model that might be needed. |
Properties |
DpServiceCallback.preModification(ServiceContext context,
ServiceOperationType operation,
ConfPath path,
Properties opaque)
Pre modification callback
If registered this method will be called before a CREATE, UPDATE or
DELETE of the service.
|
Modifier and Type | Method and Description |
---|---|
Properties |
ServiceCallbackProxy.create(ServiceContext context,
NavuNode service,
NavuNode root,
Properties opaque) |
Properties |
ServiceCallbackProxy.delete(ServiceContext context,
NavuNode root,
Properties opaque) |
Properties |
ServiceCallbackProxy.postModification(ServiceContext context,
ServiceOperationType operation,
ConfPath path,
Properties opaque) |
Properties |
ServiceCallbackProxy.preLockCreate(ServiceContext context,
NavuNode service,
NavuNode root,
Properties opaque) |
Properties |
ServiceCallbackProxy.preModification(ServiceContext context,
ServiceOperationType operation,
ConfPath path,
Properties opaque) |
Properties |
ServiceCallbackProxy.update(ServiceContext context,
NavuNode service,
NavuNode root,
Properties opaque) |
Modifier and Type | Interface and Description |
---|---|
interface |
NanoServiceContext
The Nano service context object.
|
Modifier and Type | Class and Description |
---|---|
class |
ServiceContextImpl |
class |
ServiceModificationContextImpl
Internal class implementing the service context for PRE/POST MODIFICATION
callbacks.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
Template.exists(ServiceContext context,
String template)
Tests for existence of a template.
|
static Set<String> |
Template.getTemplates(ServiceContext aServiceContext)
Returns a set consisting of the loaded templates.
|
Constructor and Description |
---|
Template(ServiceContext aServiceContext,
String aTemplateName)
Construct a Template.
|