Package org.apache.syncope.core.logic
Class MailTemplateLogic
java.lang.Object
org.apache.syncope.core.logic.AbstractLogic<MailTemplateTO>
org.apache.syncope.core.logic.AbstractTransactionalLogic<MailTemplateTO>
org.apache.syncope.core.logic.MailTemplateLogic
-
Field Summary
Modifier and TypeFieldDescriptionprotected final EntityFactory
protected final MailTemplateDAO
protected final NotificationDAO
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
Constructor Summary
ConstructorDescriptionMailTemplateLogic
(MailTemplateDAO mailTemplateDAO, NotificationDAO notificationDAO, EntityFactory entityFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetFormat
(String key, MailTemplateFormat format) protected MailTemplateTO
getMailTemplateTO
(String key) list()
protected MailTemplateTO
resolveReference
(Method method, Object... args) void
setFormat
(String key, MailTemplateFormat format, String template) Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
Field Details
-
mailTemplateDAO
-
notificationDAO
-
entityFactory
-
-
Constructor Details
-
MailTemplateLogic
public MailTemplateLogic(MailTemplateDAO mailTemplateDAO, NotificationDAO notificationDAO, EntityFactory entityFactory)
-
-
Method Details
-
getMailTemplateTO
-
read
@PreAuthorize("hasRole(\'MAIL_TEMPLATE_READ\')") @Transactional(readOnly=true) public MailTemplateTO read(String key) -
list
@PreAuthorize("hasRole(\'MAIL_TEMPLATE_LIST\')") @Transactional(readOnly=true) public List<MailTemplateTO> list() -
create
-
getFormat
@PreAuthorize("hasRole(\'MAIL_TEMPLATE_READ\')") public String getFormat(String key, MailTemplateFormat format) -
setFormat
@PreAuthorize("hasRole(\'MAIL_TEMPLATE_UPDATE\')") public void setFormat(String key, MailTemplateFormat format, String template) -
delete
-
resolveReference
protected MailTemplateTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReference
in classAbstractLogic<MailTemplateTO>
- Throws:
UnresolvedReferenceException
-