Package mks.ci.server.engine
Class LocalTriggerManager.ScriptModifyTimeEntryOpBean
- java.lang.Object
-
- mks.frame.triggers.ScriptExposableBaseBean
-
- mks.frame.triggers.beans.ScriptBaseBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptIMBaseBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptOperationBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptModifyTimeEntryOpBean
-
- All Implemented Interfaces:
mks.frame.triggers.ScriptExposableBean
- Direct Known Subclasses:
CreateTimeEntryOp.ScriptCreateTimeEntryOpBean
,DeleteTimeEntryOp.ScriptDeleteTimeEntryOpBean
,EditTimeEntryOp.ScriptEditTimeEntryOpBean
- Enclosing class:
- LocalTriggerManager
public abstract static class LocalTriggerManager.ScriptModifyTimeEntryOpBean extends LocalTriggerManager.ScriptOperationBean
A bean that encapsulates a single request to modify a time entry. Instances of this bean are available through the getOps call of the ScriptOperationsBean in both the PRE and POST events on a time entry trigger. This bean provides read only access to the "key" values of the time entry being operated on (e.g. issue, user, date and source).
-
-
Constructor Summary
Constructors Constructor Description ScriptModifyTimeEntryOpBean(mks.ci.server.ModifyTimeEntryOp op, int userId, java.sql.Connection c)
Create a new ScriptModifyTimeEntryOpBean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getEntryDate()
Returns the entry date of the time entry we are editing.int
getIssueID()
Returns the issue ID of the time entry we are editing.java.lang.String
getSource()
Returns the source name of the time entry we are editing.java.lang.String
getUser()
Returns the user name of the time entry we are editing.-
Methods inherited from class mks.ci.server.engine.LocalTriggerManager.ScriptOperationBean
getErrorMessage, getState
-
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, getExposedName, setEnvironmentBean
-
-
-
-
Constructor Detail
-
ScriptModifyTimeEntryOpBean
public ScriptModifyTimeEntryOpBean(mks.ci.server.ModifyTimeEntryOp op, int userId, java.sql.Connection c)
Create a new ScriptModifyTimeEntryOpBean.- Parameters:
op
- the operation that the bean encompassesuserId
- the current userc
- the database connection
-
-
Method Detail
-
getIssueID
public int getIssueID()
Returns the issue ID of the time entry we are editing.- Returns:
- the issue ID of the time entry.
-
getUser
public java.lang.String getUser()
Returns the user name of the time entry we are editing.- Returns:
- the user name of the time entry.
-
getEntryDate
public java.util.Date getEntryDate()
Returns the entry date of the time entry we are editing.- Returns:
- the entry date of the time entry.
-
getSource
public java.lang.String getSource()
Returns the source name of the time entry we are editing.- Returns:
- the source name of the time entry.
-
-