fr.paris.lutece.portal.web.insert
Class InsertServiceJspBean

java.lang.Object
  extended by fr.paris.lutece.portal.web.insert.InsertServiceJspBean
All Implemented Interfaces:
Serializable

public abstract class InsertServiceJspBean
extends Object
implements Serializable

Base class for InsertServiceJspBean

See Also:
Serialized Form

Constructor Summary
InsertServiceJspBean()
           
 
Method Summary
protected  String buildLink(String strText, String strUrl, String strTitle, String strTarget)
          Build an HTML link
 ReferenceList getSubCategories()
          List of supported sub categories that may be used to filter resources.
protected  String insertUrl(javax.servlet.http.HttpServletRequest request, String strInput, String strInsert)
          Build the Url to insert HTML code into the current rich text editor
protected  String insertUrlWithoutEscape(javax.servlet.http.HttpServletRequest request, String strInput, String strInsert)
          Build the Url to insert HTML code into the current rich text editor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertServiceJspBean

public InsertServiceJspBean()
Method Detail

insertUrl

protected String insertUrl(javax.servlet.http.HttpServletRequest request,
                           String strInput,
                           String strInsert)
Build the Url to insert HTML code into the current rich text editor

Parameters:
request - The HTTP request
strInput - The rich text input field
strInsert - The code to insert
Returns:
The Url that will provide the insertion

insertUrlWithoutEscape

protected String insertUrlWithoutEscape(javax.servlet.http.HttpServletRequest request,
                                        String strInput,
                                        String strInsert)
Build the Url to insert HTML code into the current rich text editor

Parameters:
request - The HTTP request
strInput - The rich text input field
strInsert - The code to insert
Returns:
The Url that will provide the insertion

buildLink

protected String buildLink(String strText,
                           String strUrl,
                           String strTitle,
                           String strTarget)
Build an HTML link

Parameters:
strText - The text of the link
strUrl - The Url of the link
strTitle - The title of the link
strTarget - The target window
Returns:
The HTML link

getSubCategories

public ReferenceList getSubCategories()
List of supported sub categories that may be used to filter resources.

Returns:
the list. Default is an empty list.


Copyright © 2014 Mairie de Paris. All Rights Reserved.