public class FileUIActivity
extends org.exoplatform.social.webui.activity.BaseUIActivity
| Modifier and Type | Class and Description |
|---|---|
static class |
FileUIActivity.DownloadDocumentActionListener |
static class |
FileUIActivity.OpenFileActionListener |
static class |
FileUIActivity.ViewDocumentActionListener |
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| Modifier and Type | Field and Description |
|---|---|
static String |
ACTIVITY_STATUS |
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 |
| Constructor and Description |
|---|
FileUIActivity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEditDocument(javax.jcr.Node data)
Check file node can edit on activity stream
|
String |
getActivityEditLink() |
String |
getActivityStatus() |
String |
getActivityTitle() |
String |
getAuthor() |
protected String |
getContainerName() |
String |
getContentLink() |
String |
getContentName() |
javax.jcr.Node |
getContentNode() |
protected String |
getCssClassIconFile(String fileName,
String fileType) |
String |
getCurrentDocOpenUri() |
String |
getDateCreated() |
protected DateTimeFormatter |
getDateTimeFormatter()
Get a localized DateTimeFormatter
|
protected String |
getDocAuthor(javax.jcr.Node node) |
org.exoplatform.services.cms.drives.DriveData |
getDocDrive() |
String |
getDocFolderRelativePath() |
Map<String,String> |
getDocFolderRelativePathWithLinks() |
String |
getDocOpenUri(String nodePath) |
String |
getDocSummary() |
String |
getDocTitle() |
String |
getDocTypeName() |
String |
getDocumentSummary(Map<String,String> activityParams) |
protected String |
getDocUpdateDate(javax.jcr.Node node) |
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 |
getWebdavURL()
Gets the webdav url.
|
boolean |
isFileSupportPreview(javax.jcr.Node data)
Check if file node is supported by preview on activity stream
A preview from the activity stream is available for the following contents:
|
boolean |
isSymlink() |
void |
setActivityTitle(String activityTitle) |
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) |
commentListToggleable, event, focusToLatestComment, getActivity, getActivityCommentsListAccess, getActivityPermalink, getAllComments, getAllCommentSize, getCommenterIdentity, getCommentListStatus, getCommentMaxCharactersAllowed, getCommentMinCharactersAllowed, getCommentPermalink, getComments, getCurrentLoadIndex, getDisplayedIdentityLikes, getI18N, getIdentityLikes, getLoadCapacity, getOwnerIdentity, getPostedTimeInSpaceString, getPostedTimeString, getSpaceCreatorIdentity, getSpaceURL, isActivityCommentable, isActivityCommentAndLikable, isActivityDeletable, isAllCommentsHidden, isAllLoaded, isCommentDeletable, isCommentFormDisplayed, isCommentFormFocused, isDeletedSpace, isLiked, isNoLongerExisting, isNoLongerExisting, isSpaceActivity, isSpaceStreamOwner, isUISpaceActivitiesDisplay, isUserActivity, processRender, refresh, saveComment, setActivity, setActivityCommentsListAccess, setAllCommentsHidden, setAllLoaded, setCommentFormDisplayed, setCommentFormFocused, setCommentListStatus, setCommentMaxCharactersAllowed, setCommentMinCharactersAllowed, setIdenityLikes, setLike, setLoadCapacity, setOwnerIdentityaddUIComponentInput, 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, urladdChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypesbroadcast, buildModelObject, 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, urlpublic static final String ID
public static final String CONTENT_LINK
public static final String MESSAGE
public static final String ACTIVITY_STATUS
public static final String REPOSITORY
public static final String WORKSPACE
public static final String CONTENT_NAME
public static final String IMAGE_PATH
public static final String MIME_TYPE
public static final String STATE
public static final String AUTHOR
public static final String DATE_CREATED
public static final String LAST_MODIFIED
public static final String DOCUMENT_TYPE_LABEL
public static final String DOCUMENT_TITLE
public static final String DOCUMENT_VERSION
public static final String DOCUMENT_SUMMARY
public static final String IS_SYSTEM_COMMENT
public static final String SYSTEM_COMMENT
public String docPath
public String repository
public String workspace
public String getActivityTitle()
public void setActivityTitle(String activityTitle)
public String getContentLink()
public void setContentLink(String contentLink)
public String getMessage()
public void setMessage(String message)
public String getContentName()
public void setContentName(String contentName)
public String getImagePath()
public void setImagePath(String imagePath)
public String getMimeType()
public void setMimeType(String mimeType)
public String getNodeUUID()
public void setNodeUUID(String nodeUUID)
public String getState()
public void setState(String state)
public String getAuthor()
public void setAuthor(String author)
public String getDocTypeName()
public String getDocTitle()
public String getDocVersion()
public String getDocSummary()
public boolean isSymlink()
public String getDateCreated() throws ParseException
ParseExceptionpublic void setDateCreated(String dateCreated)
public String getLastModified() throws ParseException
ParseExceptionpublic void setLastModified(String lastModified)
public javax.jcr.Node getContentNode()
public void setContentNode(javax.jcr.Node contentNode)
public org.exoplatform.services.wcm.core.NodeLocation getNodeLocation()
public void setNodeLocation(org.exoplatform.services.wcm.core.NodeLocation nodeLocation)
public String getSummary(javax.jcr.Node node)
node - the nodeprotected String getSize(javax.jcr.Node node)
protected double getFileSize(javax.jcr.Node node)
protected int getImageWidth(javax.jcr.Node node)
protected int getImageHeight(javax.jcr.Node node)
protected String getDocUpdateDate(javax.jcr.Node node)
protected DateTimeFormatter getDateTimeFormatter()
protected String getDocAuthor(javax.jcr.Node node)
protected int getVersion(javax.jcr.Node node)
public String getActivityStatus()
public String getWebdavURL() throws Exception
Exception - the exceptionpublic org.exoplatform.services.cms.drives.DriveData getDocDrive()
public String getDocFolderRelativePath()
public String getCurrentDocOpenUri()
public String getEditLink()
public String getActivityEditLink()
protected String getContainerName()
public String getDownloadLink()
public boolean isFileSupportPreview(javax.jcr.Node data)
throws Exception
data - Content nodeExceptionpublic boolean canEditDocument(javax.jcr.Node data)
data - File nodeCopyright © 2003–2018 eXo Platform SAS. All rights reserved.