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.

com.liferay.portlet.journal.service.JournalTemplateServiceFactory is responsible for the lookup of the bean.

Author:
Brian Wing Shun Chan
See Also:
JournalTemplateService, JournalTemplateServiceFactory

Constructor Summary
JournalTemplateServiceUtil()
           
 
Method Summary
static JournalTemplate addTemplate(java.lang.String templateId, boolean autoTemplateId, long plid, 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(java.lang.String templateId, boolean autoTemplateId, long plid, 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 void deleteTemplate(long groupId, java.lang.String templateId)
           
static java.util.List<JournalTemplate> getStructureTemplates(long groupId, java.lang.String structureId)
           
static JournalTemplate getTemplate(long groupId, java.lang.String templateId)
           
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(java.lang.String templateId,
                                          boolean autoTemplateId,
                                          long plid,
                                          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,
                                          java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

addTemplate

public static JournalTemplate addTemplate(java.lang.String templateId,
                                          boolean autoTemplateId,
                                          long plid,
                                          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,
                                          java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

deleteTemplate

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

getStructureTemplates

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

getTemplate

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

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,
                                             java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException