|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.BaseServiceOperation
com.sage.orion.sdata.servlet.accpac.CloseSessionOperation
public class CloseSessionOperation
The CloseSessionOperation class provides the ability to close a session by
extending the BaseServiceOperation
class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sage.orion.sdata.servlet.BaseServiceOperation |
---|
BaseServiceOperation.FieldData, BaseServiceOperation.FieldNames |
Field Summary | |
---|---|
protected static org.slf4j.Logger |
LOGGER
|
Constructor Summary | |
---|---|
CloseSessionOperation()
|
Method Summary | |
---|---|
protected java.util.List<ServiceField> |
createRequestFields(SDataRequest request)
Create a list of input fields for Request. |
java.util.List<ServiceField> |
createResponseFields(SDataRequest request)
Create a list of output fields for Response. |
protected java.util.List<ServiceField> |
createTemplateFields(SDataRequest request)
Create a list of fields for Template. |
protected java.util.List<ServiceField> |
execute(SDataResourceElement requestElement,
SDataRequest request,
AsyncStatusListener listener)
Execute this service operation and then set the value for the response fields, if any. |
java.lang.String |
getDescription()
Get a description of the service operation, for use in service lists |
java.lang.String |
getName()
Get the full name of this service operation, i.e. |
protected java.lang.String |
getOperationName()
Get the short name of this service operation, i.e. |
protected java.lang.String |
getPath()
Get the URL to this service operation. |
protected void |
removeFromSessionMap(SDataRequest request,
java.lang.String sessionID)
removes the given client session GUID from whichever session map is holding it, using the request to find the map. |
Methods inherited from class com.sage.orion.sdata.servlet.BaseServiceOperation |
---|
getResponseFields, getSchema, handleRequest, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.slf4j.Logger LOGGER
Constructor Detail |
---|
public CloseSessionOperation()
Method Detail |
---|
protected java.util.List<ServiceField> createRequestFields(SDataRequest request)
BaseServiceOperation
Note that value for each field may not be initialized.
createRequestFields
in class BaseServiceOperation
request
- the SDataRequest, or null
public java.util.List<ServiceField> createResponseFields(SDataRequest request)
BaseServiceOperation
Note that value for each field may not be initialized.
createResponseFields
in class BaseServiceOperation
request
- the SDataRequest, or null
protected java.util.List<ServiceField> createTemplateFields(SDataRequest request)
BaseServiceOperation
The list must be the same as (or a subset of) request fields and each field has been initialized with default value
createTemplateFields
in class BaseServiceOperation
request
- the SDataRequest
protected java.util.List<ServiceField> execute(SDataResourceElement requestElement, SDataRequest request, AsyncStatusListener listener)
BaseServiceOperation
execute
in class BaseServiceOperation
requestElement
- the request (input) portion of the payload from the original
SData requestrequest
- the SDataRequestlistener
- the AsyncStatusListener
protected void removeFromSessionMap(SDataRequest request, java.lang.String sessionID)
The base implementation removes the GUID from the HttpSessionMap
associated with the request's HttpSession
.
Override this method to specify a different method for locating and removing the GUID
request
- the request being served, which can be used to locate the map
holding the GUIDsessionID
- the client session GUID to removeprotected java.lang.String getOperationName()
BaseServiceOperation
getOperationName
in class BaseServiceOperation
protected java.lang.String getPath()
BaseServiceOperation
getPath
in class BaseServiceOperation
public java.lang.String getName()
ServiceOperation
String
containing the full name of the service
operationpublic java.lang.String getDescription()
ServiceOperation
It defaults to the full name of this service operation, i.e. the operation name prefixed with resource name(s)
The description should be in the language required by the user
getDescription
in interface ServiceOperation
getDescription
in class BaseServiceOperation
String
containing the description of the
service operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |