|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yammer.dropwizard.views.View
org.axway.grapes.server.webapp.resources.AbstractResource
org.axway.grapes.server.webapp.resources.ArtifactResource
public class ArtifactResource
Artifact Resource
This server resource handles all the request about artifacts.
This resource extends DepManViews to holds its own documentation.
The documentation is available in ArtifactResourceDocumentation.ftl file.
| Constructor Summary | |
|---|---|
ArtifactResource(RepositoryHandler repoHandler,
GrapesServerConfig dmConfig)
|
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response |
addLicense(DbCredential credential,
String gavc,
String licenseId)
Add a license to an artifact |
javax.ws.rs.core.Response |
delete(DbCredential credential,
String gavc)
Delete an Artifact regarding its gavc. |
javax.ws.rs.core.Response |
deleteLicense(DbCredential credential,
String gavc,
String licenseId)
Removes a license from an artifact |
javax.ws.rs.core.Response |
get(String gavc)
Return an Artifact regarding its gavc. |
javax.ws.rs.core.Response |
getAll(javax.ws.rs.core.UriInfo uriInfo)
Return all the artifacts that matches the filters. |
javax.ws.rs.core.Response |
getAncestors(String gavc,
javax.ws.rs.core.UriInfo uriInfo)
Return the list of ancestor of an artifact. |
javax.ws.rs.core.Response |
getDoNotUse(String gavc)
Return true if the targeted artifact is flagged with "DO_NOT_USE". |
javax.ws.rs.core.Response |
getGavcs(javax.ws.rs.core.UriInfo uriInfo)
Return a list of gavc, stored in Grapes, regarding the filters passed in the query parameters. |
javax.ws.rs.core.Response |
getGroupIds(javax.ws.rs.core.UriInfo uriInfo)
Return a list of groupIds, stored in Grapes. |
javax.ws.rs.core.Response |
getLastVersion(String gavc)
Returns the list of available versions of an artifact This method is call via GET |
javax.ws.rs.core.Response |
getLicenses(String gavc,
javax.ws.rs.core.UriInfo uriInfo)
Returns the list of licenses used by an artifact. |
javax.ws.rs.core.Response |
getModule(String gavc,
javax.ws.rs.core.UriInfo uriInfo)
Returns the Module of an artifact. |
javax.ws.rs.core.Response |
getOrganization(String gavc,
javax.ws.rs.core.UriInfo uriInfo)
Returns the Organization of an artifact. |
javax.ws.rs.core.Response |
getVersions(String gavc)
Returns the list of available versions of an artifact This method is call via GET |
javax.ws.rs.core.Response |
postArtifact(DbCredential credential,
Artifact artifact)
Handle artifact posts when the server got a request POST |
javax.ws.rs.core.Response |
postDoNotUse(DbCredential credential,
String gavc,
com.yammer.dropwizard.jersey.params.BooleanParam doNotUse)
Add "DO_NOT_USE" flag to an artifact |
javax.ws.rs.core.Response |
updateDownloadUrl(DbCredential credential,
String gavc,
String downLoadUrl)
Update an artifact download url. |
javax.ws.rs.core.Response |
updateProvider(DbCredential credential,
String gavc,
String provider)
Update an artifact download url. |
| Methods inherited from class org.axway.grapes.server.webapp.resources.AbstractResource |
|---|
getArtifactHandler, getArtifactJsonModel, getConfig, getDependencyHandler, getDependencyJsonModel, getDocumentation, getGraphsHandler, getIssueTrackerUrl, getLicenseHandler, getLicenseJsonModel, getModelMapper, getModuleHandler, getModuleJsonModel, getOnlineDocumentation, getOrganizationHandler, getOrganizationJsonModel, getProductHandler, getProgramVersion, getScopes |
| Methods inherited from class com.yammer.dropwizard.views.View |
|---|
getCharset, getTemplateName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArtifactResource(RepositoryHandler repoHandler,
GrapesServerConfig dmConfig)
| Method Detail |
|---|
public javax.ws.rs.core.Response postArtifact(@Auth
DbCredential credential,
Artifact artifact)
credential - DbCredentialartifact - The artifact to add to Grapes database
public javax.ws.rs.core.Response getGavcs(@Context
javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response getGroupIds(@Context
javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response getVersions(String gavc)
gavc - String
public javax.ws.rs.core.Response getLastVersion(String gavc)
gavc - String
public javax.ws.rs.core.Response get(String gavc)
gavc - String
public javax.ws.rs.core.Response updateDownloadUrl(@Auth
DbCredential credential,
String gavc,
String downLoadUrl)
credential - DbCredentialgavc - StringdownLoadUrl - String
public javax.ws.rs.core.Response updateProvider(@Auth
DbCredential credential,
String gavc,
String provider)
public javax.ws.rs.core.Response delete(@Auth
DbCredential credential,
String gavc)
credential - DbCredentialgavc - String
public javax.ws.rs.core.Response postDoNotUse(@Auth
DbCredential credential,
String gavc,
com.yammer.dropwizard.jersey.params.BooleanParam doNotUse)
credential - DbCredentialgavc - StringdoNotUse - boolean
public javax.ws.rs.core.Response getDoNotUse(String gavc)
gavc - String
public javax.ws.rs.core.Response getAncestors(String gavc,
@Context
javax.ws.rs.core.UriInfo uriInfo)
gavc - StringuriInfo - UriInfo
public javax.ws.rs.core.Response getLicenses(String gavc,
@Context
javax.ws.rs.core.UriInfo uriInfo)
gavc -
public javax.ws.rs.core.Response addLicense(@Auth
DbCredential credential,
String gavc,
String licenseId)
credential - DbCredentialgavc - StringlicenseId - String
public javax.ws.rs.core.Response deleteLicense(@Auth
DbCredential credential,
String gavc,
String licenseId)
credential - DbCredentialgavc - StringlicenseId - String
public javax.ws.rs.core.Response getModule(String gavc,
@Context
javax.ws.rs.core.UriInfo uriInfo)
gavc - String
public javax.ws.rs.core.Response getOrganization(String gavc,
@Context
javax.ws.rs.core.UriInfo uriInfo)
gavc - String
public javax.ws.rs.core.Response getAll(@Context
javax.ws.rs.core.UriInfo uriInfo)
uriInfo - UriInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||