com.flexive.war.javascript
Class SearchQueryEditor

java.lang.Object
  extended by com.flexive.war.javascript.SearchQueryEditor
All Implemented Interfaces:
java.io.Serializable

public class SearchQueryEditor
extends java.lang.Object
implements java.io.Serializable

Implements JSON/RPC methods for the search query panel.

Version:
$Rev: 2906 $
Author:
Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Constructor Summary
SearchQueryEditor()
           
 
Method Summary
 java.lang.String remove(java.lang.String name)
          Remove an admin search query definition.
 java.lang.String renderSearchQueries()
          Renders all stored search queries of the calling user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchQueryEditor

public SearchQueryEditor()
Method Detail

renderSearchQueries

public java.lang.String renderSearchQueries()
                                     throws java.lang.Exception
Renders all stored search queries of the calling user.

Returns:
all search queries of the calling user (in JSON format).
Throws:
java.lang.Exception - on server-side errors

remove

public java.lang.String remove(java.lang.String name)
                        throws java.lang.Exception
Remove an admin search query definition.

Parameters:
name - the query name
Returns:
nothing
Throws:
java.lang.Exception - if the query was not found or could not be deleted