Class BaseServiceInputParameter
java.lang.Object
com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
com.flowable.serviceregistry.engine.impl.repository.BaseServiceInputParameter
- All Implemented Interfaces:
ServiceInputParameter,ServiceParameter
public class BaseServiceInputParameter
extends BaseServiceParameter
implements ServiceInputParameter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Objectprotected booleanprotected booleanprotected booleanFields inherited from class com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
description, displayName, exampleData, mappingName, name, type, typeReference -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanWhen set to true, this parameter is appended to the URL as query parameter using theServiceParameter.getName()as URL parameter name for REST Services.booleanvoidsetBodyLocation(String bodyLocation) voidsetDefaultValue(Object defaultValue) voidsetExcludedFromBody(boolean excludedFromBody) voidsetQueryParameter(boolean queryParameter) voidsetRequired(boolean required) Methods inherited from class com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
getDescription, getDisplayName, getExampleData, getMappingName, getName, getType, getTypeReference, setDescription, setDisplayName, setExampleData, setMappingName, setName, setType, setTypeReferenceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.flowable.serviceregistry.api.repository.ServiceParameter
getDescription, getDisplayName, getExampleData, getMappingName, getName, getType, getTypeReference
-
Field Details
-
required
protected boolean required -
excludedFromBody
protected boolean excludedFromBody -
queryParameter
protected boolean queryParameter -
bodyLocation
-
defaultValue
-
-
Constructor Details
-
BaseServiceInputParameter
public BaseServiceInputParameter()
-
-
Method Details
-
isRequired
public boolean isRequired()- Specified by:
isRequiredin interfaceServiceInputParameter
-
setRequired
public void setRequired(boolean required) -
isExcludedFromBody
public boolean isExcludedFromBody()- Specified by:
isExcludedFromBodyin interfaceServiceInputParameter
-
setExcludedFromBody
public void setExcludedFromBody(boolean excludedFromBody) -
isQueryParameter
public boolean isQueryParameter()Description copied from interface:ServiceInputParameterWhen set to true, this parameter is appended to the URL as query parameter using theServiceParameter.getName()as URL parameter name for REST Services.The
ServiceParameter.getMappingName()can be used to decouple the query parameter name from the parameter name used in the models. Consider settingServiceInputParameter.isExcludedFromBody()totrue, when the parameter is not required to be passed in the request body.- Specified by:
isQueryParameterin interfaceServiceInputParameter- Returns:
truein case this parameter should be added as URL query parameter.
-
setQueryParameter
public void setQueryParameter(boolean queryParameter) -
getBodyLocation
- Specified by:
getBodyLocationin interfaceServiceInputParameter
-
setBodyLocation
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceServiceInputParameter
-
setDefaultValue
-