public interface ServicesManager
ServicesManager is an interface that provides custom code access to other helper classes.
Usage in Java service, pre-processor or post-processor -
ServicesManager servicesManager = request.getServicesManager();
Usage in Custom Filters or Custom Servlets -
ServicesManager servicesManager = ServicesManagerHelper.getServicesManager();
Modifier and Type | Method and Description |
---|---|
ConfigurableParametersHelper |
getConfigurableParametersHelper()
Gets the helper class to access the Server and Client App parameters that
were set by the developer in admin console.
|
DatabaseTransactionManager |
getDatabaseTransactionManager()
Gets the database transaction manager object which is used to execute
services in a transaction
|
DeviceRequestData |
getDeviceRequestData()
Returns the request data which will have information like device id,
request id, cache id and reporting params about current service.
|
EventManager |
getEventManager()
Gets the event manager object which is used to subscriber and unsubscribe
event subscriber.
|
EventNotifier |
getEventNotifier()
Gets the events notifier object which is used to notify events and check
status of events.
|
IdentityHandler |
getIdentityHandler()
Gets the identity handler which provided access to identity user profile
and attributes.
|
KonyCustomMetrics |
getKonyCustomMetrics()
FOR INTERNAL USE ONLY.
|
OperationData |
getOperationData()
Returns the operation data which will have information like service id,
version, operation about current service.
|
OperationDataBuilder |
getOperationDataBuilder()
Gets the operation data builder.
|
ServiceRequestBuilder |
getRequestBuilder(OperationData serviceDataObject)
Gets the service request builder.
|
ResultCache |
getResultCache()
Gets the ResultCache interface.
|
ServiceMonitor |
getServiceMonitor()
Gets the
ServiceMonitor instance to capture the service monitoring
information in custom code. |
void |
updateOperation(String operation)
Updates the operation of the current service.
|
OperationData getOperationData() throws AppRegistryException
AppRegistryException
OperationData
void updateOperation(String operation)
OperationsEnum
to
update the operation.
Note: This should be used only for OBJECT SERVICES. Usage in integration services may not work or may result in unexpected behavior.
operation
- the target operation to be updatedOperationsEnum
ConfigurableParametersHelper getConfigurableParametersHelper()
ConfigurableParametersHelper
OperationDataBuilder getOperationDataBuilder()
OperationDataBuilder
,
OperationData
ServiceRequestBuilder getRequestBuilder(OperationData serviceDataObject)
ServiceRequestBuilder
,
ServiceRequest
KonyCustomMetrics getKonyCustomMetrics()
FOR INTERNAL USE ONLY.
Gets the KonyCustomMetrics interface.DeviceRequestData getDeviceRequestData()
DeviceRequestData
ResultCache getResultCache()
ResultCache
EventNotifier getEventNotifier()
EventNotifier
EventManager getEventManager()
EventManager
,
EventSubscriber
DatabaseTransactionManager getDatabaseTransactionManager()
com.konylabs.middleware.api.DatabaseTransactionManager
IdentityHandler getIdentityHandler()
IdentityHandler
ServiceMonitor getServiceMonitor()
ServiceMonitor
instance to capture the service monitoring
information in custom code.ServiceMonitor
instance.Copyright © 2019. All rights reserved.