|
||||||||||
| 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.ModuleResource
public class ModuleResource
Module Resource
This server resource handles all the request about modules.
This resource extends DepManViews to holds its own documentation.
The documentation is available in ModuleResourceDocumentation.ftl file.
| Constructor Summary | |
|---|---|
ModuleResource(RepositoryHandler repoHandler,
GrapesServerConfig dmConfig)
|
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response |
canBePromoted(String name,
String version)
Check if a module can be promoted or not This method is call via GET |
javax.ws.rs.core.Response |
delete(DbCredential credential,
String name,
String version)
Delete a module. |
javax.ws.rs.core.Response |
get(String name,
String version)
Return a module. |
javax.ws.rs.core.Response |
getAllModules(javax.ws.rs.core.UriInfo uriInfo)
Provide a list of module regarding the query parameter filters |
javax.ws.rs.core.Response |
getAncestors(String name,
String version,
javax.ws.rs.core.UriInfo uriInfo)
Return ancestor list of a module. |
javax.ws.rs.core.Response |
getBuildInfo(String name,
String version)
Return a build info |
javax.ws.rs.core.Response |
getDependencies(String name,
String version,
javax.ws.rs.core.UriInfo uriInfo)
Return a module dependency list. |
javax.ws.rs.core.Response |
getDependencyReport(String name,
String version,
javax.ws.rs.core.UriInfo uriInfo)
Return a report about the targeted module dependencies. |
javax.ws.rs.core.Response |
getLicenses(String name,
String version)
Return license list of a module. |
javax.ws.rs.core.Response |
getNames(javax.ws.rs.core.UriInfo uriInfo)
Return a list of moduleNames, stored in Grapes, regarding the filters passed in the query parameters. |
javax.ws.rs.core.Response |
getOrganization(String name,
String version)
Return an Organization. |
javax.ws.rs.core.Response |
getPromotionStatusReport(String name,
String version)
Return a promotion report |
javax.ws.rs.core.Response |
getVersions(String name,
javax.ws.rs.core.UriInfo uriInfo)
Return a list of moduleNames, stored in Grapes, regarding the filters passed in the query parameters. |
javax.ws.rs.core.Response |
getVersionsRedirection(String name,
javax.ws.rs.core.UriInfo uriInfo)
|
javax.ws.rs.core.Response |
isPromoted(String name,
String version)
Check if a module is promoted or not This method is call via GET |
javax.ws.rs.core.Response |
postModule(DbCredential credential,
Module module)
Handle the update/addition of a module in Grapes database |
javax.ws.rs.core.Response |
promote(DbCredential credential,
String name,
String version)
Promote a module. |
javax.ws.rs.core.Response |
updateBuildInfo(String name,
String version,
Map<String,String> buildInfo)
Update a build info |
| 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 ModuleResource(RepositoryHandler repoHandler,
GrapesServerConfig dmConfig)
| Method Detail |
|---|
public javax.ws.rs.core.Response postModule(@Auth
DbCredential credential,
Module module)
credential - DbCredentialmodule - Module
public javax.ws.rs.core.Response getNames(@Context
javax.ws.rs.core.UriInfo uriInfo)
uriInfo - UriInfo
public javax.ws.rs.core.Response getVersionsRedirection(String name,
@Context
javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response getVersions(String name,
@Context
javax.ws.rs.core.UriInfo uriInfo)
name - StringuriInfo - UriInfo
public javax.ws.rs.core.Response get(String name,
String version)
name - Stringversion - String
public javax.ws.rs.core.Response delete(@Auth
DbCredential credential,
String name,
String version)
credential - DbCredentialname - Stringversion - String
public javax.ws.rs.core.Response getOrganization(String name,
String version)
name - Stringversion - String
public javax.ws.rs.core.Response getAncestors(String name,
String version,
@Context
javax.ws.rs.core.UriInfo uriInfo)
name - Stringversion - StringuriInfo - UriInfo
public javax.ws.rs.core.Response getDependencies(String name,
String version,
@Context
javax.ws.rs.core.UriInfo uriInfo)
name - Stringversion - StringuriInfo - UriInfo
public javax.ws.rs.core.Response getDependencyReport(String name,
String version,
@Context
javax.ws.rs.core.UriInfo uriInfo)
name - Stringversion - StringuriInfo - UriInfo
public javax.ws.rs.core.Response getLicenses(String name,
String version)
name - Stringversion - String
public javax.ws.rs.core.Response promote(@Auth
DbCredential credential,
String name,
String version)
credential - DbCredentialname - Stringversion - String
public javax.ws.rs.core.Response canBePromoted(String name,
String version)
name - Stringversion - String
public javax.ws.rs.core.Response getPromotionStatusReport(String name,
String version)
public javax.ws.rs.core.Response isPromoted(String name,
String version)
public javax.ws.rs.core.Response getBuildInfo(String name,
String version)
public javax.ws.rs.core.Response updateBuildInfo(String name,
String version,
Map<String,String> buildInfo)
public javax.ws.rs.core.Response getAllModules(@Context
javax.ws.rs.core.UriInfo uriInfo)
uriInfo -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||