Class SessionTableComponent

java.lang.Object
ai.mindconnect.adminui.ui.component.SessionTableComponent
All Implemented Interfaces:
UiComponent

public final class SessionTableComponent extends Object implements UiComponent
Tabular view of an agent's chat sessions with Open / Delete row actions and a header "New Session" action. The session list is read from AgentSessionRepository at render time so it stays current after deletes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SessionTableComponent(ai.mindconnect.agent.domain.AgentDefinition agent, String userId, ai.mindconnect.agent.port.out.AgentSessionRepository sessionRepository)
     
    SessionTableComponent(ai.mindconnect.agent.domain.AgentDefinition agent, String userId, ai.mindconnect.agent.port.out.AgentSessionRepository sessionRepository, UUID selectedSessionId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    id()
    The DOM id this component renders with.
    ai.mindconnect.ui.model.UiTable
    Full render — emit the component as a UiNode.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SessionTableComponent

      public SessionTableComponent(ai.mindconnect.agent.domain.AgentDefinition agent, String userId, ai.mindconnect.agent.port.out.AgentSessionRepository sessionRepository)
    • SessionTableComponent

      public SessionTableComponent(ai.mindconnect.agent.domain.AgentDefinition agent, String userId, ai.mindconnect.agent.port.out.AgentSessionRepository sessionRepository, UUID selectedSessionId)
  • Method Details

    • id

      public String id()
      Description copied from interface: UiComponent
      The DOM id this component renders with. Patch operations targeting this component (REPLACE / CLEAR / REMOVE) use this id, so it must match the id on the root UiNode returned by UiComponent.render().
      Specified by:
      id in interface UiComponent
    • render

      public ai.mindconnect.ui.model.UiTable render()
      Description copied from interface: UiComponent
      Full render — emit the component as a UiNode. Used both inside a page's full render and as the payload of a REPLACE patch.
      Specified by:
      render in interface UiComponent