public class EntityBatchHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityBatchHandler.ResponseBase
Base class for all response data which will be encoded and output
|
static class |
EntityBatchHandler.ResponseError
Holds the error values which will be encoded by the various EB utils
|
static class |
EntityBatchHandler.ResponseResult
Holds the results from a successful response request
|
| Modifier and Type | Field and Description |
|---|---|
static boolean |
CONFIG_BATCH_DEFAULT |
static String |
CONFIG_BATCH_ENABLE |
static String |
REFS_PARAM_NAME
This is the name of the parameter which is used to pass along the reference URLs to be batch processed
|
| Constructor and Description |
|---|
EntityBatchHandler()
Empty constructor, must use setters to set the needed services
|
EntityBatchHandler(EntityBrokerManager entityBrokerManager,
EntityEncodingManager entityEncodingManager,
ExternalIntegrationProvider externalIntegrationProvider)
Full constructor, use this to correctly construct this class,
note that after construction, the entityRequestHandler must be set also
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
handleBatch(EntityView view,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handle the batch operations encoded in this view and request
|
void |
init() |
void |
setEntityBrokerManager(EntityBrokerManager entityBrokerManager) |
void |
setEntityEncodingManager(EntityEncodingManager entityEncodingManager) |
void |
setEntityRequestHandler(EntityHandlerImpl entityRequestHandler) |
void |
setExternalIntegrationProvider(ExternalIntegrationProvider externalIntegrationProvider) |
String |
stripOutXMLTag(String content,
String startTag,
String endTag)
This will strip any tag out of an xml file by finding the startTag (if possible),
and then the endTag and chopping this out of the given content and returning
the new value
|
public static final String CONFIG_BATCH_ENABLE
public static final boolean CONFIG_BATCH_DEFAULT
public static final String REFS_PARAM_NAME
public EntityBatchHandler()
public EntityBatchHandler(EntityBrokerManager entityBrokerManager, EntityEncodingManager entityEncodingManager, ExternalIntegrationProvider externalIntegrationProvider)
public void init()
public void destroy()
public void setEntityBrokerManager(EntityBrokerManager entityBrokerManager)
public void setEntityEncodingManager(EntityEncodingManager entityEncodingManager)
public void setExternalIntegrationProvider(ExternalIntegrationProvider externalIntegrationProvider)
public void setEntityRequestHandler(EntityHandlerImpl entityRequestHandler)
public void handleBatch(EntityView view, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
view - the current viewreq - the current requestres - the current responsepublic String stripOutXMLTag(String content, String startTag, String endTag)
content - any XML like contentstartTag - the starting tag (e.g. "" or "endTag - the ending tag (e.g "?>" or "/blah")Copyright © 2003–2020 Sakai Project. All rights reserved.