Liferay 6.1.2-ce-ga3

com.liferay.portlet.journal.service
Class JournalTemplateLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.journal.service.JournalTemplateLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<JournalTemplateLocalService>, JournalTemplateLocalService

public class JournalTemplateLocalServiceWrapper
extends Object
implements JournalTemplateLocalService, ServiceWrapper<JournalTemplateLocalService>

This class is a wrapper for JournalTemplateLocalService.

See Also:
JournalTemplateLocalService

Constructor Summary
JournalTemplateLocalServiceWrapper(JournalTemplateLocalService journalTemplateLocalService)
           
 
Method Summary
 JournalTemplate addJournalTemplate(JournalTemplate journalTemplate)
          Adds the journal template to the database.
 JournalTemplate addTemplate(long userId, long groupId, String templateId, boolean autoTemplateId, String structureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String xsl, boolean formatXsl, String langType, boolean cacheable, boolean smallImage, String smallImageURL, File smallImageFile, ServiceContext serviceContext)
           
 void addTemplateResources(JournalTemplate template, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addTemplateResources(JournalTemplate template, String[] groupPermissions, String[] guestPermissions)
           
 void addTemplateResources(long groupId, String templateId, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addTemplateResources(long groupId, String templateId, String[] groupPermissions, String[] guestPermissions)
           
 void checkNewLine(long groupId, String templateId)
           
 JournalTemplate copyTemplate(long userId, long groupId, String oldTemplateId, String newTemplateId, boolean autoTemplateId)
           
 JournalTemplate createJournalTemplate(long id)
          Creates a new journal template with the primary key.
 JournalTemplate deleteJournalTemplate(JournalTemplate journalTemplate)
          Deletes the journal template from the database.
 JournalTemplate deleteJournalTemplate(long id)
          Deletes the journal template with the primary key from the database.
 void deleteTemplate(JournalTemplate template)
           
 void deleteTemplate(long groupId, String templateId)
           
 void deleteTemplates(long groupId)
           
 DynamicQuery dynamicQuery()
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows that match the dynamic query.
 JournalTemplate fetchJournalTemplate(long id)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 JournalTemplate getJournalTemplate(long id)
          Returns the journal template with the primary key.
 JournalTemplate getJournalTemplateByUuidAndGroupId(String uuid, long groupId)
          Returns the journal template with the UUID in the group.
 List<JournalTemplate> getJournalTemplates(int start, int end)
          Returns a range of all the journal templates.
 int getJournalTemplatesCount()
          Returns the number of journal templates.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 List<JournalTemplate> getStructureTemplates(long groupId, String structureId)
           
 List<JournalTemplate> getStructureTemplates(long groupId, String structureId, int start, int end)
           
 int getStructureTemplatesCount(long groupId, String structureId)
           
 JournalTemplate getTemplate(long id)
           
 JournalTemplate getTemplate(long groupId, String templateId)
           
 JournalTemplate getTemplate(long groupId, String templateId, boolean includeGlobalTemplates)
           
 JournalTemplate getTemplateBySmallImageId(long smallImageId)
           
 List<JournalTemplate> getTemplates()
           
 List<JournalTemplate> getTemplates(long groupId)
           
 List<JournalTemplate> getTemplates(long groupId, int start, int end)
           
 int getTemplatesCount(long groupId)
           
 JournalTemplateLocalService getWrappedJournalTemplateLocalService()
          Deprecated. Renamed to getWrappedService()
 JournalTemplateLocalService getWrappedService()
           
 boolean hasTemplate(long groupId, String templateId)
           
 List<JournalTemplate> search(long companyId, long[] groupIds, String keywords, String structureId, String structureIdComparator, int start, int end, OrderByComparator obc)
           
 List<JournalTemplate> search(long companyId, long[] groupIds, String templateId, String structureId, String structureIdComparator, String name, String description, boolean andOperator, int start, int end, OrderByComparator obc)
           
 int searchCount(long companyId, long[] groupIds, String keywords, String structureId, String structureIdComparator)
           
 int searchCount(long companyId, long[] groupIds, String templateId, String structureId, String structureIdComparator, String name, String description, boolean andOperator)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedJournalTemplateLocalService(JournalTemplateLocalService journalTemplateLocalService)
          Deprecated. Renamed to setWrappedService(com.liferay.portlet.journal.service.JournalTemplateLocalService)
 void setWrappedService(JournalTemplateLocalService journalTemplateLocalService)
           
 JournalTemplate updateJournalTemplate(JournalTemplate journalTemplate)
          Updates the journal template in the database or adds it if it does not yet exist.
 JournalTemplate updateJournalTemplate(JournalTemplate journalTemplate, boolean merge)
          Updates the journal template in the database or adds it if it does not yet exist.
 JournalTemplate updateTemplate(long groupId, String templateId, String structureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String xsl, boolean formatXsl, String langType, boolean cacheable, boolean smallImage, String smallImageURL, File smallImageFile, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalTemplateLocalServiceWrapper

public JournalTemplateLocalServiceWrapper(JournalTemplateLocalService journalTemplateLocalService)
Method Detail

addJournalTemplate

public JournalTemplate addJournalTemplate(JournalTemplate journalTemplate)
                                   throws SystemException
Adds the journal template to the database. Also notifies the appropriate model listeners.

Specified by:
addJournalTemplate in interface JournalTemplateLocalService
Parameters:
journalTemplate - the journal template
Returns:
the journal template that was added
Throws:
SystemException - if a system exception occurred

createJournalTemplate

public JournalTemplate createJournalTemplate(long id)
Creates a new journal template with the primary key. Does not add the journal template to the database.

Specified by:
createJournalTemplate in interface JournalTemplateLocalService
Parameters:
id - the primary key for the new journal template
Returns:
the new journal template

deleteJournalTemplate

public JournalTemplate deleteJournalTemplate(long id)
                                      throws PortalException,
                                             SystemException
Deletes the journal template with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteJournalTemplate in interface JournalTemplateLocalService
Parameters:
id - the primary key of the journal template
Returns:
the journal template that was removed
Throws:
PortalException - if a journal template with the primary key could not be found
SystemException - if a system exception occurred

deleteJournalTemplate

public JournalTemplate deleteJournalTemplate(JournalTemplate journalTemplate)
                                      throws SystemException
Deletes the journal template from the database. Also notifies the appropriate model listeners.

Specified by:
deleteJournalTemplate in interface JournalTemplateLocalService
Parameters:
journalTemplate - the journal template
Returns:
the journal template that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface JournalTemplateLocalService

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface JournalTemplateLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface JournalTemplateLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface JournalTemplateLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Returns the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface JournalTemplateLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchJournalTemplate

public JournalTemplate fetchJournalTemplate(long id)
                                     throws SystemException
Specified by:
fetchJournalTemplate in interface JournalTemplateLocalService
Throws:
SystemException

getJournalTemplate

public JournalTemplate getJournalTemplate(long id)
                                   throws PortalException,
                                          SystemException
Returns the journal template with the primary key.

Specified by:
getJournalTemplate in interface JournalTemplateLocalService
Parameters:
id - the primary key of the journal template
Returns:
the journal template
Throws:
PortalException - if a journal template with the primary key could not be found
SystemException - if a system exception occurred

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException,
                                        SystemException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

getJournalTemplateByUuidAndGroupId

public JournalTemplate getJournalTemplateByUuidAndGroupId(String uuid,
                                                          long groupId)
                                                   throws PortalException,
                                                          SystemException
Returns the journal template with the UUID in the group.

Specified by:
getJournalTemplateByUuidAndGroupId in interface JournalTemplateLocalService
Parameters:
uuid - the UUID of journal template
groupId - the group id of the journal template
Returns:
the journal template
Throws:
PortalException - if a journal template with the UUID in the group could not be found
SystemException - if a system exception occurred

getJournalTemplates

public List<JournalTemplate> getJournalTemplates(int start,
                                                 int end)
                                          throws SystemException
Returns a range of all the journal templates.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getJournalTemplates in interface JournalTemplateLocalService
Parameters:
start - the lower bound of the range of journal templates
end - the upper bound of the range of journal templates (not inclusive)
Returns:
the range of journal templates
Throws:
SystemException - if a system exception occurred

getJournalTemplatesCount

public int getJournalTemplatesCount()
                             throws SystemException
Returns the number of journal templates.

Specified by:
getJournalTemplatesCount in interface JournalTemplateLocalService
Returns:
the number of journal templates
Throws:
SystemException - if a system exception occurred

updateJournalTemplate

public JournalTemplate updateJournalTemplate(JournalTemplate journalTemplate)
                                      throws SystemException
Updates the journal template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateJournalTemplate in interface JournalTemplateLocalService
Parameters:
journalTemplate - the journal template
Returns:
the journal template that was updated
Throws:
SystemException - if a system exception occurred

updateJournalTemplate

public JournalTemplate updateJournalTemplate(JournalTemplate journalTemplate,
                                             boolean merge)
                                      throws SystemException
Updates the journal template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateJournalTemplate in interface JournalTemplateLocalService
Parameters:
journalTemplate - the journal template
merge - whether to merge the journal template with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the journal template that was updated
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

public String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Specified by:
getBeanIdentifier in interface JournalTemplateLocalService
Returns:
the Spring bean ID for this bean

setBeanIdentifier

public void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Specified by:
setBeanIdentifier in interface JournalTemplateLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

addTemplate

public JournalTemplate addTemplate(long userId,
                                   long groupId,
                                   String templateId,
                                   boolean autoTemplateId,
                                   String structureId,
                                   Map<Locale,String> nameMap,
                                   Map<Locale,String> descriptionMap,
                                   String xsl,
                                   boolean formatXsl,
                                   String langType,
                                   boolean cacheable,
                                   boolean smallImage,
                                   String smallImageURL,
                                   File smallImageFile,
                                   ServiceContext serviceContext)
                            throws PortalException,
                                   SystemException
Specified by:
addTemplate in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

addTemplateResources

public void addTemplateResources(JournalTemplate template,
                                 boolean addGroupPermissions,
                                 boolean addGuestPermissions)
                          throws PortalException,
                                 SystemException
Specified by:
addTemplateResources in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

addTemplateResources

public void addTemplateResources(JournalTemplate template,
                                 String[] groupPermissions,
                                 String[] guestPermissions)
                          throws PortalException,
                                 SystemException
Specified by:
addTemplateResources in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

addTemplateResources

public void addTemplateResources(long groupId,
                                 String templateId,
                                 boolean addGroupPermissions,
                                 boolean addGuestPermissions)
                          throws PortalException,
                                 SystemException
Specified by:
addTemplateResources in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

addTemplateResources

public void addTemplateResources(long groupId,
                                 String templateId,
                                 String[] groupPermissions,
                                 String[] guestPermissions)
                          throws PortalException,
                                 SystemException
Specified by:
addTemplateResources in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

checkNewLine

public void checkNewLine(long groupId,
                         String templateId)
                  throws PortalException,
                         SystemException
Specified by:
checkNewLine in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

copyTemplate

public JournalTemplate copyTemplate(long userId,
                                    long groupId,
                                    String oldTemplateId,
                                    String newTemplateId,
                                    boolean autoTemplateId)
                             throws PortalException,
                                    SystemException
Specified by:
copyTemplate in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

deleteTemplate

public void deleteTemplate(JournalTemplate template)
                    throws PortalException,
                           SystemException
Specified by:
deleteTemplate in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

deleteTemplate

public void deleteTemplate(long groupId,
                           String templateId)
                    throws PortalException,
                           SystemException
Specified by:
deleteTemplate in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

deleteTemplates

public void deleteTemplates(long groupId)
                     throws PortalException,
                            SystemException
Specified by:
deleteTemplates in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

getStructureTemplates

public List<JournalTemplate> getStructureTemplates(long groupId,
                                                   String structureId)
                                            throws SystemException
Specified by:
getStructureTemplates in interface JournalTemplateLocalService
Throws:
SystemException

getStructureTemplates

public List<JournalTemplate> getStructureTemplates(long groupId,
                                                   String structureId,
                                                   int start,
                                                   int end)
                                            throws SystemException
Specified by:
getStructureTemplates in interface JournalTemplateLocalService
Throws:
SystemException

getStructureTemplatesCount

public int getStructureTemplatesCount(long groupId,
                                      String structureId)
                               throws SystemException
Specified by:
getStructureTemplatesCount in interface JournalTemplateLocalService
Throws:
SystemException

getTemplate

public JournalTemplate getTemplate(long id)
                            throws PortalException,
                                   SystemException
Specified by:
getTemplate in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

getTemplate

public JournalTemplate getTemplate(long groupId,
                                   String templateId)
                            throws PortalException,
                                   SystemException
Specified by:
getTemplate in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

getTemplate

public JournalTemplate getTemplate(long groupId,
                                   String templateId,
                                   boolean includeGlobalTemplates)
                            throws PortalException,
                                   SystemException
Specified by:
getTemplate in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

getTemplateBySmallImageId

public JournalTemplate getTemplateBySmallImageId(long smallImageId)
                                          throws PortalException,
                                                 SystemException
Specified by:
getTemplateBySmallImageId in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

getTemplates

public List<JournalTemplate> getTemplates()
                                   throws SystemException
Specified by:
getTemplates in interface JournalTemplateLocalService
Throws:
SystemException

getTemplates

public List<JournalTemplate> getTemplates(long groupId)
                                   throws SystemException
Specified by:
getTemplates in interface JournalTemplateLocalService
Throws:
SystemException

getTemplates

public List<JournalTemplate> getTemplates(long groupId,
                                          int start,
                                          int end)
                                   throws SystemException
Specified by:
getTemplates in interface JournalTemplateLocalService
Throws:
SystemException

getTemplatesCount

public int getTemplatesCount(long groupId)
                      throws SystemException
Specified by:
getTemplatesCount in interface JournalTemplateLocalService
Throws:
SystemException

hasTemplate

public boolean hasTemplate(long groupId,
                           String templateId)
                    throws SystemException
Specified by:
hasTemplate in interface JournalTemplateLocalService
Throws:
SystemException

search

public List<JournalTemplate> search(long companyId,
                                    long[] groupIds,
                                    String keywords,
                                    String structureId,
                                    String structureIdComparator,
                                    int start,
                                    int end,
                                    OrderByComparator obc)
                             throws SystemException
Specified by:
search in interface JournalTemplateLocalService
Throws:
SystemException

search

public List<JournalTemplate> search(long companyId,
                                    long[] groupIds,
                                    String templateId,
                                    String structureId,
                                    String structureIdComparator,
                                    String name,
                                    String description,
                                    boolean andOperator,
                                    int start,
                                    int end,
                                    OrderByComparator obc)
                             throws SystemException
Specified by:
search in interface JournalTemplateLocalService
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       long[] groupIds,
                       String keywords,
                       String structureId,
                       String structureIdComparator)
                throws SystemException
Specified by:
searchCount in interface JournalTemplateLocalService
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       long[] groupIds,
                       String templateId,
                       String structureId,
                       String structureIdComparator,
                       String name,
                       String description,
                       boolean andOperator)
                throws SystemException
Specified by:
searchCount in interface JournalTemplateLocalService
Throws:
SystemException

updateTemplate

public JournalTemplate updateTemplate(long groupId,
                                      String templateId,
                                      String structureId,
                                      Map<Locale,String> nameMap,
                                      Map<Locale,String> descriptionMap,
                                      String xsl,
                                      boolean formatXsl,
                                      String langType,
                                      boolean cacheable,
                                      boolean smallImage,
                                      String smallImageURL,
                                      File smallImageFile,
                                      ServiceContext serviceContext)
                               throws PortalException,
                                      SystemException
Specified by:
updateTemplate in interface JournalTemplateLocalService
Throws:
PortalException
SystemException

getWrappedJournalTemplateLocalService

public JournalTemplateLocalService getWrappedJournalTemplateLocalService()
Deprecated. Renamed to getWrappedService()


setWrappedJournalTemplateLocalService

public void setWrappedJournalTemplateLocalService(JournalTemplateLocalService journalTemplateLocalService)
Deprecated. Renamed to setWrappedService(com.liferay.portlet.journal.service.JournalTemplateLocalService)


getWrappedService

public JournalTemplateLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<JournalTemplateLocalService>

setWrappedService

public void setWrappedService(JournalTemplateLocalService journalTemplateLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<JournalTemplateLocalService>

Liferay 6.1.2-ce-ga3