Package org.opencms.ui.apps.scheduler
Class CmsJobBean
- java.lang.Object
-
- org.opencms.ui.apps.scheduler.CmsJobBean
-
public class CmsJobBean extends java.lang.Object
Don't use CmsScheduledJobInfo directly, so we don't need to change it if we want to change how the values are rendered, and having only the fields we want displayed in the table makes it easier to understand.
-
-
Field Summary
Fields Modifier and Type Field Description protected CmsScheduledJobInfo
m_jobInfo
The wrapped scheduled job info.
-
Constructor Summary
Constructors Constructor Description CmsJobBean(CmsScheduledJobInfo info)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getClassName()
Gets the class name for the job.com.vaadin.server.Resource
getIcon()
Returns the job icon resource.CmsScheduledJobInfo
getJob()
Gets the scheduled job.java.util.Date
getLastExecution()
Gets the last execution date.java.lang.String
getName()
Gets the job name.java.util.Date
getNextExecution()
Gets the next execution date.int
hashCode()
-
-
-
Field Detail
-
m_jobInfo
protected CmsScheduledJobInfo m_jobInfo
The wrapped scheduled job info.
-
-
Constructor Detail
-
CmsJobBean
public CmsJobBean(CmsScheduledJobInfo info)
Creates a new instance.- Parameters:
info
- the scheduled job info to wrap
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
getClassName
public java.lang.String getClassName()
Gets the class name for the job.- Returns:
- the class name
-
getIcon
public com.vaadin.server.Resource getIcon()
Returns the job icon resource.- Returns:
- the job icon resource
-
getJob
public CmsScheduledJobInfo getJob()
Gets the scheduled job.- Returns:
- the scheduled job
-
getLastExecution
public java.util.Date getLastExecution()
Gets the last execution date.- Returns:
- the last execution date
-
getName
public java.lang.String getName()
Gets the job name.- Returns:
- the job name
-
getNextExecution
public java.util.Date getNextExecution()
Gets the next execution date.- Returns:
- the next execution date
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
-