org.exoplatform.wcm.ext.component.activity
Class FileUIActivity
java.lang.Object
org.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.form.UIForm
org.exoplatform.social.webui.activity.BaseUIActivity
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 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 |
| 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 |
| 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 |
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
FileUIActivity
public FileUIActivity()
throws Exception
- Throws:
Exception
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–2014 eXo Platform SAS. All rights reserved.