Class AiAgentRepository

All Implemented Interfaces:
Repository<AiAgent>

public class AiAgentRepository extends AbstractAiAgentRepository
  • Constructor Details

    • AiAgentRepository

      public AiAgentRepository()
  • Method Details

    • save

      public AiAgent save(AiAgent agent)
      Checks the agent's permissions first: its rows are saved by cascade from the agent, past any repository of their own.
      Specified by:
      save in interface Repository<AiAgent>
      Overrides:
      save in class JpaRepository<AiAgent>
      Parameters:
      agent - the entity object to save
      Returns:
      an instance of the entity with saved state
      Throws:
      IllegalArgumentException - naming each row that names nothing, or an object twice
    • remove

      public void remove(AiAgent agent)
      Takes the agent off the policies that list it first.
      Specified by:
      remove in interface Repository<AiAgent>
      Overrides:
      remove in class JpaRepository<AiAgent>
      Parameters:
      agent - the entity object