Interface EndpointService

    • Method Detail

      • addEndpoint

        int addEndpoint​(@NotNull
                        @NotNull UUID targetEntityKey,
                        @NotNull @Valid
                        @NotNull @Valid Endpoint endpoint)
        Add a new Endpoint to a target entity.
        Parameters:
        targetEntityKey - key of target entity
        endpoint - Endpoint to add
        Returns:
        key of Endpoint added
      • deleteEndpoint

        void deleteEndpoint​(@NotNull
                            @NotNull UUID targetEntityKey,
                            int endpointKey)
        Delete an existing Endpoint from a target entity by endpoint key.
        Parameters:
        targetEntityKey - key of target entity
        endpointKey - Endpoint key to delete
      • listEndpoints

        List<EndpointlistEndpoints​(@NotNull
                                     @NotNull UUID targetEntityKey)
        List all endpoints of a target entity.
        Parameters:
        targetEntityKey - key of target entity
        Returns:
        list of endpoints that belong to the entity