Class LightweightTaskData
java.lang.Object
ru.bitel.common.model.Id
ru.bitel.common.model.IdTitle
ru.bitel.bgbilling.kernel.task.common.bean.LightweightTaskData
- All Implemented Interfaces:
Serializable
,GuiTitlable
,Idable
,ListItem
- Direct Known Subclasses:
TaskData
Базовый бин для задачи планировщика. Используется для отображения/редактирования
задачи в клиенте биллинга, т.к. нет необходимости грузить с сервера большой объект TaskData -
это и лишняя память и передаваемый траффик по сети.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected int
protected int
protected List<DependentTask>
protected int
protected boolean
protected long
protected int
protected String
protected int
protected String
protected Period
protected int
protected TaskStatus
-
Constructor Summary
ConstructorDescriptionLightweightTaskData
(int month, int day, int dayOfWeek, int hour, long min) LightweightTaskData
(int id, String title) -
Method Summary
Modifier and TypeMethodDescriptionclone()
int
getDay()
int
int
getHour()
long
getMin()
int
int
getMonth()
int
Получение статуса задачи.boolean
isPlugin()
void
setClassName
(String className) void
setComment
(String comment) void
setDay
(int day) void
setDayOfWeek
(int dayOfWeek) void
setDependentTasks
(List<DependentTask> dependentTasks) void
setHour
(int hour) void
setMin
(long min) void
setModuleId
(int moduleId) void
setModuleName
(String moduleName) void
setMonth
(int month) void
void
void
setPlugin
(boolean isPlugin) void
setPriority
(int priority) void
setTaskStatus
(TaskStatus taskStatus) Установка статуса задачи.Methods inherited from class ru.bitel.common.model.IdTitle
getGuiTitle, getTitle, setTitle, toIdTitle, toString
Methods inherited from class ru.bitel.common.model.Id
equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setId
-
Field Details
-
month
protected int month -
day
protected int day -
hour
protected int hour -
dayOfWeek
protected int dayOfWeek -
min
protected long min -
className
-
isPlugin
protected boolean isPlugin -
moduleId
protected int moduleId -
moduleName
-
priority
protected int priority -
taskStatus
-
params
-
period
-
comment
-
dependentTasks
-
-
Constructor Details
-
LightweightTaskData
public LightweightTaskData() -
LightweightTaskData
-
LightweightTaskData
public LightweightTaskData(int month, int day, int dayOfWeek, int hour, long min)
-
-
Method Details
-
getMonth
public int getMonth() -
setMonth
public void setMonth(int month) -
getDay
public int getDay() -
setDay
public void setDay(int day) -
getHour
public int getHour() -
setHour
public void setHour(int hour) -
getDayOfWeek
public int getDayOfWeek() -
setDayOfWeek
public void setDayOfWeek(int dayOfWeek) -
getMin
public long getMin() -
setMin
public void setMin(long min) -
getClassName
-
setClassName
-
isPlugin
public boolean isPlugin() -
setPlugin
public void setPlugin(boolean isPlugin) -
getModuleId
public int getModuleId() -
setModuleId
public void setModuleId(int moduleId) -
getModuleName
-
setModuleName
-
getPriority
public int getPriority() -
setPriority
public void setPriority(int priority) -
getTaskStatus
Получение статуса задачи. Возможные значения:
TaskStatus.ENABLE
- задача включенаTaskStatus.DISABLE
- задача выключена
- Returns:
- the taskStatus
-
setTaskStatus
Установка статуса задачи. Возможные значения:
TaskStatus.ENABLE
- задача включенаTaskStatus.DISABLE
- задача выключена
- Parameters:
taskStatus
- the taskStatus to set
-
getParams
-
setParams
-
getPeriod
-
setPeriod
-
getComment
-
setComment
-
getDependentTasks
-
setDependentTasks
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-