Overview
The following table shows the available method hooks:
LN Studio | LN implementation |
---|---|
before execute hook | see section Before Execute Method Hook |
on execute hook | see section On Execute Method Hook |
after execute hook | see section After Execute Method Hook |
Specifics on using hooks for ‘batch’ implementations are discussed in section Hooks for Batch Methods.
The following table indicates which hooks are supported for LN:
Method | Hooks | ||
---|---|---|---|
Before execute | On execute | After execute | |
List | Yes | Yes | Yes |
Show | Yes | Yes | Yes |
Create | Yes | Yes | Yes |
Change | Yes | Yes | Yes |
Delete | Yes | Yes | Yes |
SubscribeEvent | Yes | Yes | Yes |
UnsubscribeEvent | Yes | Yes | Yes |
PublishEvent | Yes | Yes | Yes |
OnEvent | Yes | Yes | Yes |
SubscribeList | No | No | No |
SupportsProcessingScope | No | No | No |
SupportsReferentialIntegrity | Yes | Yes | Yes |
CreateRef | Yes | Yes | Yes |
DeleteRef | Yes | Yes | Yes |
Any specific method (including methods for receiving BODs, see Implementing OAGIS BODs for LN) | Yes | Yes (Mandatory) | Yes |
For most standard methods, if you create an on execute hook it is possible to fall back to the default behavior. This is done through io.default (see section On Execute Method Hook).
The following table shows for what methods io.default can be used.
Method | io.default if top-down/bottom-up | io.default in batch implementation | Notes |
---|---|---|---|
List | no | no | (1) |
Show | no | no | (1) |
Create | yes | no | (2) |
Change | yes | no | (2) |
Delete | yes | no | (2) |
SubscribeEvent | n/a | yes | |
UnsubscribeEvent | n/a | yes | |
PublishEvent | n/a | yes | |
OnEvent | n/a | yes | |
SubscribeList | n/a | n/a | (3) |
SupportsProcessingScope | n/a | n/a | (3) |
SupportsReferentialIntegrity | n/a | yes | |
CreateRef | yes | no | |
DeleteRef | yes | no |
- io.default is unsupported for List and Show.
- For methods that are by default handled top-down or bottom-up, no standard batch implementation is available.
- Hooks are unused for this method.