@Produces(value="application/json;charset=UTF-8") @Path(value="/definitions") public class DefinitionsServiceEndPoint extends Object
Constructor and Description |
---|
DefinitionsServiceEndPoint() |
Modifier and Type | Method and Description |
---|---|
RESTActionType |
getActionType(String id,
String language)
Retrieves the action type associated with the specified identifier localized using the specified language.
|
Collection<RESTActionType> |
getActionTypeBySystemTag(String tags,
String language)
Retrieves the set of action types with the specified system tags.
|
Collection<RESTActionType> |
getActionTypeByTag(String tags,
String language)
Retrieves the set of action types with the specified tags.
|
Collection<RESTActionType> |
getAllActionTypes(String language)
Retrieves all known action types localized using the specified language.
|
Collection<RESTConditionType> |
getAllConditionTypes(String language)
Retrieves all condition types localized using the specified language.
|
Collection<RESTValueType> |
getAllValueTypes(String language)
Retrieves all known value types localized using the specified language.
|
RESTConditionType |
getConditionType(String id,
String language)
Retrieves the condition type associated with the specified identifier localized using the specified language.
|
Collection<RESTConditionType> |
getConditionTypesBySystemTag(String tags,
String language)
Retrieves the set of condition types with the specified system tags.
|
Collection<RESTConditionType> |
getConditionTypesByTag(String tags,
String language)
Retrieves the set of condition types with the specified tags.
|
PropertyMergeStrategyType |
getPropertyMergeStrategyType(String id) |
Map<Long,List<PluginType>> |
getTypesByPlugin()
Retrieves a Map of plugin identifier to a list of plugin types defined by that particular plugin.
|
RESTValueType |
getValueType(String id,
String language)
Retrieves the value type associated with the specified identifier localized using the specified language.
|
Collection<RESTValueType> |
getValueTypeByTag(String tags,
String language)
Retrieves the set of value types with the specified tags.
|
void |
removeActionType(String actionTypeId)
Removes the action type
|
void |
removeConditionType(String conditionTypeId)
Removes the condition type
|
void |
setActionType(ActionType actionType)
Stores the action type
|
void |
setConditionType(ConditionType conditionType)
Stores the condition type
|
void |
setDefinitionsService(DefinitionsService definitionsService) |
void |
setLocalizationHelper(LocalizationHelper localizationHelper) |
public void setDefinitionsService(DefinitionsService definitionsService)
public void setLocalizationHelper(LocalizationHelper localizationHelper)
@GET @Path(value="/conditions") public Collection<RESTConditionType> getAllConditionTypes(@HeaderParam(value="Accept-Language") String language)
language
- the language to use to localize.@GET @Path(value="/conditions/tags/{tags}") public Collection<RESTConditionType> getConditionTypesByTag(@PathParam(value="tags") String tags, @HeaderParam(value="Accept-Language") String language)
language
- the language to use to localize.tags
- a comma-separated list of tag identifiers@GET @Path(value="/conditions/systemTags/{tags}") public Collection<RESTConditionType> getConditionTypesBySystemTag(@PathParam(value="tags") String tags, @HeaderParam(value="Accept-Language") String language)
language
- the language to use to localize.tags
- a comma-separated list of tag identifiers@GET @Path(value="/conditions/{conditionId}") public RESTConditionType getConditionType(@PathParam(value="conditionId") String id, @HeaderParam(value="Accept-Language") String language)
language
- the language to use to localize.id
- the identifier of the condition type to retrievenull
if no such condition type exists@POST @Path(value="/conditions") public void setConditionType(ConditionType conditionType)
conditionType
- the condition type to store@DELETE @Path(value="/conditions/{conditionTypeId}") public void removeConditionType(@PathParam(value="conditionTypeId") String conditionTypeId)
conditionTypeId
- the identifier of the action type to delete@GET @Path(value="/actions") public Collection<RESTActionType> getAllActionTypes(@HeaderParam(value="Accept-Language") String language)
language
- the language to use to localize.@GET @Path(value="/actions/tags/{tags}") public Collection<RESTActionType> getActionTypeByTag(@PathParam(value="tags") String tags, @HeaderParam(value="Accept-Language") String language)
language
- the language to use to localize.tags
- the tag marking the action types we want to retrieve@GET @Path(value="/actions/systemTags/{tags}") public Collection<RESTActionType> getActionTypeBySystemTag(@PathParam(value="tags") String tags, @HeaderParam(value="Accept-Language") String language)
language
- the language to use to localize.tags
- the tag marking the action types we want to retrieve@GET @Path(value="/actions/{actionId}") public RESTActionType getActionType(@PathParam(value="actionId") String id, @HeaderParam(value="Accept-Language") String language)
language
- the language to use to localize.id
- the identifier of the action type to retrievenull
if no such action type exists@POST @Path(value="/actions") public void setActionType(ActionType actionType)
actionType
- the action type to store@DELETE @Path(value="/actions/{actionTypeId}") public void removeActionType(@PathParam(value="actionTypeId") String actionTypeId)
actionTypeId
- the identifier of the action type to delete@GET @Path(value="/values") public Collection<RESTValueType> getAllValueTypes(@HeaderParam(value="Accept-Language") String language)
language
- the language to use to localize.@GET @Path(value="/values/tags/{tags}") public Collection<RESTValueType> getValueTypeByTag(@PathParam(value="tags") String tags, @HeaderParam(value="Accept-Language") String language)
language
- the language to use to localize.tags
- the tag marking the value types we want to retrieve@GET @Path(value="/values/{valueTypeId}") public RESTValueType getValueType(@PathParam(value="valueTypeId") String id, @HeaderParam(value="Accept-Language") String language)
language
- the language to use to localize.id
- the identifier of the value type to retrievenull
if no such value type exists@GET @Path(value="/typesByPlugin") public Map<Long,List<PluginType>> getTypesByPlugin()
public PropertyMergeStrategyType getPropertyMergeStrategyType(String id)
Copyright © 2014–2023 Apache Software Foundation. All rights reserved.