Package com.openkm.bean
Class FormProperties
- java.lang.Object
-
- com.openkm.bean.FormProperties
-
public abstract class FormProperties extends Object
Abstract form properties- Author:
- jabad
-
-
Constructor Summary
Constructors Constructor Description FormProperties(Map<String,Object> parameterMap)Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddProperty(String key, Object value)Add property.Map<String,Object>getCustomPropertiesMap()Get custom properties map.longgetId()Get task id.StringgetName()Get name.ObjectgetObjectProperty(String key)Get value property.StringgetProcessor()Get processor type.StringgetScheduledExpression()Get scheduled expression.StringgetStringProperty(String key)Get String value of property.booleanisRunning()Get if the task is running.booleanisScheduled()Get is the task is scheduled in the system.booleanisTaskTypeScheduled()Get if the expression is scheduled.voidsetId(long id)Set task id.voidsetRunning(boolean running)Set running state.voidsetScheduled(boolean scheduled)Set scheduled state.
-
-
-
Method Detail
-
getId
public long getId()
Get task id.- Returns:
- task id
-
getName
public String getName()
Get name.- Returns:
- task name
-
setId
public void setId(long id)
Set task id.- Parameters:
id- task id
-
getCustomPropertiesMap
public Map<String,Object> getCustomPropertiesMap()
Get custom properties map.- Returns:
- custom properties map
-
addProperty
protected void addProperty(String key, Object value)
Add property.- Parameters:
key- property keyvalue- property value
-
getStringProperty
public String getStringProperty(String key)
Get String value of property.- Parameters:
key- property key- Returns:
- String property value
-
getObjectProperty
public Object getObjectProperty(String key)
Get value property.- Parameters:
key- property key- Returns:
- property value
-
getScheduledExpression
public String getScheduledExpression()
Get scheduled expression.- Returns:
- scheduled expression
-
isTaskTypeScheduled
public boolean isTaskTypeScheduled()
Get if the expression is scheduled.- Returns:
- true if the expression is scheduled
-
getProcessor
public String getProcessor()
Get processor type.- Returns:
- processor type
-
isRunning
public boolean isRunning()
Get if the task is running.- Returns:
- true if it's running
-
isScheduled
public boolean isScheduled()
Get is the task is scheduled in the system.- Returns:
- true if the task is scheduled
-
setScheduled
public void setScheduled(boolean scheduled)
Set scheduled state.- Parameters:
scheduled- scheduled
-
setRunning
public void setRunning(boolean running)
Set running state.- Parameters:
running- running
-
-