org.exoplatform.social.webui.profile
Class UIProfileSection

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
Direct Known Subclasses:
UIBasicInfoSection, UIContactSection, UIExperienceSection, UIHeaderSection

public abstract class UIProfileSection
extends org.exoplatform.webui.form.UIForm

Manages profile informations and actions relate to manage profile.
Modified : dang.tung tungcnw@gmail.com Aug 11, 2009


Nested Class Summary
static class UIProfileSection.CancelActionListener
          Listens to cancel event and change the form to non edit mode.
static class UIProfileSection.EditActionListener
          Listens to edit event and changes the form to edit mode.
static class UIProfileSection.SaveActionListener
          Listens to save event and change form to non edit mode.
 
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
UIProfileSection()
           
 
Method Summary
 String escapeHtml(String value)
          Escapes HTML.
 org.exoplatform.social.core.identity.model.Profile getProfile()
          Gets profile.
 org.exoplatform.services.organization.User getViewUser()
          Get user
 boolean isEditable()
          Checks the current user is right edit permission.
 boolean isEditMode()
          Checks the current display of title bar is can be edit.
 boolean isFirstLoad()
          Checks is first load for form.
 void setEditMode(boolean editMode)
          Sets the edit mode for form.
 void setFirstLoad(boolean firstLoad)
          Sets the first load for form.
 
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

UIProfileSection

public UIProfileSection()
Method Detail

getProfile

public org.exoplatform.social.core.identity.model.Profile getProfile()
                                                              throws Exception
Gets profile.

Returns:
profile.
Throws:
Exception

isEditMode

public boolean isEditMode()
Checks the current display of title bar is can be edit.

Returns:
true if title bar is in edit mode.

setEditMode

public void setEditMode(boolean editMode)
Sets the edit mode for form.

Parameters:
editMode -

isFirstLoad

public boolean isFirstLoad()
Checks is first load for form.

Returns:
true first load.

setFirstLoad

public void setFirstLoad(boolean firstLoad)
Sets the first load for form.

Parameters:
editMode -

isEditable

public boolean isEditable()
Checks the current user is right edit permission.

Returns:
true if current user has permission.

escapeHtml

public String escapeHtml(String value)
Escapes HTML.

Parameters:
value -
Returns:
Since:
1.2.0-Beta3

getViewUser

public org.exoplatform.services.organization.User getViewUser()
                                                       throws Exception
Get user

Returns:
Throws:
Exception


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