public class GWTMessagesBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
IMAGE_SERVICE_URL |
protected org.apache.log4j.Logger |
logger |
| Constructor and Description |
|---|
GWTMessagesBuilder()
Instantiates a new GWT messages builder.
|
| Modifier and Type | Method and Description |
|---|---|
protected FileModel |
buildGXTFileModelItem(org.gcube.common.homelibrary.home.workspace.WorkspaceItem item,
FileModel parentFolderModel)
Builds the gxt file model item.
|
List<InfoContactModel> |
buildGXTListContactsModel(List<org.gcube.common.homelibrary.home.User> listUsers)
Builds the gxt list contacts model.
|
protected List<FileModel> |
buildGXTListFileModelItemForAttachs(List<org.gcube.common.homelibrary.home.workspace.WorkspaceItem> listWorspaceItems)
Builds the gxt list file model item for attachs.
|
List<MessageModel> |
buildGXTListMessageModelForGrid(List<org.gcube.common.homelibrary.home.workspace.sharing.WorkspaceMessage> listMessages,
String typeMessages,
boolean isPortalMode)
Builds the gxt list message model for grid.
|
MessageModel |
buildGXTMessageModel(org.gcube.common.homelibrary.home.workspace.sharing.WorkspaceMessage mess,
List<org.gcube.common.homelibrary.home.workspace.WorkspaceItem> listWorkspaceItems,
String messageType,
boolean isPortalMode)
Builds the gxt message model.
|
protected Map<String,String> |
getFullNameListFromMessage(org.gcube.common.homelibrary.home.workspace.sharing.WorkspaceMessage mess,
boolean isPortalMode)
Gets the full name list from message.
|
protected FileModel |
setFolderItemType(FileModel fileModel,
org.gcube.common.homelibrary.home.workspace.folder.FolderItem worspaceFolderItem)
Sets the folder item type.
|
protected FileModel |
setFolderItemTypeForSearch(FileModel fileModel,
org.gcube.common.homelibrary.home.workspace.search.SearchFolderItem searchFolderItem)
Sets the folder item type for search.
|
protected Date |
toDate(Calendar calendar)
To date.
|
protected Date |
toDateFormat(Calendar calendar)
To date format.
|
protected String |
toDateFormatToString(Calendar calendar)
To date format to string.
|
protected static final String IMAGE_SERVICE_URL
protected org.apache.log4j.Logger logger
public GWTMessagesBuilder()
protected Date toDate(Calendar calendar)
calendar - the calendarprotected String toDateFormatToString(Calendar calendar)
calendar - the calendarprotected Date toDateFormat(Calendar calendar)
calendar - the calendarprotected FileModel setFolderItemType(FileModel fileModel, org.gcube.common.homelibrary.home.workspace.folder.FolderItem worspaceFolderItem)
fileModel - the file modelworspaceFolderItem - the worspace folder itemprotected List<FileModel> buildGXTListFileModelItemForAttachs(List<org.gcube.common.homelibrary.home.workspace.WorkspaceItem> listWorspaceItems) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
listWorspaceItems - the list worspace itemsorg.gcube.common.homelibrary.home.exceptions.InternalErrorException - the internal error exceptionprotected FileModel buildGXTFileModelItem(org.gcube.common.homelibrary.home.workspace.WorkspaceItem item, FileModel parentFolderModel) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
item - the itemparentFolderModel - the parent folder modelorg.gcube.common.homelibrary.home.exceptions.InternalErrorException - the internal error exceptionprotected FileModel setFolderItemTypeForSearch(FileModel fileModel, org.gcube.common.homelibrary.home.workspace.search.SearchFolderItem searchFolderItem)
fileModel - the file modelsearchFolderItem - the search folder itempublic List<InfoContactModel> buildGXTListContactsModel(List<org.gcube.common.homelibrary.home.User> listUsers) throws Exception
listUsers - the list usersException - the exceptionpublic List<MessageModel> buildGXTListMessageModelForGrid(List<org.gcube.common.homelibrary.home.workspace.sharing.WorkspaceMessage> listMessages, String typeMessages, boolean isPortalMode) throws Exception
listMessages - the list messagestypeMessages - the type messagesisPortalMode - the is portal modeException - the exceptionpublic MessageModel buildGXTMessageModel(org.gcube.common.homelibrary.home.workspace.sharing.WorkspaceMessage mess, List<org.gcube.common.homelibrary.home.workspace.WorkspaceItem> listWorkspaceItems, String messageType, boolean isPortalMode) throws Exception
mess - the messlistWorkspaceItems - the list workspace itemsmessageType - the message typeisPortalMode - the is portal modeException - the exceptionprotected Map<String,String> getFullNameListFromMessage(org.gcube.common.homelibrary.home.workspace.sharing.WorkspaceMessage mess, boolean isPortalMode)
mess - the messisPortalMode - the is portal modeCopyright © 2017. All Rights Reserved.