Package org.apache.syncope.core.logic
Class MailTemplateLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<MailTemplateTO>
-
- org.apache.syncope.core.logic.MailTemplateLogic
-
public class MailTemplateLogic extends AbstractTransactionalLogic<MailTemplateTO>
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityFactory
entityFactory
protected MailTemplateDAO
mailTemplateDAO
protected NotificationDAO
notificationDAO
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description MailTemplateLogic(MailTemplateDAO mailTemplateDAO, NotificationDAO notificationDAO, EntityFactory entityFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MailTemplateTO
create(String key)
MailTemplateTO
delete(String key)
String
getFormat(String key, MailTemplateFormat format)
protected MailTemplateTO
getMailTemplateTO(String key)
List<MailTemplateTO>
list()
MailTemplateTO
read(String key)
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 Detail
-
mailTemplateDAO
protected final MailTemplateDAO mailTemplateDAO
-
notificationDAO
protected final NotificationDAO notificationDAO
-
entityFactory
protected final EntityFactory entityFactory
-
-
Constructor Detail
-
MailTemplateLogic
public MailTemplateLogic(MailTemplateDAO mailTemplateDAO, NotificationDAO notificationDAO, EntityFactory entityFactory)
-
-
Method Detail
-
getMailTemplateTO
protected MailTemplateTO getMailTemplateTO(String key)
-
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
@PreAuthorize("hasRole(\'MAIL_TEMPLATE_CREATE\')") public MailTemplateTO create(String key)
-
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
@PreAuthorize("hasRole(\'MAIL_TEMPLATE_DELETE\')") public MailTemplateTO delete(String key)
-
resolveReference
protected MailTemplateTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
- Specified by:
resolveReference
in classAbstractLogic<MailTemplateTO>
- Throws:
UnresolvedReferenceException
-
-