Class LocalTriggerManager.ScriptUserBean

    • Constructor Detail

      • ScriptUserBean

        public ScriptUserBean​(mks.ci.server.engine.User u,
                              int userId,
                              java.sql.Connection c)
        Create a new UserBean
        Parameters:
        u - the user in question
        userId - the current user
        c - the database connection
    • Method Detail

      • getFullName

        public java.lang.String getFullName()
        Returns:
        the full name for the principal
      • getGroups

        public java.lang.String[] getGroups()
        Return the full list of static groups for which this user is a member.
        Returns:
        the list of static groups that this user is a member of, as an array of strings.
      • isMember

        public boolean isMember​(java.lang.String group)
                         throws mks.frame.triggers.TriggerException
        Is this user a member of the specified group?
        Parameters:
        group - The name of the group
        Throws:
        mks.frame.triggers.TriggerException - The group does not exist.
      • getExposedName

        public java.lang.String getExposedName()
        Get the name of this bean: imUserBean
        Specified by:
        getExposedName in interface mks.frame.triggers.ScriptExposableBean
        Specified by:
        getExposedName in class ScriptBaseBean
        Returns:
        the bean name: imUserBean.