001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Propagation;
022    import com.liferay.portal.kernel.transaction.Transactional;
023    import com.liferay.portal.service.BaseService;
024    
025    /**
026     * The interface for the journal template remote service.
027     *
028     * <p>
029     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see JournalTemplateServiceUtil
034     * @see com.liferay.portlet.journal.service.base.JournalTemplateServiceBaseImpl
035     * @see com.liferay.portlet.journal.service.impl.JournalTemplateServiceImpl
036     * @generated
037     */
038    @JSONWebService
039    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
040            PortalException.class, SystemException.class})
041    public interface JournalTemplateService extends BaseService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * Never modify or reference this interface directly. Always use {@link JournalTemplateServiceUtil} to access the journal template remote service. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalTemplateServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
046             */
047    
048            /**
049            * Returns the Spring bean ID for this bean.
050            *
051            * @return the Spring bean ID for this bean
052            */
053            public java.lang.String getBeanIdentifier();
054    
055            /**
056            * Sets the Spring bean ID for this bean.
057            *
058            * @param beanIdentifier the Spring bean ID for this bean
059            */
060            public void setBeanIdentifier(java.lang.String beanIdentifier);
061    
062            public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
063                    long groupId, java.lang.String templateId, boolean autoTemplateId,
064                    java.lang.String structureId,
065                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
066                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
067                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
068                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
069                    java.io.File smallFile,
070                    com.liferay.portal.service.ServiceContext serviceContext)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
075                    long groupId, java.lang.String templateId, boolean autoTemplateId,
076                    java.lang.String structureId,
077                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
078                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
079                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
080                    boolean cacheable,
081                    com.liferay.portal.service.ServiceContext serviceContext)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException;
084    
085            public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
086                    long groupId, java.lang.String oldTemplateId,
087                    java.lang.String newTemplateId, boolean autoTemplateId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            public void deleteTemplate(long groupId, java.lang.String templateId)
092                    throws com.liferay.portal.kernel.exception.PortalException,
093                            com.liferay.portal.kernel.exception.SystemException;
094    
095            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
097                    long groupId, java.lang.String structureId)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
102                    long groupId, java.lang.String templateId)
103                    throws com.liferay.portal.kernel.exception.PortalException,
104                            com.liferay.portal.kernel.exception.SystemException;
105    
106            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
107            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
108                    long groupId, java.lang.String templateId,
109                    boolean includeGlobalTemplates)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException;
112    
113            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
115                    long companyId, long[] groupIds, java.lang.String keywords,
116                    java.lang.String structureId, java.lang.String structureIdComparator,
117                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
118                    throws com.liferay.portal.kernel.exception.SystemException;
119    
120            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
122                    long companyId, long[] groupIds, java.lang.String templateId,
123                    java.lang.String structureId, java.lang.String structureIdComparator,
124                    java.lang.String name, java.lang.String description,
125                    boolean andOperator, int start, int end,
126                    com.liferay.portal.kernel.util.OrderByComparator obc)
127                    throws com.liferay.portal.kernel.exception.SystemException;
128    
129            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130            public int searchCount(long companyId, long[] groupIds,
131                    java.lang.String keywords, java.lang.String structureId,
132                    java.lang.String structureIdComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136            public int searchCount(long companyId, long[] groupIds,
137                    java.lang.String templateId, java.lang.String structureId,
138                    java.lang.String structureIdComparator, java.lang.String name,
139                    java.lang.String description, boolean andOperator)
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
143                    long groupId, java.lang.String templateId,
144                    java.lang.String structureId,
145                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
146                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
147                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
148                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
149                    java.io.File smallFile,
150                    com.liferay.portal.service.ServiceContext serviceContext)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException;
153    
154            public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
155                    long groupId, java.lang.String templateId,
156                    java.lang.String structureId,
157                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
158                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
159                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
160                    boolean cacheable,
161                    com.liferay.portal.service.ServiceContext serviceContext)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException;
164    }