fr.paris.lutece.plugins.comarquage.web
Class CoMarquageJspBean

java.lang.Object
  extended by fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
      extended by fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
          extended by fr.paris.lutece.plugins.comarquage.web.CoMarquageJspBean

public class CoMarquageJspBean
extends fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean

This class provides the user interface to manage CoMarquage features


Field Summary
static java.lang.String RIGHT_COMARQUAGE_MANAGEMENT
           
 
Constructor Summary
CoMarquageJspBean()
          Creates a new CoMarquageJspBean object.
 
Method Summary
static java.util.Collection<java.lang.String> createFileList(java.lang.String strRootDirectory, java.lang.String strLocalDirectoryName, java.lang.String strPluginName)
          Process the listing, fills the hashmap of the (id, collection of local themes/cards)
 java.lang.String doCreateXmlLocalFile(javax.servlet.http.HttpServletRequest request)
          Processes the creation form of a new card by recovering the parameters in the http request
 java.lang.String doModifyXmlKeywordsFile(javax.servlet.http.HttpServletRequest request)
          Processes the modification of the xml keyword file
 java.lang.String doModifyXslWelcomePage(javax.servlet.http.HttpServletRequest request)
          Processes the modification of the xsl welcome file
 java.lang.String doOverrideXmlLocalFile(javax.servlet.http.HttpServletRequest request)
          Override an existing xml local file with the one uploaded (after confirmation)
 java.lang.String doRemoveXmlLocalFile(javax.servlet.http.HttpServletRequest request)
          Processes the removal form of a xml local file
 java.lang.String getCreateXmlLocalFile(javax.servlet.http.HttpServletRequest request)
          Returns the create form of a new local xml file with the upload field
 java.lang.String getManageCoMarquage(javax.servlet.http.HttpServletRequest request)
          Returns the manage page of comarquage
 java.lang.String getManageXmlKeywordsFiles(javax.servlet.http.HttpServletRequest request)
          Returns the manage page of xml keyword files used for indexing
 java.lang.String getManageXmlLocalFiles(javax.servlet.http.HttpServletRequest request)
          Returns the manage page of xml local files
 java.lang.String getManageXslWelcomePages(javax.servlet.http.HttpServletRequest request)
          Returns the manage page of xsl welcome files
 java.lang.String getModifyXmlKeywordsFile(javax.servlet.http.HttpServletRequest request)
          Returns the modification form for xml keywords file : upload field
 java.lang.String getModifyXslWelcomePage(javax.servlet.http.HttpServletRequest request)
          Returns the modification form for xsl welcome file : upload field
 java.lang.String getOverrideXmlLocalFile(javax.servlet.http.HttpServletRequest request)
          Get the confirmation form when trying to override an existing file
 java.lang.String getRemoveXmlLocalFile(javax.servlet.http.HttpServletRequest request)
          Returns the remove confirmation page of a new local xml file
 
Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
getPlugin, init
 
Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, populate, setFeatureIcon, setPageTitleProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RIGHT_COMARQUAGE_MANAGEMENT

public static final java.lang.String RIGHT_COMARQUAGE_MANAGEMENT
See Also:
Constant Field Values
Constructor Detail

CoMarquageJspBean

public CoMarquageJspBean()
Creates a new CoMarquageJspBean object.

Method Detail

getManageCoMarquage

public java.lang.String getManageCoMarquage(javax.servlet.http.HttpServletRequest request)
Returns the manage page of comarquage

Parameters:
request - the Http request
Returns:
The HTML page

getManageXmlLocalFiles

public java.lang.String getManageXmlLocalFiles(javax.servlet.http.HttpServletRequest request)
Returns the manage page of xml local files

Parameters:
request - the Http request
Returns:
The HTML page

getCreateXmlLocalFile

public java.lang.String getCreateXmlLocalFile(javax.servlet.http.HttpServletRequest request)
Returns the create form of a new local xml file with the upload field

Parameters:
request - the http request
Returns:
the html code for the create form of a co-marquage card

doCreateXmlLocalFile

public java.lang.String doCreateXmlLocalFile(javax.servlet.http.HttpServletRequest request)
Processes the creation form of a new card by recovering the parameters in the http request

Parameters:
request - the http request
Returns:
The Jsp URL of the process result
Throws:
java.io.FileNotFoundException

getOverrideXmlLocalFile

public java.lang.String getOverrideXmlLocalFile(javax.servlet.http.HttpServletRequest request)
Get the confirmation form when trying to override an existing file

Parameters:
request - the http request
Returns:
the html code for the confirmation form

doOverrideXmlLocalFile

public java.lang.String doOverrideXmlLocalFile(javax.servlet.http.HttpServletRequest request)
Override an existing xml local file with the one uploaded (after confirmation)

Parameters:
request - the http request
Returns:
The Jsp URL of the process result

getRemoveXmlLocalFile

public java.lang.String getRemoveXmlLocalFile(javax.servlet.http.HttpServletRequest request)
Returns the remove confirmation page of a new local xml file

Parameters:
request - the http request
Returns:
the html code for the remove confirmation form of a co-marquage card

doRemoveXmlLocalFile

public java.lang.String doRemoveXmlLocalFile(javax.servlet.http.HttpServletRequest request)
Processes the removal form of a xml local file

Parameters:
request - the http request
Returns:
The Jsp URL of the process result

createFileList

public static java.util.Collection<java.lang.String> createFileList(java.lang.String strRootDirectory,
                                                                    java.lang.String strLocalDirectoryName,
                                                                    java.lang.String strPluginName)
Process the listing, fills the hashmap of the (id, collection of local themes/cards)

Parameters:
strRootDirectory - the name of the root directory where to find the directory to scan
strLocalDirectoryName - the name of the directory to scan
strPluginName - the plugin
Returns:
The result of this process (strLogs)

getManageXslWelcomePages

public java.lang.String getManageXslWelcomePages(javax.servlet.http.HttpServletRequest request)
Returns the manage page of xsl welcome files

Parameters:
request - the Http request
Returns:
The HTML page

getModifyXslWelcomePage

public java.lang.String getModifyXslWelcomePage(javax.servlet.http.HttpServletRequest request)
Returns the modification form for xsl welcome file : upload field

Parameters:
request - the http request
Returns:
the html code for the modification form of a xsl welcome file

doModifyXslWelcomePage

public java.lang.String doModifyXslWelcomePage(javax.servlet.http.HttpServletRequest request)
Processes the modification of the xsl welcome file

Parameters:
request - the http request
Returns:
The Jsp URL of the management page

getManageXmlKeywordsFiles

public java.lang.String getManageXmlKeywordsFiles(javax.servlet.http.HttpServletRequest request)
Returns the manage page of xml keyword files used for indexing

Parameters:
request - the Http request
Returns:
The HTML page

getModifyXmlKeywordsFile

public java.lang.String getModifyXmlKeywordsFile(javax.servlet.http.HttpServletRequest request)
Returns the modification form for xml keywords file : upload field

Parameters:
request - the http request
Returns:
the html code for the modification form of a xml keywords file

doModifyXmlKeywordsFile

public java.lang.String doModifyXmlKeywordsFile(javax.servlet.http.HttpServletRequest request)
Processes the modification of the xml keyword file

Parameters:
request - the http request
Returns:
The Jsp URL of the management page


Copyright © 2012 Mairie de Paris. All Rights Reserved.