org.exoplatform.social.plugin.doc
Class UIDocActivityComposer

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.social.webui.composer.UIActivityComposer
              extended by org.exoplatform.social.plugin.doc.UIDocActivityComposer
All Implemented Interfaces:
org.exoplatform.ecm.webui.selector.UISelectable

public class UIDocActivityComposer
extends org.exoplatform.social.webui.composer.UIActivityComposer
implements org.exoplatform.ecm.webui.selector.UISelectable

The templateParamsProcessor to process an activity. Replace template key by template value in activity's title.

Since:
Apr 19, 2010
Author:
Zun

Nested Class Summary
static class UIDocActivityComposer.RemoveDocumentActionListener
           
static class UIDocActivityComposer.SelectDocumentActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.social.webui.composer.UIActivityComposer
org.exoplatform.social.webui.composer.UIActivityComposer.ActivateActionListener, org.exoplatform.social.webui.composer.UIActivityComposer.CloseActionListener, org.exoplatform.social.webui.composer.UIActivityComposer.SubmitContentActionListener
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static java.lang.String REPOSITORY
           
static java.lang.String WORKSPACE
           
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIDocActivityComposer()
          constructor
 
Method Summary
 java.lang.String buildDocumentPath(java.lang.String rawPath)
           
 void doSelect(java.lang.String selectField, java.lang.Object value)
           
 java.lang.String getCurrentUser()
           
 java.lang.String getDocumentName()
           
 boolean isDocumentReady()
           
protected  void onActivate(org.exoplatform.webui.event.Event<org.exoplatform.social.webui.composer.UIActivityComposer> event)
           
protected  void onClose(org.exoplatform.webui.event.Event<org.exoplatform.social.webui.composer.UIActivityComposer> event)
           
 void onPostActivity(org.exoplatform.social.webui.composer.UIComposer.PostContext postContext, org.exoplatform.webui.core.UIComponent source, org.exoplatform.webui.application.WebuiRequestContext requestContext, java.lang.String postedMessage)
           
protected  void onSubmit(org.exoplatform.webui.event.Event<org.exoplatform.social.webui.composer.UIActivityComposer> event)
           
 void setCurrentUser(java.lang.String currentUser)
           
 
Methods inherited from class org.exoplatform.social.webui.composer.UIActivityComposer
getActivityComposerManager, getActivityDisplay, isDisplayed, isReadyForPostingActivity, postActivity, setActivityComposerManager, setActivityDisplay, setDisplayed, setReadyForPostingActivity
 
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, getName, getParent, getTemplate, 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
 

Field Detail

REPOSITORY

public static final java.lang.String REPOSITORY
See Also:
Constant Field Values

WORKSPACE

public static final java.lang.String WORKSPACE
See Also:
Constant Field Values
Constructor Detail

UIDocActivityComposer

public UIDocActivityComposer()
constructor

Method Detail

isDocumentReady

public boolean isDocumentReady()

getDocumentName

public java.lang.String getDocumentName()

getCurrentUser

public java.lang.String getCurrentUser()
Returns:
the currentUser

setCurrentUser

public void setCurrentUser(java.lang.String currentUser)
Parameters:
currentUser - the currentUser to set

onActivate

protected void onActivate(org.exoplatform.webui.event.Event<org.exoplatform.social.webui.composer.UIActivityComposer> event)
Specified by:
onActivate in class org.exoplatform.social.webui.composer.UIActivityComposer

onClose

protected void onClose(org.exoplatform.webui.event.Event<org.exoplatform.social.webui.composer.UIActivityComposer> event)
Specified by:
onClose in class org.exoplatform.social.webui.composer.UIActivityComposer

onSubmit

protected void onSubmit(org.exoplatform.webui.event.Event<org.exoplatform.social.webui.composer.UIActivityComposer> event)
Specified by:
onSubmit in class org.exoplatform.social.webui.composer.UIActivityComposer

onPostActivity

public void onPostActivity(org.exoplatform.social.webui.composer.UIComposer.PostContext postContext,
                           org.exoplatform.webui.core.UIComponent source,
                           org.exoplatform.webui.application.WebuiRequestContext requestContext,
                           java.lang.String postedMessage)
                    throws java.lang.Exception
Specified by:
onPostActivity in class org.exoplatform.social.webui.composer.UIActivityComposer
Throws:
java.lang.Exception

doSelect

public void doSelect(java.lang.String selectField,
                     java.lang.Object value)
              throws java.lang.Exception
Specified by:
doSelect in interface org.exoplatform.ecm.webui.selector.UISelectable
Throws:
java.lang.Exception

buildDocumentPath

public java.lang.String buildDocumentPath(java.lang.String rawPath)


Copyright © 2012 eXo Platform SAS. All Rights Reserved.