Class LocalTriggerManager.ScriptQueryBean

  • All Implemented Interfaces:
    mks.frame.triggers.ScriptExposableBean
    Enclosing class:
    LocalTriggerManager

    public static class LocalTriggerManager.ScriptQueryBean
    extends LocalTriggerManager.ScriptAdminBean
    implements mks.frame.triggers.ScriptExposableBean
    A Bean representing a query object. These beans can be obtained from the server bean, either via name (the getQuery method), or by full enumeration (the getQueries method).
    • Constructor Detail

      • ScriptQueryBean

        public ScriptQueryBean​(int userId,
                               mks.ci.server.engine.Query q,
                               java.sql.Connection c)
    • Method Detail

      • getExposedName

        public java.lang.String getExposedName()
        This bean is named imQueryBean
        Specified by:
        getExposedName in interface mks.frame.triggers.ScriptExposableBean
        Specified by:
        getExposedName in class ScriptBaseBean
        Returns:
        the bean name: imQueryBean.
      • isQuickQuery

        public boolean isQuickQuery()
        Is this the Quick Query?
      • isShared

        public boolean isShared()
        Is this query shared?
      • getSharedGroupIDs

        public java.lang.String[] getSharedGroupIDs()
        Return a list of all the shared group's.
      • run

        public int[] run()
                  throws mks.frame.triggers.TriggerException
        Run the query.
        Returns:
        an array of integers, each one is an issue id number, that satisified the query. Use the getIssue method on the server bean to actually obtain the issue bean for each issue.
        Throws:
        mks.frame.triggers.TriggerException