public class OwAdaptor extends Object
Utility class to handle adaptor selection.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Class and Description |
---|---|
class |
OwAdaptor.OwAjaxRequestHandlerStrategy
Strategy for handling an AJAX request
|
static class |
OwAdaptor.OwApplicationStarterStrategy
Strategy for handling "Start OWD" button request
|
class |
OwAdaptor.OwGetEditNodesStrategy
Strategy for handling "get editable nodes" request.
|
class |
OwAdaptor.OwListSavedFilesStrategy
Strategy for handling "list saved files" request.
|
static interface |
OwAdaptor.OwRequestHandlerStrategy
Strategy for handling different requests.
|
class |
OwAdaptor.OwSaveFileStrategy
Strategy for handling "save file" request.
|
Constructor and Description |
---|
OwAdaptor()
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getAvailableAdators()
Get the available adaptors as a JavaScript array.
|
String |
getBaseURL(javax.servlet.http.HttpServletRequest request_p)
Get the base URL for the adaptor.jsp.
|
String |
getEditableAdaptors()
Get the adaptor paths that have configured editable nodes.
|
String |
getEditNodes(String adaptor_p,
String selectedBootstrap_p)
Get the nodes (as an EXTJS array) specified in
OW_EDITABLE_BOOTSTRAP_NODES_PATH file from owbootstrap.xml. |
String |
getSelectedAdaptor()
Get the default selected adaptor
|
void |
initialize(javax.servlet.http.HttpServletRequest request_p,
OwWebApplication owApplication_p)
Initialize the application
|
void |
processRequest(javax.servlet.http.HttpServletRequest request_p,
javax.servlet.http.HttpServletResponse response_p,
OwWebApplication owApplication_p)
Process the current request
|
public String getAvailableAdators() throws Exception
Exception
public String getSelectedAdaptor() throws Exception
Exception
public String getBaseURL(javax.servlet.http.HttpServletRequest request_p)
request_p
- - the request objectpublic void initialize(javax.servlet.http.HttpServletRequest request_p, OwWebApplication owApplication_p) throws Exception
request_p
- owApplication_p
- Exception
public void processRequest(javax.servlet.http.HttpServletRequest request_p, javax.servlet.http.HttpServletResponse response_p, OwWebApplication owApplication_p) throws Exception
request_p
- response_p
- owApplication_p
- Exception
public String getEditableAdaptors() throws Exception
Exception
public String getEditNodes(String adaptor_p, String selectedBootstrap_p) throws Exception
OW_EDITABLE_BOOTSTRAP_NODES_PATH
file from owbootstrap.xml.adaptor_p
- - the adaptorselectedBootstrap_p
- - the selected file (from where to read)Exception
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.