public class FeatureResource extends java.lang.Object implements FF4jWebConstants
LOCATION, OPERATION_ADDGROUP, OPERATION_DISABLE, OPERATION_ENABLE, OPERATION_FLIP, OPERATION_GRANTROLE, OPERATION_REMOVEGROUP, OPERATION_REMOVEROLE, POST_PARAMNAME_CUSTOM_PREFIX, POST_PARAMNAME_FEATURE_UID, POST_PARAMNAME_FLIPSTRATEGY, POST_PARAMNAME_GROUPNAME, POST_PARAMNAME_ROLENAME, RESOURCE_FEATURES, RESOURCE_GROUPS, RESOURCE_MONITORING, RESOURCE_STORE| Constructor and Description |
|---|
FeatureResource()
Defaut constructor.
|
FeatureResource(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
java.lang.String id,
FeatureStore pstore)
Constructor by Parent resource
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
deleteFeature()
Delete feature by its id.
|
FeatureStore |
getStore()
Getter accessor for attribute 'store'.
|
javax.ws.rs.core.Response |
operationAddGroup(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParams)
Convenient method to update partially the feature: Adding to a group
|
javax.ws.rs.core.Response |
operationDisable()
Convenient method to update partially the feature: Here disabling
|
javax.ws.rs.core.Response |
operationEnable()
Convenient method to update partially the feature: Here enabling
|
javax.ws.rs.core.Response |
operationGrantRole(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParams)
Convenient method to update partially the feature: Here grant a role
|
javax.ws.rs.core.Response |
operationRemoveGroup(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParams)
Convenient method to update partially the feature: Removing from a group
|
javax.ws.rs.core.Response |
operationRemoveRole(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParams)
Convenient method to update partially the feature: Here removing a role
|
javax.ws.rs.core.Response |
read()
Allows to retrieve feature by its id.
|
javax.ws.rs.core.Response |
upsertFeature(javax.ws.rs.core.HttpHeaders headers,
byte[] data)
Create the feature if not exist or update it
|
public FeatureResource()
public FeatureResource(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
java.lang.String id,
FeatureStore pstore)
uriInfo - current uriInforequest - current requestpublic javax.ws.rs.core.Response read()
featId - target feature identifierpublic javax.ws.rs.core.Response upsertFeature(@Context
javax.ws.rs.core.HttpHeaders headers,
byte[] data)
headers - current request headerdata - feature serialized as JSONpublic javax.ws.rs.core.Response deleteFeature()
public javax.ws.rs.core.Response operationEnable()
public javax.ws.rs.core.Response operationDisable()
public javax.ws.rs.core.Response operationGrantRole(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParams)
public javax.ws.rs.core.Response operationRemoveRole(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParams)
public javax.ws.rs.core.Response operationAddGroup(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParams)
public javax.ws.rs.core.Response operationRemoveGroup(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParams)
public FeatureStore getStore()
Copyright © 2013-2014 Ff4J. All Rights Reserved.