Class IndicatorController
- java.lang.Object
-
- eu.dnetlib.uoamonitorservice.controllers.IndicatorController
-
@RestController @CrossOrigin(origins="*") public class IndicatorController extends Object
-
-
Constructor Summary
Constructors Constructor Description IndicatorController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndicatorchangeIndicatorVisibility(String stakeholderId, String topicId, String categoryId, String subcategoryId, String sectionId, String indicatorId, Visibility visibility)IndicatorchangeVisibilityTree(String indicatorId, Indicator indicator, Visibility visibility)booleandeleteIndicator(String stakeholderId, String topicId, String categoryId, String subcategoryId, String sectionId, String indicatorId, String children)voiddeleteTree(Section section)voiddisConnectTree(Section section)booleanonDeleteDefaultIndicator(String defaultIndicatorId, String defaultSectionId, String children)voidonSaveDefaultIndicator(Indicator indicator, Section defaultSection, String defaultSubcategoryId)voidonUpdateDefaultIndicator(Indicator indicator, Stakeholder stakeholder, Indicator oldIndicator)voidparameterMapping(IndicatorPath indicatorPath, Stakeholder stakeholder)List<Indicator>reorderIndicators(String stakeholderId, String topicId, String categoryId, String subcategoryId, String sectionId, String type, ReorderEvent reorderEvent)StakeholdersaveBulkIndicators(String stakeholderId, String topicId, String categoryId, String subcategoryId, List<Section<Indicator>> sections)IndicatorsaveIndicator(String stakeholderId, String topicId, String categoryId, String subcategoryId, String sectionId, Indicator indicator)StringurlEncode(String encodedIndicatorPathField)
-
-
-
Method Detail
-
saveBulkIndicators
@PreAuthorize("isAuthenticated()") @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/save-bulk", method=POST) public Stakeholder saveBulkIndicators(@PathVariable("stakeholderId") String stakeholderId, @PathVariable("topicId") String topicId, @PathVariable("categoryId") String categoryId, @PathVariable("subcategoryId") String subcategoryId, @RequestBody List<Section<Indicator>> sections) throws UnsupportedEncodingException- Throws:
UnsupportedEncodingException
-
saveIndicator
@PreAuthorize("isAuthenticated()") @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/{sectionId}/save", method=POST) public Indicator saveIndicator(@PathVariable("stakeholderId") String stakeholderId, @PathVariable("topicId") String topicId, @PathVariable("categoryId") String categoryId, @PathVariable("subcategoryId") String subcategoryId, @PathVariable("sectionId") String sectionId, @RequestBody Indicator indicator) throws UnsupportedEncodingException- Throws:
UnsupportedEncodingException
-
onSaveDefaultIndicator
public void onSaveDefaultIndicator(Indicator indicator, Section defaultSection, String defaultSubcategoryId) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
onUpdateDefaultIndicator
public void onUpdateDefaultIndicator(Indicator indicator, Stakeholder stakeholder, Indicator oldIndicator) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
parameterMapping
public void parameterMapping(IndicatorPath indicatorPath, Stakeholder stakeholder) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
deleteIndicator
@PreAuthorize("isAuthenticated()") @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/{sectionId}/{indicatorId}/delete", method=DELETE) public boolean deleteIndicator(@PathVariable("stakeholderId") String stakeholderId, @PathVariable("topicId") String topicId, @PathVariable("categoryId") String categoryId, @PathVariable("subcategoryId") String subcategoryId, @PathVariable("sectionId") String sectionId, @PathVariable("indicatorId") String indicatorId, @RequestParam(required=false) String children)
-
onDeleteDefaultIndicator
public boolean onDeleteDefaultIndicator(String defaultIndicatorId, String defaultSectionId, String children)
-
reorderIndicators
@PreAuthorize("isAuthenticated()") @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/{sectionId}/{type}/reorder", method=POST) public List<Indicator> reorderIndicators(@PathVariable("stakeholderId") String stakeholderId, @PathVariable("topicId") String topicId, @PathVariable("categoryId") String categoryId, @PathVariable("subcategoryId") String subcategoryId, @PathVariable("sectionId") String sectionId, @PathVariable("type") String type, @RequestBody ReorderEvent reorderEvent)
-
changeIndicatorVisibility
@PreAuthorize("isAuthenticated()") @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/{sectionId}/{indicatorId}/change-visibility", method=POST) public Indicator changeIndicatorVisibility(@PathVariable("stakeholderId") String stakeholderId, @PathVariable("topicId") String topicId, @PathVariable("categoryId") String categoryId, @PathVariable("subcategoryId") String subcategoryId, @PathVariable("sectionId") String sectionId, @PathVariable("indicatorId") String indicatorId, @RequestParam("visibility") Visibility visibility)
-
changeVisibilityTree
public Indicator changeVisibilityTree(String indicatorId, Indicator indicator, Visibility visibility)
-
deleteTree
public void deleteTree(Section section)
-
disConnectTree
public void disConnectTree(Section section)
-
-