fr.paris.lutece.plugins.directory.web.action
Class ExportDirectoryAction

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.web.action.ExportDirectoryAction
All Implemented Interfaces:
IDirectoryAction

public class ExportDirectoryAction
extends java.lang.Object
implements IDirectoryAction

Exports records (search records or all records)


Constructor Summary
ExportDirectoryAction()
           
 
Method Summary
 void fillModel(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.business.user.AdminUser adminUser, java.util.Map<java.lang.String,java.lang.Object> model)
          Fills the model to provide necessary data to fill the button template
 java.lang.String getButtonTemplate()
          Gets the template to display the action (typically a button - but also check box, select...)
 java.lang.String getName()
          The action name
 boolean isInvoked(javax.servlet.http.HttpServletRequest request)
          Returns true if the action is invoked, false otherwise.
 DirectoryActionResult process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, fr.paris.lutece.portal.business.user.AdminUser adminUser, DirectoryAdminSearchFields searchFields)
          Processes the request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportDirectoryAction

public ExportDirectoryAction()
Method Detail

fillModel

public void fillModel(javax.servlet.http.HttpServletRequest request,
                      fr.paris.lutece.portal.business.user.AdminUser adminUser,
                      java.util.Map<java.lang.String,java.lang.Object> model)
Description copied from interface: IDirectoryAction
Fills the model to provide necessary data to fill the button template

Specified by:
fillModel in interface IDirectoryAction
Parameters:
request - the request
adminUser - the admin user to filter features
model - the model

getName

public java.lang.String getName()
The action name

Specified by:
getName in interface IDirectoryAction
Returns:
the name

getButtonTemplate

public java.lang.String getButtonTemplate()
Gets the template to display the action (typically a button - but also check box, select...) Return an empty strict if no display is needed (for default directory actions : create, search...)

Specified by:
getButtonTemplate in interface IDirectoryAction
Returns:
the template

isInvoked

public boolean isInvoked(javax.servlet.http.HttpServletRequest request)
Returns true if the action is invoked, false otherwise.
Uses one or several button names to detect if the action is called or note.

Specified by:
isInvoked in interface IDirectoryAction
Parameters:
request - the request
Returns:
true if the action is invoked, false otherwise.

process

public DirectoryActionResult process(javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response,
                                     fr.paris.lutece.portal.business.user.AdminUser adminUser,
                                     DirectoryAdminSearchFields searchFields)
                              throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Processes the request

Specified by:
process in interface IDirectoryAction
Parameters:
request - the request
response - the response
adminUser - the user
searchFields - the session fields
Returns:
the action result
Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user can't access the feature


Copyright © 2011 Mairie de Paris. All Rights Reserved.