Class UIRemoteAPIService


  • @Component
    public class UIRemoteAPIService
    extends java.lang.Object
    UI Service to handle request for Remote APIs
    • Method Detail

      • checkAPIStatus

        public java.util.Date checkAPIStatus​(long remoteId)
        Check the status of a RemoteAPI
        Parameters:
        remoteId - identifier for a RemoteAPI
        Returns:
        expiration Date of the REmote API Token
      • deleteRemoteAPI

        public void deleteRemoteAPI​(long remoteId)
        Delete a specific RemoteAPI
        Parameters:
        remoteId - Identifier for the RemoteAPI to delete
      • getListOfRemoteApis

        public java.util.List<RemoteAPIModel> getListOfRemoteApis()
        Get a list of all RemoteAPIs
        Returns:
        A list of RemoteAPI formatted for the UI
      • getProjectsForAPI

        public java.util.List<RemoteProjectModel> getProjectsForAPI​(java.lang.Long remoteId)
        Get a list of projects available on a remote API
        Parameters:
        remoteId - identifier for a remote api
        Returns:
        List of projects on a remote API
      • createSynchronizedProject

        public AjaxCreateItemSuccessResponse createSynchronizedProject​(CreateRemoteProjectRequest request)
        Add a new Synchronized Remote Project
        Parameters:
        request - Details about the remote project to synchronize
        Returns:
        the result of adding the new remote project