Class EditMemberHandler
- All Implemented Interfaces:
JcmsConstants,JaliosConstants
- Direct Known Subclasses:
EditMemberContactInformationHandler,EditMemberFrontHandler,EditMemberInformationHandler,EditMemberPhotoHandler
Member forms.- Author:
- Olivier Dedieu
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAuthentication type authorized. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected booleanprotected booleanprotected Memberprotected EditMemberHandler.AuthTypeprotected Integerprotected Stringprotected Memberprotected HashSetprotected Stringprotected intprotected Stringprotected Stringprotected String[]protected HashSetprotected Group[]protected Stringprotected booleanprotected booleanprotected booleanprotected booleanprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Memberprotected Stringprotected Stringstatic final Stringprotected booleanprotected Notificationprotected EditNotificationHandlerstatic final Stringprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected HashSetprotected TreeSetprotected Stringprotected booleanprotected booleanprotected HashSetprotected Stringprotected booleanprotected Stringprotected Memberprotected booleanprotected Stringprotected HashSetprotected intprotected TreeSetprotected intprotected Memberprotected ZoneIdFields inherited from class com.jalios.jcms.handler.EditDataHandler
id, isDeleteForced, opCancel, opCreate, opDelete, opRefresh, opUpdate, resultOpCreate, resultOpDelete, resultOpUpdateFields inherited from class com.jalios.jcms.handler.JcmsFormHandler
contextMap, csrfValidationEnabled, editFieldSet, formStep, noRedirect, noSendRedirect, op, openTabId, opFinish, opNext, opPrevious, popupEdition, redirect, redirectOnClosePopup, workspaceForcedFields 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_MODULE_SET_ATTRIBUTE, JAVASCRIPT_SET_ATTRIBUTE, jsboSet, jsfoSet, out, pageContext, SHOW_EDIT_ICON, STYLE_HEADERFields 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, workspaceFields 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_YEARFields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, 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, DATA_DIRECTORY, DEFAULT_PHOTO_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, GENERATIONAL_STORE_DIRECTORY, 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_MINI, PHOTO_MINI_HEIGHT, PHOTO_MINI_PROP_PREFIX, PHOTO_MINI_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, PHOTO_XLARGE, PHOTO_XLARGE_HEIGHT, PHOTO_XLARGE_PROP_PREFIX, PHOTO_XLARGE_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, SVGSPRITE_ICON_PREFIX, TEMPLATE_TAB, THEME_DIR, 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, TYPES_UNKNOWN_CLASS_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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanalertSignup(boolean signupValidationRequired) static booleancanAccessAdvancedMemberEdition(Member loggedMember, Member mbrToEdit) Checks whether advanced back-office edition should be proposed to the specified member.booleanbooleancanPublish(Class clazz) booleanbooleanprotected booleanThis internal method can be used to check if current member has required static rights to edit the member.
It does not dynamic checkCreate or checkUpdate, checkDelete.
It does not sendForbidden in case of missing rights, so it can be used to test if an edit button should or not be proposed in the UI.Get the value of address.booleanGet the value of admin.Retrieve the available type of authentication being used for member or request in previous form submit.intReturn member color preference as a CSS var of a jpalette color, or nullGet the value of department.intGet the value of email.booleanGet the value of emailVisible.Get the value of firstName.Group[]Get the value of groups.Get the value of info.Get the value of jobTitle.booleanReturn true if the member being edited should be synchronized with LDAP, false otherwise.Retrieve the address locality of this Member.Get the value of login.Get the value of mobile.Get the value of name.Get the value of organization.Get the value of phone.Retrieve the address postal office box of this Member.Retrieve the address postal code of this Member.Retrieve the address region of this Member.Get the value of salutation.String[]Retrieve the street address of this Member.intGet the value of usage.intgetCategorySet(String inputName) Returns the root set bound to the given inputNameprotected Optional<FieldStatus> getFieldStatus(String fieldName) String[]Get the value of groupRight.Group[]Get the value of old password.Get the value of password1.Get the value of password2.booleanGet the value of profileEditor.booleanprotected booleanbooleanbooleanbooleanbooleanisExpanded(Category cat, String inputName) booleanisGroupRight(Class clazz) protected booleanisGuest()booleanprotected booleanstatic booleanpasswordValidatesComplexityRegex(String login, String password) Check the specified password match the password complexity pattern specified in property.static booleanpasswordValidatesMaximumLength(String password) Check the specified password match the maximum length specified in property.static booleanpasswordValidatesMinimumLength(String password) Check the specified password match the minimum length specified in property.booleanbooleanprotected booleanprotected booleanbooleanbooleanprotected booleanprotected booleanbooleanMethod to be implemented to check/validate action to be performed and process them.protected voidprotected voidvoidsetAddress(String v) Set the value of address.voidsetAdmin(boolean v) Set the value of admin.voidsetAlertChannels(String[] alertChannelNames) voidvoidsetAlertLevels(String[] v) voidsetAnonymousOpOnly(boolean anon) Set boolean indicating that only operation allowed for anonymous should be processed.voidvoidsetAssistant(String id) voidsetAuthType(String authTypeStr) Set the type of authentication authorized for this user.voidsetCanDelete(String[] v) Set the value of canDelete.voidsetCanPublish(String[] v) Set the value of canPublish.voidsetCanUpdate(String[] v) Set the value of canUpdate.voidvoidvoidSet the value of cids.voidsetClearanceLevel(int level) voidvoidsetCountry(String country) voidvoidsetDelegateMbrIds(String[] v) Set the value of delegateMbrIds.voidSet the value of department.voidSet the value of editCatMode.voidSet the value of email.voidsetEmailVisible(boolean v) Set the value of emailVisible.voidsetEncodedAlertRules(String json) protected voidvoidSet the value of firstName.voidSet the id of the Group to set on the Member being editedvoidsetGroupRight(String[] v) Set the value of groupRight.voidSet the value of id.voidSet the value of info.voidSet the value of jobTitle.voidvoidsetLdapSync(boolean ldapSync) Define if the member being edited should be synchronized with LDAP (true), false.voidsetLocality(String locality) Set the address locality of this Member.voidSet the value of login.voidsetMemberAlertSettingsFormHandler(MemberAlertSettingsHandler memberAlertSettingsHandler) protected voidvoidSet the id of the member to work on.voidSet the value of mobile.voidSet the value of name.voidSets the value of notificationFormHandler.voidvoidvoidvoidvoidvoidvoidvoidSet the value of organization.voidSet the value of old password.voidSet the value of password1.voidSet the value of password2.voidSet the value of phone.voidvoidSet the address postal office box of this Member.voidsetPostalCode(String postalCode) Set the address postal code of this Member.voidsetProfileEditor(boolean v) Set the value of profileEditor.voidsetReadcids(String[] v) Set the value of readcids.voidSet the address region of this Member.voidsetRemovePhoto(boolean v) voidSet the value of salutation.voidsetSignupKey(String string) voidSet the street address of this Member.voidsetUsage(int v) Set the value of usage.voidSet the value of useCatMode.voidsetUsecids(String[] v) Set the value of usecids.voidbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanCheck if the current password field should be displayed.booleanbooleanReturns true if current member should have access to the "delegate Members" field.booleanbooleanbooleanbooleanbooleanCheck if login should be displayed in member form.booleanbooleanCheck if password fields should be included in form.booleanbooleanbooleanbooleanbooleanprotected voidupdateControlSettings(BasicSettings settings, String fieldName) booleanprotected booleanprotected booleanvalidateCommonCreateSignup(Member opAuthor) protected booleanbooleanbooleanprotected booleanprotected booleanbooleanbooleanbooleanReturns true if logged Member can edit the member, else, returns false and sendForbidden.static booleanvalidatePasswordsRules(JcmsFormHandler handler, String login, String password) Check the specified password match the password rules as configured in properties.protected booleanprotected booleanprotected booleanprotected booleanMethods inherited from class com.jalios.jcms.handler.EditDataHandler
afterValidation, createUploadedFileDocument, createUploadedFileDocument, createUploadedFileDocument, createUploadedFileDocument, getAvailableData, getAvailableDataArray, getAvailableExtraDataMap, getAvailableExtraDBDataMap, getAvailableField, getControllerContext, getDeleteRedirect, getEnumLabels, getEnumValues, getId, getModalRedirect, getTabGroupMaxCount, handleRestResponse, isExtraDataHidden, isFirstAccess, performCancel, performRefresh, processDataId, processDataIds, processDataIds, processMLData, processMLDataArray, restValidation, setExtraDBKeys, setExtraDBValues, setExtraKeys, setExtraValues, setFields, setForceDelete, setOpCancel, setOpCreate, setOpDelete, setOpRefresh, setOpUpdate, validateCancel, validateRefresh, validateUploadedFileDocument, validateUploadedFileDocument, validateUploadedFileDocument, validateUploadedFileDocumentMethods inherited from class com.jalios.jcms.handler.JcmsFormHandler
canStartProcess, checkMissingField, getAvailableMainLanguage, getBackgroundProcess, getClosePopupUrl, getEditFieldSet, getFormStep, getFormStepCount, getFormStepFinishLabel, getFormStepHiddenFields, getFormStepLabels, getFormStepPrefixProp, getHiddenField, 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, getOpenTabId, 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, setOpenTabId, setOpFinish, setOpNext, setOpPrevious, setPopupEdition, setRedirect, setRedirectOnClosePopup, setWorkspace, setWs, showCancelButton, showFinishButton, showNextButton, showPreviousButton, startProcess, updateUploadedFields, validate, validateCSRF, validateFinish, validateNext, validatePreviousMethods inherited from class com.jalios.jcms.context.JcmsJspContext
addAvoidanceLink, addBodyAttributes, addCSSHeader, addCSSHeader, addCSSHeader, addCSSHeader, addCustomHeader, addHandlebarTemplate, addHttpEquivHeader, addHttpNameHeader, addJavaScript, addJavaScript, addJavaScript, addJavaScriptCode, addJavaScriptModule, addPrefetchHeader, addStyleHeader, addStyleHeader, addSvgSpriteIcon, addWebAssets, canAccessAdminArea, checkAccess, checkAccess, checkCSRF, debugDisplayContext, disablePacker, forceEditIcon, forceUpdate, getAjaxRequestAttribute, getAjaxRequestId, getAllHeadersDiffMap, getAllHeadersMap, getAvoidanceLinks, getBackOfficeCSSHeader, getBackOfficeJavaScriptSet, getBodyAttributes, getContentForm, getCSSHeaders, getCtxCategories, getCurrentCategory, getCustomHeaders, getDocType, getFinalCSSFooterMap, getFinalCSSMap, getFinalJavaScriptModuleSet, getFinalJavaScriptSet, getFrontOfficeCSSHeader, getFrontOfficeJavaScriptSet, getHandlebarTemplates, getHttpEquivHeaders, getHttpNameHeaders, getJavaScriptCodeSet, getJavaScriptModuleSet, getJavaScriptSet, getPageContext, getPageTitle, getPageZone, getPortal, getPortalCategory, getPortlet, getPublication, getStyleHeaders, getSvgSprites, getSvgSpritesHtml, getTemplateUsage, internalSetupEmptyHeader, isEditIcon, isEditIcon, isEditIconForPublish, isEditIconForPublish, isPrintView, registerDisplayContext, removeAjaxRequestAttribute, setAjaxRequestAttribute, setAjaxRequestId, setAllHeadersDiffMap, setDocType, setEditIcon, setPageContext, setPageTitle, setPageZone, setShowEditIcon, setTemplateUsage, showEditIcon, showEditIcon, showEditIconMethods inherited from class com.jalios.jcms.context.JcmsContext
addMsg, addMsg, addMsgSession, addMsgSession, addToastr, addToastr, addToastrSession, addToastrSession, applySelector, canAccessAdminArea, copyMsgListToMsgSessionList, 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, getUploadedFiles, getUploadedFiles, getUrlWithCommonUpdatedParams, getUserCountry, getUserLang, getUserLocale, getUserZoneId, getWarningMsg, getWarningMsgList, getWarningMsgSession, getWarningMsgSessionList, glp, isAdmin, isAdminZone, isAjaxRequest, isDBMember, isDebug, isDebugTemplate, isInFrontOffice, isLogged, isWorkZone, removeMessage, removeMessage, removeMsg, 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 Details
-
NEWALERTRULE_MARK
- See Also:
-
OP_SIGNUP_PARAM
- See Also:
-
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
-
authType
-
password0
-
password1
-
password2
-
name
-
firstName
-
salutation
-
organization
-
department
-
jobTitle
-
email
-
phone
-
mobile
-
street
-
postalCode
-
poBox
-
region
-
locality
-
address
-
photo
-
info
-
groupRight
-
signupKey
-
language
-
country
-
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
-
workingMember
-
notification
-
groups
-
passwordHasChanged
protected boolean passwordHasChanged -
appearanceHasChanged
protected boolean appearanceHasChanged -
isEmailVisible
protected boolean isEmailVisible -
admin
protected boolean admin -
groupRightSet
-
publishSet
-
updateSet
-
deleteSet
-
rootSet
-
useCatMode
protected int useCatMode -
editCatMode
protected int editCatMode -
isGroupEditCat
protected boolean isGroupEditCat -
useCategorySet
-
notificationFormHandler
-
rightsProvided
protected boolean rightsProvided -
readCategorySet
-
delegateMemberSet
-
declaredManager
-
assistant
-
clearanceLevel
-
anonymousOpOnly
protected boolean anonymousOpOnly -
skipPasswordVerification
protected boolean skipPasswordVerification -
signUpOpAuthor
-
-
Constructor Details
-
EditMemberHandler
public EditMemberHandler()
-
-
Method Details
-
getPageTitle
-
isGuest
protected boolean isGuest() -
processAction
Description 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:
IOException- IO Exception
-
validateMember
Returns true if logged Member can edit the member, else, returns false and sendForbidden.- Returns:
- true if loggedMember can edit the member
- Throws:
IOException- if an error has occurred- Since:
- jcms-7.0.5
-
checkValidateMember
protected boolean checkValidateMember()This internal method can be used to check if current member has required static rights to edit the member.
It does not dynamic checkCreate or checkUpdate, checkDelete.
It does not sendForbidden in case of missing rights, so it can be used to test if an edit button should or not be proposed in the UI.- loggedMember must not be null
- if member is a contact, always returns true
- if member and loggedMember are same, return true
- else, if loggedMember is admin, always return true
- else, if member is admin, return false
- else, if member is stored, and loggedMember has MBR_EDIT_RESOURCE, return true
- else, if member is in database, and loggedMember has DBMBR_EDIT_RESOURCE, return true
- else, if loggedMember has WSMBR_EDIT_RESOURCE, and both loggedMember and member belong to current workspace, return true
- else, return false
- Returns:
- true if logged Member can edit the member, else, returns false without sendForbidden.
- Since:
- jcms-11.0
-
canAccessAdvancedMemberEdition
Checks whether advanced back-office edition should be proposed to the specified member.This method does not check whether the operation would be authorized, only whether access to the advanced BO edition should be offered/proposed.
Unlike
checkValidateMember(), this method does not automatically grant a user access to advanced edition of his own member (unless he has another authorization, such as being admin or having the proper ACL).- Parameters:
loggedMember- the logged member for whom authorization is being verifiedmbrToEdit- the member on which edition would be proposed- Returns:
trueif advanced member edition access should be proposed,falseotherwise- Since:
- jcms-11.0
-
validateAddItem
public boolean validateAddItem() -
validateCommonCreateSignup
- Throws:
IOException
-
validateCommonCreateSignup
- Throws:
IOException
-
releaseDBWorkingMember
protected void releaseDBWorkingMember() -
getDataClass
- Specified by:
getDataClassin classEditDataHandler
-
setFields
-
getFieldStatus
-
updateControlSettings
-
sendRedirect
- Overrides:
sendRedirectin classEditDataHandler- Throws:
IOException
-
validateSignup
- Throws:
IOException
-
performSignup
- Throws:
IOException
-
alertSignup
protected boolean alertSignup(boolean signupValidationRequired) -
validateCreate
- Throws:
IOException
-
performCreate
- Throws:
IOException
-
validateCommonUpdate
- Throws:
IOException
-
validatePasswordsRules
public static boolean validatePasswordsRules(JcmsFormHandler handler, String login, 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
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
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
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
- Throws:
IOException
-
performUpdate
- Throws:
IOException
-
setMemberPhoto
protected void setMemberPhoto() -
validateUpdateProfile
- Throws:
IOException
-
validateUpdateAlertSettings
- Throws:
IOException
-
validateDelete
- Throws:
IOException
-
performDelete
- Throws:
IOException
-
validateDisable
- Throws:
IOException
-
performDisable
- Throws:
IOException
-
validateConfirmSignup
- Throws:
IOException
-
performConfirmSignup
- Throws:
IOException
-
validateConvertToMember
- Throws:
IOException
-
performConvertToMember
- Throws:
IOException
-
validateDetachFromLDAP
- Throws:
IOException
-
performDetachFromLDAP
- Throws:
IOException
-
showGroupsTab
public boolean showGroupsTab() -
showRightsTab
public boolean showRightsTab() -
isAccount
protected boolean isAccount() -
getMember
-
getGroups
-
isGroupRight
-
canPublish
-
canUpdate
-
canDelete
-
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
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
- 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
-
setOpUpdateProfile
-
setOpDisable
-
setOpConfirmSignup
-
setOpConvertToMember
-
setOpDetachFromLDAP
-
setId
Set the value of id.- Overrides:
setIdin classEditDataHandler- Parameters:
v- a member identifier.
-
setMid
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.
-
getUsageSettings
-
getAvailableLogin
Get the value of login.- Returns:
- Value of login.
-
setLogin
Set the value of login.- Parameters:
v- Value to assign to login.
-
showLoginField
public boolean showLoginField()Check if login should be displayed in member form.- Returns:
- always true in current implementation
- Since:
- jcms-11
-
getLoginSettings
-
setAuthType
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
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
-
getAuthTypeSettings
-
getPassword0
Get the value of old password.- Returns:
- Value of old password.
- Since:
- jcms-4.0
-
setPassword0
Set the value of old password.- Parameters:
v- Value to assign to password0.- Since:
- jcms-4.0
-
getPassword1
Get the value of password1.- Returns:
- Value of password1.
-
setPassword1
Set the value of password1.- Parameters:
v- Value to assign to password1.
-
getPassword2
Get the value of password2.- Returns:
- Value of password2.
-
setPassword2
Set the value of password2.- Parameters:
v- Value to assign to password2.
-
showPasswordFields
public boolean showPasswordFields()Check if password fields should be included in form.- Returns:
- false if no passwords field are to be included in form, true if password field should be displayed (depending on other context
-
showCurrentPasswordField
public boolean showCurrentPasswordField()Check if the current password field should be displayed.- Returns:
- false if current password field is not required and should not be displayed, true if current password must be specified in order to change other passwords
-
getPassword0Settings
-
getPassword1Settings
-
isMyProfile
protected boolean isMyProfile() -
getPassword2Settings
-
getAvailableName
Get the value of name.- Returns:
- Value of name.
-
setName
Set the value of name.- Parameters:
v- Value to assign to name.
-
getNameSettings
-
getAvailableFirstName
Get the value of firstName.- Returns:
- Value of firstName.
-
setFirstName
Set the value of firstName.- Parameters:
v- Value to assign to firstName.
-
getFirstNameSettings
-
getSalutationSettings
-
showSalutationField
public boolean showSalutationField() -
getAvailableSalutValues
-
getAvailableSalutation
Get the value of salutation.- Returns:
- Value of salutation.
-
setSalutation
Set the value of salutation.- Parameters:
v- Value to assign to salutation.
-
getAvailableOrganization
Get the value of organization.- Returns:
- Value of organization.
-
getOrganizationSettings
-
getAvailableDepartment
Get the value of department.- Returns:
- Value of department.
-
getDepartmentSettings
-
setOrganization
Set the value of organization.- Parameters:
v- Value to assign to organization.
-
setDepartment
Set the value of department.- Parameters:
v- Value to assign to department.
-
getAvailableJobTitle
Get the value of jobTitle.- Returns:
- Value of jobTitle.
-
getJobTitleSettings
-
setJobTitle
Set the value of jobTitle.- Parameters:
v- Value to assign to jobTitle.
-
getAvailablePhone
Get the value of phone.- Returns:
- Value of phone.
-
setPhone
Set the value of phone.- Parameters:
v- Value to assign to phone.
-
getPhoneSettings
-
getAvailableMobile
Get the value of mobile.- Returns:
- Value of mobile.
-
setMobile
Set the value of mobile.- Parameters:
v- Value to assign to mobile.
-
getMobileSettings
-
getAvailableAddress
Get the value of address.- Returns:
- Value of address.
-
setAddress
Set the value of address.- Parameters:
v- Value to assign to address.
-
showAddressField
public boolean showAddressField() -
getAddressSettings
-
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
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
-
getStreetSettings
-
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
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
-
getPostalCodeSettings
-
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
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
-
getPoBoxSettings
-
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
Set the address region of this Member.Example:
"Ile de France"- Parameters:
region- full name of state or province- Since:
- jcms-9.0.0
-
getRegionSettings
-
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
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
-
getLocalitySettings
-
getAvailableGroups
Get the value of groups.- Returns:
- Value of groups.
-
setGids
Set the id of the Group to set on the Member being edited- Parameters:
gids- an array of Group ids
-
getAvailableEmail
Get the value of email.- Returns:
- Value of email.
-
setEmail
Set the value of email.- Parameters:
v- Value to assign to email.
-
getEmailSettings
-
getAvailableEmailVisible
public boolean getAvailableEmailVisible()Get the value of emailVisible.- Returns:
- Value of emailVisible.
-
getEmailVisibleSettings
-
setEmailVisible
public void setEmailVisible(boolean v) Set the value of emailVisible.- Parameters:
v- Value to assign to emailVisible.
-
getAvailableInfo
Get the value of info.- Returns:
- Value of info.
-
setInfo
Set the value of info.- Parameters:
v- Value to assign to info.
-
showInfoField
public boolean showInfoField() -
isDBAccount
public boolean isDBAccount() -
isLdapAccount
public boolean isLdapAccount() -
getInfoSettings
-
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.
-
showAdminField
public boolean showAdminField() -
getAdminSettings
-
getGroupRight
Get the value of groupRight.- Returns:
- Value of groupRight.
-
setGroupRight
Set the value of groupRight.- Parameters:
v- Value to assign to groupRight.
-
setCanPublish
Set the value of canPublish.- Parameters:
v- Value to assign to canPublish.
-
setCanUpdate
Set the value of canUpdate.- Parameters:
v- Value to assign to canUpdate.
-
setCanDelete
Set the value of canDelete.- Parameters:
v- Value to assign to canDelete.
-
setCids
Set the value of cids.- Parameters:
v- Value to assign to cids.
-
setUseCatMode
Set the value of useCatMode.- Parameters:
v- Value to assign to useCatMode.
-
setEditCatMode
Set the value of editCatMode.- Parameters:
v- Value to assign to editCatMode.
-
setUsecids
Set the value of usecids.- Parameters:
v- Value to assign to usecids.
-
getAvailableUseCategorySet
-
setReadcids
Set the value of readcids.- Parameters:
v- Value to assign to readcids.
-
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
-
showLdapSyncField
public boolean showLdapSyncField() -
getLdapSyncSettings
-
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
Set the value of delegateMbrIds.- Parameters:
v- Value to assign to readcids.
-
getAvailableDelegateMemberSet
-
getDelegateMbrIdsSettings
-
getAvailableDeclaredManager
-
setDeclaredManager
-
showDeclaredManager
public boolean showDeclaredManager() -
getDeclaredManagerSettings
-
getAvailableAssistant
-
setAssistant
-
showAssistant
public boolean showAssistant() -
getAssistantSettings
-
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
-
setNotificationFormHandler
Sets the value of notificationFormHandler.- Parameters:
v- Value to assign to notificationFormHandler.
-
showAlertRuleEditor
public boolean showAlertRuleEditor()- Returns:
- true if alert rule editor form can be displayed
- Since:
- jcms-11
-
showProfilingForm
public boolean showProfilingForm()- Returns:
- true if profiling form can be displayed
- Since:
- jcms-11
-
showNotificationForm
public boolean showNotificationForm()- Returns:
- true if notification form can be displayed
- Since:
- jcms-11
-
setLanguage
-
getAvailableLanguage
-
showLanguageField
public boolean showLanguageField() -
getLanguageSettings
-
setCountry
-
getAvailableCountry
-
showCountryField
public boolean showCountryField() -
getCountrySettings
-
setZoneId
-
getAvailableZoneId
-
showTimeZoneField
public boolean showTimeZoneField() -
getTimeZoneSettings
-
setSignupKey
-
setCharterAccepted
-
setCharterRefused
-
getShowCharter
public boolean getShowCharter() -
setRemovePhoto
public void setRemovePhoto(boolean v) -
getAvailablePhoto
-
setPhoto
-
showPhotoField
public boolean showPhotoField() -
getPhotoSettings
-
canUploadPhoto
public boolean canUploadPhoto()- Returns:
- true if loggedMember can update photo on THIS member
-
showColorField
public boolean showColorField()- Returns:
- true
- Since:
- jcms-11 / JCMS-11750
-
setColor
- Parameters:
v- color to set- Since:
- jcms-11 / JCMS-11750
-
getAvailableColor
Return member color preference as a CSS var of a jpalette color, or null- Returns:
- member color preference or null
- Since:
- jcms-11 / JCMS-11750
- See Also:
-
getColorSettings
- Returns:
- setting for color field
- Since:
- jcms-11 / JCMS-11750
-
showAppearanceField
public boolean showAppearanceField()- Returns:
- true
- Since:
- jplatform-11 / JCMS-11658
-
setAppearance
- Parameters:
v- appearance to set- Since:
- jplatform-11 / JCMS-11658
-
getAvailableAppearance
- Returns:
- member appearance preference or null
- Since:
- jplatform-11 / JCMS-11658
-
getAppearanceSettings
- Returns:
- setting for appearance field
- Since:
- jplatform-11 / JCMS-11658
-
getAvailableAlertRuleSet
-
isDefaultAlertRuleSet
public boolean isDefaultAlertRuleSet() -
setEncodedAlertRules
-
setAlertLevels
-
setAlertDomainNames
-
setAlertChannels
-
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
-
getAvailableClearanceLevel
public int getAvailableClearanceLevel() -
setClearanceLevel
public void setClearanceLevel(int level) -
showClearanceLevel
public boolean showClearanceLevel() -
getClearanceLevelSettings
-