Class 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 the getTimeEntryBeans call. This bean is read only.
    • Constructor Detail

      • ScriptTimeEntryBean

        public ScriptTimeEntryBean​(mks.ci.server.engine.TimeEntry timeEntry,
                                   int userId,
                                   java.sql.Connection c)
        Create a new ScriptTimeEntryBean
        Parameters:
        timeEntry - the time entry
        userId - the current user
        c - the database connection
    • 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 interface mks.frame.triggers.ScriptExposableBean
        Specified by:
        getExposedName in class ScriptBaseBean
        Returns:
        the bean name: imTimeEntryBean.
      • getCreatedBy

        public java.lang.String getCreatedBy()
        Returns the name of the user that created the entry.
        Returns:
        the creating user
      • 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.