com.liferay.portlet.journal.service.impl
Class JournalTemplateLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.journal.service.base.JournalTemplateLocalServiceBaseImpl
      extended by com.liferay.portlet.journal.service.impl.JournalTemplateLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.journal.service.JournalTemplateLocalService

public class JournalTemplateLocalServiceImpl
extends JournalTemplateLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portlet.journal.service.base.JournalTemplateLocalServiceBaseImpl
counterLocalService, counterService, imageLocalService, imagePersistence, journalArticleFinder, journalArticleImageLocalService, journalArticleImagePersistence, journalArticleLocalService, journalArticlePersistence, journalArticleResourceLocalService, journalArticleResourcePersistence, journalArticleService, journalContentSearchLocalService, journalContentSearchPersistence, journalFeedFinder, journalFeedLocalService, journalFeedPersistence, journalFeedService, journalStructureFinder, journalStructureLocalService, journalStructurePersistence, journalStructureService, journalTemplateFinder, journalTemplateLocalService, journalTemplatePersistence, journalTemplateService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService, webDAVPropsLocalService, webDAVPropsPersistence
 
Constructor Summary
JournalTemplateLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.journal.model.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)
           
 com.liferay.portlet.journal.model.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)
           
 com.liferay.portlet.journal.model.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)
           
 com.liferay.portlet.journal.model.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)
           
 void addTemplateResources(com.liferay.portlet.journal.model.JournalTemplate template, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addTemplateResources(com.liferay.portlet.journal.model.JournalTemplate template, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addTemplateResources(long groupId, java.lang.String templateId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addTemplateResources(long groupId, java.lang.String templateId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void checkNewLine(long groupId, java.lang.String templateId)
           
 com.liferay.portlet.journal.model.JournalTemplate copyTemplate(long userId, long groupId, java.lang.String oldTemplateId, java.lang.String newTemplateId, boolean autoTemplateId)
           
 void deleteTemplate(com.liferay.portlet.journal.model.JournalTemplate template)
           
 void deleteTemplate(long groupId, java.lang.String templateId)
           
 void deleteTemplates(long groupId)
           
 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(long groupId, java.lang.String structureId)
           
 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(long groupId, java.lang.String structureId, int start, int end)
           
 int getStructureTemplatesCount(long groupId, java.lang.String structureId)
           
 com.liferay.portlet.journal.model.JournalTemplate getTemplate(long id)
           
 com.liferay.portlet.journal.model.JournalTemplate getTemplate(long groupId, java.lang.String templateId)
           
 com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(long smallImageId)
           
 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
           
 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(long groupId)
           
 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(long groupId, int start, int end)
           
 int getTemplatesCount(long groupId)
           
 boolean hasTemplate(long groupId, java.lang.String templateId)
           
protected  void saveImages(boolean smallImage, long smallImageId, java.io.File smallFile, byte[] smallBytes)
           
 java.util.List<com.liferay.portlet.journal.model.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)
           
 java.util.List<com.liferay.portlet.journal.model.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)
           
 int searchCount(long companyId, long groupId, java.lang.String keywords, java.lang.String structureId, java.lang.String structureIdComparator)
           
 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)
           
 com.liferay.portlet.journal.model.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)
           
protected  void validate(long groupId, java.lang.String templateId, boolean autoTemplateId, java.lang.String name, java.lang.String description, java.lang.String xsl, boolean smallImage, java.lang.String smallImageURL, java.io.File smallFile, byte[] smallBytes)
           
protected  void validate(java.lang.String templateId)
           
protected  void validate(java.lang.String name, java.lang.String description, java.lang.String xsl, boolean smallImage, java.lang.String smallImageURL, java.io.File smallFile, byte[] smallBytes)
           
 
Methods inherited from class com.liferay.portlet.journal.service.base.JournalTemplateLocalServiceBaseImpl
addJournalTemplate, createJournalTemplate, deleteJournalTemplate, deleteJournalTemplate, dynamicQuery, dynamicQuery, getCounterLocalService, getCounterService, getImageLocalService, getImagePersistence, getJournalArticleFinder, getJournalArticleImageLocalService, getJournalArticleImagePersistence, getJournalArticleLocalService, getJournalArticlePersistence, getJournalArticleResourceLocalService, getJournalArticleResourcePersistence, getJournalArticleService, getJournalContentSearchLocalService, getJournalContentSearchPersistence, getJournalFeedFinder, getJournalFeedLocalService, getJournalFeedPersistence, getJournalFeedService, getJournalStructureFinder, getJournalStructureLocalService, getJournalStructurePersistence, getJournalStructureService, getJournalTemplate, getJournalTemplateFinder, getJournalTemplateLocalService, getJournalTemplatePersistence, getJournalTemplates, getJournalTemplatesCount, getJournalTemplateService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWebDAVPropsLocalService, getWebDAVPropsPersistence, setCounterLocalService, setCounterService, setImageLocalService, setImagePersistence, setJournalArticleFinder, setJournalArticleImageLocalService, setJournalArticleImagePersistence, setJournalArticleLocalService, setJournalArticlePersistence, setJournalArticleResourceLocalService, setJournalArticleResourcePersistence, setJournalArticleService, setJournalContentSearchLocalService, setJournalContentSearchPersistence, setJournalFeedFinder, setJournalFeedLocalService, setJournalFeedPersistence, setJournalFeedService, setJournalStructureFinder, setJournalStructureLocalService, setJournalStructurePersistence, setJournalStructureService, setJournalTemplateFinder, setJournalTemplateLocalService, setJournalTemplatePersistence, setJournalTemplateService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWebDAVPropsLocalService, setWebDAVPropsPersistence, updateJournalTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalTemplateLocalServiceImpl

public JournalTemplateLocalServiceImpl()
Method Detail

addTemplate

public com.liferay.portlet.journal.model.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 com.liferay.portlet.journal.model.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 com.liferay.portlet.journal.model.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 com.liferay.portlet.journal.model.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 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 void addTemplateResources(com.liferay.portlet.journal.model.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 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 void addTemplateResources(com.liferay.portlet.journal.model.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 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 com.liferay.portlet.journal.model.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 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 void deleteTemplate(com.liferay.portlet.journal.model.JournalTemplate template)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteTemplates

public void deleteTemplates(long groupId)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getStructureTemplates

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

getStructureTemplates

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

getStructureTemplatesCount

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

getTemplate

public com.liferay.portlet.journal.model.JournalTemplate getTemplate(long id)
                                                              throws com.liferay.portal.PortalException,
                                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getTemplate

public com.liferay.portlet.journal.model.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 com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(long smallImageId)
                                                                            throws com.liferay.portal.PortalException,
                                                                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getTemplates

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

getTemplates

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

getTemplates

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

getTemplatesCount

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

hasTemplate

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

search

public java.util.List<com.liferay.portlet.journal.model.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 java.util.List<com.liferay.portlet.journal.model.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 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 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 com.liferay.portlet.journal.model.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

saveImages

protected void saveImages(boolean smallImage,
                          long smallImageId,
                          java.io.File smallFile,
                          byte[] smallBytes)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(java.lang.String templateId)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

validate

protected void validate(long groupId,
                        java.lang.String templateId,
                        boolean autoTemplateId,
                        java.lang.String name,
                        java.lang.String description,
                        java.lang.String xsl,
                        boolean smallImage,
                        java.lang.String smallImageURL,
                        java.io.File smallFile,
                        byte[] smallBytes)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(java.lang.String name,
                        java.lang.String description,
                        java.lang.String xsl,
                        boolean smallImage,
                        java.lang.String smallImageURL,
                        java.io.File smallFile,
                        byte[] smallBytes)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException