Class TaskIdentityLinkApi


  • public class TaskIdentityLinkApi
    extends Object
    • Constructor Detail

      • TaskIdentityLinkApi

        public TaskIdentityLinkApi()
      • TaskIdentityLinkApi

        public TaskIdentityLinkApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • addIdentityLinkCall

        public okhttp3.Call addIdentityLinkCall​(String id,
                                                IdentityLinkDto identityLinkDto,
                                                ApiCallback _callback)
                                         throws ApiException
        Build call for addIdentityLink
        Parameters:
        id - The id of the task to add a link to. (required)
        identityLinkDto - (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • addIdentityLink

        public void addIdentityLink​(String id,
                                    IdentityLinkDto identityLinkDto)
                             throws ApiException
        Add Adds an identity link to a task by id. Can be used to link any user or group to a task and specify a relation.
        Parameters:
        id - The id of the task to add a link to. (required)
        identityLinkDto - (optional)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • addIdentityLinkWithHttpInfo

        public ApiResponse<Void> addIdentityLinkWithHttpInfo​(String id,
                                                             IdentityLinkDto identityLinkDto)
                                                      throws ApiException
        Add Adds an identity link to a task by id. Can be used to link any user or group to a task and specify a relation.
        Parameters:
        id - The id of the task to add a link to. (required)
        identityLinkDto - (optional)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • addIdentityLinkAsync

        public okhttp3.Call addIdentityLinkAsync​(String id,
                                                 IdentityLinkDto identityLinkDto,
                                                 ApiCallback<Void> _callback)
                                          throws ApiException
        Add (asynchronously) Adds an identity link to a task by id. Can be used to link any user or group to a task and specify a relation.
        Parameters:
        id - The id of the task to add a link to. (required)
        identityLinkDto - (optional)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • deleteIdentityLinkCall

        public okhttp3.Call deleteIdentityLinkCall​(String id,
                                                   IdentityLinkDto identityLinkDto,
                                                   ApiCallback _callback)
                                            throws ApiException
        Build call for deleteIdentityLink
        Parameters:
        id - The id of the task to remove a link from. (required)
        identityLinkDto - (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteIdentityLink

        public void deleteIdentityLink​(String id,
                                       IdentityLinkDto identityLinkDto)
                                throws ApiException
        Delete Removes an identity link from a task by id
        Parameters:
        id - The id of the task to remove a link from. (required)
        identityLinkDto - (optional)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteIdentityLinkWithHttpInfo

        public ApiResponse<Void> deleteIdentityLinkWithHttpInfo​(String id,
                                                                IdentityLinkDto identityLinkDto)
                                                         throws ApiException
        Delete Removes an identity link from a task by id
        Parameters:
        id - The id of the task to remove a link from. (required)
        identityLinkDto - (optional)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteIdentityLinkAsync

        public okhttp3.Call deleteIdentityLinkAsync​(String id,
                                                    IdentityLinkDto identityLinkDto,
                                                    ApiCallback<Void> _callback)
                                             throws ApiException
        Delete (asynchronously) Removes an identity link from a task by id
        Parameters:
        id - The id of the task to remove a link from. (required)
        identityLinkDto - (optional)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getIdentityLinksCall

        public okhttp3.Call getIdentityLinksCall​(String id,
                                                 String type,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for getIdentityLinks
        Parameters:
        id - The id of the task to retrieve the identity links for. (required)
        type - Filter by the type of links to include. (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getIdentityLinks

        public List<IdentityLinkDto> getIdentityLinks​(String id,
                                                      String type)
                                               throws ApiException
        Get List Gets the identity links for a task by id, which are the users and groups that are in *some* relation to it (including assignee and owner).
        Parameters:
        id - The id of the task to retrieve the identity links for. (required)
        type - Filter by the type of links to include. (optional)
        Returns:
        List<IdentityLinkDto>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getIdentityLinksWithHttpInfo

        public ApiResponse<List<IdentityLinkDto>> getIdentityLinksWithHttpInfo​(String id,
                                                                               String type)
                                                                        throws ApiException
        Get List Gets the identity links for a task by id, which are the users and groups that are in *some* relation to it (including assignee and owner).
        Parameters:
        id - The id of the task to retrieve the identity links for. (required)
        type - Filter by the type of links to include. (optional)
        Returns:
        ApiResponse<List<IdentityLinkDto>>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getIdentityLinksAsync

        public okhttp3.Call getIdentityLinksAsync​(String id,
                                                  String type,
                                                  ApiCallback<List<IdentityLinkDto>> _callback)
                                           throws ApiException
        Get List (asynchronously) Gets the identity links for a task by id, which are the users and groups that are in *some* relation to it (including assignee and owner).
        Parameters:
        id - The id of the task to retrieve the identity links for. (required)
        type - Filter by the type of links to include. (optional)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object