Package mks.ci.server.engine
Class LocalTriggerManager.ScriptTimeEntryBean
- java.lang.Object
-
- mks.frame.triggers.ScriptExposableBaseBean
-
- mks.frame.triggers.beans.ScriptBaseBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptIMBaseBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptIdentifiedBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptTimeEntryBean
-
- All Implemented Interfaces:
mks.frame.triggers.ScriptExposableBean
- Enclosing class:
- LocalTriggerManager
public static class LocalTriggerManager.ScriptTimeEntryBean extends LocalTriggerManager.ScriptIdentifiedBean implements mks.frame.triggers.ScriptExposableBean
The Time Entry Bean. This bean may be obtained from the issue bean, via thegetTimeEntryBeans
call. This bean is read only.
-
-
Constructor Summary
Constructors Constructor Description ScriptTimeEntryBean(mks.ci.server.engine.TimeEntry timeEntry, int userId, java.sql.Connection c)
Create a new ScriptTimeEntryBean
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCreatedBy()
Returns the name of the user that created the entry.java.util.Date
getCreatedDate()
Returns the date the entry was created.float
getDuration()
Return the duration (in hours) of time spent for the entry.java.util.Date
getEntryDate()
Returns the date that the time was entered against.java.lang.String
getExposedName()
Returns the name of this bean that is exposed to the scripting language.int
getIssueID()
Returns the ID of the issue that the time was entered against.java.lang.String
getModifiedBy()
Returns the name of the user that last modified the entry.java.util.Date
getModifiedDate()
Returns the date the entry was last modified.java.lang.String
getNotes()
Return the notes for the entry.java.lang.String
getSourceName()
Return the source of the entry.java.lang.String
getUserName()
Returns the user name that the time was entered against.-
Methods inherited from class mks.ci.server.engine.LocalTriggerManager.ScriptIdentifiedBean
getCreatedUser, getInternalID, getModifiedUser
-
Methods inherited from class mks.ci.server.engine.LocalTriggerManager.ScriptIMBaseBean
getCurrentDatabaseTime, getCurrentDatabaseTime, getCurrentUser, getServerBean, getUserID, isParallelProcessingEnabled
-
Methods inherited from class mks.frame.triggers.beans.ScriptBaseBean
getEnvironmentBean, setEnvironmentBean
-
-
-
-
Method Detail
-
getExposedName
public java.lang.String getExposedName()
Returns the name of this bean that is exposed to the scripting language.- Specified by:
getExposedName
in interfacemks.frame.triggers.ScriptExposableBean
- Specified by:
getExposedName
in classScriptBaseBean
- Returns:
- the bean name:
imTimeEntryBean
.
-
getCreatedDate
public java.util.Date getCreatedDate()
Returns the date the entry was created.- Overrides:
getCreatedDate
in classLocalTriggerManager.ScriptIdentifiedBean
- Returns:
- the creation date of the entry
-
getCreatedBy
public java.lang.String getCreatedBy()
Returns the name of the user that created the entry.- Returns:
- the creating user
-
getModifiedDate
public java.util.Date getModifiedDate()
Returns the date the entry was last modified.- Overrides:
getModifiedDate
in classLocalTriggerManager.ScriptIdentifiedBean
- Returns:
- the modification date of the entry
-
getModifiedBy
public java.lang.String getModifiedBy()
Returns the name of the user that last modified the entry.- Returns:
- the modifying user
-
getIssueID
public int getIssueID()
Returns the ID of the issue that the time was entered against.- Returns:
- the issue ID that the time was entered against.
-
getUserName
public java.lang.String getUserName()
Returns the user name that the time was entered against.- Returns:
- the user name that the time was entered against.
-
getEntryDate
public java.util.Date getEntryDate()
Returns the date that the time was entered against.- Returns:
- the date the time was entered against.
-
getSourceName
public java.lang.String getSourceName()
Return the source of the entry.- Returns:
- the entry source name.
-
getDuration
public float getDuration()
Return the duration (in hours) of time spent for the entry.- Returns:
- the duration (in hours) of time spent for the entry. May be 0 if this entry only represents a note.
-
getNotes
public java.lang.String getNotes()
Return the notes for the entry.- Returns:
- the notes for the entry. May be null.
-
-