|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.ServiceOperationHelper
public final class ServiceOperationHelper
This class is designed to contain helper routines for the SData Service Operations.
Method Summary | |
---|---|
static SDataResponseEntry |
createSDataResponseEntry(java.lang.String operationFullName,
java.util.List<ServiceField> responseFields,
boolean useRequestTag)
Create an SDataResponseEntry from the list of response fields |
static void |
generateServiceOperationSchema(org.w3c.dom.Element elemSchema,
java.lang.String operationFullName,
java.lang.String operationName,
java.util.List<ServiceField> requestFields,
java.util.List<ServiceField> responseFields,
java.lang.String path)
Generate the schema for a service operation, attaching it to the given schema element |
static SDataResourceElement |
getRequestElement(SDataResourceElement payload)
Get the request element from the SData payload |
static SDataResourceElement |
getResourceKindElement(SDataResourceElement payload)
Get the resourceKind portion of the payload from the input payload |
static java.lang.String |
uppercaseFirstLetter(java.lang.String inStr)
Make first letter upper case |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void generateServiceOperationSchema(org.w3c.dom.Element elemSchema, java.lang.String operationFullName, java.lang.String operationName, java.util.List<ServiceField> requestFields, java.util.List<ServiceField> responseFields, java.lang.String path)
elemSchema
- the schema element under which this schema will be addedoperationFullName
- the full name of operationoperationName
- the name of operationrequestFields
- The list of request fieldsresponseFields
- The list of response fieldspath
- URL (relative to dataset segment) where the operation can be
found. Typically this will consist of the resource name(s)
followed by the $service keyword and the name of the operation,
all separated by the URL separator.public static java.lang.String uppercaseFirstLetter(java.lang.String inStr)
inStr
- The string passed in
public static SDataResourceElement getRequestElement(SDataResourceElement payload)
payload
- the SData payload
public static SDataResourceElement getResourceKindElement(SDataResourceElement payload)
payload
- the SData payload
public static SDataResponseEntry createSDataResponseEntry(java.lang.String operationFullName, java.util.List<ServiceField> responseFields, boolean useRequestTag)
operationFullName
- the full name of operationresponseFields
- the list of response fieldsuseRequestTag
- If true, the response will use request tag. Otherwise, use
response tag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |