org.appfuse.service
Interface TemplateManager

All Known Implementing Classes:
TemplateManagerImpl

public interface TemplateManager

Business Delegate (Proxy) Interface to handle communication between web and persistence layer.

View Source

Version:
$Revision: 1.1 $ $Date: 2004/03/31 13:04:17 $
Author:
Matt Raible

Method Summary
 Object getTemplate(String templateId)
          Retrives a single template object based on a templateId
 void removeTemplate(Object template)
          Removes a template from the database by id
 Object saveTemplate(Object template)
          Saves a template's information.
 

Method Detail

getTemplate

public Object getTemplate(String templateId)
                   throws Exception
Retrives a single template object based on a templateId

Parameters:
templateId -
Returns:
populated Template object
Throws:
Exception

saveTemplate

public Object saveTemplate(Object template)
                    throws Exception
Saves a template's information. This method can also be used to add a new template.

Parameters:
template - a populated template object
Returns:
updated template information
Throws:
Exception

removeTemplate

public void removeTemplate(Object template)
                    throws Exception
Removes a template from the database by id

Parameters:
template - the template to remove
Throws:
Exception - when something goes wrong


Copyright © 2002-2004