org.exoplatform.social.webui
Class UIAvatarUploadContent

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.portal.webui.portal.UIPortalComponent
              extended by org.exoplatform.portal.webui.container.UIContainer
                  extended by org.exoplatform.social.webui.UIAvatarUploadContent

public class UIAvatarUploadContent
extends org.exoplatform.portal.webui.container.UIContainer

Displays uploaded content from UIAvatarUploader.
Author : eXoPlatform exo@exoplatform.com Nov 4, 2009


Nested Class Summary
static class UIAvatarUploadContent.CancelActionListener
          Cancels, close the popup window.
static class UIAvatarUploadContent.SaveActionListener
          Accepts and saves the uploaded image to profile.
 
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.portal.webui.container.UIContainer
description, icon, TABLE_COLUMN_CONTAINER
 
Fields inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
COMPONENT_EDIT_MODE, COMPONENT_VIEW_MODE, factoryId, height_, mode_, name_, template_, width_
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIAvatarUploadContent()
          Default constructor.
UIAvatarUploadContent(org.exoplatform.social.core.model.AvatarAttachment avatarAttachment)
          Initializes object at the first run time.
 
Method Summary
 org.exoplatform.social.core.model.AvatarAttachment getAvatarAttachment()
          Gets information of AvatarAttachment.
 String getImageSource()
          Gets the source of image.
 void saveUserAvatar(UIAvatarUploadContent uiAvatarUploadContent)
          Saves avatar of users.
 void setAvatarAttachment(org.exoplatform.social.core.model.AvatarAttachment avatarAttachment)
          Sets information of AvatarAttachment.
 
Methods inherited from class org.exoplatform.portal.webui.container.UIContainer
getDescription, getIcon, getStorageId, setDescription, setIcon, setStorageId
 
Methods inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
getAccessPermissions, getFactoryId, getHeight, getName, getTemplate, getTitle, getWidth, hasPermission, isModifiable, setAccessPermissions, setFactoryId, setHeight, setModifiable, setName, setTemplate, setTitle, setWidth
 
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, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIAvatarUploadContent

public UIAvatarUploadContent()
Default constructor.


UIAvatarUploadContent

public UIAvatarUploadContent(org.exoplatform.social.core.model.AvatarAttachment avatarAttachment)
                      throws Exception
Initializes object at the first run time.

Parameters:
AvatarAttachment - Information about attachment.
Throws:
Exception
Method Detail

getAvatarAttachment

public org.exoplatform.social.core.model.AvatarAttachment getAvatarAttachment()
Gets information of AvatarAttachment.

Returns:
AvatarAttachment

setAvatarAttachment

public void setAvatarAttachment(org.exoplatform.social.core.model.AvatarAttachment avatarAttachment)
                         throws Exception
Sets information of AvatarAttachment.

Parameters:
AvatarAttachment -
Throws:
Exception

getImageSource

public String getImageSource()
Gets the source of image.

Returns:
imageSource link

saveUserAvatar

public void saveUserAvatar(UIAvatarUploadContent uiAvatarUploadContent)
                    throws Exception
Saves avatar of users.

Parameters:
uiAvatarUploadContent -
Throws:
Exception
Since:
1.2.2


Copyright © 2013 eXo Platform SAS. All Rights Reserved.