|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.business.BaseInodeAPI
com.dotmarketing.business.BaseWebAssetAPI
com.dotmarketing.portlets.templates.business.TemplateAPIImpl
public class TemplateAPIImpl
| Constructor Summary | |
|---|---|
TemplateAPIImpl()
|
|
| Method Summary | |
|---|---|
void |
associateContainers(java.util.List<Container> containerIdentifiers,
Template template)
|
java.lang.String |
checkDependencies(java.lang.String templateInode,
com.liferay.portal.model.User user,
java.lang.Boolean respectFrontendRoles)
|
Template |
copy(Template sourceTemplate,
Host destination,
boolean forceOverwrite,
boolean copySourceContainers,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Copies a template to another host. |
Template |
copy(Template sourceTemplate,
Host destination,
boolean forceOverwrite,
java.util.List<HTMLPageAPI.TemplateContainersReMap.ContainerRemapTuple> containerMappings,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Copies a template to another host. |
Template |
copy(Template sourceTemplate,
com.liferay.portal.model.User user)
|
void |
delete(Template template)
|
boolean |
delete(Template template,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Delete the specified template |
int |
deleteOldVersions(java.util.Date assetsOlderThan)
|
Template |
find(java.lang.String inode,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
|
Template |
findLiveTemplate(java.lang.String id,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Retrieves the live version of a template given its identifier |
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)
Retrieves a paginated list of templates the user can use |
java.util.List<Template> |
findTemplatesAssignedTo(Host parentHost)
Retrieves all non-archived templates assigned to the given host |
java.util.List<Template> |
findTemplatesAssignedTo(Host parentHost,
boolean includeArchived)
Retrieves all templates assigned to the given host |
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)
Retrieves a paginated list of templates the given user can read. |
Template |
findWorkingTemplate(java.lang.String id,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Retrieves the working version of a template given its identifier |
java.util.List<Container> |
getContainersInTemplate(Template template,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Return the list of container identifiers used in a template body. |
java.util.List<HTMLPage> |
getPagesUsingTemplate(Template template,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Return the list of pages that use a template body. |
Host |
getTemplateHost(Template template)
Retrieves the template associated to a host |
protected void |
save(WebAsset webAsset)
Save the asset. |
Template |
saveTemplate(Template template,
Host destination,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Save a template |
void |
updateParseContainerSyntax(Template template)
Update template body code to use the new parse container syntax |
| Methods inherited from class com.dotmarketing.business.BaseInodeAPI |
|---|
saveInode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemplateAPIImpl()
| Method Detail |
|---|
public java.util.List<Template> findTemplatesUnder(Folder parentFolder)
throws DotDataException
findTemplatesUnder in interface TemplateAPIDotDataException
public java.util.List<Template> findTemplatesAssignedTo(Host parentHost)
throws DotDataException
TemplateAPI
findTemplatesAssignedTo in interface TemplateAPIDotDataException
public java.util.List<Template> findTemplatesAssignedTo(Host parentHost,
boolean includeArchived)
throws DotDataException
TemplateAPI
findTemplatesAssignedTo in interface TemplateAPIincludeArchived - if true it also retrieves all archived templates
DotDataException
public 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
TemplateAPI
findTemplatesUserCanUse in interface TemplateAPIDotDataException
DotSecurityException
public void delete(Template template)
throws DotDataException
DotDataException
public Template copy(Template sourceTemplate,
com.liferay.portal.model.User user)
throws DotDataException,
DotSecurityException
copy in interface TemplateAPIDotDataException
DotSecurityException
public Template copy(Template sourceTemplate,
Host destination,
boolean forceOverwrite,
java.util.List<HTMLPageAPI.TemplateContainersReMap.ContainerRemapTuple> containerMappings,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
TemplateAPI
copy in interface TemplateAPIDotDataException
DotSecurityException
public java.util.List<HTMLPage> getPagesUsingTemplate(Template template,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
TemplateAPI
getPagesUsingTemplate in interface TemplateAPIDotDataException
DotSecurityException
public Template copy(Template sourceTemplate,
Host destination,
boolean forceOverwrite,
boolean copySourceContainers,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
TemplateAPI
copy in interface TemplateAPIDotDataException
DotSecurityException
protected void save(WebAsset webAsset)
throws DotDataException
BaseWebAssetAPI
save in class BaseWebAssetAPIDotDataException
public Template saveTemplate(Template template,
Host destination,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
TemplateAPI
saveTemplate in interface TemplateAPIDotDataException
DotSecurityException
public java.util.List<Container> getContainersInTemplate(Template template,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
TemplateAPI
getContainersInTemplate in interface TemplateAPIDotDataException
DotSecurityExceptionpublic void updateParseContainerSyntax(Template template)
TemplateAPI
updateParseContainerSyntax in interface TemplateAPI
public Host getTemplateHost(Template template)
throws DotDataException
TemplateAPI
getTemplateHost in interface TemplateAPIDotDataException
public boolean delete(Template template,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
java.lang.Exception
TemplateAPI
delete in interface TemplateAPIDotSecurityException
java.lang.Exception
public Template findWorkingTemplate(java.lang.String id,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
TemplateAPI
findWorkingTemplate in interface TemplateAPIDotDataException
DotSecurityException
public 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
TemplateAPI
findTemplates in interface TemplateAPIDotSecurityException
DotDataException
public Template find(java.lang.String inode,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
throws DotSecurityException,
DotDataException
find in interface TemplateAPIDotSecurityException
DotDataException
public void associateContainers(java.util.List<Container> containerIdentifiers,
Template template)
throws DotHibernateException
associateContainers in interface TemplateAPIDotHibernateException
public Template findLiveTemplate(java.lang.String id,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
TemplateAPI
findLiveTemplate in interface TemplateAPIDotDataException
DotSecurityException
public java.lang.String checkDependencies(java.lang.String templateInode,
com.liferay.portal.model.User user,
java.lang.Boolean respectFrontendRoles)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
DotDataException,
DotSecurityException
checkDependencies in interface TemplateAPIcom.liferay.portal.PortalException
com.liferay.portal.SystemException
DotDataException
DotSecurityException
public int deleteOldVersions(java.util.Date assetsOlderThan)
throws DotStateException,
DotDataException
deleteOldVersions in interface TemplateAPIDotStateException
DotDataException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||