com.jalios.jcms.handler
Class MembersCsvImportHandler

java.lang.Object
  extended by com.jalios.jcms.context.JcmsContext
      extended by com.jalios.jcms.context.JcmsJspContext
          extended by com.jalios.jcms.handler.JcmsFormHandler
              extended by com.jalios.jcms.handler.EditDataHandler
                  extended by com.jalios.jcms.handler.MembersCsvImportHandler
All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class MembersCsvImportHandler
extends EditDataHandler

This handler is used to perform Member CSV import through JCMS modal.

Since:
jcms-8
Version:
$Revision: 44328 $
Author:
Sylvain Devaux

Field Summary
static String ADMIN_USERS_MEMBER_ACL
          The ACL to have to access the feature.
protected  Class<? extends Publication> collaborativeSpaceClazz
          The optional Collaborative Space class.
protected  boolean collaborativeSpaceInitDone
           
static String CREATED_IDS_REQ_ATTR
           
static String CS_GROUP_ID_PARAM
           
protected  String[] csGrpIds
           
static String CSV_COMMA_CHAR_SEP
           
static String CSV_FILE_HTML_PARAM
           
static String CSV_SEMICOLON_CHAR_SEP
           
protected  File csvFile
          The uploaded csvFile.
protected  int documentsAddCount
           
static String EMAIL_SENT_REQ_ATTR
           
protected  long endTime
          For debug purpose.
protected  String filename
          Used to pass the fileDoc filename through different steps.
protected static String fnHtmlParam
          The HTML input name of the temporary uploaded CSV file's filename.
protected  boolean hasToSendEmail
           
static String IMPORT_DONE_REQ_ATTR
           
protected  MemberImportManager importManager
           
protected  boolean isBlockingError
          Is there any blocking error during checking the csv file ?
protected  List<MemberImport> memberInfoList
          The list containing each line.
static String REVISION
          The class revision.
static String SEND_EMAIL_HTML_PARAM
           
protected  String sendEmail
           
protected  String separator
           
static String SEPARATOR_HTML_PARAM
           
protected  long startTime
          For debug purpose.
static int STEP_1_FILE
           
static int STEP_2_PREVIEW
           
static int STEP_3
           
static int STEP_4
           
static String UPDATED_IDS_REQ_ATTR
           
static String WS_GROUP_ID_PARAM
           
protected  String[] wsGrpIds
           
 
Fields inherited from class com.jalios.jcms.handler.EditDataHandler
extFormHandler, formStep, id, isDeleteForced, op, opCancel, opCreate, opDelete, opFinish, opNext, opPrevious, opRefresh, opUpdate, resultOpCreate, resultOpDelete, resultOpUpdate
 
Fields inherited from class com.jalios.jcms.handler.JcmsFormHandler
contextMap, editFieldSet, noRedirect, noSendRedirect, popupEdition, redirect, redirectOnClosePopup, workspaceForced
 
Fields inherited from class com.jalios.jcms.context.JcmsJspContext
AJAX_REQUEST_ATTRIBUTES, BODY_HEADER, CSS_HEADER, cssboMap, cssfoMap, CUSTOM_HEADER, editIcon, HTTPEQUIV_HEADER, httpequivMap, HTTPNAME_HEADER, httpnameMap, initEditIcon, JAVASCRIPT_CODE_SET_ATTRIBUTE, JAVASCRIPT_SET_ATTRIBUTE, jsboSet, jsfoSet, out, pageContext, SHOW_EDIT_ICON, STYLE_HEADER
 
Fields inherited from class com.jalios.jcms.context.JcmsContext
browser, caddy, channel, inFO, initDone, initWorkspace, isAdmin, isAjaxRequest, isDBMember, isDebug, isLogged, loggedMember, request, response, userCountry, userLang, userLocale, workspace
 
Fields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, ICON_ARCHIVE, ICON_LOCK, ICON_LOCK_STRONG, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_CREATE_STR, OP_DEEP_COPY, OP_DEEP_COPY_STR, OP_DEEP_DELETE, OP_DEEP_DELETE_STR, OP_DELETE, OP_DELETE_STR, OP_MERGE, OP_MERGE_STR, OP_UPDATE, OP_UPDATE_STR, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SESSION_AUTHORIZED_FILENAMES_SET, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, URL_REGEXP, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
 
Fields inherited from interface com.jalios.util.JaliosConstants
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR
 
Constructor Summary
MembersCsvImportHandler()
          The default constructor.
 
Method Summary
protected  void deleteCsvFile()
          If the file exists, try to delete it.
 Set<Workspace> getCollaborativeSpaceSet()
          Retrieve all the Collaborative workspaces as a Set, with the following conditions : workspace's isCollaborativeSpace() method return true; workspace is open member belongs to worksapce, or collaborative space has public access.
 int getCreateCount()
           
 String[] getCsGrpIds()
           
 Class<? extends Data> getDataClass()
          Overriding EditDataHandler for Steps modal Form purpose, but not really editing a Data.
 int getFormStepCount()
          The number of steps is dynamic, is minimum 2, and maximum 4.
 String getFormStepHiddenFields()
          Stores through different steps the uploaded file path.
protected  String getHiddenField(String htmlName, File csvFile)
          Specific method to put a file relative to JCMS temp dir as hidden modal field.
 int getInvalidCount()
           
 List<MemberImport> getMemberInfoList()
           
 String getSendEmail()
           
 String getSeparator()
           
 int getUpdateCount()
           
protected  File getUploadDir()
           
 Set<Workspace> getWorkspaceSet()
          Retrieve all the workspaces as a Set, with the following conditions : workspace's getCatSet() contains the given root cat the workspace is not a collaborative space; the workspace is not a model the workspace is open the workspace does have at least one group
 String[] getWsGrpIds()
           
 boolean hasToSendEmail()
           
protected  void init()
          Method to implement if you need to initialize your handler from parameter received, prior to all security validation.
 boolean isAnyError()
           
protected  boolean isCollaborativeSpacePluginAvailable()
           
 boolean isCollaborativeSpaceStep()
           
 boolean isWorkspaceStep()
           
 boolean processAction()
          Performs the import (real or simulation) if a valid CSV file has been uploaded.
 void setCsGrpIds(String[] csGrpIds)
           
 void setDocuments(String[] v)
          Moves the plupload uploaded file to JCMS temp directory in order the uploaded files to be cleaned periodically by JCMS.
 void setFilename(String filename)
           
 void setSendEmail(String sendEmail)
           
 void setSeparator(String separator)
           
 void setWsGrpIds(String[] wsGrpIds)
           
 boolean showFinishButton()
          Check if the "Finish" button should be displayed in step modal form.
 boolean showNextButton()
          Check if the "Next" button should be displayed in step modal form.
 boolean showPreviousButton()
          Check if the "Previous" button should be displayed in step modal form.
protected  boolean validateFinish()
           
protected  boolean validateNext()
           
protected  boolean validatePrevious()
           
 
Methods inherited from class com.jalios.jcms.handler.EditDataHandler
afterValidation, createUploadedFileDocument, createUploadedFileDocument, createUploadedFileDocument, createUploadedFileDocument, getAvailableData, getAvailableDataArray, getAvailableExtraDataMap, getAvailableExtraDBDataMap, getControllerContext, getExtFormHandler, getFormStep, getId, handleRestResponse, isFirstAccess, performCancel, performCreateExtension, performFinish, performNext, performPrevious, performRefresh, performUpdateExtension, processDataId, processDataIds, processDataIds, processMLData, processMLDataArray, restValidation, sendRedirect, setExtFormHandler, setExtraDBKeys, setExtraDBValues, setExtraKeys, setExtraValues, setFields, setForceDelete, setFormStep, setId, setOpCancel, setOpCreate, setOpDelete, setOpFinish, setOpNext, setOpPrevious, setOpRefresh, setOpUpdate, showCancelButton, validateCancel, validateCreateExtension, validateRefresh, validateUpdateExtension, validateUploadedFileDocument, validateUploadedFileDocument, validateUploadedFileDocument, validateUploadedFileDocument
 
Methods inherited from class com.jalios.jcms.handler.JcmsFormHandler
checkMissingField, getEditFieldSet, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenFieldML, getMainLangValue, getMainLangValueArray, getMLMap, getMLMapArray, getRedirect, getRedirectOnClosePopup, getWorkspace, isFieldEdition, isFieldMissing, isPartialFieldEdition, isPopupEdition, isWorkspaceForced, processStatus, sendRedirect, sendRedirect, setEditField, setNoRedirect, setNoSendRedirect, setPopupEdition, setRedirect, setRedirectOnClosePopup, setWorkspace, setWs, updateUploadedField, updateUploadedFields, validate
 
Methods inherited from class com.jalios.jcms.context.JcmsJspContext
addBodyAttributes, addCSSHeader, addCSSHeader, addCSSHeader, addCSSHeader, addCustomHeader, addHttpEquivHeader, addHttpNameHeader, addJavaScript, addJavaScript, addJavaScript, addJavaScriptCode, addPrefetchHeader, addStyleHeader, addStyleHeader, checkAccess, checkAccess, checkCSRF, debugDisplayContext, disablePacker, forceEditIcon, forceUpdate, getAjaxRequestAttribute, getAjaxRequestId, getAllHeadersDiffMap, getAllHeadersMap, getBackOfficeCSSHeader, getBackOfficeJavaScriptSet, getBodyAttributes, getContentForm, getCSSHeaders, getCtxCategories, getCurrentCategory, getCustomHeaders, getDocType, getFinalCSSMap, getFinalJavaScriptSet, getFormElementCount, getFrontOfficeCSSHeader, getFrontOfficeJavaScriptSet, getHttpEquivHeaders, getHttpNameHeaders, getJavaScriptCodeSet, getJavaScriptSet, getJSONBridge, getPackVersion, getPageContext, getPageTitle, getPageZone, getPortal, getPortalCategory, getPortlet, getPublication, getStyleHeaders, getTemplateUsage, internalSetupEmptyHeader, isEditIcon, isEditIcon, isPrintView, registerDisplayContext, removeAjaxRequestAttribute, setAjaxRequestAttribute, setAjaxRequestId, setAllHeadersDiffMap, setDocType, setEditIcon, setFormElementCount, setPageContext, setPageTitle, setPageZone, setShowEditIcon, setTemplateUsage, showEditIcon, workaroundBrowserBaseHrefBug
 
Methods inherited from class com.jalios.jcms.context.JcmsContext
addCookie, addMsg, addMsg, addMsgSession, addMsgSession, applySelector, forceWorkspaceUpdate, getBaseUrl, getBrowser, getCaddy, getContextPath, getErrorMsg, getErrorMsgList, getErrorMsgSession, getErrorMsgSessionList, getInfoMsg, getInfoMsgList, getInfoMsgSession, getInfoMsgSessionList, getLoggedMember, getMsgList, getMsgSessionList, getRequest, getResponse, getSession, getUploadedFile, getUploadedFileList, getUrlWithCommonUpdatedParams, getUserCountry, getUserLang, getUserLocale, getWarningMsg, getWarningMsgList, getWarningMsgSession, getWarningMsgSessionList, glp, isAdmin, isAjaxRequest, isDBMember, isDebug, isInFrontOffice, isLogged, isWebdavAccess, removeMessage, removeMessage, retrieveUploadedFile, select, sendForbidden, sendForbidden, sendRedirect, sendRedirect, sendRedirect, setErrorMsg, setErrorMsg, setErrorMsgSession, setErrorMsgSession, setInfoMsg, setInfoMsg, setInfoMsgSession, setInfoMsgSession, setLoggedMember, setRequest, setResponse, setWarningMsg, setWarningMsg, setWarningMsgSession, setWarningMsgSession, validateRegexp, validateSchedule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
The class revision.

Since:
jcms-8
See Also:
Constant Field Values

ADMIN_USERS_MEMBER_ACL

public static final String ADMIN_USERS_MEMBER_ACL
The ACL to have to access the feature.

Since:
jcms-8
See Also:
Constant Field Values

separator

protected String separator

sendEmail

protected String sendEmail

hasToSendEmail

protected boolean hasToSendEmail

wsGrpIds

protected String[] wsGrpIds

csGrpIds

protected String[] csGrpIds

csvFile

protected File csvFile
The uploaded csvFile. May only be set after step 1.
It is retrieved only when filename is posted (as hidden field).


CSV_SEMICOLON_CHAR_SEP

public static final String CSV_SEMICOLON_CHAR_SEP
See Also:
Constant Field Values

CSV_COMMA_CHAR_SEP

public static final String CSV_COMMA_CHAR_SEP
See Also:
Constant Field Values

CSV_FILE_HTML_PARAM

public static final String CSV_FILE_HTML_PARAM
See Also:
Constant Field Values

SEPARATOR_HTML_PARAM

public static final String SEPARATOR_HTML_PARAM
See Also:
Constant Field Values

SEND_EMAIL_HTML_PARAM

public static final String SEND_EMAIL_HTML_PARAM
See Also:
Constant Field Values

WS_GROUP_ID_PARAM

public static final String WS_GROUP_ID_PARAM
See Also:
Constant Field Values

CS_GROUP_ID_PARAM

public static final String CS_GROUP_ID_PARAM
See Also:
Constant Field Values

IMPORT_DONE_REQ_ATTR

public static final String IMPORT_DONE_REQ_ATTR
See Also:
Constant Field Values

CREATED_IDS_REQ_ATTR

public static final String CREATED_IDS_REQ_ATTR
See Also:
Constant Field Values

UPDATED_IDS_REQ_ATTR

public static final String UPDATED_IDS_REQ_ATTR
See Also:
Constant Field Values

EMAIL_SENT_REQ_ATTR

public static final String EMAIL_SENT_REQ_ATTR
See Also:
Constant Field Values

STEP_1_FILE

public static final int STEP_1_FILE
See Also:
Constant Field Values

STEP_2_PREVIEW

public static final int STEP_2_PREVIEW
See Also:
Constant Field Values

STEP_3

public static final int STEP_3
See Also:
Constant Field Values

STEP_4

public static final int STEP_4
See Also:
Constant Field Values

startTime

protected long startTime
For debug purpose.


endTime

protected long endTime
For debug purpose.


isBlockingError

protected boolean isBlockingError
Is there any blocking error during checking the csv file ? Not implemented yet. (No case of blocking error).


filename

protected String filename
Used to pass the fileDoc filename through different steps.


fnHtmlParam

protected static final String fnHtmlParam
The HTML input name of the temporary uploaded CSV file's filename.

See Also:
Constant Field Values

memberInfoList

protected List<MemberImport> memberInfoList
The list containing each line.


importManager

protected MemberImportManager importManager

collaborativeSpaceClazz

protected Class<? extends Publication> collaborativeSpaceClazz
The optional Collaborative Space class.

Since:
jcms-8

collaborativeSpaceInitDone

protected boolean collaborativeSpaceInitDone

documentsAddCount

protected int documentsAddCount
Constructor Detail

MembersCsvImportHandler

public MembersCsvImportHandler()
The default constructor.
Checks first the actual member limit to avoid member import if limit is already reached.

Since:
jcms-8
Method Detail

processAction

public boolean processAction()
                      throws IOException
Performs the import (real or simulation) if a valid CSV file has been uploaded.

Overrides:
processAction in class EditDataHandler
Returns:
true if import has been performed.
Throws:
IOException
Since:
jcms-8

init

protected void init()
Description copied from class: JcmsFormHandler
Method to implement if you need to initialize your handler from parameter received, prior to all security validation.

You must absolutely not perform any action which modify data or site configuration.

Therefore it is strongly recommend NOT TO implement this method, or use very wisely.

Overrides:
init in class JcmsFormHandler
Since:
jcms-8
See Also:
JcmsFormHandler.init()

isCollaborativeSpacePluginAvailable

protected boolean isCollaborativeSpacePluginAvailable()
Returns:
true if the generated.CollaborativeSpace.class has been found.
Since:
jcms-8

validatePrevious

protected boolean validatePrevious()
                            throws IOException
Overrides:
validatePrevious in class EditDataHandler
Throws:
IOException
Since:
jcms-8

validateNext

protected boolean validateNext()
                        throws IOException
Overrides:
validateNext in class EditDataHandler
Throws:
IOException
Since:
jcms-8

validateFinish

protected boolean validateFinish()
                          throws IOException
Overrides:
validateFinish in class EditDataHandler
Throws:
IOException
Since:
jcms-8

deleteCsvFile

protected void deleteCsvFile()
If the file exists, try to delete it.
This method has to be called each time the csvFile is no more used (eg. return from step 2 to step 1; Error on step 1; last step success; etc...)
If this method cannot be called (cancel by user, browser closed, ...) then the MultipartFilter will do his job by cleaning the UPLOAD dir at next JCMS restart. (See MultipartFilter.initFileUpload()).

Since:
jcms-8

showPreviousButton

public boolean showPreviousButton()
Description copied from class: EditDataHandler
Check if the "Previous" button should be displayed in step modal form.

The default implementation of this method is to return true if the current step (as returned by EditDataHandler.getFormStep() is higher than 0.
You can provide a custom FormHandler to override this behavior.

See jcore/doStepButtons.jspf for use of this method.

Overrides:
showPreviousButton in class EditDataHandler
Returns:
true to display the "Previous" button, false to hide it
Since:
jcms-8

showNextButton

public boolean showNextButton()
Description copied from class: EditDataHandler
Check if the "Next" button should be displayed in step modal form.

The default implementation of this method is to return true unless the finish button is being displayed by method EditDataHandler.showFinishButton().
You can provide a custom FormHandler to override this behavior.

See jcore/doStepButtons.jspf for use of this method.

Overrides:
showNextButton in class EditDataHandler
Returns:
true to display the "Next" button, false to hide it
Since:
jcms-8

showFinishButton

public boolean showFinishButton()
Description copied from class: EditDataHandler
Check if the "Finish" button should be displayed in step modal form.

The default implementation of this method is to return true if the current step (as returned by EditDataHandler.getFormStep() is the last one (as compared with EditDataHandler.getFormStepCount().
You can provide a custom FormHandler to override this behavior.

See jcore/doStepButtons.jspf for use of this method.

Overrides:
showFinishButton in class EditDataHandler
Returns:
true to display the "Finish" button, false to hide it
Since:
jcms-8

getFormStepHiddenFields

public String getFormStepHiddenFields()
Stores through different steps the uploaded file path.

Returns:
the uploaded file path.
Since:
jcms-8

getFormStepCount

public int getFormStepCount()
The number of steps is dynamic, is minimum 2, and maximum 4.
  • 1. file
  • 2. verifications and finish
  • 3. (optional) workspaces's groups
  • 4. (optional) collaborative workspaces's groups

Overrides:
getFormStepCount in class EditDataHandler
Returns:
the total number of steps in this formhandler
Since:
jcms-8
See Also:
EditDataHandler.getFormStepCount()

isWorkspaceStep

public boolean isWorkspaceStep()
Returns:
true if a valid Workspaces root category has been defined, and the logged member can see at least one workspace under this cat. See getWorkspaceSet().
Since:
jcms-8

isCollaborativeSpaceStep

public boolean isCollaborativeSpaceStep()
Returns:
true if the current loggedMember can see any Collaborative Space.
Since:
jcms-8

getWorkspaceSet

public Set<Workspace> getWorkspaceSet()
Retrieve all the workspaces as a Set, with the following conditions :
  • workspace's getCatSet() contains the given root cat
  • the workspace is not a collaborative space;
  • the workspace is not a model
  • the workspace is open
  • the workspace does have at least one group

Returns:
the ws set.
Since:
jcms-8

getCollaborativeSpaceSet

public Set<Workspace> getCollaborativeSpaceSet()
Retrieve all the Collaborative workspaces as a Set, with the following conditions :
  • workspace's isCollaborativeSpace() method return true;
  • workspace is open
  • member belongs to worksapce, or collaborative space has public access.

Returns:
the ws set.
Since:
jcms-8

setDocuments

public void setDocuments(String[] v)
Moves the plupload uploaded file to JCMS temp directory in order the uploaded files to be cleaned periodically by JCMS.
See JAVAX_SERVLET_CONTEXT_TEMPDIR ServletContext attribute.

Parameters:
v - the documents argument from plupload.
Since:
jcms-8

getUploadDir

protected File getUploadDir()
Returns:
the JCMS temporary directory.
Since:
jcms-8

getSeparator

public String getSeparator()
Returns:
the separator
Since:
jcms-8

hasToSendEmail

public boolean hasToSendEmail()
Returns:
the sendEmail
Since:
jcms-8

setFilename

public void setFilename(String filename)
Parameters:
filename - the filename to set
Since:
jcms-8

setSeparator

public void setSeparator(String separator)
Parameters:
separator - the separator to set
Since:
jcms-8

setSendEmail

public void setSendEmail(String sendEmail)
Parameters:
sendEmail - the sendEmail to set
Since:
jcms-8

getSendEmail

public String getSendEmail()
Returns:
the sendEmail
Since:
jcms-8

getCreateCount

public int getCreateCount()
Returns:
the createCount
Since:
jcms-8

getUpdateCount

public int getUpdateCount()
Returns:
the updateCount
Since:
jcms-8

getInvalidCount

public int getInvalidCount()
Returns:
the invalidCount
Since:
jcms-8

getMemberInfoList

public List<MemberImport> getMemberInfoList()
Returns:
the memberInfoList
Since:
jcms-8

isAnyError

public boolean isAnyError()
Returns:
true if the current import manager contains error.
Since:
jcms-8

getWsGrpIds

public String[] getWsGrpIds()
Returns:
the wsGrpIds
Since:
jcms-8

setWsGrpIds

public void setWsGrpIds(String[] wsGrpIds)
Parameters:
wsGrpIds - the wsGrpIds to set
Since:
jcms-8

getCsGrpIds

public String[] getCsGrpIds()
Returns:
the csGrpIds
Since:
jcms-8

setCsGrpIds

public void setCsGrpIds(String[] csGrpIds)
Parameters:
csGrpIds - the csGrpIds to set
Since:
jcms-8

getDataClass

public Class<? extends Data> getDataClass()
Overriding EditDataHandler for Steps modal Form purpose, but not really editing a Data.

Specified by:
getDataClass in class EditDataHandler
Since:
jcms-8
See Also:
EditDataHandler.getDataClass()

getHiddenField

protected String getHiddenField(String htmlName,
                                File csvFile)
Specific method to put a file relative to JCMS temp dir as hidden modal field.
Does not encode value, since super.getHiddenField() does it.

Parameters:
htmlName - : the HTTP param name.
csvFile - : the File.
Returns:
the hidden input as HTML.
Since:
jcms-8


Copyright © 2001-2010 Jalios SA. All Rights Reserved.