Class EditMemberHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants
Direct Known Subclasses:
EditMemberContactInformationHandler, EditMemberFrontHandler, EditMemberInformationHandler, EditMemberPhotoHandler

public class EditMemberHandler extends EditDataHandler
This form handler processes Member forms.
Author:
Olivier Dedieu
See Also:
  • Field Details

    • NEWALERTRULE_MARK

      public static final String NEWALERTRULE_MARK
      See Also:
    • OP_SIGNUP_PARAM

      public static final String 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

      protected String login
    • authType

      protected EditMemberHandler.AuthType authType
    • password0

      protected String password0
    • password1

      protected String password1
    • password2

      protected String password2
    • name

      protected String name
    • firstName

      protected String firstName
    • salutation

      protected String salutation
    • organization

      protected String organization
    • department

      protected String department
    • jobTitle

      protected String jobTitle
    • email

      protected String email
    • phone

      protected String phone
    • mobile

      protected String mobile
    • street

      protected String street
    • postalCode

      protected String postalCode
    • poBox

      protected String poBox
    • region

      protected String region
    • locality

      protected String locality
    • address

      protected String address
    • photo

      protected String photo
    • info

      protected String info
    • groupRight

      protected String[] groupRight
    • signupKey

      protected String signupKey
    • language

      protected String language
    • country

      protected String country
    • zoneId

      protected 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
    • appearanceHasChanged

      protected boolean appearanceHasChanged
    • isEmailVisible

      protected boolean isEmailVisible
    • admin

      protected boolean admin
    • groupRightSet

      protected HashSet groupRightSet
    • publishSet

      protected HashSet publishSet
    • updateSet

      protected HashSet updateSet
    • deleteSet

      protected HashSet deleteSet
    • rootSet

      protected HashSet rootSet
    • useCatMode

      protected int useCatMode
    • editCatMode

      protected int editCatMode
    • isGroupEditCat

      protected boolean isGroupEditCat
    • useCategorySet

      protected TreeSet useCategorySet
    • notificationFormHandler

      protected EditNotificationHandler notificationFormHandler
    • rightsProvided

      protected boolean rightsProvided
    • readCategorySet

      protected TreeSet readCategorySet
    • delegateMemberSet

      protected TreeSet<Member> delegateMemberSet
    • declaredManager

      protected Member declaredManager
    • assistant

      protected Member assistant
    • clearanceLevel

      protected Integer clearanceLevel
    • anonymousOpOnly

      protected boolean anonymousOpOnly
    • skipPasswordVerification

      protected boolean skipPasswordVerification
    • signUpOpAuthor

      protected Member signUpOpAuthor
  • Constructor Details

    • EditMemberHandler

      public EditMemberHandler()
  • Method Details

    • getPageTitle

      public String getPageTitle()
    • isGuest

      protected boolean isGuest()
    • processAction

      public boolean processAction() throws IOException
      Description copied from class: JcmsFormHandler
      Method 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:
      processAction in class EditDataHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • validateMember

      public boolean validateMember() throws IOException
      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

      public static boolean canAccessAdvancedMemberEdition(Member loggedMember, Member mbrToEdit)
      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 verified
      mbrToEdit - the member on which edition would be proposed
      Returns:
      true if advanced member edition access should be proposed, false otherwise
      Since:
      jcms-11.0
    • validateAddItem

      public boolean validateAddItem()
    • validateCommonCreateSignup

      protected boolean validateCommonCreateSignup() throws IOException
      Throws:
      IOException
    • validateCommonCreateSignup

      protected boolean validateCommonCreateSignup(Member opAuthor) throws IOException
      Throws:
      IOException
    • releaseDBWorkingMember

      protected void releaseDBWorkingMember()
    • getDataClass

      public Class<? extends Data> getDataClass()
      Specified by:
      getDataClass in class EditDataHandler
    • setFields

      protected void setFields(Member mbr)
    • getFieldStatus

      protected Optional<FieldStatus> getFieldStatus(String fieldName)
    • updateControlSettings

      protected void updateControlSettings(BasicSettings settings, String fieldName)
    • sendRedirect

      protected void sendRedirect() throws IOException
      Overrides:
      sendRedirect in class EditDataHandler
      Throws:
      IOException
    • validateSignup

      protected boolean validateSignup() throws IOException
      Throws:
      IOException
    • performSignup

      protected boolean performSignup() throws IOException
      Throws:
      IOException
    • alertSignup

      protected boolean alertSignup(boolean signupValidationRequired)
    • validateCreate

      protected boolean validateCreate() throws IOException
      Throws:
      IOException
    • performCreate

      protected boolean performCreate() throws IOException
      Throws:
      IOException
    • validateCommonUpdate

      protected boolean validateCommonUpdate() throws IOException
      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 null
      login - 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(String login, String password)
      Check the specified password match the password complexity pattern specified in property. See member.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(String password)
      Check the specified password match the minimum length specified in property. See member.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(String password)
      Check the specified password match the maximum length specified in property. See member.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 IOException
      Throws:
      IOException
    • performUpdate

      protected boolean performUpdate() throws IOException
      Throws:
      IOException
    • setMemberPhoto

      protected void setMemberPhoto()
    • validateUpdateProfile

      protected boolean validateUpdateProfile() throws IOException
      Throws:
      IOException
    • validateUpdateAlertSettings

      protected boolean validateUpdateAlertSettings() throws IOException
      Throws:
      IOException
    • validateDelete

      protected boolean validateDelete() throws IOException
      Throws:
      IOException
    • performDelete

      protected boolean performDelete() throws IOException
      Throws:
      IOException
    • validateDisable

      public boolean validateDisable() throws IOException
      Throws:
      IOException
    • performDisable

      public boolean performDisable() throws IOException
      Throws:
      IOException
    • validateConfirmSignup

      public boolean validateConfirmSignup() throws IOException
      Throws:
      IOException
    • performConfirmSignup

      public boolean performConfirmSignup() throws IOException
      Throws:
      IOException
    • validateConvertToMember

      public boolean validateConvertToMember() throws IOException
      Throws:
      IOException
    • performConvertToMember

      public boolean performConvertToMember() throws IOException
      Throws:
      IOException
    • validateDetachFromLDAP

      public boolean validateDetachFromLDAP() throws IOException
      Throws:
      IOException
    • performDetachFromLDAP

      public boolean performDetachFromLDAP() throws IOException
      Throws:
      IOException
    • showGroupsTab

      public boolean showGroupsTab()
    • showRightsTab

      public boolean showRightsTab()
    • isAccount

      protected boolean isAccount()
    • getMember

      public Member getMember()
    • getGroups

      public Group[] getGroups()
    • isGroupRight

      public boolean isGroupRight(Class clazz)
    • canPublish

      public boolean canPublish(Class clazz)
    • canUpdate

      public boolean canUpdate(Class clazz)
    • canDelete

      public boolean canDelete(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 Set getCategorySet(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, String inputName)
      Parameters:
      cat - the category to work with
      inputName - the name of the input
      Returns:
      true if the given category must be expanded
      Since:
      jcms-3.0
    • setOpSignup

      public void setOpSignup(String v)
    • setOpUpdateProfile

      public void setOpUpdateProfile(String v)
    • setOpDisable

      public void setOpDisable(String v)
    • setOpConfirmSignup

      public void setOpConfirmSignup(String v)
    • setOpConvertToMember

      public void setOpConvertToMember(String v)
    • setOpDetachFromLDAP

      public void setOpDetachFromLDAP(String v)
    • setId

      public void setId(String v)
      Set the value of id.
      Overrides:
      setId in class EditDataHandler
      Parameters:
      v - a member identifier.
    • setMid

      public void setMid(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.
    • getUsageSettings

      public BasicSettings getUsageSettings()
    • getAvailableLogin

      public String getAvailableLogin()
      Get the value of login.
      Returns:
      Value of login.
    • setLogin

      public void setLogin(String v)
      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

      public BasicSettings getLoginSettings()
    • setAuthType

      public void setAuthType(String authTypeStr)
      Set the type of authentication authorized for this user.
      Parameters:
      authTypeStr - the string representation of EditMemberHandler.AuthType, default to EditMemberHandler.AuthType.ALL if invalid
      Since:
      jcms-10.0.6 JCMS-9072
    • getAvailableAuthType

      public 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.AuthType used or requested, default to EditMemberHandler.AuthType.ALL if invalid
      Since:
      jcms-10.0.6 JCMS-9072
    • getAuthTypeSettings

      public BasicSettings getAuthTypeSettings()
    • getPassword0

      public String getPassword0()
      Get the value of old password.
      Returns:
      Value of old password.
      Since:
      jcms-4.0
    • setPassword0

      public void setPassword0(String v)
      Set the value of old password.
      Parameters:
      v - Value to assign to password0.
      Since:
      jcms-4.0
    • getPassword1

      public String getPassword1()
      Get the value of password1.
      Returns:
      Value of password1.
    • setPassword1

      public void setPassword1(String v)
      Set the value of password1.
      Parameters:
      v - Value to assign to password1.
    • getPassword2

      public String getPassword2()
      Get the value of password2.
      Returns:
      Value of password2.
    • setPassword2

      public void setPassword2(String v)
      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

      public BasicSettings getPassword0Settings()
    • getPassword1Settings

      public PasswordSettings getPassword1Settings()
    • isMyProfile

      protected boolean isMyProfile()
    • getPassword2Settings

      public PasswordSettings getPassword2Settings()
    • getAvailableName

      public String getAvailableName()
      Get the value of name.
      Returns:
      Value of name.
    • setName

      public void setName(String v)
      Set the value of name.
      Parameters:
      v - Value to assign to name.
    • getNameSettings

      public BasicSettings getNameSettings()
    • getAvailableFirstName

      public String getAvailableFirstName()
      Get the value of firstName.
      Returns:
      Value of firstName.
    • setFirstName

      public void setFirstName(String v)
      Set the value of firstName.
      Parameters:
      v - Value to assign to firstName.
    • getFirstNameSettings

      public BasicSettings getFirstNameSettings()
    • getSalutationSettings

      public BasicSettings getSalutationSettings()
    • showSalutationField

      public boolean showSalutationField()
    • getAvailableSalutValues

      public String[] getAvailableSalutValues()
    • getAvailableSalutation

      public String getAvailableSalutation()
      Get the value of salutation.
      Returns:
      Value of salutation.
    • setSalutation

      public void setSalutation(String v)
      Set the value of salutation.
      Parameters:
      v - Value to assign to salutation.
    • getAvailableOrganization

      public String getAvailableOrganization()
      Get the value of organization.
      Returns:
      Value of organization.
    • getOrganizationSettings

      public BasicSettings getOrganizationSettings()
    • getAvailableDepartment

      public String getAvailableDepartment()
      Get the value of department.
      Returns:
      Value of department.
    • getDepartmentSettings

      public BasicSettings getDepartmentSettings()
    • setOrganization

      public void setOrganization(String v)
      Set the value of organization.
      Parameters:
      v - Value to assign to organization.
    • setDepartment

      public void setDepartment(String v)
      Set the value of department.
      Parameters:
      v - Value to assign to department.
    • getAvailableJobTitle

      public String getAvailableJobTitle()
      Get the value of jobTitle.
      Returns:
      Value of jobTitle.
    • getJobTitleSettings

      public BasicSettings getJobTitleSettings()
    • setJobTitle

      public void setJobTitle(String v)
      Set the value of jobTitle.
      Parameters:
      v - Value to assign to jobTitle.
    • getAvailablePhone

      public String getAvailablePhone()
      Get the value of phone.
      Returns:
      Value of phone.
    • setPhone

      public void setPhone(String v)
      Set the value of phone.
      Parameters:
      v - Value to assign to phone.
    • getPhoneSettings

      public BasicSettings getPhoneSettings()
    • getAvailableMobile

      public String getAvailableMobile()
      Get the value of mobile.
      Returns:
      Value of mobile.
    • setMobile

      public void setMobile(String v)
      Set the value of mobile.
      Parameters:
      v - Value to assign to mobile.
    • getMobileSettings

      public BasicSettings getMobileSettings()
    • getAvailableAddress

      public String getAvailableAddress()
      Get the value of address.
      Returns:
      Value of address.
    • setAddress

      public void setAddress(String v)
      Set the value of address.
      Parameters:
      v - Value to assign to address.
    • showAddressField

      public boolean showAddressField()
    • getAddressSettings

      public BasicSettings getAddressSettings()
    • getAvailableStreet

      public 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(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
    • getStreetSettings

      public BasicSettings getStreetSettings()
    • getAvailablePostalCode

      public 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(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
    • getPostalCodeSettings

      public BasicSettings getPostalCodeSettings()
    • getAvailablePoBox

      public 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(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
    • getPoBoxSettings

      public BasicSettings getPoBoxSettings()
    • getAvailableRegion

      public 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(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
    • getRegionSettings

      public BasicSettings getRegionSettings()
    • getAvailableLocality

      public 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(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
    • getLocalitySettings

      public BasicSettings getLocalitySettings()
    • getAvailableGroups

      public Group[] getAvailableGroups()
      Get the value of groups.
      Returns:
      Value of groups.
    • setGids

      public void setGids(String[] gids)
      Set the id of the Group to set on the Member being edited
      Parameters:
      gids - an array of Group ids
    • getAvailableEmail

      public String getAvailableEmail()
      Get the value of email.
      Returns:
      Value of email.
    • setEmail

      public void setEmail(String v)
      Set the value of email.
      Parameters:
      v - Value to assign to email.
    • getEmailSettings

      public BasicSettings getEmailSettings()
    • getAvailableEmailVisible

      public boolean getAvailableEmailVisible()
      Get the value of emailVisible.
      Returns:
      Value of emailVisible.
    • getEmailVisibleSettings

      public BasicSettings getEmailVisibleSettings()
    • setEmailVisible

      public void setEmailVisible(boolean v)
      Set the value of emailVisible.
      Parameters:
      v - Value to assign to emailVisible.
    • getAvailableInfo

      public String getAvailableInfo()
      Get the value of info.
      Returns:
      Value of info.
    • setInfo

      public void setInfo(String v)
      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

      public BasicSettings 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

      public BasicSettings getAdminSettings()
    • getGroupRight

      public String[] getGroupRight()
      Get the value of groupRight.
      Returns:
      Value of groupRight.
    • setGroupRight

      public void setGroupRight(String[] v)
      Set the value of groupRight.
      Parameters:
      v - Value to assign to groupRight.
    • setCanPublish

      public void setCanPublish(String[] v)
      Set the value of canPublish.
      Parameters:
      v - Value to assign to canPublish.
    • setCanUpdate

      public void setCanUpdate(String[] v)
      Set the value of canUpdate.
      Parameters:
      v - Value to assign to canUpdate.
    • setCanDelete

      public void setCanDelete(String[] v)
      Set the value of canDelete.
      Parameters:
      v - Value to assign to canDelete.
    • setCids

      public void setCids(String[] v)
      Set the value of cids.
      Parameters:
      v - Value to assign to cids.
    • setUseCatMode

      public void setUseCatMode(String v)
      Set the value of useCatMode.
      Parameters:
      v - Value to assign to useCatMode.
    • setEditCatMode

      public void setEditCatMode(String v)
      Set the value of editCatMode.
      Parameters:
      v - Value to assign to editCatMode.
    • setUsecids

      public void setUsecids(String[] v)
      Set the value of usecids.
      Parameters:
      v - Value to assign to usecids.
    • getAvailableUseCategorySet

      public TreeSet getAvailableUseCategorySet()
    • setReadcids

      public void setReadcids(String[] v)
      Set the value of readcids.
      Parameters:
      v - Value to assign to readcids.
    • getAvailableReadCategorySet

      public 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
    • showLdapSyncField

      public boolean showLdapSyncField()
    • getLdapSyncSettings

      public BasicSettings getLdapSyncSettings()
    • showDelegateMemberSet

      public boolean showDelegateMemberSet()
      Returns true if current member should have access to the "delegate Members" field.

      To have access, member must:

      1. not be a DBMember
      2. not be excluded from delegation (See DelegationAuthenticationHandler.isExcludedFromDelegation(Member)
      3. 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(String[] v)
      Set the value of delegateMbrIds.
      Parameters:
      v - Value to assign to readcids.
    • getAvailableDelegateMemberSet

      public TreeSet<Member> getAvailableDelegateMemberSet()
    • getDelegateMbrIdsSettings

      public BasicSettings getDelegateMbrIdsSettings()
    • getAvailableDeclaredManager

      public Member getAvailableDeclaredManager()
    • setDeclaredManager

      public void setDeclaredManager(String id)
    • showDeclaredManager

      public boolean showDeclaredManager()
    • getDeclaredManagerSettings

      public BasicSettings getDeclaredManagerSettings()
    • getAvailableAssistant

      public Member getAvailableAssistant()
    • setAssistant

      public void setAssistant(String id)
    • showAssistant

      public boolean showAssistant()
    • getAssistantSettings

      public BasicSettings 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

      public void setOpAddItem(String v)
    • setNotificationFormHandler

      public void setNotificationFormHandler(EditNotificationHandler v)
      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

      public void setLanguage(String v)
    • getAvailableLanguage

      public String getAvailableLanguage()
    • showLanguageField

      public boolean showLanguageField()
    • getLanguageSettings

      public BasicSettings getLanguageSettings()
    • setCountry

      public void setCountry(String country)
    • getAvailableCountry

      public String getAvailableCountry()
    • showCountryField

      public boolean showCountryField()
    • getCountrySettings

      public BasicSettings getCountrySettings()
    • setZoneId

      public void setZoneId(String zoneId)
    • getAvailableZoneId

      public ZoneId getAvailableZoneId()
    • showTimeZoneField

      public boolean showTimeZoneField()
    • getTimeZoneSettings

      public BasicSettings getTimeZoneSettings()
    • setSignupKey

      public void setSignupKey(String string)
    • setCharterAccepted

      public void setCharterAccepted(String v)
    • setCharterRefused

      public void setCharterRefused(String v)
    • getShowCharter

      public boolean getShowCharter()
    • setRemovePhoto

      public void setRemovePhoto(boolean v)
    • getAvailablePhoto

      public String getAvailablePhoto()
    • setPhoto

      public void setPhoto(String[] v)
    • showPhotoField

      public boolean showPhotoField()
    • getPhotoSettings

      public BasicSettings 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

      public void setColor(String v)
      Parameters:
      v - color to set
      Since:
      jcms-11 / JCMS-11750
    • getAvailableColor

      public String 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

      public BasicSettings getColorSettings()
      Returns:
      setting for color field
      Since:
      jcms-11 / JCMS-11750
    • showAppearanceField

      public boolean showAppearanceField()
      Returns:
      true
      Since:
      jplatform-11 / JCMS-11658
    • setAppearance

      public void setAppearance(String v)
      Parameters:
      v - appearance to set
      Since:
      jplatform-11 / JCMS-11658
    • getAvailableAppearance

      public String getAvailableAppearance()
      Returns:
      member appearance preference or null
      Since:
      jplatform-11 / JCMS-11658
    • getAppearanceSettings

      public BasicSettings getAppearanceSettings()
      Returns:
      setting for appearance field
      Since:
      jplatform-11 / JCMS-11658
    • getAvailableAlertRuleSet

      public Set<AlertRule> getAvailableAlertRuleSet()
    • isDefaultAlertRuleSet

      public boolean isDefaultAlertRuleSet()
    • setEncodedAlertRules

      public void setEncodedAlertRules(String json)
    • setAlertLevels

      public void setAlertLevels(String[] v)
    • setAlertDomainNames

      public void setAlertDomainNames(String[] v)
    • setAlertChannels

      public void setAlertChannels(String[] alertChannelNames)
    • buildAlertRuleSet

      protected 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()
    • getAvailableClearanceLevel

      public int getAvailableClearanceLevel()
    • setClearanceLevel

      public void setClearanceLevel(int level)
    • showClearanceLevel

      public boolean showClearanceLevel()
    • getClearanceLevelSettings

      public BasicSettings getClearanceLevelSettings()