@Encoded public class SpotHandler extends AbstractResourceHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice.
|
static java.lang.String | FORMAT_GROUP_NAME
The constant FORMAT_GROUP_NAME.
|
static java.lang.String | QUERY_FIND_BY_TYPE
The query name to search for all spots of a given type.
|
static java.lang.String | QUERY_FIND_BY_TYPE_AND_NAME
The query name to search for the spot with the given type and name.
|
static java.lang.String | RESOURCE_MAPPING_KEY
The Constant RESOURCE_MAPPING_KEY.
|
static java.lang.String | RESOURCE_NAME
The Constant RESOURCE_NAME.
|
Constructor and Description |
---|
SpotHandler()
Constructor for this.
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response | findSpotByID(java.lang.String storeId, int spotId, java.lang.String responseFormat, int pageNumber, int pageSize)
This method returns the spot details for the specified store.
|
javax.ws.rs.core.Response | findSpotsByQuery(java.lang.String storeId, java.lang.String query, java.lang.String responseFormat)
This method returns the spot details for the specified store.
|
java.lang.String | getFormattingGroupName()
Returns the spot formatting group name.
|
SpotHelper | getHelper()
This method returns the BOD helper associated with the spot resource.
|
java.lang.String | getResourceName()
Returns the spot resource name.
|
protected javax.ws.rs.core.Response | queryByType(java.lang.String responseFormat, java.lang.String accessProfile)
Finds all spots with the same type and returns a response.
|
protected javax.ws.rs.core.Response | queryByTypeAndName(java.lang.String responseFormat, java.lang.String accessProfile)
Finds all spots with a type and name and returns a response.
|
protected javax.ws.rs.core.Response | renderGetSpot(boolean isUniqueID, java.lang.String expression, java.lang.String accessProfile, java.lang.String responseFormat, int pageNumber, int pageSize)
This method builds the response in appropriate format.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String RESOURCE_MAPPING_KEY
public static final java.lang.String FORMAT_GROUP_NAME
public static final java.lang.String QUERY_FIND_BY_TYPE
public static final java.lang.String QUERY_FIND_BY_TYPE_AND_NAME
public java.lang.String getResourceName()
public java.lang.String getFormattingGroupName()
public SpotHelper getHelper()
public javax.ws.rs.core.Response findSpotsByQuery(java.lang.String storeId, java.lang.String query, java.lang.String responseFormat)
protected javax.ws.rs.core.Response queryByType(java.lang.String responseFormat, java.lang.String accessProfile) throws java.lang.Exception
protected javax.ws.rs.core.Response queryByTypeAndName(java.lang.String responseFormat, java.lang.String accessProfile) throws java.lang.Exception
public javax.ws.rs.core.Response findSpotByID(java.lang.String storeId, int spotId, java.lang.String responseFormat, int pageNumber, int pageSize)
protected javax.ws.rs.core.Response renderGetSpot(boolean isUniqueID, java.lang.String expression, java.lang.String accessProfile, java.lang.String responseFormat, int pageNumber, int pageSize)