com.wewebu.ow.server.plug.owshortcut
Class OwSavedSearchesView

java.lang.Object
  extended by com.wewebu.ow.server.ui.OwEventTarget
      extended by com.wewebu.ow.server.ui.OwView
          extended by com.wewebu.ow.server.plug.owshortcut.OwSavedSearchesView
All Implemented Interfaces:
com.wewebu.ow.server.ui.OwBaseView, com.wewebu.ow.server.ui.OwUpdateTarget

public class OwSavedSearchesView
extends com.wewebu.ow.server.ui.OwView

Saved Searches View.
View that displays and executes saved searches.

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.0.0.0

Nested Class Summary
 class OwSavedSearchesView.OwSortableColumn
          Define sortable column
 
Field Summary
 
Fields inherited from class com.wewebu.ow.server.ui.OwView
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget
 
Fields inherited from interface com.wewebu.ow.server.ui.OwBaseView
EMPTY_STRING
 
Constructor Summary
OwSavedSearchesView()
           
 
Method Summary
 void defaultSort(Comparator defaultComparator_p, int sortOrder_p)
          Sort stored saved search templates using default sort criteria
protected  String getDeleteIcon()
          get the URL to the favorites delete icon
protected  Map getRepositories()
          create a map of repositories that can be searched
protected  Collection getSearchTemplates()
          Get available search templates
protected  String getSortOrderImage(int sortInfo_p)
          gets the path to the sort order image, which designates the current sort order of the specified column
protected  String getSortOrderType(int sortInfo_p)
           
protected  void init()
          Initialization after target has set
 void onDeleteSearch(javax.servlet.http.HttpServletRequest request_p)
          Delete current saved search
 void onExecute(javax.servlet.http.HttpServletRequest request_p)
          Execute current search
protected  void onRender(Writer w_p)
          render the view
 void onSort(javax.servlet.http.HttpServletRequest request_p)
          Execute sort by column
 
Methods inherited from class com.wewebu.ow.server.ui.OwView
activate, addView, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, renderNamedRegion, renderRegion, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes
 
Methods inherited from class com.wewebu.ow.server.ui.OwEventTarget
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwSavedSearchesView

public OwSavedSearchesView()
Method Detail

init

protected void init()
             throws Exception
Initialization after target has set

Overrides:
init in class com.wewebu.ow.server.ui.OwView
Throws:
Exception

onRender

protected void onRender(Writer w_p)
                 throws Exception
render the view

Overrides:
onRender in class com.wewebu.ow.server.ui.OwView
Parameters:
w_p - Writer object to write HTML to
Throws:
Exception

getDeleteIcon

protected String getDeleteIcon()
                        throws Exception
get the URL to the favorites delete icon

Returns:
String URL
Throws:
Exception

onDeleteSearch

public void onDeleteSearch(javax.servlet.http.HttpServletRequest request_p)
                    throws Exception
Delete current saved search

Parameters:
request_p -
Throws:
Exception

onExecute

public void onExecute(javax.servlet.http.HttpServletRequest request_p)
               throws Exception
Execute current search

Parameters:
request_p -
Throws:
Exception

getSortOrderType

protected String getSortOrderType(int sortInfo_p)
                           throws Exception
Throws:
Exception

getSortOrderImage

protected String getSortOrderImage(int sortInfo_p)
                            throws Exception
gets the path to the sort order image, which designates the current sort order of the specified column

Returns:
image path
Throws:
Exception

onSort

public void onSort(javax.servlet.http.HttpServletRequest request_p)
            throws Exception
Execute sort by column

Parameters:
request_p - HttpServletRequest request
Throws:
Exception

defaultSort

public void defaultSort(Comparator defaultComparator_p,
                        int sortOrder_p)
Sort stored saved search templates using default sort criteria

Parameters:
defaultComparator_p -
sortOrder_p -

getSearchTemplates

protected Collection getSearchTemplates()
                                 throws Exception
Get available search templates

Returns:
Collection available SearchTemplates
Throws:
Exception

getRepositories

protected Map getRepositories()
create a map of repositories that can be searched



Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.