com.dotmarketing.portlets.templates.business
Interface TemplateFactory

All Known Implementing Classes:
TemplateFactoryImpl

public interface TemplateFactory


Method Summary
 void associateContainers(java.util.List<Container> containerIdentifiers, Template template)
           
 Template copyTemplate(Template currentTemplate, Host host)
           
 void delete(Template template)
           
 void deleteFromCache(Template template)
          Delete template from cache.
 Template find(java.lang.String inode)
           
 java.util.List<Template> findTemplates(com.liferay.portal.model.User user, boolean includeArchived, java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String hostId, java.lang.String inode, java.lang.String identifier, java.lang.String parent, int offset, int limit, java.lang.String orderBy)
           
 java.util.List<Template> findTemplatesAssignedTo(Host parentHost, boolean includeArchived)
           
 java.util.List<Template> findTemplatesUnder(Folder parentFolder)
           
 java.util.List<Template> findTemplatesUserCanUse(com.liferay.portal.model.User user, java.lang.String hostName, java.lang.String query, boolean searchHost, int offset, int limit)
           
 Template findWorkingTemplateByName(java.lang.String name, Host host)
           
 java.util.List<Container> getContainersInTemplate(Template template, com.liferay.portal.model.User user, boolean respectFrontendRoles)
           
 java.util.List<HTMLPage> getPagesUsingTemplate(Template template)
           
 void save(Template template)
          Save template into a persistent repository.
 void save(Template template, java.lang.String existingId)
           
 

Method Detail

findTemplatesUnder

java.util.List<Template> findTemplatesUnder(Folder parentFolder)
                                            throws DotDataException
Throws:
DotDataException

findTemplatesAssignedTo

java.util.List<Template> findTemplatesAssignedTo(Host parentHost,
                                                 boolean includeArchived)
                                                 throws DotDataException
Throws:
DotDataException

findTemplatesUserCanUse

java.util.List<Template> findTemplatesUserCanUse(com.liferay.portal.model.User user,
                                                 java.lang.String hostName,
                                                 java.lang.String query,
                                                 boolean searchHost,
                                                 int offset,
                                                 int limit)
                                                 throws DotDataException,
                                                        DotSecurityException
Throws:
DotDataException
DotSecurityException

delete

void delete(Template template)
            throws DotDataException
Throws:
DotDataException

save

void save(Template template)
          throws DotDataException
Save template into a persistent repository.

Parameters:
template -
Throws:
DotDataException

save

void save(Template template,
          java.lang.String existingId)
          throws DotDataException
Throws:
DotDataException

deleteFromCache

void deleteFromCache(Template template)
                     throws DotDataException
Delete template from cache.

Parameters:
template -
Throws:
DotDataException

findWorkingTemplateByName

Template findWorkingTemplateByName(java.lang.String name,
                                   Host host)
                                   throws DotDataException
Throws:
DotDataException

findTemplates

java.util.List<Template> findTemplates(com.liferay.portal.model.User user,
                                       boolean includeArchived,
                                       java.util.Map<java.lang.String,java.lang.Object> params,
                                       java.lang.String hostId,
                                       java.lang.String inode,
                                       java.lang.String identifier,
                                       java.lang.String parent,
                                       int offset,
                                       int limit,
                                       java.lang.String orderBy)
                                       throws DotSecurityException,
                                              DotDataException
Throws:
DotSecurityException
DotDataException

getPagesUsingTemplate

java.util.List<HTMLPage> getPagesUsingTemplate(Template template)
                                               throws DotDataException
Throws:
DotDataException

associateContainers

void associateContainers(java.util.List<Container> containerIdentifiers,
                         Template template)
                         throws DotHibernateException
Throws:
DotHibernateException

find

Template find(java.lang.String inode)
              throws DotStateException,
                     DotDataException
Throws:
DotStateException
DotDataException

getContainersInTemplate

java.util.List<Container> getContainersInTemplate(Template template,
                                                  com.liferay.portal.model.User user,
                                                  boolean respectFrontendRoles)
                                                  throws DotDataException,
                                                         DotSecurityException
Throws:
DotDataException
DotSecurityException

copyTemplate

Template copyTemplate(Template currentTemplate,
                      Host host)
                      throws DotDataException,
                             DotSecurityException
Throws:
DotDataException
DotSecurityException


Copyright © 2013 dotCMS Inc. All Rights Reserved.