|
||||||||||
| 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.LicenseResource
public class LicenseResource
License Resource
This server resource handles all the request about licenses.
This resource extends DepManViews to holds its own documentation.
The documentation is available in LicenseResourceDocumentation.ftl file.
| Constructor Summary | |
|---|---|
LicenseResource(RepositoryHandler repoHandler,
GrapesServerConfig dmConfig)
|
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response |
approve(DbCredential credential,
String name,
com.yammer.dropwizard.jersey.params.BooleanParam approved)
Validate a license This method is call via POST |
javax.ws.rs.core.Response |
delete(DbCredential credential,
String name)
Delete a license This method is call via DELETE |
javax.ws.rs.core.Response |
get(String name)
Return a license This method is call via GET |
javax.ws.rs.core.Response |
getNames(javax.ws.rs.core.UriInfo uriInfo)
Return the list of available license name. |
javax.ws.rs.core.Response |
postLicense(DbCredential credential,
License license)
Handle license posts when the server got a request POST |
| 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 LicenseResource(RepositoryHandler repoHandler,
GrapesServerConfig dmConfig)
| Method Detail |
|---|
public javax.ws.rs.core.Response postLicense(@Auth
DbCredential credential,
License license)
license - The license to add to Grapes database
public javax.ws.rs.core.Response getNames(@Context
javax.ws.rs.core.UriInfo uriInfo)
uriInfo - UriInfo
public javax.ws.rs.core.Response get(String name)
name - String
public javax.ws.rs.core.Response delete(@Auth
DbCredential credential,
String name)
credential - DbCredentialname - String
public javax.ws.rs.core.Response approve(@Auth
DbCredential credential,
String name,
com.yammer.dropwizard.jersey.params.BooleanParam approved)
credential - DbCredentialname - Stringapproved - BooleanParam
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||