net.anotheria.anosite.gen.asresourcedata.service.MailTemplateCRUDServiceImpl Maven / Gradle / Ivy
/**
********************************************************************************
*** MailTemplateCRUDServiceImpl.java ***
*** The implementation of the MailTemplateCRUDServiceImpl. ***
*** generated by AnoSiteGenerator (ASG), Version: 2.6.3 ***
*** Copyright (C) 2005 - 2010 Anotheria.net, www.anotheria.net ***
*** All Rights Reserved. ***
********************************************************************************
*** Don't edit this code, if you aren't sure ***
*** that you do exactly know what you are doing! ***
*** It's better to invest time in the generator, as into the generated code. ***
********************************************************************************
*/
package net.anotheria.anosite.gen.asresourcedata.service;
import net.anotheria.asg.service.CRUDService;
import net.anotheria.anosite.gen.asresourcedata.data.MailTemplate;
import net.anotheria.asg.exception.ASGRuntimeException;
public class MailTemplateCRUDServiceImpl implements CRUDService{
// Generated by: class net.anotheria.asg.generator.model.docs.CMSBasedServiceGenerator.generateCRUDService
IASResourceDataService service;
public MailTemplateCRUDServiceImpl(){
this(ASResourceDataServiceFactory.getDefaultInstance());
}
public MailTemplateCRUDServiceImpl(IASResourceDataService aService){
service = aService;
}
public MailTemplate create(MailTemplate mailtemplate) throws ASGRuntimeException {
return service.createMailTemplate(mailtemplate);
}
public void delete(MailTemplate mailtemplate) throws ASGRuntimeException {
service.deleteMailTemplate(mailtemplate);
}
public MailTemplate get(String id) throws ASGRuntimeException {
return service.getMailTemplate(id);
}
public MailTemplate update(MailTemplate mailtemplate) throws ASGRuntimeException {
return service.updateMailTemplate(mailtemplate);
}
}