public interface DpServiceCallback
Modifier and Type | Field and Description |
---|---|
static int |
M_CREATE
Flags for the mask
|
static int |
M_DELETE |
static int |
M_POST_MODIFICATION |
static int |
M_PRE_LOCK_CREATE |
static int |
M_PRE_MODIFICATION |
static int |
M_UPDATE |
Modifier and Type | Method and Description |
---|---|
Properties |
create(ServiceContext context,
NavuNode service,
NavuNode root,
Properties opaque)
Create callback method.
|
int |
mask()
Mask of flags for each method that is supported by this callback:
M_CREATE
M_UPDATE
M_DELETE
M_PRE_MODIFICATION
M_POST_MODIFICATION
|
Properties |
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 |
preLockCreate(ServiceContext context,
NavuNode service,
NavuNode root,
Properties opaque)
pre lock create callback method.
|
Properties |
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.
|
String |
servicepoint()
The name of the servicepoint
|
static final int M_CREATE
static final int M_DELETE
static final int M_POST_MODIFICATION
static final int M_PRE_LOCK_CREATE
static final int M_PRE_MODIFICATION
static final int M_UPDATE
Properties create(ServiceContext context, NavuNode service, NavuNode root, Properties opaque) throws DpCallbackException
context
- - The current ServiceContext objectservice
- - The NavuNode references the service node.root
- - This NavuNode references the ncs root.opaque
- - Parameter contains a Properties object.
This object may be used to transfer
additional information between consecutive
calls to the create callback. It is always
null in the first call. I.e. when the service
is first created.DpCallbackException
int mask()
Properties postModification(ServiceContext context, ServiceOperationType operation, ConfPath path, Properties opaque) throws DpCallbackException
context
- - The current ServiceContext objectoperation
- - Type of operation (CREATE,UPDATE,DELETE)path
- - ConfPath object referring to the services pathopaque
- - Parameter contains a Properties object.
This object may be used to transfer
additional information between consecutive
calls to the create callback. It is always
null in the first call. I.e. when the service
is first created.DpCallbackException
Properties preLockCreate(ServiceContext context, NavuNode service, NavuNode root, Properties opaque) throws DpCallbackException
context
- - The current ServiceContext objectservice
- - The NavuNode references the service node.root
- - This NavuNode references the ncs root.opaque
- - Parameter contains a Properties object.
This object may be used to transfer
additional information between consecutive
calls to the create callback. It is always
null in the first call. I.e. when the service
is first created.DpCallbackException
Properties preModification(ServiceContext context, ServiceOperationType operation, ConfPath path, Properties opaque) throws DpCallbackException
context
- - The current ServiceContext objectoperation
- - Type of operation (CREATE,UPDATE,DELETE)path
- - ConfPath object referring to the services pathopaque
- - Parameter contains a Properties object.
This object may be used to transfer
additional information between consecutive
calls to the create callback. It is always
null in the first call. I.e. when the service
is first created.DpCallbackException
String servicepoint()