Commit 757eef1cfa64d0e982bb2f0a9701faf187af882c

Authored by Volodymyr Babak
1 parent b2ad67d3

Fixed constants for edge assing/unassign

... ... @@ -542,7 +542,7 @@ public class AssetController extends BaseController {
542 542 notes = "Creates assignment of an existing asset to an instance of The Edge. " +
543 543 EDGE_ASSIGN_ASYNC_FIRST_STEP_DESCRIPTION +
544 544 "Second, remote edge service will receive a copy of assignment asset " +
545   - EDGE_ASSIGN_RECEIVE_STEP_DESCRIPTION + ". " +
  545 + EDGE_ASSIGN_RECEIVE_STEP_DESCRIPTION +
546 546 "Third, once asset will be delivered to edge service, it's going to be available for usage on remote edge instance.",
547 547 produces = MediaType.APPLICATION_JSON_VALUE)
548 548 @PreAuthorize("hasAuthority('TENANT_ADMIN')")
... ... @@ -582,7 +582,7 @@ public class AssetController extends BaseController {
582 582 notes = "Clears assignment of the asset to the edge. " +
583 583 EDGE_UNASSIGN_ASYNC_FIRST_STEP_DESCRIPTION +
584 584 "Second, remote edge service will receive an 'unassign' command to remove asset " +
585   - EDGE_UNASSIGN_RECEIVE_STEP_DESCRIPTION + ". " +
  585 + EDGE_UNASSIGN_RECEIVE_STEP_DESCRIPTION +
586 586 "Third, once 'unassign' command will be delivered to edge service, it's going to remove asset locally.",
587 587 produces = MediaType.APPLICATION_JSON_VALUE)
588 588 @PreAuthorize("hasAuthority('TENANT_ADMIN')")
... ...
... ... @@ -129,9 +129,9 @@ public class ControllerConstants {
129 129 protected static final String EVENT_END_TIME_DESCRIPTION = "Timestamp. Events with creation time after it won't be queried.";
130 130
131 131 protected static final String EDGE_UNASSIGN_ASYNC_FIRST_STEP_DESCRIPTION = "Unassignment works in async way - first, 'unassign' notification event pushed to edge queue on platform. ";
132   - protected static final String EDGE_UNASSIGN_RECEIVE_STEP_DESCRIPTION = "(Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform)";
  132 + protected static final String EDGE_UNASSIGN_RECEIVE_STEP_DESCRIPTION = "(Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). ";
133 133 protected static final String EDGE_ASSIGN_ASYNC_FIRST_STEP_DESCRIPTION = "Assignment works in async way - first, notification event pushed to edge service queue on platform. ";
134   - protected static final String EDGE_ASSIGN_RECEIVE_STEP_DESCRIPTION = "(Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform)";
  134 + protected static final String EDGE_ASSIGN_RECEIVE_STEP_DESCRIPTION = "(Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). ";
135 135
136 136 protected static final String MARKDOWN_CODE_BLOCK_START = "```json\n";
137 137 protected static final String MARKDOWN_CODE_BLOCK_END = "\n```";
... ...
... ... @@ -830,7 +830,7 @@ public class DashboardController extends BaseController {
830 830 notes = "Creates assignment of an existing dashboard to an instance of The Edge. " +
831 831 EDGE_ASSIGN_ASYNC_FIRST_STEP_DESCRIPTION +
832 832 "Second, remote edge service will receive a copy of assignment dashboard " +
833   - EDGE_ASSIGN_RECEIVE_STEP_DESCRIPTION + ". " +
  833 + EDGE_ASSIGN_RECEIVE_STEP_DESCRIPTION +
834 834 "Third, once dashboard will be delivered to edge service, it's going to be available for usage on remote edge instance." +
835 835 TENANT_AUTHORITY_PARAGRAPH,
836 836 produces = MediaType.APPLICATION_JSON_VALUE)
... ... @@ -871,7 +871,7 @@ public class DashboardController extends BaseController {
871 871 notes = "Clears assignment of the dashboard to the edge. " +
872 872 EDGE_UNASSIGN_ASYNC_FIRST_STEP_DESCRIPTION +
873 873 "Second, remote edge service will receive an 'unassign' command to remove dashboard " +
874   - EDGE_UNASSIGN_RECEIVE_STEP_DESCRIPTION + ". " +
  874 + EDGE_UNASSIGN_RECEIVE_STEP_DESCRIPTION +
875 875 "Third, once 'unassign' command will be delivered to edge service, it's going to remove dashboard locally." +
876 876 TENANT_AUTHORITY_PARAGRAPH,
877 877 produces = MediaType.APPLICATION_JSON_VALUE)
... ...
... ... @@ -852,7 +852,7 @@ public class DeviceController extends BaseController {
852 852 notes = "Creates assignment of an existing device to an instance of The Edge. " +
853 853 EDGE_ASSIGN_ASYNC_FIRST_STEP_DESCRIPTION +
854 854 "Second, remote edge service will receive a copy of assignment device " +
855   - EDGE_ASSIGN_RECEIVE_STEP_DESCRIPTION + ". " +
  855 + EDGE_ASSIGN_RECEIVE_STEP_DESCRIPTION +
856 856 "Third, once device will be delivered to edge service, it's going to be available for usage on remote edge instance." + TENANT_AUTHORITY_PARAGRAPH,
857 857 produces = MediaType.APPLICATION_JSON_VALUE)
858 858 @PreAuthorize("hasAuthority('TENANT_ADMIN')")
... ... @@ -895,7 +895,7 @@ public class DeviceController extends BaseController {
895 895 notes = "Clears assignment of the device to the edge. " +
896 896 EDGE_UNASSIGN_ASYNC_FIRST_STEP_DESCRIPTION +
897 897 "Second, remote edge service will receive an 'unassign' command to remove device " +
898   - EDGE_UNASSIGN_RECEIVE_STEP_DESCRIPTION + ". " +
  898 + EDGE_UNASSIGN_RECEIVE_STEP_DESCRIPTION +
899 899 "Third, once 'unassign' command will be delivered to edge service, it's going to remove device locally." + TENANT_AUTHORITY_PARAGRAPH,
900 900 produces = MediaType.APPLICATION_JSON_VALUE)
901 901 @PreAuthorize("hasAuthority('TENANT_ADMIN')")
... ...
... ... @@ -711,7 +711,7 @@ public class EntityViewController extends BaseController {
711 711 notes = "Creates assignment of an existing entity view to an instance of The Edge. " +
712 712 EDGE_ASSIGN_ASYNC_FIRST_STEP_DESCRIPTION +
713 713 "Second, remote edge service will receive a copy of assignment entity view " +
714   - EDGE_ASSIGN_RECEIVE_STEP_DESCRIPTION + ". " +
  714 + EDGE_ASSIGN_RECEIVE_STEP_DESCRIPTION +
715 715 "Third, once entity view will be delivered to edge service, it's going to be available for usage on remote edge instance.",
716 716 produces = MediaType.APPLICATION_JSON_VALUE)
717 717 @PreAuthorize("hasAuthority('TENANT_ADMIN')")
... ... @@ -748,7 +748,7 @@ public class EntityViewController extends BaseController {
748 748 notes = "Clears assignment of the entity view to the edge. " +
749 749 EDGE_UNASSIGN_ASYNC_FIRST_STEP_DESCRIPTION +
750 750 "Second, remote edge service will receive an 'unassign' command to remove entity view " +
751   - EDGE_UNASSIGN_RECEIVE_STEP_DESCRIPTION + ". " +
  751 + EDGE_UNASSIGN_RECEIVE_STEP_DESCRIPTION +
752 752 "Third, once 'unassign' command will be delivered to edge service, it's going to remove entity view locally.",
753 753 produces = MediaType.APPLICATION_JSON_VALUE)
754 754 @PreAuthorize("hasAuthority('TENANT_ADMIN')")
... ...
... ... @@ -602,7 +602,7 @@ public class RuleChainController extends BaseController {
602 602 notes = "Creates assignment of an existing rule chain to an instance of The Edge. " +
603 603 EDGE_ASSIGN_ASYNC_FIRST_STEP_DESCRIPTION +
604 604 "Second, remote edge service will receive a copy of assignment rule chain " +
605   - EDGE_ASSIGN_RECEIVE_STEP_DESCRIPTION + ". " +
  605 + EDGE_ASSIGN_RECEIVE_STEP_DESCRIPTION +
606 606 "Third, once rule chain will be delivered to edge service, it's going to start processing messages locally. " +
607 607 "\n\nOnly rule chain with type 'EDGE' can be assigned to edge." + TENANT_AUTHORITY_PARAGRAPH,
608 608 produces = MediaType.APPLICATION_JSON_VALUE)
... ... @@ -643,7 +643,7 @@ public class RuleChainController extends BaseController {
643 643 notes = "Clears assignment of the rule chain to the edge. " +
644 644 EDGE_UNASSIGN_ASYNC_FIRST_STEP_DESCRIPTION +
645 645 "Second, remote edge service will receive an 'unassign' command to remove rule chain " +
646   - EDGE_UNASSIGN_RECEIVE_STEP_DESCRIPTION + ". " +
  646 + EDGE_UNASSIGN_RECEIVE_STEP_DESCRIPTION +
647 647 "Third, once 'unassign' command will be delivered to edge service, it's going to remove rule chain locally." + TENANT_AUTHORITY_PARAGRAPH,
648 648 produces = MediaType.APPLICATION_JSON_VALUE)
649 649 @PreAuthorize("hasAuthority('TENANT_ADMIN')")
... ...