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

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

public abstract class InsertServiceJspBean
extends java.lang.Object
implements java.io.Serializable

Base class for InsertServiceJspBean

See Also:
Serialized Form

Constructor Summary
InsertServiceJspBean()
           
 
Method Summary
protected  java.lang.String buildLink(java.lang.String strText, java.lang.String strUrl, java.lang.String strTitle, java.lang.String strTarget)
          Build an HTML link
 ReferenceList getSubCategories()
          List of supported sub categories that may be used to filter resources.
protected  java.lang.String insertUrl(javax.servlet.http.HttpServletRequest request, java.lang.String strInput, java.lang.String strInsert)
          Build the Url to insert HTML code into the current rich text editor
protected  java.lang.String insertUrlWithoutEscape(javax.servlet.http.HttpServletRequest request, java.lang.String strInput, java.lang.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 java.lang.String insertUrl(javax.servlet.http.HttpServletRequest request,
                                     java.lang.String strInput,
                                     java.lang.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 java.lang.String insertUrlWithoutEscape(javax.servlet.http.HttpServletRequest request,
                                                  java.lang.String strInput,
                                                  java.lang.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 java.lang.String buildLink(java.lang.String strText,
                                     java.lang.String strUrl,
                                     java.lang.String strTitle,
                                     java.lang.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 © 2012 Mairie de Paris. All Rights Reserved.