org.exoplatform.social.webui.profile
Class UIHeaderSection

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIForm
              extended by org.exoplatform.social.webui.profile.UIProfileSection
                  extended by org.exoplatform.social.webui.profile.UIHeaderSection

public class UIHeaderSection
extends UIProfileSection

Component is used for short user information (name, position) managing.


Nested Class Summary
static class UIHeaderSection.AcceptContactActionListener
          Listens to accept actions then make connection to accepted person.
- Gets information of user who made request.
- Checks the relationship to confirm that there still got invited connection.
- Makes and Save the new relationship.
static class UIHeaderSection.AddContactActionListener
          Listens to add action then make request to invite person to make connection.
- Gets information of user is invited.
- Checks the relationship to confirm that there have not got connection yet.
- Saves the new connection.
static class UIHeaderSection.CancelActionListener
          Changes form into edit mode when edit button is clicked.
static class UIHeaderSection.DenyContactActionListener
          Listens to deny action then delete the invitation.
- Gets information of user is invited or made request.
- Checks the relation to confirm that there have not got relation yet.
- Removes the current relation and save the new relation.
static class UIHeaderSection.EditActionListener
          Changes form into edit mode when edit button is clicked.
static class UIHeaderSection.SaveActionListener
          Stores profile information into database when form is submited.
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
 
Fields inherited from class org.exoplatform.webui.form.UIForm
ACTION, SUBCOMPONENT_ID
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIHeaderSection()
          Initializes components for header form.
 
Method Summary
protected  org.exoplatform.social.core.relationship.model.Relationship.Type getContactStatus()
          Gets contact status between current user and identity that is checked.
protected  org.exoplatform.social.core.relationship.model.Relationship getRelationship()
          Gets relationship between current user and viewer identity.
 void setValue()
          Gets position information from profile and set value into uicomponent.
 
Methods inherited from class org.exoplatform.social.webui.profile.UIProfileSection
escapeHtml, getProfile, getViewUser, isEditable, isEditMode, isFirstLoad, setEditMode, setFirstLoad
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, processRender, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, url
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIHeaderSection

public UIHeaderSection()
                throws Exception
Initializes components for header form.

Throws:
Exception
Method Detail

getContactStatus

protected org.exoplatform.social.core.relationship.model.Relationship.Type getContactStatus()
                                                                                     throws Exception
Gets contact status between current user and identity that is checked.

Returns:
type of relationship status that equivalent the relationship.
Throws:
Exception

getRelationship

protected org.exoplatform.social.core.relationship.model.Relationship getRelationship()
                                                                               throws Exception
Gets relationship between current user and viewer identity.

Returns:
relationship.
Throws:
Exception

setValue

public void setValue()
              throws Exception
Gets position information from profile and set value into uicomponent.

Throws:
Exception


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.