@Test public void testActivityMessageToDisplay() throws Exception { String activityTitle = "<a href=\"test.odt\">test.odt</a>"; FileUIActivityBuilder activityBuilder = new FileUIActivityBuilder(); FileUIActivity fileUIActivity = new FileUIActivity(); ExoSocialActivity activity = new ExoSocialActivityImpl(); activity.setTitle(activityTitle); Map<String, String> activityParameters = new HashMap<>(); activityParameters.put(FileUIActivity.MESSAGE, "message test"); activity.setTemplateParams(activityParameters); activityBuilder.extendUIActivity(fileUIActivity, activity); assertTrue(StringUtils.isBlank(fileUIActivity.getMessage())); activityParameters.put(FileUIActivity.ACTIVITY_STATUS, activityTitle); activityBuilder.extendUIActivity(fileUIActivity, activity); assertEquals(activityTitle, fileUIActivity.getMessage()); }
public String getMessage() { return message; }
FileUIActivity extends BaseUIActivity { public String getMessage() { return message; } }
FileUIActivity extends BaseUIActivity { public String getMessage() { return message; } FileUIActivity(); }
FileUIActivity extends BaseUIActivity { public String getMessage() { return message; } FileUIActivity(); String getActivityTitle(); void setActivityTitle(String activityTitle); String getContentLink(int i); void setContentLink(int i,String contentLink); String getMessage(); void setMessage(String message); String getContentName(int i); String getContentName(Node contentNode, String activityContentName); void setContentName(String contentName, int i); String getImagePath(int i); void setImagePath(String imagePath, int i); String getMimeType(int i); void setMimeType(String mimeType, int i); String getNodeUUID(int i); void setNodeUUID(String nodeUUID, int i); String getState(int i); void setState(String state, int i); String getAuthor(int i); void setAuthor(String author, int i); String getDocTypeName(int i); String getDocTitle(int i); String getDocVersion(int i); String getDocSummary(int i); boolean isSymlink(int i); String getTitle(Node node); String getDateCreated(int i); void setDateCreated(String dateCreated, int i); String getLastModified(int i); void setLastModified(String lastModified, int i); Node getContentNode(int i); void setContentNode(Node contentNode, int i); NodeLocation getNodeLocation(int i); void setNodeLocation(NodeLocation nodeLocation, int i); String getSummary(Node node); String getDocumentSummary(Map<String, String> activityParams); String getUserFullName(String userId); String getUserProfileUri(String userId); String getUserAvatarImageSource(String userId); String getSpaceAvatarImageSource(String spaceIdentityId); String getActivityStatus(); int getFilesCount(); void setUIActivityData(Map<String, String> activityParams); String getWebdavURL(int i); String[] getSystemCommentBundle(Map<String, String> activityParams); String[] getSystemCommentTitle(Map<String, String> activityParams); DriveData getDocDrive(int i); String getDefaultIconClass(int i); String getDocFileBreadCrumb(int i); String getDocFilePath(int i); LinkedHashMap<String, String> getDocFolderRelativePathWithLinks(int i); String getDocFolderRelativePath(int i); String getCurrentDocOpenUri(int i); String getDocOpenUri(String nodePath, int i); String getEditLink(int i); String getActivityEditLink(int i); String getDownloadAllLink(); String getDownloadLink(int i); boolean isFileSupportPreview(Node data); boolean canEditDocument(Node data); @Override void end(); String getLinkDescription(); void setLinkDescription(String linkDescription); String getLinkImage(); void setLinkImage(String linkImage); String getLinkSource(); void setLinkSource(String linkSource); String getLinkTitle(); void setLinkTitle(String linkTitle); String getEmbedHtml(); void setEmbedHtml(String embedHtml); CloudDrive getCloudDrive(Node node); boolean isCloudFile(CloudDrive cloudDrive); CloudFile getCloudFile(Node node); String getCloudFileIcon(CloudDrive cloudDrive); }
FileUIActivity extends BaseUIActivity { public String getMessage() { return message; } FileUIActivity(); String getActivityTitle(); void setActivityTitle(String activityTitle); String getContentLink(int i); void setContentLink(int i,String contentLink); String getMessage(); void setMessage(String message); String getContentName(int i); String getContentName(Node contentNode, String activityContentName); void setContentName(String contentName, int i); String getImagePath(int i); void setImagePath(String imagePath, int i); String getMimeType(int i); void setMimeType(String mimeType, int i); String getNodeUUID(int i); void setNodeUUID(String nodeUUID, int i); String getState(int i); void setState(String state, int i); String getAuthor(int i); void setAuthor(String author, int i); String getDocTypeName(int i); String getDocTitle(int i); String getDocVersion(int i); String getDocSummary(int i); boolean isSymlink(int i); String getTitle(Node node); String getDateCreated(int i); void setDateCreated(String dateCreated, int i); String getLastModified(int i); void setLastModified(String lastModified, int i); Node getContentNode(int i); void setContentNode(Node contentNode, int i); NodeLocation getNodeLocation(int i); void setNodeLocation(NodeLocation nodeLocation, int i); String getSummary(Node node); String getDocumentSummary(Map<String, String> activityParams); String getUserFullName(String userId); String getUserProfileUri(String userId); String getUserAvatarImageSource(String userId); String getSpaceAvatarImageSource(String spaceIdentityId); String getActivityStatus(); int getFilesCount(); void setUIActivityData(Map<String, String> activityParams); String getWebdavURL(int i); String[] getSystemCommentBundle(Map<String, String> activityParams); String[] getSystemCommentTitle(Map<String, String> activityParams); DriveData getDocDrive(int i); String getDefaultIconClass(int i); String getDocFileBreadCrumb(int i); String getDocFilePath(int i); LinkedHashMap<String, String> getDocFolderRelativePathWithLinks(int i); String getDocFolderRelativePath(int i); String getCurrentDocOpenUri(int i); String getDocOpenUri(String nodePath, int i); String getEditLink(int i); String getActivityEditLink(int i); String getDownloadAllLink(); String getDownloadLink(int i); boolean isFileSupportPreview(Node data); boolean canEditDocument(Node data); @Override void end(); String getLinkDescription(); void setLinkDescription(String linkDescription); String getLinkImage(); void setLinkImage(String linkImage); String getLinkSource(); void setLinkSource(String linkSource); String getLinkTitle(); void setLinkTitle(String linkTitle); String getEmbedHtml(); void setEmbedHtml(String embedHtml); CloudDrive getCloudDrive(Node node); boolean isCloudFile(CloudDrive cloudDrive); CloudFile getCloudFile(Node node); String getCloudFileIcon(CloudDrive cloudDrive); static final String[] EMPTY_ARRAY; static final String SEPARATOR_REGEX; static final String ID; static final String CONTENT_LINK; static final String MESSAGE; static final String ACTIVITY_STATUS; static final String IMAGE_PATH; static final String MIME_TYPE; static final String STATE; static final String AUTHOR; static final String DATE_CREATED; static final String LAST_MODIFIED; static final String DOCUMENT_TYPE_LABEL; static final String DOCUMENT_TITLE; static final String DOCUMENT_VERSION; static final String DOCUMENT_SUMMARY; static final String IS_SYSTEM_COMMENT; static final String SYSTEM_COMMENT; static final String ONE_DRIVE_PROVIDER_ID; static final String GOOGLE_DRIVE_PROVIDER_ID; static final String ONE_DRIVE_ICON; static final String GOOGLE_DRIVE_ICON; public int filesCount; }