@Component public class MailTemplateLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
MailTemplateLogic() |
Modifier and Type | Method and Description |
---|---|
MailTemplateTO |
create(String key) |
MailTemplateTO |
delete(String key) |
String |
getFormat(String key,
MailTemplateFormat format) |
List<MailTemplateTO> |
list() |
MailTemplateTO |
read(String key) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected MailTemplateTO |
resolveReference(Method method,
Object... args) |
void |
setFormat(String key,
MailTemplateFormat format,
String template) |
@PreAuthorize(value="hasRole(\'MAIL_TEMPLATE_READ\')") @Transactional(readOnly=true) public MailTemplateTO read(String key)
@PreAuthorize(value="hasRole(\'MAIL_TEMPLATE_LIST\')") @Transactional(readOnly=true) public List<MailTemplateTO> list()
@PreAuthorize(value="hasRole(\'MAIL_TEMPLATE_CREATE\')") public MailTemplateTO create(String key)
@PreAuthorize(value="hasRole(\'MAIL_TEMPLATE_READ\')") public String getFormat(String key, MailTemplateFormat format)
@PreAuthorize(value="hasRole(\'MAIL_TEMPLATE_UPDATE\')") public void setFormat(String key, MailTemplateFormat format, String template)
@PreAuthorize(value="hasRole(\'MAIL_TEMPLATE_DELETE\')") public MailTemplateTO delete(String key)
protected MailTemplateTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
UnresolvedReferenceException
public T resolveBeanReference(Method method, Object... args) throws UnresolvedReferenceException
method
- method.args
- method arguments.UnresolvedReferenceException
- in case of failures, read-only methods and unresolved bean.Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.