public class GetServiceParametersAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
protected ServiceExtensionPoint |
_serviceExtPt
|
manager
EMPTY_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, setupLogger
protected ServiceExtensionPoint _serviceExtPt
public GetServiceParametersAction()
public void service(ServiceManager sManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected 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