com.liferay.portlet.journal.service
Class JournalTemplateLocalServiceUtil

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

public class JournalTemplateLocalServiceUtil
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.JournalTemplateLocalService 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:
JournalTemplateLocalService

Constructor Summary
JournalTemplateLocalServiceUtil()
           
 
Method Summary
static JournalTemplate addJournalTemplate(JournalTemplate journalTemplate)
           
static JournalTemplate addTemplate(long userId, 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 userId, 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 addTemplate(java.lang.String uuid, long userId, 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(java.lang.String uuid, long userId, 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.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void addTemplateResources(JournalTemplate template, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addTemplateResources(JournalTemplate template, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void addTemplateResources(long groupId, java.lang.String templateId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addTemplateResources(long groupId, java.lang.String templateId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void checkNewLine(long groupId, java.lang.String templateId)
           
static JournalTemplate copyTemplate(long userId, long groupId, java.lang.String oldTemplateId, java.lang.String newTemplateId, boolean autoTemplateId)
           
static JournalTemplate createJournalTemplate(long id)
           
static void deleteJournalTemplate(JournalTemplate journalTemplate)
           
static void deleteJournalTemplate(long id)
           
static void deleteTemplate(JournalTemplate template)
           
static void deleteTemplate(long groupId, java.lang.String templateId)
           
static void deleteTemplates(long groupId)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static JournalTemplate getJournalTemplate(long id)
           
static java.util.List<JournalTemplate> getJournalTemplates(int start, int end)
           
static int getJournalTemplatesCount()
           
static JournalTemplateLocalService getService()
           
static java.util.List<JournalTemplate> getStructureTemplates(long groupId, java.lang.String structureId)
           
static java.util.List<JournalTemplate> getStructureTemplates(long groupId, java.lang.String structureId, int start, int end)
           
static int getStructureTemplatesCount(long groupId, java.lang.String structureId)
           
static JournalTemplate getTemplate(long id)
           
static JournalTemplate getTemplate(long groupId, java.lang.String templateId)
           
static JournalTemplate getTemplateBySmallImageId(long smallImageId)
           
static java.util.List<JournalTemplate> getTemplates()
           
static java.util.List<JournalTemplate> getTemplates(long groupId)
           
static java.util.List<JournalTemplate> getTemplates(long groupId, int start, int end)
           
static int getTemplatesCount(long groupId)
           
static boolean hasTemplate(long groupId, java.lang.String templateId)
           
static java.util.List<JournalTemplate> search(long companyId, long groupId, java.lang.String keywords, java.lang.String structureId, java.lang.String structureIdComparator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<JournalTemplate> search(long companyId, long groupId, java.lang.String templateId, java.lang.String structureId, java.lang.String structureIdComparator, java.lang.String name, java.lang.String description, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int searchCount(long companyId, long groupId, java.lang.String keywords, java.lang.String structureId, java.lang.String structureIdComparator)
           
static int searchCount(long companyId, long groupId, java.lang.String templateId, java.lang.String structureId, java.lang.String structureIdComparator, java.lang.String name, java.lang.String description, boolean andOperator)
           
 void setService(JournalTemplateLocalService service)
           
static JournalTemplate updateJournalTemplate(JournalTemplate journalTemplate)
           
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

JournalTemplateLocalServiceUtil

public JournalTemplateLocalServiceUtil()
Method Detail

addJournalTemplate

public static JournalTemplate addJournalTemplate(JournalTemplate journalTemplate)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createJournalTemplate

public static JournalTemplate createJournalTemplate(long id)

deleteJournalTemplate

public static void deleteJournalTemplate(long id)
                                  throws com.liferay.portal.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteJournalTemplate

public static void deleteJournalTemplate(JournalTemplate journalTemplate)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getJournalTemplate

public static JournalTemplate getJournalTemplate(long id)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getJournalTemplates

public static java.util.List<JournalTemplate> getJournalTemplates(int start,
                                                                  int end)
                                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getJournalTemplatesCount

public static int getJournalTemplatesCount()
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateJournalTemplate

public static JournalTemplate updateJournalTemplate(JournalTemplate journalTemplate)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addTemplate

public static JournalTemplate addTemplate(long userId,
                                          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(java.lang.String uuid,
                                          long userId,
                                          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 userId,
                                          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

addTemplate

public static JournalTemplate addTemplate(java.lang.String uuid,
                                          long userId,
                                          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.Boolean addCommunityPermissions,
                                          java.lang.Boolean addGuestPermissions,
                                          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

addTemplateResources

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

addTemplateResources

public static void addTemplateResources(JournalTemplate template,
                                        boolean addCommunityPermissions,
                                        boolean addGuestPermissions)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addTemplateResources

public static void addTemplateResources(long groupId,
                                        java.lang.String templateId,
                                        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

addTemplateResources

public static void addTemplateResources(JournalTemplate template,
                                        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

checkNewLine

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

copyTemplate

public static JournalTemplate copyTemplate(long userId,
                                           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

deleteTemplate

public static void deleteTemplate(JournalTemplate template)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteTemplates

public static void deleteTemplates(long groupId)
                            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.SystemException
Throws:
com.liferay.portal.SystemException

getStructureTemplates

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

getStructureTemplatesCount

public static int getStructureTemplatesCount(long groupId,
                                             java.lang.String structureId)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getTemplate

public static JournalTemplate getTemplate(long id)
                                   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

getTemplateBySmallImageId

public static JournalTemplate getTemplateBySmallImageId(long smallImageId)
                                                 throws com.liferay.portal.PortalException,
                                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getTemplates

public static java.util.List<JournalTemplate> getTemplates()
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getTemplates

public static java.util.List<JournalTemplate> getTemplates(long groupId)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getTemplates

public static java.util.List<JournalTemplate> getTemplates(long groupId,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getTemplatesCount

public static int getTemplatesCount(long groupId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasTemplate

public static boolean hasTemplate(long groupId,
                                  java.lang.String templateId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public static java.util.List<JournalTemplate> search(long companyId,
                                                     long groupId,
                                                     java.lang.String keywords,
                                                     java.lang.String structureId,
                                                     java.lang.String structureIdComparator,
                                                     int start,
                                                     int end,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public static java.util.List<JournalTemplate> search(long companyId,
                                                     long groupId,
                                                     java.lang.String templateId,
                                                     java.lang.String structureId,
                                                     java.lang.String structureIdComparator,
                                                     java.lang.String name,
                                                     java.lang.String description,
                                                     boolean andOperator,
                                                     int start,
                                                     int end,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchCount

public static int searchCount(long companyId,
                              long groupId,
                              java.lang.String keywords,
                              java.lang.String structureId,
                              java.lang.String structureIdComparator)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchCount

public static int searchCount(long companyId,
                              long groupId,
                              java.lang.String templateId,
                              java.lang.String structureId,
                              java.lang.String structureIdComparator,
                              java.lang.String name,
                              java.lang.String description,
                              boolean andOperator)
                       throws com.liferay.portal.SystemException
Throws:
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 JournalTemplateLocalService getService()

setService

public void setService(JournalTemplateLocalService service)