public abstract class AbstractVariantEndpoint<T extends org.jboss.aerogear.unifiedpush.api.Variant> extends AbstractBaseEndpoint
| Modifier and Type | Field and Description |
|---|---|
protected PushApplicationService |
pushAppService |
protected GenericVariantService |
variantService |
logger| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
deleteVariant(String variantId)
Delete Variant
|
javax.ws.rs.core.Response |
findVariantById(String variantId)
Get Variant
|
protected Set<T> |
getVariants(org.jboss.aerogear.unifiedpush.api.PushApplication application) |
javax.ws.rs.core.Response |
resetSecret(String variantId)
Secret Reset
|
createBadRequestResponse, getSearch, validateModelClass@Inject protected PushApplicationService pushAppService
@Inject protected GenericVariantService variantService
public javax.ws.rs.core.Response resetSecret(String variantId)
variantId - id of VariantVariant with new secretpublic javax.ws.rs.core.Response findVariantById(String variantId)
variantId - id of VariantVariantpublic javax.ws.rs.core.Response deleteVariant(String variantId)
variantId - id of VariantCopyright © 2019 JBoss by Red Hat. All rights reserved.