fr.paris.lutece.plugins.jcr.web.portlet
Class Jsr170PortletJspBean

java.lang.Object
  extended by fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
      extended by fr.paris.lutece.portal.web.portlet.PortletJspBean
          extended by fr.paris.lutece.plugins.jcr.web.portlet.Jsr170PortletJspBean
All Implemented Interfaces:
Serializable

public class Jsr170PortletJspBean
extends fr.paris.lutece.portal.web.portlet.PortletJspBean

This class provides the user interface to manage Jsr170 Portlet features

See Also:
Serialized Form

Field Summary
static String CONTEXT_NAME
           
static int FILE_NOT_ALLOWED
           
static int FILE_NOT_FOUND
           
static String RIGHT_MANAGE_ADMIN_SITE
           
static String SPRING_REPOSITORY_FILE_DAO
           
 
Constructor Summary
Jsr170PortletJspBean()
           
 
Method Summary
 String changeView(javax.servlet.http.HttpServletRequest request)
          Select a new view
 String createDirectory(javax.servlet.http.HttpServletRequest request)
          Create a directory in current workspace
 String deleteFile(javax.servlet.http.HttpServletRequest request)
          Delete a file from current workspace
 String doAddFileVersioning(javax.servlet.http.HttpServletRequest request)
          Add file versioning
 String doCreate(javax.servlet.http.HttpServletRequest request)
          Process portlet's creation
 String doLockFile(javax.servlet.http.HttpServletRequest request)
          Action to lock a file
 String doModify(javax.servlet.http.HttpServletRequest request)
          Process portlet's modification
 String doRemoveLock(javax.servlet.http.HttpServletRequest request)
          Action to remove a lock
 String getCreate(javax.servlet.http.HttpServletRequest request)
          Returns the jsr170 portlet creation form
 IRepositoryFile getFile(javax.servlet.http.HttpServletRequest request)
          Get filename from request
 byte[] getFileContent(javax.servlet.http.HttpServletRequest request)
          Get the binary content corresponding to the file to display
 byte[] getFileVersionContent(javax.servlet.http.HttpServletRequest request)
          Get the binary content corresponding to the file to display
 String getModify(javax.servlet.http.HttpServletRequest request)
          Returns the jsr170 portlet modification form
 String getPropertiesPrefix()
          Returns portlet's properties prefix
 String modifyFile(javax.servlet.http.HttpServletRequest request)
          Modify a file content
 String uploadFile(javax.servlet.http.HttpServletRequest request)
          Upload a file in current workspace
 
Methods inherited from class fr.paris.lutece.portal.web.portlet.PortletJspBean
getCreateTemplate, getCreateTemplate, getModifyTemplate, getModifyTemplate, getPageUrl, putCheckBox, setPortletCommonData
 
Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, init, populate, setFeatureIcon, setPageTitleProperty, validate, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RIGHT_MANAGE_ADMIN_SITE

public static final String RIGHT_MANAGE_ADMIN_SITE
See Also:
Constant Field Values

FILE_NOT_FOUND

public static final int FILE_NOT_FOUND
See Also:
Constant Field Values

FILE_NOT_ALLOWED

public static final int FILE_NOT_ALLOWED
See Also:
Constant Field Values

CONTEXT_NAME

public static final String CONTEXT_NAME
See Also:
Constant Field Values

SPRING_REPOSITORY_FILE_DAO

public static final String SPRING_REPOSITORY_FILE_DAO
See Also:
Constant Field Values
Constructor Detail

Jsr170PortletJspBean

public Jsr170PortletJspBean()
Method Detail

getCreate

public String getCreate(javax.servlet.http.HttpServletRequest request)
Returns the jsr170 portlet creation form

Specified by:
getCreate in class fr.paris.lutece.portal.web.portlet.PortletJspBean
Parameters:
request - The Http request
Returns:
The HTML form

getModify

public String getModify(javax.servlet.http.HttpServletRequest request)
Returns the jsr170 portlet modification form

Specified by:
getModify in class fr.paris.lutece.portal.web.portlet.PortletJspBean
Parameters:
request - The Http request
Returns:
The HTML form

getPropertiesPrefix

public String getPropertiesPrefix()
Returns portlet's properties prefix

Returns:
prefix

doCreate

public String doCreate(javax.servlet.http.HttpServletRequest request)
Process portlet's creation

Specified by:
doCreate in class fr.paris.lutece.portal.web.portlet.PortletJspBean
Parameters:
request - The Http request
Returns:
The Jsp management URL of the process result

doModify

public String doModify(javax.servlet.http.HttpServletRequest request)
Process portlet's modification

Specified by:
doModify in class fr.paris.lutece.portal.web.portlet.PortletJspBean
Parameters:
request - The Http request
Returns:
The Jsp management URL of the process result

getFileContent

public byte[] getFileContent(javax.servlet.http.HttpServletRequest request)
Get the binary content corresponding to the file to display

Parameters:
request - the http request
Returns:
the content to display

getFileVersionContent

public byte[] getFileVersionContent(javax.servlet.http.HttpServletRequest request)
Get the binary content corresponding to the file to display

Parameters:
request - the http request
Returns:
the content to display

uploadFile

public String uploadFile(javax.servlet.http.HttpServletRequest request)
Upload a file in current workspace

Parameters:
request - the request
Returns:
the redirect url

modifyFile

public String modifyFile(javax.servlet.http.HttpServletRequest request)
Modify a file content

Parameters:
request - the request
Returns:
the new url

getFile

public IRepositoryFile getFile(javax.servlet.http.HttpServletRequest request)
Get filename from request

Parameters:
request - the request
Returns:
the filename

deleteFile

public String deleteFile(javax.servlet.http.HttpServletRequest request)
Delete a file from current workspace

Parameters:
request - the request
Returns:
the redirect url

doAddFileVersioning

public String doAddFileVersioning(javax.servlet.http.HttpServletRequest request)
Add file versioning

Parameters:
request - the request
Returns:
the redirect url

createDirectory

public String createDirectory(javax.servlet.http.HttpServletRequest request)
Create a directory in current workspace

Parameters:
request - the request
Returns:
the redirect url

changeView

public String changeView(javax.servlet.http.HttpServletRequest request)
Select a new view

Parameters:
request - the request
Returns:
the url

doLockFile

public String doLockFile(javax.servlet.http.HttpServletRequest request)
Action to lock a file

Parameters:
request - the request
Returns:
the redirect url

doRemoveLock

public String doRemoveLock(javax.servlet.http.HttpServletRequest request)
Action to remove a lock

Parameters:
request - the request
Returns:
the redirect url


Copyright © 2014 Mairie de Paris. All Rights Reserved.