com.liferay.portlet.journal.service
Class JournalTemplateServiceUtil

java.lang.Object
  extended by com.liferay.portlet.journal.service.JournalTemplateServiceUtil

public class JournalTemplateServiceUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides static methods for the com.liferay.portlet.journal.service.JournalTemplateService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

Author:
Brian Wing Shun Chan
See Also:
JournalTemplateService

Constructor Summary
JournalTemplateServiceUtil()
           
 
Method Summary
static JournalTemplate addTemplate(long groupId, java.lang.String templateId, boolean autoTemplateId, java.lang.String structureId, java.lang.String name, java.lang.String description, java.lang.String xsl, boolean formatXsl, java.lang.String langType, boolean cacheable, boolean smallImage, java.lang.String smallImageURL, java.io.File smallFile, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static JournalTemplate addTemplate(long groupId, java.lang.String templateId, boolean autoTemplateId, java.lang.String structureId, java.lang.String name, java.lang.String description, java.lang.String xsl, boolean formatXsl, java.lang.String langType, boolean cacheable, boolean smallImage, java.lang.String smallImageURL, java.io.File smallFile, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static JournalTemplate copyTemplate(long groupId, java.lang.String oldTemplateId, java.lang.String newTemplateId, boolean autoTemplateId)
           
static void deleteTemplate(long groupId, java.lang.String templateId)
           
static JournalTemplateService getService()
           
static java.util.List<JournalTemplate> getStructureTemplates(long groupId, java.lang.String structureId)
           
static JournalTemplate getTemplate(long groupId, java.lang.String templateId)
           
 void setService(JournalTemplateService service)
           
static JournalTemplate updateTemplate(long groupId, java.lang.String templateId, java.lang.String structureId, java.lang.String name, java.lang.String description, java.lang.String xsl, boolean formatXsl, java.lang.String langType, boolean cacheable, boolean smallImage, java.lang.String smallImageURL, java.io.File smallFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalTemplateServiceUtil

public JournalTemplateServiceUtil()
Method Detail

addTemplate

public static JournalTemplate addTemplate(long groupId,
                                          java.lang.String templateId,
                                          boolean autoTemplateId,
                                          java.lang.String structureId,
                                          java.lang.String name,
                                          java.lang.String description,
                                          java.lang.String xsl,
                                          boolean formatXsl,
                                          java.lang.String langType,
                                          boolean cacheable,
                                          boolean smallImage,
                                          java.lang.String smallImageURL,
                                          java.io.File smallFile,
                                          boolean addCommunityPermissions,
                                          boolean addGuestPermissions)
                                   throws com.liferay.portal.PortalException,
                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addTemplate

public static JournalTemplate addTemplate(long groupId,
                                          java.lang.String templateId,
                                          boolean autoTemplateId,
                                          java.lang.String structureId,
                                          java.lang.String name,
                                          java.lang.String description,
                                          java.lang.String xsl,
                                          boolean formatXsl,
                                          java.lang.String langType,
                                          boolean cacheable,
                                          boolean smallImage,
                                          java.lang.String smallImageURL,
                                          java.io.File smallFile,
                                          java.lang.String[] communityPermissions,
                                          java.lang.String[] guestPermissions)
                                   throws com.liferay.portal.PortalException,
                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

copyTemplate

public static JournalTemplate copyTemplate(long groupId,
                                           java.lang.String oldTemplateId,
                                           java.lang.String newTemplateId,
                                           boolean autoTemplateId)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteTemplate

public static void deleteTemplate(long groupId,
                                  java.lang.String templateId)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getStructureTemplates

public static java.util.List<JournalTemplate> getStructureTemplates(long groupId,
                                                                    java.lang.String structureId)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getTemplate

public static JournalTemplate getTemplate(long groupId,
                                          java.lang.String templateId)
                                   throws com.liferay.portal.PortalException,
                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateTemplate

public static JournalTemplate updateTemplate(long groupId,
                                             java.lang.String templateId,
                                             java.lang.String structureId,
                                             java.lang.String name,
                                             java.lang.String description,
                                             java.lang.String xsl,
                                             boolean formatXsl,
                                             java.lang.String langType,
                                             boolean cacheable,
                                             boolean smallImage,
                                             java.lang.String smallImageURL,
                                             java.io.File smallFile)
                                      throws com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getService

public static JournalTemplateService getService()

setService

public void setService(JournalTemplateService service)