Class MacrosRepository

java.lang.Object
org.qubership.atp.macros.core.repository.MacrosRepository

@Repository public class MacrosRepository extends Object
  • Constructor Details

    • MacrosRepository

      public MacrosRepository()
  • Method Details

    • findByProjectId

      public List<Macros> findByProjectId(UUID projectId)
      Get All macros by projectId include Global.
      Parameters:
      projectId - uuid.
      Returns:
      List of macro.
    • evaluate

      public String evaluate(String content)
      Evaluate macro.
      Parameters:
      content - some string.
      Returns:
      the same string if content doesn't contain macro.