org.exoplatform.social.plugin.doc
Class UIDocActivity

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.activity.BaseUIActivity
                  extended by org.exoplatform.social.plugin.doc.UIDocActivity

public class UIDocActivity
extends org.exoplatform.social.webui.activity.BaseUIActivity

Created by The eXo Platform SAS Author : Zun exo@exoplatform.com Jul 23, 2010


Nested Class Summary
static class UIDocActivity.DownloadDocumentActionListener
           
static class UIDocActivity.ViewDocumentActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.social.webui.activity.BaseUIActivity
org.exoplatform.social.webui.activity.BaseUIActivity.CommentStatus, org.exoplatform.social.webui.activity.BaseUIActivity.DeleteActivityActionListener, org.exoplatform.social.webui.activity.BaseUIActivity.DeleteCommentActionListener, org.exoplatform.social.webui.activity.BaseUIActivity.LikeActivityActionListener, org.exoplatform.social.webui.activity.BaseUIActivity.LoadLikesActionListener, org.exoplatform.social.webui.activity.BaseUIActivity.PostCommentActionListener, org.exoplatform.social.webui.activity.BaseUIActivity.SetCommentListStatusActionListener, org.exoplatform.social.webui.activity.BaseUIActivity.ToggleDisplayCommentFormActionListener
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static String ACTIVITY_TYPE
           
 String docLink
           
static String DOCLINK
           
 String docName
           
static String DOCNAME
           
 String docPath
           
static String DOCPATH
           
 String message
           
static String MESSAGE
           
 String repository
           
static String REPOSITORY
           
 String workspace
           
static String WORKSPACE
           
 
Fields inherited from class org.exoplatform.social.webui.activity.BaseUIActivity
LIKES_NUM_DEFAULT
 
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
UIDocActivity()
           
 
Method Summary
protected  javax.jcr.Node getDocNode()
           
protected  String getDocThumbnail()
           
protected  String getSize()
           
 String getSummary()
          Gets the summary.
 String getTitle()
           
protected  int getVersion()
           
 String getWebdavURL()
          Gets the webdav url.
protected  boolean isImageFile()
           
protected  boolean isPreviewable()
           
 
Methods inherited from class org.exoplatform.social.webui.activity.BaseUIActivity
commentListToggleable, event, getActivity, getActivityCommentsListAccess, getAllComments, getCommentListStatus, getCommentMaxCharactersAllowed, getCommentMinCharactersAllowed, getComments, getCurrentLoadIndex, getDisplayedIdentityLikes, getI18N, getIdentityLikes, getLoadCapacity, getOwnerIdentity, getPostedTimeInSpaceString, getPostedTimeString, getSpaceCreatorIdentity, isActivityCommentable, isActivityCommentAndLikable, isActivityDeletable, isAllCommentsHidden, isAllLoaded, isCommentDeletable, isCommentFormDisplayed, isCommentFormFocused, isLiked, isNoLongerExisting, isSpaceActivity, isSpaceStreamOwner, isUISpaceActivitiesDisplay, isUserActivity, processRender, refresh, saveComment, setActivity, setActivityCommentsListAccess, setAllCommentsHidden, setAllLoaded, setCommentFormDisplayed, setCommentFormFocused, setCommentListStatus, setCommentMaxCharactersAllowed, setCommentMinCharactersAllowed, setIdenityLikes, setLike, setLoadCapacity, setOwnerIdentity
 
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, 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
 

Field Detail

ACTIVITY_TYPE

public static final String ACTIVITY_TYPE
See Also:
Constant Field Values

DOCLINK

public static final String DOCLINK
See Also:
Constant Field Values

MESSAGE

public static final String MESSAGE
See Also:
Constant Field Values

REPOSITORY

public static final String REPOSITORY
See Also:
Constant Field Values

WORKSPACE

public static final String WORKSPACE
See Also:
Constant Field Values

DOCNAME

public static final String DOCNAME
See Also:
Constant Field Values

DOCPATH

public static final String DOCPATH
See Also:
Constant Field Values

docLink

public String docLink

message

public String message

docName

public String docName

docPath

public String docPath

repository

public String repository

workspace

public String workspace
Constructor Detail

UIDocActivity

public UIDocActivity()
Method Detail

isPreviewable

protected boolean isPreviewable()

isImageFile

protected boolean isImageFile()

getDocThumbnail

protected String getDocThumbnail()

getSize

protected String getSize()

getVersion

protected int getVersion()

getDocNode

protected javax.jcr.Node getDocNode()

getWebdavURL

public String getWebdavURL()
                    throws Exception
Gets the webdav url.

Parameters:
node - the node
Returns:
the webdav url
Throws:
Exception - the exception

getSummary

public String getSummary()
Gets the summary.

Parameters:
node - the node
Returns:
the summary of Node. Return empty string if catch an exception.

getTitle

public String getTitle()
                throws Exception
Throws:
Exception


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