public class GetServiceParametersAction extends ServiceableAction
| Modifier and Type | Field and Description |
|---|---|
protected ServiceExtensionPoint |
_serviceExtPt
|
managerEMPTY_MAP| Constructor and Description |
|---|
GetServiceParametersAction() |
| Modifier and Type | Method and Description |
|---|---|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
protected Map<String,Object> |
parameter2JsonObject(ServiceParameter parameter,
Object value)
Convert a service parameter to JSON object
|
protected Map<String,Object> |
parameters2JsonObject(Service service)
Convert service parameters to JSON object
|
protected Map<String,Object> |
repeater2JsonObject(ServiceParameterRepeater repeater)
Convert the repeater object to JSON
|
void |
service(ServiceManager sManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected ServiceExtensionPoint _serviceExtPt
public GetServiceParametersAction()
public void service(ServiceManager sManager) throws ServiceException
service in interface Serviceableservice in class ServiceableActionServiceExceptionpublic Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exceptionprotected Map<String,Object> parameters2JsonObject(Service service) throws ProcessingException
service - true the serviceProcessingException - if an error occurredprotected Map<String,Object> parameter2JsonObject(ServiceParameter parameter, Object value) throws ProcessingException
parameter - the service parameter.value - The valueProcessingException - if an error occurredprotected Map<String,Object> repeater2JsonObject(ServiceParameterRepeater repeater) throws ProcessingException
repeater - the repeater of service parametersProcessingException - if something goes wrong while gathering the properties of the repeater