org.exoplatform.wcm.ext.component.activity
Class FileUIActivity

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.wcm.ext.component.activity.FileUIActivity

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

Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Mar 15, 2011


Nested Class Summary
static class FileUIActivity.DownloadDocumentActionListener
           
static class FileUIActivity.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
           
static String AUTHOR
           
static String CONTENT_LINK
           
static String CONTENT_NAME
           
static String DATE_CREATED
           
 String docPath
           
static String DOCUMENT_SUMMARY
           
static String DOCUMENT_TITLE
           
static String DOCUMENT_TYPE_LABEL
           
static String DOCUMENT_VERSION
           
static String ID
           
static String IMAGE_PATH
           
static String IS_SYSTEM_COMMENT
           
static String LAST_MODIFIED
           
static String MESSAGE
           
static String MIME_TYPE
           
 String repository
           
static String REPOSITORY
           
static String STATE
           
static String SYSTEM_COMMENT
           
 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
FileUIActivity()
           
 
Method Summary
 String getActivityEditLink()
           
 String getAuthor()
           
 String getContentLink()
           
 String getContentName()
           
 javax.jcr.Node getContentNode()
           
 String getDateCreated()
           
 String getDocSummary()
           
 String getDocTitle()
           
 String getDocTypeName()
           
 String getDocumentSummary(Map<String,String> activityParams)
           
 String getDocVersion()
           
 String getDownloadLink()
           
 String getEditLink()
           
protected  double getFileSize(javax.jcr.Node node)
           
protected  int getImageHeight(javax.jcr.Node node)
           
 String getImagePath()
           
protected  int getImageWidth(javax.jcr.Node node)
           
 String getLastModified()
           
 String getMessage()
           
 String getMimeType()
           
 org.exoplatform.services.wcm.core.NodeLocation getNodeLocation()
           
 String getNodeUUID()
           
protected  String getSize(javax.jcr.Node node)
           
 String getSpaceAvatarImageSource(String spaceIdentityId)
           
 String getState()
           
 String getSummary(javax.jcr.Node node)
          Gets the summary.
 String[] getSystemCommentBundle(Map<String,String> activityParams)
           
 String[] getSystemCommentTitle(Map<String,String> activityParams)
           
 String getTitle(javax.jcr.Node node)
           
 String getUserAvatarImageSource(String userId)
           
 String getUserFullName(String userId)
           
 String getUserProfileUri(String userId)
           
protected  int getVersion(javax.jcr.Node node)
           
 String getViewLink()
           
 String getWebdavURL()
          Gets the webdav url.
 void setAuthor(String author)
           
 void setContentLink(String contentLink)
           
 void setContentName(String contentName)
           
 void setContentNode(javax.jcr.Node contentNode)
           
 void setDateCreated(String dateCreated)
           
 void setImagePath(String imagePath)
           
 void setLastModified(String lastModified)
           
 void setMessage(String message)
           
 void setMimeType(String mimeType)
           
 void setNodeLocation(org.exoplatform.services.wcm.core.NodeLocation nodeLocation)
           
 void setNodeUUID(String nodeUUID)
           
 void setState(String state)
           
 void setUIActivityData(Map<String,String> activityParams)
           
 
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

ID

public static final String ID
See Also:
Constant Field Values

CONTENT_LINK

public static final String CONTENT_LINK
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

CONTENT_NAME

public static final String CONTENT_NAME
See Also:
Constant Field Values

IMAGE_PATH

public static final String IMAGE_PATH
See Also:
Constant Field Values

MIME_TYPE

public static final String MIME_TYPE
See Also:
Constant Field Values

STATE

public static final String STATE
See Also:
Constant Field Values

AUTHOR

public static final String AUTHOR
See Also:
Constant Field Values

DATE_CREATED

public static final String DATE_CREATED
See Also:
Constant Field Values

LAST_MODIFIED

public static final String LAST_MODIFIED
See Also:
Constant Field Values

DOCUMENT_TYPE_LABEL

public static final String DOCUMENT_TYPE_LABEL
See Also:
Constant Field Values

DOCUMENT_TITLE

public static final String DOCUMENT_TITLE
See Also:
Constant Field Values

DOCUMENT_VERSION

public static final String DOCUMENT_VERSION
See Also:
Constant Field Values

DOCUMENT_SUMMARY

public static final String DOCUMENT_SUMMARY
See Also:
Constant Field Values

IS_SYSTEM_COMMENT

public static final String IS_SYSTEM_COMMENT
See Also:
Constant Field Values

SYSTEM_COMMENT

public static final String SYSTEM_COMMENT
See Also:
Constant Field Values

docPath

public String docPath

repository

public String repository

workspace

public String workspace
Constructor Detail

FileUIActivity

public FileUIActivity()
               throws Exception
Throws:
Exception
Method Detail

getContentLink

public String getContentLink()

setContentLink

public void setContentLink(String contentLink)

getMessage

public String getMessage()

setMessage

public void setMessage(String message)

getContentName

public String getContentName()

setContentName

public void setContentName(String contentName)

getImagePath

public String getImagePath()

setImagePath

public void setImagePath(String imagePath)

getMimeType

public String getMimeType()

setMimeType

public void setMimeType(String mimeType)

getNodeUUID

public String getNodeUUID()

setNodeUUID

public void setNodeUUID(String nodeUUID)

getState

public String getState()

setState

public void setState(String state)

getAuthor

public String getAuthor()

setAuthor

public void setAuthor(String author)

getDocTypeName

public String getDocTypeName()

getDocTitle

public String getDocTitle()

getDocVersion

public String getDocVersion()

getDocSummary

public String getDocSummary()

getTitle

public String getTitle(javax.jcr.Node node)
                throws Exception
Throws:
Exception

getDateCreated

public String getDateCreated()
                      throws ParseException
Throws:
ParseException

setDateCreated

public void setDateCreated(String dateCreated)

getLastModified

public String getLastModified()
                       throws ParseException
Throws:
ParseException

setLastModified

public void setLastModified(String lastModified)

getContentNode

public javax.jcr.Node getContentNode()

setContentNode

public void setContentNode(javax.jcr.Node contentNode)

getNodeLocation

public org.exoplatform.services.wcm.core.NodeLocation getNodeLocation()

setNodeLocation

public void setNodeLocation(org.exoplatform.services.wcm.core.NodeLocation nodeLocation)

getSummary

public String getSummary(javax.jcr.Node node)
Gets the summary.

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

getDocumentSummary

public String getDocumentSummary(Map<String,String> activityParams)

getUserFullName

public String getUserFullName(String userId)

getSize

protected String getSize(javax.jcr.Node node)

getFileSize

protected double getFileSize(javax.jcr.Node node)

getImageWidth

protected int getImageWidth(javax.jcr.Node node)

getImageHeight

protected int getImageHeight(javax.jcr.Node node)

getVersion

protected int getVersion(javax.jcr.Node node)

getUserProfileUri

public String getUserProfileUri(String userId)

getUserAvatarImageSource

public String getUserAvatarImageSource(String userId)

getSpaceAvatarImageSource

public String getSpaceAvatarImageSource(String spaceIdentityId)

setUIActivityData

public void setUIActivityData(Map<String,String> activityParams)

getWebdavURL

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

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

getSystemCommentBundle

public String[] getSystemCommentBundle(Map<String,String> activityParams)

getSystemCommentTitle

public String[] getSystemCommentTitle(Map<String,String> activityParams)

getViewLink

public String getViewLink()

getEditLink

public String getEditLink()

getActivityEditLink

public String getActivityEditLink()

getDownloadLink

public String getDownloadLink()


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