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

java.lang.Object
  extended by com.liferay.portlet.journal.service.base.JournalStructureLocalServiceBaseImpl
      extended by com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.journal.service.JournalStructureLocalService, org.springframework.beans.factory.InitializingBean

public class JournalStructureLocalServiceImpl
extends JournalStructureLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portlet.journal.service.base.JournalStructureLocalServiceBaseImpl
counterLocalService, counterService, journalArticleFinder, journalArticleImageLocalService, journalArticleImagePersistence, journalArticleLocalService, journalArticlePersistence, journalArticleResourceLocalService, journalArticleResourcePersistence, journalArticleService, journalContentSearchLocalService, journalContentSearchPersistence, journalFeedFinder, journalFeedLocalService, journalFeedPersistence, journalFeedService, journalStructureFinder, journalStructurePersistence, journalTemplateFinder, journalTemplateLocalService, journalTemplatePersistence, journalTemplateService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService, webDAVPropsLocalService, webDAVPropsPersistence
 
Constructor Summary
JournalStructureLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.journal.model.JournalStructure addStructure(long userId, java.lang.String structureId, boolean autoStructureId, long plid, java.lang.String name, java.lang.String description, java.lang.String xsd, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.journal.model.JournalStructure addStructure(long userId, java.lang.String structureId, boolean autoStructureId, long plid, java.lang.String name, java.lang.String description, java.lang.String xsd, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.journal.model.JournalStructure addStructure(java.lang.String uuid, long userId, java.lang.String structureId, boolean autoStructureId, long plid, java.lang.String name, java.lang.String description, java.lang.String xsd, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.journal.model.JournalStructure addStructure(java.lang.String uuid, long userId, java.lang.String structureId, boolean autoStructureId, long plid, java.lang.String name, java.lang.String description, java.lang.String xsd, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addStructureResources(com.liferay.portlet.journal.model.JournalStructure structure, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addStructureResources(com.liferay.portlet.journal.model.JournalStructure structure, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addStructureResources(long groupId, java.lang.String structureId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addStructureResources(long groupId, java.lang.String structureId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(java.lang.String uuid, long userId, java.lang.String structureId, boolean autoStructureId, long groupId, java.lang.String name, java.lang.String description, java.lang.String xsd, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void checkNewLine(long groupId, java.lang.String structureId)
           
 void deleteStructure(com.liferay.portlet.journal.model.JournalStructure structure)
           
 void deleteStructure(long groupId, java.lang.String structureId)
           
 void deleteStructures(long groupId)
           
 com.liferay.portlet.journal.model.JournalStructure getStructure(long id)
           
 com.liferay.portlet.journal.model.JournalStructure getStructure(long groupId, java.lang.String structureId)
           
 java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
           
 java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(long groupId)
           
 java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(long groupId, int begin, int end)
           
 int getStructuresCount(long groupId)
           
 java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(long companyId, long groupId, java.lang.String keywords, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(long companyId, long groupId, java.lang.String structureId, java.lang.String name, java.lang.String description, boolean andOperator, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int searchCount(long companyId, long groupId, java.lang.String keywords)
           
 int searchCount(long companyId, long groupId, java.lang.String structureId, java.lang.String name, java.lang.String description, boolean andOperator)
           
 com.liferay.portlet.journal.model.JournalStructure updateStructure(long groupId, java.lang.String structureId, java.lang.String name, java.lang.String description, java.lang.String xsd)
           
protected  void validate(java.util.List<org.dom4j.Element> children, java.util.Set<java.lang.String> elNames)
           
protected  void validate(long groupId, java.lang.String structureId, boolean autoStructureId, java.lang.String name, java.lang.String description, java.lang.String xsd)
           
protected  void validate(java.lang.String name, java.lang.String description, java.lang.String xsd)
           
 
Methods inherited from class com.liferay.portlet.journal.service.base.JournalStructureLocalServiceBaseImpl
addJournalStructure, afterPropertiesSet, deleteJournalStructure, deleteJournalStructure, dynamicQuery, dynamicQuery, getCounterLocalService, getCounterService, getJournalArticleFinder, getJournalArticleImageLocalService, getJournalArticleImagePersistence, getJournalArticleLocalService, getJournalArticlePersistence, getJournalArticleResourceLocalService, getJournalArticleResourcePersistence, getJournalArticleService, getJournalContentSearchLocalService, getJournalContentSearchPersistence, getJournalFeedFinder, getJournalFeedLocalService, getJournalFeedPersistence, getJournalFeedService, getJournalStructureFinder, getJournalStructurePersistence, getJournalTemplateFinder, getJournalTemplateLocalService, getJournalTemplatePersistence, getJournalTemplateService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWebDAVPropsLocalService, getWebDAVPropsPersistence, setCounterLocalService, setCounterService, setJournalArticleFinder, setJournalArticleImageLocalService, setJournalArticleImagePersistence, setJournalArticleLocalService, setJournalArticlePersistence, setJournalArticleResourceLocalService, setJournalArticleResourcePersistence, setJournalArticleService, setJournalContentSearchLocalService, setJournalContentSearchPersistence, setJournalFeedFinder, setJournalFeedLocalService, setJournalFeedPersistence, setJournalFeedService, setJournalStructureFinder, setJournalStructurePersistence, setJournalTemplateFinder, setJournalTemplateLocalService, setJournalTemplatePersistence, setJournalTemplateService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWebDAVPropsLocalService, setWebDAVPropsPersistence, updateJournalStructure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalStructureLocalServiceImpl

public JournalStructureLocalServiceImpl()
Method Detail

addStructure

public com.liferay.portlet.journal.model.JournalStructure addStructure(long userId,
                                                                       java.lang.String structureId,
                                                                       boolean autoStructureId,
                                                                       long plid,
                                                                       java.lang.String name,
                                                                       java.lang.String description,
                                                                       java.lang.String xsd,
                                                                       boolean addCommunityPermissions,
                                                                       boolean addGuestPermissions)
                                                                throws com.liferay.portal.PortalException,
                                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addStructure

public com.liferay.portlet.journal.model.JournalStructure addStructure(java.lang.String uuid,
                                                                       long userId,
                                                                       java.lang.String structureId,
                                                                       boolean autoStructureId,
                                                                       long plid,
                                                                       java.lang.String name,
                                                                       java.lang.String description,
                                                                       java.lang.String xsd,
                                                                       boolean addCommunityPermissions,
                                                                       boolean addGuestPermissions)
                                                                throws com.liferay.portal.PortalException,
                                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addStructure

public com.liferay.portlet.journal.model.JournalStructure addStructure(long userId,
                                                                       java.lang.String structureId,
                                                                       boolean autoStructureId,
                                                                       long plid,
                                                                       java.lang.String name,
                                                                       java.lang.String description,
                                                                       java.lang.String xsd,
                                                                       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

addStructure

public com.liferay.portlet.journal.model.JournalStructure addStructure(java.lang.String uuid,
                                                                       long userId,
                                                                       java.lang.String structureId,
                                                                       boolean autoStructureId,
                                                                       long plid,
                                                                       java.lang.String name,
                                                                       java.lang.String description,
                                                                       java.lang.String xsd,
                                                                       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

addStructureToGroup

public com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(java.lang.String uuid,
                                                                              long userId,
                                                                              java.lang.String structureId,
                                                                              boolean autoStructureId,
                                                                              long groupId,
                                                                              java.lang.String name,
                                                                              java.lang.String description,
                                                                              java.lang.String xsd,
                                                                              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

addStructureResources

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

addStructureResources

public void addStructureResources(com.liferay.portlet.journal.model.JournalStructure structure,
                                  boolean addCommunityPermissions,
                                  boolean addGuestPermissions)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addStructureResources

public void addStructureResources(long groupId,
                                  java.lang.String structureId,
                                  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

addStructureResources

public void addStructureResources(com.liferay.portlet.journal.model.JournalStructure structure,
                                  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 structureId)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteStructure

public void deleteStructure(long groupId,
                            java.lang.String structureId)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteStructure

public void deleteStructure(com.liferay.portlet.journal.model.JournalStructure structure)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteStructures

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

getStructure

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

getStructure

public com.liferay.portlet.journal.model.JournalStructure getStructure(long groupId,
                                                                       java.lang.String structureId)
                                                                throws com.liferay.portal.PortalException,
                                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getStructures

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

getStructures

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

getStructures

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

getStructuresCount

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

search

public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(long companyId,
                                                                                 long groupId,
                                                                                 java.lang.String keywords,
                                                                                 int begin,
                                                                                 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.JournalStructure> search(long companyId,
                                                                                 long groupId,
                                                                                 java.lang.String structureId,
                                                                                 java.lang.String name,
                                                                                 java.lang.String description,
                                                                                 boolean andOperator,
                                                                                 int begin,
                                                                                 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)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchCount

public int searchCount(long companyId,
                       long groupId,
                       java.lang.String structureId,
                       java.lang.String name,
                       java.lang.String description,
                       boolean andOperator)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateStructure

public com.liferay.portlet.journal.model.JournalStructure updateStructure(long groupId,
                                                                          java.lang.String structureId,
                                                                          java.lang.String name,
                                                                          java.lang.String description,
                                                                          java.lang.String xsd)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(long groupId,
                        java.lang.String structureId,
                        boolean autoStructureId,
                        java.lang.String name,
                        java.lang.String description,
                        java.lang.String xsd)
                 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 xsd)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

validate

protected void validate(java.util.List<org.dom4j.Element> children,
                        java.util.Set<java.lang.String> elNames)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException