mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-24 05:39:44 +00:00
changed context handling for command models for logging
added method to convert the user initiated context to a concrete command model added method to find if a template exists added method to render a context aware model added banid command
This commit is contained in:
@@ -16,6 +16,13 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>dev.sheldan.abstracto.core</groupId>
|
||||
<artifactId>core-interface</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -1,11 +1,15 @@
|
||||
package dev.sheldan.abstracto.templating;
|
||||
|
||||
import dev.sheldan.abstracto.core.models.ServerContext;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public interface TemplateService {
|
||||
TemplateDto getTemplateByKey(String key);
|
||||
boolean templateExists(String key);
|
||||
String renderTemplate(TemplateDto templateDto);
|
||||
String renderTemplate(String key, HashMap<String, Object> parameters);
|
||||
String renderTemplate(String key, Object model);
|
||||
String renderContextAwareTemplate(String key, ServerContext serverContext);
|
||||
void createTemplate(String key, String content);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user