Package org.guvnor.m2repo.service
Interface M2RepoService
-
public interface M2RepoService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetKieDeploymentDescriptorText(String path)Retrieve the kie-deployment-descriptor.xml from the given Path.StringgetKModuleText(String path)Retrieve the kmodule.xml from the given Path.StringgetPomText(String path)Retrieve the pom.xml from the given Path.StringgetRepositoryURL()Get the repository's URLorg.uberfire.paging.PageResponse<JarListPageRow>listArtifacts(JarListPageRequest pageRequest)Query the repository for a list of artifactsorg.guvnor.common.services.project.model.GAVloadGAVFromJar(String path)Retrieve the GAV details from a JAR or KJAR
-
-
-
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
-
-