Class MemberDisplayHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class MemberDisplayHandler extends JcmsFormHandler
Member front office full display.
Since:
jcms-11
Author:
Sylvain Devaux
  • Field Details

    • HANDLER_REQUEST_ATTR

      public static final String HANDLER_REQUEST_ATTR
      See Also:
    • HANDLER_AJAX_REQUEST_ATTR

      public static final String HANDLER_AJAX_REQUEST_ATTR
      See Also:
    • ITEM_REQUEST_PREFIX_ATTR

      public static final String ITEM_REQUEST_PREFIX_ATTR
      Request attribute name prefix. Used to pass item to render from list template to item template.
    • MAIN_CONTACT_CHANNEL_PROP_PREFIX

      public static final String MAIN_CONTACT_CHANNEL_PROP_PREFIX
      Property prefix to retrieve communication channels.
      See Also:
    • ACTION_SECTIONS_DELIMITERS

      public static final String ACTION_SECTIONS_DELIMITERS
      See Also:
    • UI_ACTION_MENU_SECTIONS_PROP_PREFIX

      public static final String UI_ACTION_MENU_SECTIONS_PROP_PREFIX
      See Also:
    • UI_ACTIONS_PROP_PREFIX

      public static final String UI_ACTIONS_PROP_PREFIX
      Property prefix to retrieve actions.
      See Also:
    • ACTION_MENU_ITEM_REQUEST_ATTR

      public static final String ACTION_MENU_ITEM_REQUEST_ATTR
      Request attribute name. Used to set/retrieve UIAction from main template to custom templates.
  • Constructor Details

    • MemberDisplayHandler

      public MemberDisplayHandler()
  • Method Details

    • init

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

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

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

      Overrides:
      init in class JcmsFormHandler
    • logPrefix

      public String logPrefix()
      Does end by an extra space.
      Returns:
      a common logger prefix to facilitate same request logs (example: grep logs for same request)
    • 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 JcmsFormHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • getFormStepHiddenFields

      public String getFormStepHiddenFields()
      Overrides:
      getFormStepHiddenFields in class JcmsFormHandler
    • canAccessMemberProfile

      public boolean canAccessMemberProfile()
    • getCSSSet

      public Set<String> getCSSSet()
    • getJSSet

      public Set<String> getJSSet()
    • getAppCss

      public String getAppCss()
    • getUIInitContext

      protected ProfileUIInitContext getUIInitContext()
    • getMemberInfos1JspList

      public List<String> getMemberInfos1JspList()
    • getJspUIList

      protected List<String> getJspUIList(String propPrefix)
    • getActionMenuSections

      public List<String> getActionMenuSections()
      Returns:
      ordered action menu sections.
    • getActionMenu

      public Map<String,Collection<UIAction>> getActionMenu()
      Returns:
      actions to provide in header action menu, ordered by section.
    • getMainContactChannels

      public List<MemberContactChannel> getMainContactChannels()
    • getMember

      public Member getMember()
    • getPageTitle

      public String getPageTitle()
      Returns:
      title of html page
      Since:
      jcms-11
    • getReplaceStateUrl

      public String getReplaceStateUrl()
      Returns:
      URL for javascript history state with ESN tab parameter kept
      Since:
      jcms-11
    • setId

      public void setId(String v)
      Setter of member by parameter "?id=".

      Only id referencing an existing Member will be set.

      Parameters:
      v - the member identifier
      Since:
      jcms-11
    • setMid

      public void setMid(String v)
    • canBeRecommendedBy

      public boolean canBeRecommendedBy()
    • canEdit

      public boolean canEdit()
    • canUpdatePhoto

      public boolean canUpdatePhoto()
      Returns:
      true if loggedMember can update the current profile photo
    • isCollaborativeSpace

      public boolean isCollaborativeSpace()
    • showEmail

      public boolean showEmail()
    • getEmail

      public String getEmail()
    • showPhone

      public boolean showPhone()
    • getPhone

      public String getPhone()
    • showMobile

      public boolean showMobile()
    • getMobile

      public String getMobile()
    • hasAnyAddress

      public boolean hasAnyAddress()
    • getAddress

      public String getAddress()
    • showAddress

      public boolean showAddress()
    • hasAnyContactInfo

      public boolean hasAnyContactInfo()
    • showFillContactCTA

      public boolean showFillContactCTA()
    • isAccount

      public boolean isAccount()
    • isContact

      public boolean isContact()
    • isGuest

      public boolean isGuest()
    • isMyProfile

      public boolean isMyProfile()
      Returns:
      true if current profile is same as loggedMember
    • getMemberColorPreference

      public String getMemberColorPreference()
      Returns:
      the color from his member pref
    • showEditMemberInformationButton

      public boolean showEditMemberInformationButton()
    • showEditMemberContactInformationButton

      public boolean showEditMemberContactInformationButton()
    • showStatus

      public boolean showStatus()