Package com.jalios.jcms.service
Class ServiceManager
java.lang.Object
com.jalios.jcms.service.ServiceManager
- All Implemented Interfaces:
JPropertiesListener
-
Method Summary
Modifier and TypeMethodDescriptionexecuteService(String serviceName, ServiceForm form) Executes a service.static ServiceManagerbooleanhasService(String serviceName) Checks whether the service with the given name exists.voidloadServices(JProperties properties) voidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.voidregisterService(String serviceName, Service service) Registers a new service associated to the given service name.sendServiceAction(String action, ServiceForm form) voidunregisterService(String serviceName) Unregisters the service associated to the given service name.
-
Method Details
-
getInstance
-
propertiesChange
Description copied from interface:JPropertiesListenerInvoked after properties have been modified in JCMS and save on disk.You cannot alter the value received in parameters.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using
channel.getPropertiesorchannel.getProperty.- Specified by:
propertiesChangein interfaceJPropertiesListener- Parameters:
properties- the properties which have been submitted to change
-
registerService
Registers a new service associated to the given service name.- Parameters:
serviceName- service name to registerservice- Service to register
-
unregisterService
Unregisters the service associated to the given service name.- Parameters:
serviceName- service name to unregister
-
loadServices
- Parameters:
properties-
-
sendServiceAction
-
executeService
Executes a service.- Parameters:
serviceName- service name to executeform- Form sent to the service- Returns:
- the result of the service execution
-
hasService
Checks whether the service with the given name exists.- Parameters:
serviceName- Service name- Returns:
trueif the service exists,falseinstead
-