Class ImportExportSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.core.web.mvc.controller.AbstractAdminComponentSessionController
-
- org.silverpeas.web.importexport.control.ImportExportSessionController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
public class ImportExportSessionController extends AbstractAdminComponentSessionController
- Author:
- neysseri
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description ImportExportSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext, String multilangBundle, String iconBundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearItems()
Exception
getErrorOccured()
ExportReport
getExportReport()
boolean
isAccessGranted()
Used mainly byAbstractAdminComponentSessionController.checkAccessGranted()
.boolean
isExportInProgress()
void
processExport(List<WAAttributeValuePair> itemsToExport, NodePK rootPK)
ExportReport
processExportKmax(String language, List<WAAttributeValuePair> itemsToExport, List combination, String timeCriteria)
void
processExportOfSavedItems(String mode)
ExportPDFReport
processExportPDF(List<WAAttributeValuePair> itemsToExport)
Export Pdf attachements of selected publications to a unique PDF.ImportReport
processImport(String xmlFileName, MultiSilverpeasBundle resource)
void
saveItems(List<WAAttributeValuePair> items, NodePK rootPK)
void
threadFinished()
-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractAdminComponentSessionController
checkAccessGranted, checkAccessGranted, checkAdminAccessOnly, isAccessGranted, isUserAdmin, setAppModeMaintenance, setSpaceModeMaintenance, throwForbiddenError
-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getHighestSilverpeasUserRole, getIcon, getLanguage, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoles, getZoneId, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setClipboardSelectedElement, setComponentRootName
-
-
-
-
Constructor Detail
-
ImportExportSessionController
public ImportExportSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext, String multilangBundle, String iconBundle)
-
-
Method Detail
-
isAccessGranted
public boolean isAccessGranted()
Description copied from class:AbstractAdminComponentSessionController
Used mainly byAbstractAdminComponentSessionController.checkAccessGranted()
.Each implementation can precise or change this default implementation.
- Overrides:
isAccessGranted
in classAbstractAdminComponentSessionController
- Returns:
- true if access granted, false otherwise.
-
processImport
public ImportReport processImport(String xmlFileName, MultiSilverpeasBundle resource) throws ImportExportException
- Throws:
ImportExportException
-
processExport
public void processExport(List<WAAttributeValuePair> itemsToExport, NodePK rootPK)
-
isExportInProgress
public boolean isExportInProgress()
-
getErrorOccured
public Exception getErrorOccured()
-
getExportReport
public ExportReport getExportReport()
-
threadFinished
public void threadFinished()
-
processExportPDF
public ExportPDFReport processExportPDF(List<WAAttributeValuePair> itemsToExport) throws ImportExportException
Export Pdf attachements of selected publications to a unique PDF. Useful for a single print or download.- Parameters:
itemsToExport
- : Listcontains ids of elements to export (objectId and instanceId) - Returns:
- Throws:
ImportExportException
-
processExportKmax
public ExportReport processExportKmax(String language, List<WAAttributeValuePair> itemsToExport, List combination, String timeCriteria) throws ImportExportException
- Parameters:
language
-itemsToExport
- a List of WAAttributeValuePair contains ids of elements to export (objectId and instanceId)combination
-timeCriteria
-- Returns:
- Throws:
ImportExportException
-
processExportOfSavedItems
public void processExportOfSavedItems(String mode)
-
saveItems
public void saveItems(List<WAAttributeValuePair> items, NodePK rootPK)
-
clearItems
public void clearItems()
-
-