|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axway.grapes.utils.client.GrapesClient
public class GrapesClient
Abstract Client
Implemented Grapes client.
| Constructor Summary | |
|---|---|
GrapesClient(String host,
String port)
|
|
| Method Summary | |
|---|---|
void |
addLicense(String gavc,
String licenseId,
String user,
String password)
Add a license to an artifact |
void |
approveLicense(String licenseId,
Boolean approve,
String user,
String password)
Approve or reject a license |
void |
deleteArtifact(String gavc,
String user,
String password)
Delete an artifact in the Grapes server |
void |
deleteLicense(String licenseId,
String user,
String password)
Delete a license in the server |
void |
deleteModule(String name,
String version,
String user,
String password)
Delete a module from Grapes server |
Artifact |
getArtifact(String gavc)
Send a get artifact request |
String |
getArtifactLastVersion(String gavc)
Returns the artifact last version |
Module |
getArtifactModule(String gavc)
Returns the module of an artifact or null if there is none |
List<Artifact> |
getArtifacts(Boolean hasLicense)
Send a get artifacts request |
List<String> |
getArtifactVersions(String gavc)
Returns the artifact available versions |
License |
getLicense(String licenseId)
Send a get license request |
Module |
getModule(String name,
String version)
Send a get module request |
List<Dependency> |
getModuleAncestors(String moduleName,
String moduleVersion)
Return the list of module ancestors |
List<Dependency> |
getModuleDependencies(String moduleName,
String moduleVersion,
Boolean fullRecursive,
Boolean corporate,
Boolean thirdParty)
Return the list of module dependencies |
Organization |
getModuleOrganization(String moduleName,
String moduleVersion)
Returns the organization of a given module |
Boolean |
getModulePromotionStatus(String name,
String version)
Send a get module promotion status request |
List<Module> |
getModules(Map<String,String> filters)
Get a list of modules regarding filters |
List<String> |
getModuleVersions(String name)
Send a get module versions request |
List<String> |
getProductModuleNames(String projectId)
Returns the list of module names of a product |
String |
getServerURL()
|
boolean |
isServerAvailable()
Checks if the dependency server is available |
Boolean |
moduleCanBePromoted(String name,
String version)
Promote a module in the Grapes server |
void |
postArtifact(Artifact artifact,
String user,
String password)
Post an artifact to the Grapes server |
void |
postBuildInfo(String moduleName,
String moduleVersion,
Map<String,String> buildInfo,
String user,
String password)
Post a build info to the server |
void |
postDoNotUseArtifact(String gavc,
Boolean doNotUse,
String user,
String password)
Post boolean flag "DO_NOT_USE" to an artifact |
void |
postLicense(License license,
String user,
String password)
Post a license to the server |
void |
postModule(Module module,
String user,
String password)
Post a module to the server |
void |
promoteModule(String name,
String version,
String user,
String password)
Promote a module in the Grapes server |
void |
setTimeout(Integer timeout)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrapesClient(String host,
String port)
| Method Detail |
|---|
public void setTimeout(Integer timeout)
public String getServerURL()
public boolean isServerAvailable()
public void postBuildInfo(String moduleName,
String moduleVersion,
Map<String,String> buildInfo,
String user,
String password)
throws GrapesCommunicationException,
AuthenticationException
moduleName - StringmoduleVersion - StringbuildInfo - Mapuser - Stringpassword - String
GrapesCommunicationException
AuthenticationException
public void postModule(Module module,
String user,
String password)
throws GrapesCommunicationException,
AuthenticationException
module - user - password -
GrapesCommunicationException
AuthenticationException
public void deleteModule(String name,
String version,
String user,
String password)
throws GrapesCommunicationException,
AuthenticationException
name - version -
GrapesCommunicationException
AuthenticationException
public Module getModule(String name,
String version)
throws GrapesCommunicationException
name - version -
GrapesCommunicationException
public List<Module> getModules(Map<String,String> filters)
throws GrapesCommunicationException
filters - MapGrapesCommunicationException
public List<String> getModuleVersions(String name)
throws GrapesCommunicationException
name - String
GrapesCommunicationException
public Boolean getModulePromotionStatus(String name,
String version)
throws GrapesCommunicationException
name - Stringversion - String
GrapesCommunicationException
public void promoteModule(String name,
String version,
String user,
String password)
throws GrapesCommunicationException,
AuthenticationException
name - version -
GrapesCommunicationException
AuthenticationException
public Boolean moduleCanBePromoted(String name,
String version)
throws GrapesCommunicationException
name - version -
GrapesCommunicationException
public void postArtifact(Artifact artifact,
String user,
String password)
throws GrapesCommunicationException,
AuthenticationException
artifact - user - password -
GrapesCommunicationException
AuthenticationException
public void deleteArtifact(String gavc,
String user,
String password)
throws GrapesCommunicationException,
AuthenticationException
gavc -
GrapesCommunicationException
AuthenticationException
public Artifact getArtifact(String gavc)
throws GrapesCommunicationException
gavc -
GrapesCommunicationException
public List<Artifact> getArtifacts(Boolean hasLicense)
throws GrapesCommunicationException
hasLicense -
GrapesCommunicationException
public void postDoNotUseArtifact(String gavc,
Boolean doNotUse,
String user,
String password)
throws GrapesCommunicationException,
AuthenticationException
gavc - doNotUse - user - password -
GrapesCommunicationException
AuthenticationException
public List<String> getArtifactVersions(String gavc)
throws GrapesCommunicationException
gavc - String
GrapesCommunicationException
public String getArtifactLastVersion(String gavc)
throws GrapesCommunicationException
gavc - String
GrapesCommunicationException
public Module getArtifactModule(String gavc)
throws GrapesCommunicationException
gavc - String
GrapesCommunicationException
public void addLicense(String gavc,
String licenseId,
String user,
String password)
throws GrapesCommunicationException,
AuthenticationException
gavc - licenseId -
GrapesCommunicationException
AuthenticationException
public void postLicense(License license,
String user,
String password)
throws GrapesCommunicationException,
AuthenticationException
license - user - password -
GrapesCommunicationException
AuthenticationException
public void deleteLicense(String licenseId,
String user,
String password)
throws GrapesCommunicationException,
AuthenticationException
licenseId -
GrapesCommunicationException
AuthenticationException
public License getLicense(String licenseId)
throws GrapesCommunicationException
licenseId -
GrapesCommunicationException
public void approveLicense(String licenseId,
Boolean approve,
String user,
String password)
throws GrapesCommunicationException,
AuthenticationException
licenseId - approve -
GrapesCommunicationException
AuthenticationException
public List<Dependency> getModuleAncestors(String moduleName,
String moduleVersion)
throws GrapesCommunicationException
moduleName - moduleVersion -
GrapesCommunicationException
public List<Dependency> getModuleDependencies(String moduleName,
String moduleVersion,
Boolean fullRecursive,
Boolean corporate,
Boolean thirdParty)
throws GrapesCommunicationException
moduleName - moduleVersion - fullRecursive - corporate - thirdParty -
GrapesCommunicationException
public Organization getModuleOrganization(String moduleName,
String moduleVersion)
throws GrapesCommunicationException,
IOException
GrapesCommunicationException
IOException
public List<String> getProductModuleNames(String projectId)
throws GrapesCommunicationException,
IOException
GrapesCommunicationException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||