com.wewebu.ow.server.ui
Class OwAdaptor

java.lang.Object
  extended by com.wewebu.ow.server.ui.OwAdaptor

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

Since:
3.2.0.0

Nested Class Summary
 class OwAdaptor.OwAjaxRequestHandlerStrategy
           Strategy for handling an AJAX request
 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 Summary
OwAdaptor()
          Constructor
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwAdaptor

public OwAdaptor()
Constructor

Method Detail

getAvailableAdators

public String getAvailableAdators()
                           throws Exception
Get the available adaptors as a JavaScript array.

Returns:
the available adaptors as a JavaScript array.
Throws:
Exception

getSelectedAdaptor

public String getSelectedAdaptor()
                          throws Exception
Get the default selected adaptor

Returns:
the default selected adaptor
Throws:
Exception

getBaseURL

public String getBaseURL(javax.servlet.http.HttpServletRequest request_p)
Get the base URL for the adaptor.jsp.

Parameters:
request_p - - the request object
Returns:
the base URL for the adaptor.jsp.

initialize

public void initialize(javax.servlet.http.HttpServletRequest request_p,
                       OwWebApplication owApplication_p)
                throws Exception
Initialize the application

Parameters:
request_p -
owApplication_p -
Throws:
Exception

processRequest

public void processRequest(javax.servlet.http.HttpServletRequest request_p,
                           javax.servlet.http.HttpServletResponse response_p,
                           OwWebApplication owApplication_p)
                    throws Exception
Process the current request

Parameters:
request_p -
response_p -
owApplication_p -
Throws:
Exception

getEditableAdaptors

public String getEditableAdaptors()
                           throws Exception
Get the adaptor paths that have configured editable nodes.

Returns:
the adaptor paths that have configured editable nodes, as a String.
Throws:
Exception

getEditNodes

public String getEditNodes(String adaptor_p,
                           String selectedBootstrap_p)
                    throws Exception
Get the nodes (as an EXTJS array) specified in OW_EDITABLE_BOOTSTRAP_NODES_PATH file from owbootstrap.xml.

Parameters:
adaptor_p - - the adaptor
selectedBootstrap_p - - the selected file (from where to read)
Returns:
an EXTJS string array with nodes title and value.
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.