Class ThresholdValueEditorResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.action.spi.AbstractPreActionResource
ch.tocco.nice2.optional.qualification.impl.resources.ThresholdValueEditorResource
- All Implemented Interfaces:
RestResource
@Path("/qualification/actions/thresholdValueEditor")
public class ThresholdValueEditorResource
extends AbstractPreActionResource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordNested classes/interfaces inherited from class AbstractPreActionResource
AbstractPreActionResource.SelectionType -
Field Summary
Fields inherited from class AbstractPreActionResource
context, defaultValueService, formBeanService, initialFormEntityName, initialFormName, l10n, log, requiresFormEntity, securityManager, textResourcesFields inherited from class AbstractRestResource
uriInfo -
Constructor Summary
ConstructorsConstructorDescriptionThresholdValueEditorResource(DefaultDisplayService defaultDisplayService, QueryBuilderFactory queryBuilderFactory, BusinessUnitManager businessUnitManager, ThresholdValueProviderFactory thresholdValueProviderFactory, ThresholdValueService thresholdValueService, GradeComparisonHelper gradeComparisonHelper) -
Method Summary
Modifier and TypeMethodDescriptionloadData(EntitySelectionBean selectionBean) preAction(ActionResourceBean actionResourceBean) is ran before the actual logic and can be used to run checks or return a form that needs to be filled before executionvoidupdateOrCreateValues(List<ThresholdValueEditorResource.ThresholdValue> thresholdValues, Entity selectionEntity) Methods inherited from class AbstractPreActionResource
getInitialFormValueResponseBean, getSelectedEntities, getSelectedEntity, loadInitialForm, setBusinessUnitManager, setContext, setDefaultDisplayService, setDefaultValueService, setFormBeanService, setL10n, setLog, setSecurityManager, setSelectionService, setTextResourcesMethods inherited from class AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
ThresholdValueEditorResource
public ThresholdValueEditorResource(DefaultDisplayService defaultDisplayService, QueryBuilderFactory queryBuilderFactory, BusinessUnitManager businessUnitManager, ThresholdValueProviderFactory thresholdValueProviderFactory, ThresholdValueService thresholdValueService, GradeComparisonHelper gradeComparisonHelper)
-
-
Method Details
-
preAction
Description copied from class:AbstractPreActionResourceis ran before the actual logic and can be used to run checks or return a form that needs to be filled before execution- Overrides:
preActionin classAbstractPreActionResource
-
loadData
@Path("/load") @POST @Consumes("application/json") @Produces("application/json") public ThresholdValueEditorResource.FormData loadData(EntitySelectionBean selectionBean) -
saveData
@Path("/save") @POST @Consumes("application/json") @Produces("application/json") public ThresholdValueEditorResource.FormData saveData(ThresholdValueEditorResource.SaveRequest request) -
updateOrCreateValues
public void updateOrCreateValues(List<ThresholdValueEditorResource.ThresholdValue> thresholdValues, Entity selectionEntity)
-