Package de.xima.fc.gui.model.project
Class ProjectViewModel
- java.lang.Object
-
- de.xima.fc.gui.model.project.AEntityViewModel<Projekt>
-
- de.xima.fc.gui.model.project.ProjectViewModel
-
- All Implemented Interfaces:
IEntityViewModel<Projekt>
,Serializable
,Comparable<ProjectViewModel>
public class ProjectViewModel extends AEntityViewModel<Projekt> implements Comparable<ProjectViewModel>
Model for displaying only the necessary information of a project- Author:
- XIMA MEDIA GmbH, Dresden - Norman Lorenz - 07.07.2020
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.model.project.AEntityViewModel
id
-
-
Constructor Summary
Constructors Constructor Description ProjectViewModel(Long id, String title, String description, String groupName, boolean active, String scope, Long activeVersionId, Long activeWorkflowVersionId, Date lastChangeDate, Boolean workflowVersionInvalid, Date availableFrom, Date availableUntil)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compareTo(ProjectViewModel o)
Long
getActiveVersionId()
Long
getActiveWorkflowVersionId()
URL
getCustomProjectMenuUrl()
String
getDescription()
String
getDesignerUri()
String
getGroupName()
String
getPreviewUri()
String
getPreviewUri(Projekt project, javax.servlet.http.HttpServletRequest request)
org.primefaces.model.menu.MenuModel
getProjectLinkMenu()
String
getProvideUri()
String
getScope()
List<String>
getTags()
String
getThumbnailUri()
String
getTitle()
int
getTotalRecordCount()
int
getUnreadRecordCount()
String
getWorkflowDesignerUri()
boolean
isActive()
boolean
isAvailable()
boolean
isCustomScope()
boolean
isEditingAllowed()
boolean
isOnline()
boolean
isProjectAvailable(Date availableFrom, Date availableUntil)
boolean
isShowGroupHeader()
boolean
isUsesNewWorkflow()
boolean
isWorkflowVersionInvalid()
void
setActive(boolean active)
void
setAvailable(boolean available)
void
setCustomProjectMenuUrl(URL customProjectMenuUrl)
void
setDescription(String description)
void
setEditingAllowed(boolean editingAllowed)
void
setGroupName(String groupName)
void
setShowGroupHeader(boolean showGroupHeader)
void
setTags(List<String> tags)
void
setTitle(String title)
String
toString()
void
update(IEntityContext ec, IUser user, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
updateRecordData(IEntityContext ec)
void
updateUris(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Deprecated.-
Methods inherited from class de.xima.fc.gui.model.project.AEntityViewModel
equals, getId, hashCode
-
-
-
-
Method Detail
-
isOnline
public boolean isOnline()
-
isWorkflowVersionInvalid
public boolean isWorkflowVersionInvalid()
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getGroupName
public String getGroupName()
-
setGroupName
public void setGroupName(String groupName)
-
isActive
public boolean isActive()
-
setActive
public void setActive(boolean active)
-
getScope
public String getScope()
-
isCustomScope
public boolean isCustomScope()
-
getActiveVersionId
public Long getActiveVersionId()
-
getActiveWorkflowVersionId
public Long getActiveWorkflowVersionId()
-
isEditingAllowed
public boolean isEditingAllowed()
-
setEditingAllowed
public void setEditingAllowed(boolean editingAllowed)
-
isUsesNewWorkflow
public boolean isUsesNewWorkflow()
-
getUnreadRecordCount
public int getUnreadRecordCount()
-
getTotalRecordCount
public int getTotalRecordCount()
-
getCustomProjectMenuUrl
public URL getCustomProjectMenuUrl()
-
setCustomProjectMenuUrl
public void setCustomProjectMenuUrl(URL customProjectMenuUrl)
-
getProvideUri
public String getProvideUri()
-
getPreviewUri
public String getPreviewUri()
-
getDesignerUri
public String getDesignerUri()
-
getThumbnailUri
public String getThumbnailUri()
-
getWorkflowDesignerUri
public String getWorkflowDesignerUri()
-
getProjectLinkMenu
public org.primefaces.model.menu.MenuModel getProjectLinkMenu()
-
isShowGroupHeader
public boolean isShowGroupHeader()
-
setShowGroupHeader
public void setShowGroupHeader(boolean showGroupHeader)
-
update
public void update(IEntityContext ec, IUser user, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
updateUris
@Deprecated public void updateUris(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Deprecated.
-
updateRecordData
public void updateRecordData(IEntityContext ec)
-
compareTo
public int compareTo(ProjectViewModel o)
- Specified by:
compareTo
in interfaceComparable<ProjectViewModel>
-
toString
public String toString()
- Overrides:
toString
in classAEntityViewModel<Projekt>
-
getPreviewUri
public String getPreviewUri(Projekt project, javax.servlet.http.HttpServletRequest request)
-
isAvailable
public boolean isAvailable()
-
setAvailable
public void setAvailable(boolean available)
-
-