Package com.jalios.jcms.handler
Class EditMemberHandler
- java.lang.Object
-
- com.jalios.jcms.context.JcmsContext
-
- com.jalios.jcms.context.JcmsJspContext
-
- com.jalios.jcms.handler.JcmsFormHandler
-
- com.jalios.jcms.handler.EditDataHandler
-
- com.jalios.jcms.handler.EditMemberHandler
-
- All Implemented Interfaces:
JcmsConstants,JaliosConstants
- Direct Known Subclasses:
EditMemberPhotoHandler
public class EditMemberHandler extends EditDataHandler
This form handler processesMemberforms.- Version:
- $Revision: 136013 $
- Author:
- Olivier Dedieu
- See Also:
Member
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEditMemberHandler.AuthTypeAuthentication type authorized.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringaddressprotected booleanadminprotected booleananonymousOpOnlyprotected Memberassistantprotected EditMemberHandler.AuthTypeauthTypeprotected java.lang.Stringcountryprotected MemberdeclaredManagerprotected java.util.TreeSet<Member>delegateMemberSetprotected java.util.HashSetdeleteSetprotected java.lang.Stringdepartmentprotected inteditCatModeprotected java.lang.Stringemailprotected java.lang.StringfirstNameprotected java.lang.String[]groupRightprotected java.util.HashSetgroupRightSetprotected Group[]groupsprotected java.lang.Stringinfoprotected booleanisCharterAcceptedprotected booleanisCharterRefusedprotected booleanisEmailVisibleprotected booleanisGroupEditCatprotected java.lang.StringjobTitleprotected java.lang.Stringlanguageprotected booleanldapSyncprotected java.lang.Stringlocalityprotected java.lang.Stringloginprotected Membermemberprotected java.lang.Stringmobileprotected java.lang.Stringnamestatic java.lang.StringNEWALERTRULE_MARKprotected booleannewPhotoprotected Notificationnotificationprotected EditNotificationHandlernotificationFormHandlerstatic java.lang.StringOP_SIGNUP_PARAMprotected booleanopAddItemprotected booleanopConfirmSignupprotected booleanopConvertToMemberprotected booleanopDetachFromLDAPprotected booleanopDisableprotected booleanopSignupprotected booleanopUpdateProfileprotected java.lang.Stringorganizationprotected java.lang.Stringpassword0protected java.lang.Stringpassword1protected java.lang.Stringpassword2protected booleanpasswordHasChangedprotected java.lang.Stringphoneprotected java.lang.Stringphotoprotected java.lang.StringpoBoxprotected java.lang.StringpostalCodeprotected booleanprofileEditorprotected java.util.HashSetpublishSetprotected java.util.TreeSetreadCategorySetprotected java.lang.Stringregionprotected booleanremovePhotostatic java.lang.StringREVISIONprotected booleanrightsProvidedprotected java.util.HashSetrootSetprotected java.lang.Stringsalutationprotected booleanshowCharterprotected java.lang.StringsignupKeyprotected MembersignUpOpAuthorprotected booleanskipPasswordVerificationprotected java.lang.Stringstreetprotected java.util.HashSetupdateSetprotected intusageprotected java.util.TreeSetuseCategorySetprotected intuseCatModeprotected booleanwebdavAccessprotected MemberworkingMemberprotected java.time.ZoneIdzoneId-
Fields inherited from class com.jalios.jcms.handler.EditDataHandler
extFormHandler, id, isDeleteForced, opCancel, opCreate, opDelete, opRefresh, opUpdate, resultOpCreate, resultOpDelete, resultOpUpdate
-
Fields inherited from class com.jalios.jcms.handler.JcmsFormHandler
contextMap, csrfValidationEnabled, editFieldSet, formStep, noRedirect, noSendRedirect, op, opFinish, opNext, opPrevious, popupEdition, redirect, redirectOnClosePopup, workspaceForced
-
Fields inherited from class com.jalios.jcms.context.JcmsJspContext
AJAX_REQUEST_ATTRIBUTES, BODY_HEADER, CSS_FOOTER, 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, isDebugTemplatePath, isLogged, loggedMember, request, response, userCountry, userLang, userLocale, userZoneId, workspace
-
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
-
Fields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, AJAX_MODE_ATTR, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, CLASS_PROPERTY, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, COUNTRY_SPRITE, CS_TYPOLOGY_ROOT_CAT_VID, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DEFAULT_PHOTO_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, GLYPH_ICON_PREFIX, ICON_ARCHIVE, ICON_ICON_PREFIX, ICON_LOCK, ICON_LOCK_STRONG, ICON_PREFIX_PROP, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, IS_IN_FRONT_OFFICE, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JCMS_TOASTR_COLLECTION, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LANG_SPRITE, 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, ORGANIZATION_ROOT_GROUP_PROP, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_PROP_PREFIX, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_PROP_PREFIX, PHOTO_LARGE_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_PROP_PREFIX, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_PROP_PREFIX, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_PROP_PREFIX, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, RAW_CONTENT_ICON_PREFIX, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SECURITY_LOG_FILE, SESSION_AUTHORIZED_FILENAMES_SET, SPRITE_ICON_PREFIX, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, SUCCESS_MSG, SVG_ICON_PREFIX, SVGINLINE_ICON_PREFIX, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TTCARD_MEDIA_HEIGHT, TTCARD_MEDIA_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, UPLOAD_PERMISSION_COUNT_PROP_PREFIX, UPLOAD_PERMISSION_SIZE_PROP_PREFIX, URL_REGEXP, VID_LOGGED_MEMBER, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
-
-
Constructor Summary
Constructors Constructor Description EditMemberHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanalertSignup(boolean signupValidationRequired)protected java.util.Set<AlertRule>buildAlertRuleSet()booleancanDelete(java.lang.Class clazz)booleancanPublish(java.lang.Class clazz)booleancanUpdate(java.lang.Class clazz)java.lang.StringgetAvailableAddress()Get the value of address.booleangetAvailableAdmin()Get the value of admin.java.util.Set<AlertRule>getAvailableAlertRuleSet()MembergetAvailableAssistant()java.lang.StringgetAvailableAuthType()Retrieve the available type of authentication being used for member or request in previous form submit.java.lang.StringgetAvailableCountry()MembergetAvailableDeclaredManager()java.util.TreeSet<Member>getAvailableDelegateMemberSet()java.lang.StringgetAvailableDepartment()Get the value of department.intgetAvailableEditCatMode()java.lang.StringgetAvailableEmail()Get the value of email.booleangetAvailableEmailVisible()Get the value of emailVisible.java.lang.StringgetAvailableFirstName()Get the value of firstName.Group[]getAvailableGroups()Get the value of groups.java.lang.StringgetAvailableInfo()Get the value of info.java.lang.StringgetAvailableJobTitle()Get the value of jobTitle.java.lang.StringgetAvailableLanguage()booleangetAvailableLdapSync()Return true if the member being edited should be synchronized with LDAP, false otherwise.java.lang.StringgetAvailableLocality()Retrieve the address locality of this Member.java.lang.StringgetAvailableLogin()Get the value of login.java.lang.StringgetAvailableMobile()Get the value of mobile.java.lang.StringgetAvailableName()Get the value of name.java.lang.StringgetAvailableOrganization()Get the value of organization.java.lang.StringgetAvailablePhone()Get the value of phone.java.lang.StringgetAvailablePoBox()Retrieve the address postal office box of this Member.java.lang.StringgetAvailablePostalCode()Retrieve the address postal code of this Member.java.util.TreeSetgetAvailableReadCategorySet()java.lang.StringgetAvailableRegion()Retrieve the address region of this Member.java.lang.StringgetAvailableSalutation()Get the value of salutation.java.lang.StringgetAvailableStreet()Retrieve the street address of this Member.intgetAvailableUsage()Get the value of usage.java.util.TreeSetgetAvailableUseCategorySet()intgetAvailableUseCatMode()booleangetAvailableWebdavAccess()Get the value of webdavAccess.java.time.ZoneIdgetAvailableZoneId()java.util.SetgetCategorySet(java.lang.String inputName)Returns the root set bound to the given inputNamejava.lang.Class<? extends Data>getDataClass()java.lang.String[]getGroupRight()Get the value of groupRight.Group[]getGroups()MembergetMember()MemberAlertSettingsHandlergetMemberAlertSettingsHandler()java.lang.StringgetPassword0()Get the value of old password.java.lang.StringgetPassword1()Get the value of password1.java.lang.StringgetPassword2()Get the value of password2.booleangetProfileEditor()Get the value of profileEditor.booleangetShowCharter()booleanisCategoryGroupRight()booleanisDefaultAlertRuleSet()booleanisExpanded(Category cat, java.lang.String inputName)booleanisGroupRight(java.lang.Class clazz)static booleanpasswordValidatesComplexityRegex(java.lang.String login, java.lang.String password)Check the specified password match the password complexity pattern specified in property.static booleanpasswordValidatesMaximumLength(java.lang.String password)Check the specified password match the maximum length specified in property.static booleanpasswordValidatesMinimumLength(java.lang.String password)Check the specified password match the minimum length specified in property.booleanperformConfirmSignup()booleanperformConvertToMember()protected booleanperformCreate()protected booleanperformDelete()booleanperformDetachFromLDAP()booleanperformDisable()protected booleanperformSignup()protected booleanperformUpdate()booleanprocessAction()Method to be implemented to check/validate action to be performed and process them.protected voidreleaseDBWorkingMember()protected voidsendRedirect()voidsetAddress(java.lang.String v)Set the value of address.voidsetAdmin(boolean v)Set the value of admin.voidsetAlertChannels(java.lang.String[] alertChannelNames)voidsetAlertDomainNames(java.lang.String[] v)voidsetAlertLevels(java.lang.String[] v)voidsetAnonymousOpOnly(boolean anon)Set boolean indicating that only operation allowed for anonymous should be processed.voidsetAssistant(java.lang.String id)voidsetAuthType(java.lang.String authTypeStr)Set the type of authentication authorized for this user.voidsetCanDelete(java.lang.String[] v)Set the value of canDelete.voidsetCanPublish(java.lang.String[] v)Set the value of canPublish.voidsetCanUpdate(java.lang.String[] v)Set the value of canUpdate.voidsetCharterAccepted(java.lang.String v)voidsetCharterRefused(java.lang.String v)voidsetCids(java.lang.String[] v)Set the value of cids.voidsetCountry(java.lang.String country)voidsetDeclaredManager(java.lang.String id)voidsetDelegateMbrIds(java.lang.String[] v)Set the value of delegateMbrIds.voidsetDepartment(java.lang.String v)Set the value of department.voidsetEditCatMode(java.lang.String v)Set the value of editCatMode.voidsetEmail(java.lang.String v)Set the value of email.voidsetEmailVisible(boolean v)Set the value of emailVisible.protected voidsetFields(Member mbr)voidsetFirstName(java.lang.String v)Set the value of firstName.voidsetGids(java.lang.String[] gids)Set the id of the Group to set on the Member being editedvoidsetGroupRight(java.lang.String[] v)Set the value of groupRight.voidsetId(java.lang.String v)Set the value of id.voidsetInfo(java.lang.String v)Set the value of info.voidsetJobTitle(java.lang.String v)Set the value of jobTitle.voidsetLanguage(java.lang.String v)voidsetLdapSync(boolean ldapSync)Define if the member being edited should be synchronized with LDAP (true), false.voidsetLocality(java.lang.String locality)Set the address locality of this Member.voidsetLogin(java.lang.String v)Set the value of login.voidsetMemberAlertSettingsFormHandler(MemberAlertSettingsHandler memberAlertSettingsHandler)voidsetMid(java.lang.String id)Set the id of the member to work on.voidsetMobile(java.lang.String v)Set the value of mobile.voidsetName(java.lang.String v)Set the value of name.voidsetNotificationFormHandler(EditNotificationHandler v)Sets the value of notificationFormHandler.voidsetOpAddItem(java.lang.String v)voidsetOpConfirmSignup(java.lang.String v)voidsetOpConvertToMember(java.lang.String v)voidsetOpDetachFromLDAP(java.lang.String v)voidsetOpDisable(java.lang.String v)voidsetOpSignup(java.lang.String v)voidsetOpUpdateProfile(java.lang.String v)voidsetOrganization(java.lang.String v)Set the value of organization.voidsetPassword0(java.lang.String v)Set the value of old password.voidsetPassword1(java.lang.String v)Set the value of password1.voidsetPassword2(java.lang.String v)Set the value of password2.voidsetPhone(java.lang.String v)Set the value of phone.voidsetPoBox(java.lang.String postOfficeBox)Set the address postal office box of this Member.voidsetPostalCode(java.lang.String postalCode)Set the address postal code of this Member.voidsetProfileEditor(boolean v)Set the value of profileEditor.voidsetReadcids(java.lang.String[] v)Set the value of readcids.voidsetRegion(java.lang.String region)Set the address region of this Member.voidsetRemovePhoto(boolean v)voidsetSalutation(java.lang.String v)Set the value of salutation.voidsetSignupKey(java.lang.String string)voidsetStreet(java.lang.String street)Set the street address of this Member.voidsetUsage(int v)Set the value of usage.voidsetUseCatMode(java.lang.String v)Set the value of useCatMode.voidsetUsecids(java.lang.String[] v)Set the value of usecids.voidsetWebdavAccess(boolean webdavAccess)Set the value of webdavAccess.voidsetZoneId(java.lang.String zoneId)booleanshowAssistant()booleanshowDeclaredManager()booleanshowDelegateMemberSet()Returns true if current member should have access to the "delegate Members" field.booleanvalidateAddItem()protected booleanvalidateCommonCreateSignup()protected booleanvalidateCommonCreateSignup(Member opAuthor)protected booleanvalidateCommonUpdate()booleanvalidateConfirmSignup()booleanvalidateConvertToMember()protected booleanvalidateCreate()protected booleanvalidateDelete()booleanvalidateDetachFromLDAP()booleanvalidateDisable()booleanvalidateMember()Returns true if logged Member can edit the memberstatic booleanvalidatePasswordsRules(JcmsFormHandler handler, java.lang.String login, java.lang.String password)Check the specified password match the password rules as configured in properties.protected booleanvalidateSignup()protected booleanvalidateUpdate()protected booleanvalidateUpdateAlertSettings()protected booleanvalidateUpdateProfile()-
Methods inherited from class com.jalios.jcms.handler.EditDataHandler
afterValidation, createUploadedFileDocument, createUploadedFileDocument, createUploadedFileDocument, createUploadedFileDocument, getAvailableData, getAvailableDataArray, getAvailableExtraDataMap, getAvailableExtraDBDataMap, getAvailableField, getControllerContext, getDeleteRedirect, getEnumLabels, getEnumValues, getExtFormHandler, getId, getModalRedirect, getTabGroupMaxCount, handleRestResponse, isFirstAccess, performCancel, performCreateExtension, performRefresh, performUpdateExtension, processDataId, processDataIds, processDataIds, processMLData, processMLDataArray, restValidation, setExtFormHandler, setExtraDBKeys, setExtraDBValues, setExtraKeys, setExtraValues, setFields, setForceDelete, setOpCancel, setOpCreate, setOpDelete, setOpRefresh, setOpUpdate, validateCancel, validateCreateExtension, validateRefresh, validateUpdateExtension, validateUploadedFileDocument, validateUploadedFileDocument, validateUploadedFileDocument, validateUploadedFileDocument
-
Methods inherited from class com.jalios.jcms.handler.JcmsFormHandler
checkMissingField, getAvailableMainLanguage, getClosePopupUrl, getEditFieldSet, getFormStep, getFormStepCount, getFormStepFinishLabel, getFormStepHiddenFields, getFormStepLabels, getFormStepPrefixProp, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenFieldML, getMainLangValue, getMainLangValueArray, getMLMap, getMLMapArray, getMonolingualValue, getMonolingualValueArray, getMultilingualMainValue, getMultilingualMainValueArray, getMultilingualMLMap, getMultilingualMLMapArray, getRedirect, getRedirectOnClosePopup, getWorkspace, init, isFieldEdition, isFieldMissing, isFormStepClickable, isPartialFieldEdition, isPopupEdition, isWorkspaceForced, mapStringArrayToMapStringList, mapStringListToMapStringArray, mustSendForbiddenOnCSRF, performFinish, performNext, performPrevious, processStatus, sanitize, sanitize, sendRedirect, sendRedirect, setEditField, setFormStep, setNoRedirect, setNoSendRedirect, setOpFinish, setOpNext, setOpPrevious, setPopupEdition, setRedirect, setRedirectOnClosePopup, setWorkspace, setWs, showCancelButton, showFinishButton, showNextButton, showPreviousButton, updateUploadedField, updateUploadedFields, updateUploadedFields, validate, validateCSRF, validateFinish, validateNext, validatePrevious
-
Methods inherited from class com.jalios.jcms.context.JcmsJspContext
addAvoidanceLink, addBodyAttributes, addCSSHeader, addCSSHeader, addCSSHeader, addCSSHeader, addCustomHeader, addHandlebarTemplate, addHttpEquivHeader, addHttpNameHeader, addJavaScript, addJavaScript, addJavaScript, addJavaScriptCode, addPrefetchHeader, addStyleHeader, addStyleHeader, addWebAssets, checkAccess, checkAccess, checkCSRF, debugDisplayContext, disablePacker, forceEditIcon, forceUpdate, getAjaxRequestAttribute, getAjaxRequestId, getAllHeadersDiffMap, getAllHeadersMap, getAvoidanceLinks, getBackOfficeCSSHeader, getBackOfficeJavaScriptSet, getBodyAttributes, getContentForm, getCSSHeaders, getCtxCategories, getCurrentCategory, getCustomHeaders, getDocType, getFinalCSSFooterMap, getFinalCSSMap, getFinalJavaScriptSet, getFrontOfficeCSSHeader, getFrontOfficeJavaScriptSet, getHandlebarTemplates, getHttpEquivHeaders, getHttpNameHeaders, getJavaScriptCodeSet, getJavaScriptSet, getJSONBridge, getPageContext, getPageTitle, getPageZone, getPortal, getPortalCategory, getPortlet, getPublication, getStyleHeaders, getTemplateUsage, internalSetupEmptyHeader, isEditIcon, isEditIcon, isEditIconForPublish, isEditIconForPublish, isPrintView, registerDisplayContext, removeAjaxRequestAttribute, setAjaxRequestAttribute, setAjaxRequestId, setAllHeadersDiffMap, setDocType, setEditIcon, setPageContext, setPageTitle, setPageZone, setShowEditIcon, setTemplateUsage, showEditIcon, showEditIcon, showEditIcon, workaroundBrowserBaseHrefBug
-
Methods inherited from class com.jalios.jcms.context.JcmsContext
addCookie, addMsg, addMsg, addMsgSession, addMsgSession, addToastr, addToastr, addToastrSession, addToastrSession, applySelector, forceWorkspaceUpdate, getBaseUrl, getBrowser, getCaddy, getContextPath, getErrorMsg, getErrorMsgList, getErrorMsgSession, getErrorMsgSessionList, getInfoMsg, getInfoMsgList, getInfoMsgSession, getInfoMsgSessionList, getLoggedMember, getMsgList, getMsgSessionList, getRequest, getResponse, getSession, getSuccessMsg, getSuccessMsgList, getSuccessMsgSession, getSuccessMsgSessionList, getToastrCollection, getToastrSessionCollection, getUploadedFile, getUploadedFileList, getUploadedFiles, getUploadedFiles, getUrlWithCommonUpdatedParams, getUserCountry, getUserLang, getUserLocale, getUserZoneId, getWarningMsg, getWarningMsgList, getWarningMsgSession, getWarningMsgSessionList, glp, isAdmin, isAdminZone, isAjaxRequest, isDBMember, isDebug, isDebugTemplate, isInFrontOffice, isLogged, isWebdavAccess, isWorkZone, removeMessage, removeMessage, retrieveUploadedFile, select, sendError, sendError, sendForbidden, sendForbidden, sendRedirect, sendRedirect, sendRedirect, setErrorMsg, setErrorMsg, setErrorMsgSession, setErrorMsgSession, setInfoMsg, setInfoMsg, setInfoMsgSession, setInfoMsgSession, setLoggedMember, setRequest, setResponse, setSuccessMsg, setSuccessMsg, setSuccessMsgSession, setSuccessMsgSession, setWarningMsg, setWarningMsg, setWarningMsgSession, setWarningMsgSession, updateWorkspace, validateRegexp, validateSchedule
-
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
NEWALERTRULE_MARK
public static final java.lang.String NEWALERTRULE_MARK
- See Also:
- Constant Field Values
-
OP_SIGNUP_PARAM
public static final java.lang.String OP_SIGNUP_PARAM
- See Also:
- Constant Field Values
-
opSignup
protected boolean opSignup
-
opUpdateProfile
protected boolean opUpdateProfile
-
opDisable
protected boolean opDisable
-
opAddItem
protected boolean opAddItem
-
opConfirmSignup
protected boolean opConfirmSignup
-
opConvertToMember
protected boolean opConvertToMember
-
opDetachFromLDAP
protected boolean opDetachFromLDAP
-
usage
protected int usage
-
login
protected java.lang.String login
-
authType
protected EditMemberHandler.AuthType authType
-
password0
protected java.lang.String password0
-
password1
protected java.lang.String password1
-
password2
protected java.lang.String password2
-
name
protected java.lang.String name
-
firstName
protected java.lang.String firstName
-
salutation
protected java.lang.String salutation
-
organization
protected java.lang.String organization
-
department
protected java.lang.String department
-
jobTitle
protected java.lang.String jobTitle
-
email
protected java.lang.String email
-
phone
protected java.lang.String phone
-
mobile
protected java.lang.String mobile
-
street
protected java.lang.String street
-
postalCode
protected java.lang.String postalCode
-
poBox
protected java.lang.String poBox
-
region
protected java.lang.String region
-
locality
protected java.lang.String locality
-
address
protected java.lang.String address
-
photo
protected java.lang.String photo
-
info
protected java.lang.String info
-
groupRight
protected java.lang.String[] groupRight
-
signupKey
protected java.lang.String signupKey
-
language
protected java.lang.String language
-
country
protected java.lang.String country
-
zoneId
protected java.time.ZoneId zoneId
-
isCharterAccepted
protected boolean isCharterAccepted
-
isCharterRefused
protected boolean isCharterRefused
-
showCharter
protected boolean showCharter
-
profileEditor
protected boolean profileEditor
-
removePhoto
protected boolean removePhoto
-
newPhoto
protected boolean newPhoto
-
ldapSync
protected boolean ldapSync
-
member
protected Member member
-
workingMember
protected Member workingMember
-
notification
protected Notification notification
-
groups
protected Group[] groups
-
passwordHasChanged
protected boolean passwordHasChanged
-
isEmailVisible
protected boolean isEmailVisible
-
webdavAccess
protected boolean webdavAccess
-
admin
protected boolean admin
-
groupRightSet
protected java.util.HashSet groupRightSet
-
publishSet
protected java.util.HashSet publishSet
-
updateSet
protected java.util.HashSet updateSet
-
deleteSet
protected java.util.HashSet deleteSet
-
rootSet
protected java.util.HashSet rootSet
-
useCatMode
protected int useCatMode
-
editCatMode
protected int editCatMode
-
isGroupEditCat
protected boolean isGroupEditCat
-
useCategorySet
protected java.util.TreeSet useCategorySet
-
notificationFormHandler
protected EditNotificationHandler notificationFormHandler
-
rightsProvided
protected boolean rightsProvided
-
readCategorySet
protected java.util.TreeSet readCategorySet
-
delegateMemberSet
protected java.util.TreeSet<Member> delegateMemberSet
-
declaredManager
protected Member declaredManager
-
assistant
protected Member assistant
-
anonymousOpOnly
protected boolean anonymousOpOnly
-
skipPasswordVerification
protected boolean skipPasswordVerification
-
signUpOpAuthor
protected Member signUpOpAuthor
-
-
Method Detail
-
processAction
public boolean processAction() throws java.io.IOExceptionDescription copied from class:JcmsFormHandlerMethod to be implemented to check/validate action to be performed and process them.Default implementation is to return false. No need to call super method.
This method may NOT be invoked at all if security validation are not met.
You must ensure your handler and JSP can work properly without any code invoked in this method.
- Overrides:
processActionin classEditDataHandler- Returns:
- false if no redirection is needed, true otherwise
- Throws:
java.io.IOException- IO Exception
-
validateMember
public boolean validateMember() throws java.io.IOExceptionReturns true if logged Member can edit the member- Returns:
- true if loggedMember can edit the member
- Throws:
java.io.IOException- if an error has occurred- Since:
- jcms-7.0.5
-
validateAddItem
public boolean validateAddItem()
-
validateCommonCreateSignup
protected boolean validateCommonCreateSignup() throws java.io.IOException- Throws:
java.io.IOException
-
validateCommonCreateSignup
protected boolean validateCommonCreateSignup(Member opAuthor) throws java.io.IOException
- Throws:
java.io.IOException
-
releaseDBWorkingMember
protected void releaseDBWorkingMember()
-
getDataClass
public java.lang.Class<? extends Data> getDataClass()
- Specified by:
getDataClassin classEditDataHandler
-
setFields
protected void setFields(Member mbr)
-
sendRedirect
protected void sendRedirect() throws java.io.IOException- Overrides:
sendRedirectin classEditDataHandler- Throws:
java.io.IOException
-
validateSignup
protected boolean validateSignup() throws java.io.IOException- Throws:
java.io.IOException
-
performSignup
protected boolean performSignup() throws java.io.IOException- Throws:
java.io.IOException
-
alertSignup
protected boolean alertSignup(boolean signupValidationRequired)
-
validateCreate
protected boolean validateCreate() throws java.io.IOException- Throws:
java.io.IOException
-
performCreate
protected boolean performCreate() throws java.io.IOException- Throws:
java.io.IOException
-
validateCommonUpdate
protected boolean validateCommonUpdate() throws java.io.IOException- Throws:
java.io.IOException
-
validatePasswordsRules
public static boolean validatePasswordsRules(JcmsFormHandler handler, java.lang.String login, java.lang.String password)
Check the specified password match the password rules as configured in properties.- Parameters:
handler- the JcmsFormHandler performing the validation, used for I18N and message, may be nulllogin- the Member login, which may be used in complexity pattern.password- the clear text password as entered by the user.- Returns:
- true if password match expected constraintes (or if none were configured), false otherwise.
-
passwordValidatesComplexityRegex
public static boolean passwordValidatesComplexityRegex(java.lang.String login, java.lang.String password)Check the specified password match the password complexity pattern specified in property. Seemember.password-validation-regex.- Parameters:
login- the Member login, which may be used in property using{login}pattern.password- the clear text password as entered by the user, must not be null.- Returns:
- false if password is considered unsafe, true if password match expected complexity (or if none was configured).
- Since:
- JCMS-3296 && JCMS-5478
-
passwordValidatesMinimumLength
public static boolean passwordValidatesMinimumLength(java.lang.String password)
Check the specified password match the minimum length specified in property. Seemember.password-min-length.- Parameters:
password- the clear text password as entered by the user, must not be null.- Returns:
- false if password is considered unsafe, true if password match expected mininum length
- Since:
- JCMS-7356
-
passwordValidatesMaximumLength
public static boolean passwordValidatesMaximumLength(java.lang.String password)
Check the specified password match the maximum length specified in property. Seemember.password-max-length.- Parameters:
password- the clear text password as entered by the user, must not be null.- Returns:
- false if password is does not match maximum length, true if password match expected maximum length
- Since:
- JCMS-7356
-
validateUpdate
protected boolean validateUpdate() throws java.io.IOException- Throws:
java.io.IOException
-
performUpdate
protected boolean performUpdate() throws java.io.IOException- Throws:
java.io.IOException
-
validateUpdateProfile
protected boolean validateUpdateProfile() throws java.io.IOException- Throws:
java.io.IOException
-
validateUpdateAlertSettings
protected boolean validateUpdateAlertSettings() throws java.io.IOException- Throws:
java.io.IOException
-
validateDelete
protected boolean validateDelete() throws java.io.IOException- Throws:
java.io.IOException
-
performDelete
protected boolean performDelete() throws java.io.IOException- Throws:
java.io.IOException
-
validateDisable
public boolean validateDisable() throws java.io.IOException- Throws:
java.io.IOException
-
performDisable
public boolean performDisable() throws java.io.IOException- Throws:
java.io.IOException
-
validateConfirmSignup
public boolean validateConfirmSignup() throws java.io.IOException- Throws:
java.io.IOException
-
performConfirmSignup
public boolean performConfirmSignup() throws java.io.IOException- Throws:
java.io.IOException
-
validateConvertToMember
public boolean validateConvertToMember() throws java.io.IOException- Throws:
java.io.IOException
-
performConvertToMember
public boolean performConvertToMember() throws java.io.IOException- Throws:
java.io.IOException
-
validateDetachFromLDAP
public boolean validateDetachFromLDAP() throws java.io.IOException- Throws:
java.io.IOException
-
performDetachFromLDAP
public boolean performDetachFromLDAP() throws java.io.IOException- Throws:
java.io.IOException
-
getMember
public Member getMember()
-
getGroups
public Group[] getGroups()
-
isGroupRight
public boolean isGroupRight(java.lang.Class clazz)
-
canPublish
public boolean canPublish(java.lang.Class clazz)
-
canUpdate
public boolean canUpdate(java.lang.Class clazz)
-
canDelete
public boolean canDelete(java.lang.Class clazz)
-
isCategoryGroupRight
public boolean isCategoryGroupRight()
-
getAvailableUseCatMode
public int getAvailableUseCatMode()
- Returns:
- int the category use mode
- Since:
- jcms-4.0
-
getAvailableEditCatMode
public int getAvailableEditCatMode()
- Returns:
- int the category edit mode
- Since:
- jcms-4.0
-
getCategorySet
public java.util.Set getCategorySet(java.lang.String inputName)
Returns the root set bound to the given inputName- Parameters:
inputName- the name of category set to get- Returns:
- a Set of Category
- Since:
- jcms-3.0
-
isExpanded
public boolean isExpanded(Category cat, java.lang.String inputName)
- Parameters:
cat- the category to work withinputName- the name of the input- Returns:
- true if the given category must be expanded
- Since:
- jcms-3.0
-
setOpSignup
public void setOpSignup(java.lang.String v)
-
setOpUpdateProfile
public void setOpUpdateProfile(java.lang.String v)
-
setOpDisable
public void setOpDisable(java.lang.String v)
-
setOpConfirmSignup
public void setOpConfirmSignup(java.lang.String v)
-
setOpConvertToMember
public void setOpConvertToMember(java.lang.String v)
-
setOpDetachFromLDAP
public void setOpDetachFromLDAP(java.lang.String v)
-
setId
public void setId(java.lang.String v)
Set the value of id.- Overrides:
setIdin classEditDataHandler- Parameters:
v- a member identifier.
-
setMid
public void setMid(java.lang.String id)
Set the id of the member to work on.- Parameters:
id- a member identifier.
-
getAvailableUsage
public int getAvailableUsage()
Get the value of usage.- Returns:
- Value of usage.
-
setUsage
public void setUsage(int v)
Set the value of usage.- Parameters:
v- Value to assign to usage.
-
getAvailableLogin
public java.lang.String getAvailableLogin()
Get the value of login.- Returns:
- Value of login.
-
setLogin
public void setLogin(java.lang.String v)
Set the value of login.- Parameters:
v- Value to assign to login.
-
setAuthType
public void setAuthType(java.lang.String authTypeStr)
Set the type of authentication authorized for this user.- Parameters:
authTypeStr- the string representation ofEditMemberHandler.AuthType, default toEditMemberHandler.AuthType.ALLif invalid- Since:
- jcms-10.0.6 JCMS-9072
-
getAvailableAuthType
public java.lang.String getAvailableAuthType()
Retrieve the available type of authentication being used for member or request in previous form submit.- Returns:
- a string representation of the
EditMemberHandler.AuthTypeused or requested, default toEditMemberHandler.AuthType.ALLif invalid - Since:
- jcms-10.0.6 JCMS-9072
-
getPassword0
public java.lang.String getPassword0()
Get the value of old password.- Returns:
- Value of old password.
- Since:
- jcms-4.0
-
setPassword0
public void setPassword0(java.lang.String v)
Set the value of old password.- Parameters:
v- Value to assign to password0.- Since:
- jcms-4.0
-
getPassword1
public java.lang.String getPassword1()
Get the value of password1.- Returns:
- Value of password1.
-
setPassword1
public void setPassword1(java.lang.String v)
Set the value of password1.- Parameters:
v- Value to assign to password1.
-
getPassword2
public java.lang.String getPassword2()
Get the value of password2.- Returns:
- Value of password2.
-
setPassword2
public void setPassword2(java.lang.String v)
Set the value of password2.- Parameters:
v- Value to assign to password2.
-
getAvailableName
public java.lang.String getAvailableName()
Get the value of name.- Returns:
- Value of name.
-
setName
public void setName(java.lang.String v)
Set the value of name.- Parameters:
v- Value to assign to name.
-
getAvailableFirstName
public java.lang.String getAvailableFirstName()
Get the value of firstName.- Returns:
- Value of firstName.
-
setFirstName
public void setFirstName(java.lang.String v)
Set the value of firstName.- Parameters:
v- Value to assign to firstName.
-
getAvailableSalutation
public java.lang.String getAvailableSalutation()
Get the value of salutation.- Returns:
- Value of salutation.
-
setSalutation
public void setSalutation(java.lang.String v)
Set the value of salutation.- Parameters:
v- Value to assign to salutation.
-
getAvailableOrganization
public java.lang.String getAvailableOrganization()
Get the value of organization.- Returns:
- Value of organization.
-
getAvailableDepartment
public java.lang.String getAvailableDepartment()
Get the value of department.- Returns:
- Value of department.
-
setOrganization
public void setOrganization(java.lang.String v)
Set the value of organization.- Parameters:
v- Value to assign to organization.
-
setDepartment
public void setDepartment(java.lang.String v)
Set the value of department.- Parameters:
v- Value to assign to department.
-
getAvailableJobTitle
public java.lang.String getAvailableJobTitle()
Get the value of jobTitle.- Returns:
- Value of jobTitle.
-
setJobTitle
public void setJobTitle(java.lang.String v)
Set the value of jobTitle.- Parameters:
v- Value to assign to jobTitle.
-
getAvailablePhone
public java.lang.String getAvailablePhone()
Get the value of phone.- Returns:
- Value of phone.
-
setPhone
public void setPhone(java.lang.String v)
Set the value of phone.- Parameters:
v- Value to assign to phone.
-
getAvailableMobile
public java.lang.String getAvailableMobile()
Get the value of mobile.- Returns:
- Value of mobile.
-
setMobile
public void setMobile(java.lang.String v)
Set the value of mobile.- Parameters:
v- Value to assign to mobile.
-
getAvailableAddress
public java.lang.String getAvailableAddress()
Get the value of address.- Returns:
- Value of address.
-
setAddress
public void setAddress(java.lang.String v)
Set the value of address.- Parameters:
v- Value to assign to address.
-
getAvailableStreet
public java.lang.String getAvailableStreet()
Retrieve the street address of this Member.Example:
"58, rue Pottier"- Returns:
- site information from a postal address (i.e., the street name, place, avenue, and the house number).
- Since:
- jcms-9.0.0
-
setStreet
public void setStreet(java.lang.String street)
Set the street address of this Member.Example:
"58, rue Pottier"- Parameters:
street- the site information from a postal address (i.e., the street name, place, avenue, and the house number).- Since:
- jcms-9.0.0
-
getAvailablePostalCode
public java.lang.String getAvailablePostalCode()
Retrieve the address postal code of this Member.Example:
"78150", to identify Le Chesnay in France.- Returns:
- code used by Postal Service to identify postal service zone.
- Since:
- jcms-9.0.0
-
setPostalCode
public void setPostalCode(java.lang.String postalCode)
Set the address postal code of this Member.Example:
"78150", to identify Le Chesnay in France.- Parameters:
postalCode- code used by Postal Service to identify postal service zone.- Since:
- jcms-9.0.0
-
getAvailablePoBox
public java.lang.String getAvailablePoBox()
Retrieve the address postal office box of this Member.Example:
"BP 90 123".- Returns:
- postal box identifier that a Postal Service uses when a customer arranges to receive mail at a box on the premises of the Postal Service
- Since:
- jcms-9.0.0
-
setPoBox
public void setPoBox(java.lang.String postOfficeBox)
Set the address postal office box of this Member.Example:
"BP 90 123".- Parameters:
postOfficeBox- postal box identifier that a Postal Service uses when a customer arranges to receive mail at a box on the premises of the Postal Service- Since:
- jcms-9.0.0
-
getAvailableRegion
public java.lang.String getAvailableRegion()
Retrieve the address region of this Member.Example:
"Ile de France"- Returns:
- full name of state or province
- Since:
- jcms-9.0.0
-
setRegion
public void setRegion(java.lang.String region)
Set the address region of this Member.Example:
"Ile de France"- Parameters:
region- full name of state or province- Since:
- jcms-9.0.0
-
getAvailableLocality
public java.lang.String getAvailableLocality()
Retrieve the address locality of this Member.Example:
"Le Chesnay"- Returns:
- name of a locality or place, such as a city, county, or other geographic region
- Since:
- jcms-9.0.0
-
setLocality
public void setLocality(java.lang.String locality)
Set the address locality of this Member.Example:
"Le Chesnay"- Parameters:
locality- name of a locality or place, such as a city, county, or other geographic region- Since:
- jcms-9.0.0
-
getAvailableGroups
public Group[] getAvailableGroups()
Get the value of groups.- Returns:
- Value of groups.
-
setGids
public void setGids(java.lang.String[] gids)
Set the id of the Group to set on the Member being edited- Parameters:
gids- an array of Group ids
-
getAvailableEmail
public java.lang.String getAvailableEmail()
Get the value of email.- Returns:
- Value of email.
-
setEmail
public void setEmail(java.lang.String v)
Set the value of email.- Parameters:
v- Value to assign to email.
-
getAvailableEmailVisible
public boolean getAvailableEmailVisible()
Get the value of emailVisible.- Returns:
- Value of emailVisible.
-
setEmailVisible
public void setEmailVisible(boolean v)
Set the value of emailVisible.- Parameters:
v- Value to assign to emailVisible.
-
getAvailableWebdavAccess
public boolean getAvailableWebdavAccess()
Get the value of webdavAccess.- Returns:
- Value of webdavAccess.
-
setWebdavAccess
public void setWebdavAccess(boolean webdavAccess)
Set the value of webdavAccess.- Parameters:
webdavAccess- Value to assign to webdavAccess.
-
getAvailableInfo
public java.lang.String getAvailableInfo()
Get the value of info.- Returns:
- Value of info.
-
setInfo
public void setInfo(java.lang.String v)
Set the value of info.- Parameters:
v- Value to assign to info.
-
getAvailableAdmin
public boolean getAvailableAdmin()
Get the value of admin.- Returns:
- Value of admin.
-
setAdmin
public void setAdmin(boolean v)
Set the value of admin.- Parameters:
v- Value to assign to admin.
-
getGroupRight
public java.lang.String[] getGroupRight()
Get the value of groupRight.- Returns:
- Value of groupRight.
-
setGroupRight
public void setGroupRight(java.lang.String[] v)
Set the value of groupRight.- Parameters:
v- Value to assign to groupRight.
-
setCanPublish
public void setCanPublish(java.lang.String[] v)
Set the value of canPublish.- Parameters:
v- Value to assign to canPublish.
-
setCanUpdate
public void setCanUpdate(java.lang.String[] v)
Set the value of canUpdate.- Parameters:
v- Value to assign to canUpdate.
-
setCanDelete
public void setCanDelete(java.lang.String[] v)
Set the value of canDelete.- Parameters:
v- Value to assign to canDelete.
-
setCids
public void setCids(java.lang.String[] v)
Set the value of cids.- Parameters:
v- Value to assign to cids.
-
setUseCatMode
public void setUseCatMode(java.lang.String v)
Set the value of useCatMode.- Parameters:
v- Value to assign to useCatMode.
-
setEditCatMode
public void setEditCatMode(java.lang.String v)
Set the value of editCatMode.- Parameters:
v- Value to assign to editCatMode.
-
setUsecids
public void setUsecids(java.lang.String[] v)
Set the value of usecids.- Parameters:
v- Value to assign to usecids.
-
getAvailableUseCategorySet
public java.util.TreeSet getAvailableUseCategorySet()
-
setReadcids
public void setReadcids(java.lang.String[] v)
Set the value of readcids.- Parameters:
v- Value to assign to readcids.
-
getAvailableReadCategorySet
public java.util.TreeSet getAvailableReadCategorySet()
-
getAvailableLdapSync
public boolean getAvailableLdapSync()
Return true if the member being edited should be synchronized with LDAP, false otherwise.- Returns:
- true to sync, false to skip
- Since:
- JCMS-2450
-
setLdapSync
public void setLdapSync(boolean ldapSync)
Define if the member being edited should be synchronized with LDAP (true), false.- Parameters:
ldapSync- the new value of LDAP synchronization- Since:
- JCMS-2450
-
showDelegateMemberSet
public boolean showDelegateMemberSet()
Returns true if current member should have access to the "delegate Members" field.To have access, member must:
- not be a DBMember
-
not be excluded from delegation (See
DelegationAuthenticationHandler.isExcludedFromDelegation(Member) - either has access to global Member ACL if editing another Member, OR no required ACL if editing itself
- Since:
- jcms-10.0.3
-
setDelegateMbrIds
public void setDelegateMbrIds(java.lang.String[] v)
Set the value of delegateMbrIds.- Parameters:
v- Value to assign to readcids.
-
getAvailableDelegateMemberSet
public java.util.TreeSet<Member> getAvailableDelegateMemberSet()
-
getAvailableDeclaredManager
public Member getAvailableDeclaredManager()
-
setDeclaredManager
public void setDeclaredManager(java.lang.String id)
-
showDeclaredManager
public boolean showDeclaredManager()
-
getAvailableAssistant
public Member getAvailableAssistant()
-
setAssistant
public void setAssistant(java.lang.String id)
-
showAssistant
public boolean showAssistant()
-
getProfileEditor
public boolean getProfileEditor()
Get the value of profileEditor.- Returns:
- Value of profileEditor.
-
setProfileEditor
public void setProfileEditor(boolean v)
Set the value of profileEditor.- Parameters:
v- Value to assign to profileEditor.
-
setOpAddItem
public void setOpAddItem(java.lang.String v)
-
setNotificationFormHandler
public void setNotificationFormHandler(EditNotificationHandler v)
Sets the value of notificationFormHandler.- Parameters:
v- Value to assign to notificationFormHandler.
-
setLanguage
public void setLanguage(java.lang.String v)
-
getAvailableLanguage
public java.lang.String getAvailableLanguage()
-
setCountry
public void setCountry(java.lang.String country)
-
getAvailableCountry
public java.lang.String getAvailableCountry()
-
setZoneId
public void setZoneId(java.lang.String zoneId)
-
getAvailableZoneId
public java.time.ZoneId getAvailableZoneId()
-
setSignupKey
public void setSignupKey(java.lang.String string)
-
setCharterAccepted
public void setCharterAccepted(java.lang.String v)
-
setCharterRefused
public void setCharterRefused(java.lang.String v)
-
getShowCharter
public boolean getShowCharter()
-
setRemovePhoto
public void setRemovePhoto(boolean v)
-
getAvailableAlertRuleSet
public java.util.Set<AlertRule> getAvailableAlertRuleSet()
-
isDefaultAlertRuleSet
public boolean isDefaultAlertRuleSet()
-
setAlertLevels
public void setAlertLevels(java.lang.String[] v)
-
setAlertDomainNames
public void setAlertDomainNames(java.lang.String[] v)
-
setAlertChannels
public void setAlertChannels(java.lang.String[] alertChannelNames)
-
buildAlertRuleSet
protected java.util.Set<AlertRule> buildAlertRuleSet()
-
setAnonymousOpOnly
public void setAnonymousOpOnly(boolean anon)
Set boolean indicating that only operation allowed for anonymous should be processed.- Parameters:
anon- true to authorize only anonymous operation (skipping any other operation), false to process as usual
-
setMemberAlertSettingsFormHandler
public void setMemberAlertSettingsFormHandler(MemberAlertSettingsHandler memberAlertSettingsHandler)
-
getMemberAlertSettingsHandler
public MemberAlertSettingsHandler getMemberAlertSettingsHandler()
-
-