public class AdminContentTemplateService
extends org.youngmonkeys.ezyplatform.service.DefaultContentTemplateService
| Constructor and Description |
|---|
AdminContentTemplateService(com.tvd12.properties.file.reader.FileReader propertiesFileReader,
AdminContentTemplateRepository contentTemplateRepository,
AdminModelToEntityConverter modelToEntityConverter,
AdminEntityToModelConverter entityToModelConverter,
AdminResultToModelConverter resultToModelConverter) |
| Modifier and Type | Method and Description |
|---|---|
long |
addTemplate(long adminId,
String templateType,
AddContentTemplateModel model) |
long |
addTemplateIfAbsent(long adminId,
String templateType,
String templateName,
Supplier<AddContentTemplateModel> templateSupplier) |
long |
addTemplateIfAbsent(String templateType,
String templateName,
Supplier<AddContentTemplateModel> templateSupplier) |
long |
addTemplateIfAbsentFromPropertiesFile(long adminId,
String templateType,
String templateName,
String propertiesFilePath) |
long |
addTemplateIfAbsentFromPropertiesFile(String templateType,
String templateName,
String propertiesFilePath) |
long |
countTemplatesByType(String templateType) |
void |
deleteTemplate(long templateId) |
List<String> |
getAllTemplateTypes() |
List<org.youngmonkeys.ezyplatform.model.ContentTemplateModel> |
getTemplatesByType(String templateType,
int limit) |
void |
saveTemplate(UpdateContentTemplateModel model) |
public AdminContentTemplateService(com.tvd12.properties.file.reader.FileReader propertiesFileReader,
AdminContentTemplateRepository contentTemplateRepository,
AdminModelToEntityConverter modelToEntityConverter,
AdminEntityToModelConverter entityToModelConverter,
AdminResultToModelConverter resultToModelConverter)
public long addTemplate(long adminId,
String templateType,
AddContentTemplateModel model)
public long addTemplateIfAbsent(String templateType, String templateName, Supplier<AddContentTemplateModel> templateSupplier)
public long addTemplateIfAbsent(long adminId,
String templateType,
String templateName,
Supplier<AddContentTemplateModel> templateSupplier)
public long addTemplateIfAbsentFromPropertiesFile(String templateType, String templateName, String propertiesFilePath)
public long addTemplateIfAbsentFromPropertiesFile(long adminId,
String templateType,
String templateName,
String propertiesFilePath)
public void saveTemplate(UpdateContentTemplateModel model)
public void deleteTemplate(long templateId)
public List<org.youngmonkeys.ezyplatform.model.ContentTemplateModel> getTemplatesByType(String templateType, int limit)
public long countTemplatesByType(String templateType)
Copyright © 2024 Young Monkeys. All rights reserved.