Class RemoteAPIServiceImpl

    • Method Detail

      • create

        @PreAuthorize("hasRole(\'ROLE_ADMIN\')")
        public RemoteAPI create​(RemoteAPI remoteAPI)
        Create a new object in the persistence store.
        Specified by:
        create in interface CRUDService<java.lang.Long,​RemoteAPI>
        Overrides:
        create in class CRUDServiceImpl<java.lang.Long,​RemoteAPI>
        Parameters:
        remoteAPI - The object to persist.
        Returns:
        The object as it was persisted in the database. May modify the identifier of the object when returned.
      • search

        @PreAuthorize("permitAll")
        public org.springframework.data.domain.Page<RemoteAPI> search​(org.springframework.data.jpa.domain.Specification<RemoteAPI> specification,
                                                                      int page,
                                                                      int size,
                                                                      org.springframework.data.domain.Sort.Direction order,
                                                                      java.lang.String... sortProperties)
        Search for an entity of Type with a given specification
        Specified by:
        search in interface CRUDService<java.lang.Long,​RemoteAPI>
        Overrides:
        search in class CRUDServiceImpl<java.lang.Long,​RemoteAPI>
        Parameters:
        specification - The search specification
        page - The page number
        size - the size of the page
        order - the order of the page sort
        sortProperties - The properties to sort on
        Returns:
        a Page of Type
      • findAll

        @PreAuthorize("permitAll")
        public java.lang.Iterable<RemoteAPI> findAll()
        List all objects of Type in the database.
        Specified by:
        findAll in interface CRUDService<java.lang.Long,​RemoteAPI>
        Overrides:
        findAll in class CRUDServiceImpl<java.lang.Long,​RemoteAPI>
        Returns:
        All objects of the specified Type in the database.
      • getRemoteAPIForUrl

        @PreAuthorize("permitAll")
        public RemoteAPI getRemoteAPIForUrl​(java.lang.String url)
        Description copied from interface: RemoteAPIService
        Find the RemoteAPI where the serviceURI is a substring of the given URL. For example if you passed the URL 'http://irida.ca/api/projects/5/samples/3' the method would find a RemoteAPI with serviceURI of 'http://irida.ca/api'
        Specified by:
        getRemoteAPIForUrl in interface RemoteAPIService
        Parameters:
        url - The URL to test
        Returns:
        The RemoteAPI matching the given URL