public class Activity extends com.ibm.json.java.JSONObject implements java.io.Serializable, IMXActivity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCESSPANEL |
static java.lang.String |
COUNT |
static java.lang.String |
EXPANDED |
static java.lang.String |
IN_LOOP |
static java.lang.String |
LEVEL |
static java.lang.String |
OFFSET_RECORD |
static java.lang.String |
ORIGINAL_WONUM |
static java.lang.String |
PARENT_WONUM |
static java.lang.String |
SCENARIO |
static java.lang.String |
STARTTIME_DIFF |
static java.lang.String |
ZONE |
Constructor and Description |
---|
Activity() |
Activity(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
addLeftIconClass(java.lang.String className)
Adds a Left Icon indicator to a gantt bar
|
void |
addLeftIconClass(java.lang.String className,
java.lang.String tip) |
void |
addLeftIconClick(java.lang.String eventName)
Adds a left icon click event handler to the icon.
|
void |
addRightIconClass(java.lang.String className)
Adds a right icon indicator to a gantt bar.
|
void |
addRightIconClass(java.lang.String className,
java.lang.String tip) |
void |
addRightIconClick(java.lang.String eventName)
Adds a right icon click event handler to the icon.
|
Activity |
addRow() |
Activity |
addRow(Activity row) |
boolean |
equals(java.lang.Object o) |
java.util.List<Activity> |
getAncestors() |
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> |
getApplinkMap() |
boolean |
getBoolean(java.lang.String prop)
Get Boolean will return true, if the data is a number and != 0, or if the data is a String and starts with
Y or T, of if the data is actually a boolean it will return the boolean value
|
java.util.Date |
getDate(java.lang.String prop) |
double |
getDouble(java.lang.String prop) |
java.lang.Double |
getDuration() |
java.util.Date |
getEarlyFinish() |
java.util.Date |
getEarlyStart() |
java.util.Date |
getEndTime() |
java.lang.Double |
getFloat() |
float |
getFloat(java.lang.String prop) |
java.util.List<Constraint> |
getFromConstraints() |
java.lang.String |
getId() |
java.lang.String |
getID() |
int |
getInt(java.lang.String prop) |
java.util.Date |
getLateFinish() |
java.util.Date |
getLateStart() |
long |
getLong(java.lang.String prop) |
java.util.Iterator |
getModifiedProperties() |
java.lang.String |
getName() |
java.lang.Long |
getObjectID() |
java.lang.String |
getObjectName() |
Activity |
getParent() |
java.lang.Object |
getProperty(java.lang.String key) |
java.util.Collection<java.lang.String> |
getPropertyNames() |
java.util.Date |
getStartTime() |
java.lang.String |
getString(java.lang.String prop) |
java.lang.String |
getString(java.lang.String prop,
java.lang.String defValue) |
DateRange |
getTimeInterval() |
java.util.List<Constraint> |
getToConstraints() |
java.lang.Long |
getWorkOrderId() |
int |
hashCode() |
java.lang.Boolean |
isCritical() |
boolean |
isInitialized() |
boolean |
isModified() |
com.ibm.json.java.JSONArray |
Items() |
void |
markEndTimeModified()
Mark the activity when end time is modified
|
void |
markStartTimeModified()
Mark the activity when start time is modified
|
void |
setAncestors(java.util.List<Activity> ancestors) |
void |
setApplinkMap(java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> applinkMap) |
void |
setCritical(java.lang.Boolean critical) |
void |
setDataGroupName(java.lang.String dataGroupName) |
void |
setDuration(java.lang.Double duration) |
void |
setEarlyFinish(java.util.Date earlyFinish) |
void |
setEarlyStart(java.util.Date earlyStart) |
void |
setEndTime(java.util.Date endTime) |
void |
setFloat(java.lang.Double floatValue) |
void |
setID(java.lang.String id) |
void |
setInitialized(java.lang.Boolean initialized) |
void |
setLateFinish(java.util.Date lateFinish) |
void |
setLateStart(java.util.Date lateStart) |
void |
setModified(boolean modified) |
void |
setName(java.lang.String name) |
void |
setObjectID(java.lang.Long objectID) |
void |
setObjectName(java.lang.String objectName) |
void |
setParent(Activity act) |
void |
setParentID(java.lang.String parentId) |
java.lang.Object |
setProperty(java.lang.String prop,
java.lang.Object value) |
java.lang.Object |
setProperty(java.lang.String prop,
java.lang.Object value,
boolean ignoreChangeTracking) |
void |
setReadOnly(java.lang.Boolean readOnly) |
void |
setRefObjectName(java.lang.String refObjectName) |
void |
setStartTime(java.util.Date startTime) |
void |
setTimeInterval(java.util.Date activityStart,
java.util.Date activityEnd)
Set time interval for an activity
|
void |
setUncommitted(boolean uncommitted) |
void |
setWorkOrderId(java.lang.Long workOrderId) |
boolean |
showWorklogIcon() |
isValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toString
public static final java.lang.String PARENT_WONUM
public static final java.lang.String ORIGINAL_WONUM
public static final java.lang.String STARTTIME_DIFF
public static final java.lang.String COUNT
public static final java.lang.String EXPANDED
public static final java.lang.String OFFSET_RECORD
public static final java.lang.String LEVEL
public static final java.lang.String SCENARIO
public static final java.lang.String IN_LOOP
public static final java.lang.String ACCESSPANEL
public static final java.lang.String ZONE
public void setParent(Activity act)
public Activity getParent()
public void setWorkOrderId(java.lang.Long workOrderId)
public java.lang.Long getWorkOrderId()
public com.ibm.json.java.JSONArray Items()
public Activity addRow()
public boolean isInitialized()
public boolean isModified()
isModified
in interface IMXActivity
public java.lang.Double getDuration()
public java.lang.Long getObjectID()
public java.util.Date getStartTime()
getStartTime
in interface IMXActivity
public java.util.Date getEndTime()
getEndTime
in interface IMXActivity
public java.util.Iterator getModifiedProperties()
public DateRange getTimeInterval()
public void setID(java.lang.String id)
public void setName(java.lang.String name)
public void setParentID(java.lang.String parentId)
public void setObjectName(java.lang.String objectName)
public void setRefObjectName(java.lang.String refObjectName)
public void setObjectID(java.lang.Long objectID)
public void setInitialized(java.lang.Boolean initialized)
public void setStartTime(java.util.Date startTime)
public void setEndTime(java.util.Date endTime)
public void setReadOnly(java.lang.Boolean readOnly)
public void setDuration(java.lang.Double duration)
public void setModified(boolean modified)
public void setDataGroupName(java.lang.String dataGroupName)
public void setUncommitted(boolean uncommitted)
public void markStartTimeModified()
public void markEndTimeModified()
public void setTimeInterval(java.util.Date activityStart, java.util.Date activityEnd)
setTimeInterval
in interface IMXActivity
start
- time and end timepublic java.lang.String getId()
public java.lang.Object getProperty(java.lang.String key)
getProperty
in interface IMXPropertyGetterSetter
public int getInt(java.lang.String prop)
getInt
in interface IMXPropertyGetterSetter
public long getLong(java.lang.String prop)
getLong
in interface IMXPropertyGetterSetter
public float getFloat(java.lang.String prop)
getFloat
in interface IMXPropertyGetterSetter
public double getDouble(java.lang.String prop)
getDouble
in interface IMXPropertyGetterSetter
public boolean getBoolean(java.lang.String prop)
IMXPropertyGetterSetter
getBoolean
in interface IMXPropertyGetterSetter
public java.lang.String getString(java.lang.String prop)
getString
in interface IMXPropertyGetterSetter
public java.lang.String getString(java.lang.String prop, java.lang.String defValue)
getString
in interface IMXPropertyGetterSetter
public java.util.Date getDate(java.lang.String prop)
getDate
in interface IMXPropertyGetterSetter
public java.lang.String getObjectName()
public java.util.List<Constraint> getFromConstraints()
public java.util.List<Constraint> getToConstraints()
public java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> getApplinkMap()
public void setApplinkMap(java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> applinkMap)
public void setAncestors(java.util.List<Activity> ancestors)
public java.util.List<Activity> getAncestors()
public java.lang.String getID()
getID
in interface IMXActivity
public java.lang.Object setProperty(java.lang.String prop, java.lang.Object value)
setProperty
in interface IMXPropertyGetterSetter
public java.lang.Object setProperty(java.lang.String prop, java.lang.Object value, boolean ignoreChangeTracking)
setProperty
in interface IMXPropertyGetterSetter
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map
equals
in class java.util.AbstractMap
public int hashCode()
hashCode
in interface java.util.Map
hashCode
in class java.util.AbstractMap
public java.util.Collection<java.lang.String> getPropertyNames()
getPropertyNames
in interface IMXPropertyGetterSetter
public java.lang.String getName()
getName
in interface IMXActivity
public java.util.Date getEarlyStart()
getEarlyStart
in interface IMXActivity
public java.util.Date getEarlyFinish()
getEarlyFinish
in interface IMXActivity
public java.util.Date getLateStart()
getLateStart
in interface IMXActivity
public java.util.Date getLateFinish()
getLateFinish
in interface IMXActivity
public java.lang.Double getFloat()
getFloat
in interface IMXActivity
public java.lang.Boolean isCritical()
isCritical
in interface IMXActivity
public void setEarlyStart(java.util.Date earlyStart)
setEarlyStart
in interface IMXActivity
public void setEarlyFinish(java.util.Date earlyFinish)
setEarlyFinish
in interface IMXActivity
public void setLateStart(java.util.Date lateStart)
setLateStart
in interface IMXActivity
public void setLateFinish(java.util.Date lateFinish)
setLateFinish
in interface IMXActivity
public void setFloat(java.lang.Double floatValue)
setFloat
in interface IMXActivity
public void setCritical(java.lang.Boolean critical)
setCritical
in interface IMXActivity
public void addLeftIconClass(java.lang.String className) throws java.io.IOException
className
- java.io.IOException
public void addLeftIconClick(java.lang.String eventName) throws java.io.IOException
eventName
- java.io.IOException
public void addLeftIconClass(java.lang.String className, java.lang.String tip) throws java.io.IOException
java.io.IOException
public void addRightIconClass(java.lang.String className) throws java.io.IOException
className
- java.io.IOException
public void addRightIconClick(java.lang.String eventName) throws java.io.IOException
eventName
- java.io.IOException
public void addRightIconClass(java.lang.String className, java.lang.String tip) throws java.io.IOException
java.io.IOException
public boolean showWorklogIcon()