Interface M2RepoService


  • public interface M2RepoService
    • Method Detail

      • getPomText

        String getPomText​(String path)
        Retrieve the pom.xml from the given Path. The path may represent either a JAR, KJAR or pom.xml file
        Parameters:
        path - The path to the file
        Returns:
        The pom.xml text
      • loadGAVFromJar

        org.guvnor.common.services.project.model.GAV loadGAVFromJar​(String path)
        Retrieve the GAV details from a JAR or KJAR
        Parameters:
        path - The path to the artifact
        Returns:
        The GAV within the artifact
      • listArtifacts

        org.uberfire.paging.PageResponse<JarListPageRow> listArtifacts​(JarListPageRequest pageRequest)
        Query the repository for a list of artifacts
        Parameters:
        pageRequest - Request for required artifacts
        Returns:
        Response containing artifacts
      • getRepositoryURL

        String getRepositoryURL()
        Get the repository's URL
        Returns:
        A String representing the repository's URL relative to the container's root
      • getKModuleText

        String getKModuleText​(String path)
        Retrieve the kmodule.xml from the given Path.
        Parameters:
        path - The path to the file
        Returns:
        The kmodule.xml text
      • getKieDeploymentDescriptorText

        String getKieDeploymentDescriptorText​(String path)
        Retrieve the kie-deployment-descriptor.xml from the given Path.
        Parameters:
        path - The path to the file
        Returns:
        The kie-deployment-descriptor.xml text