001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
108                    long companyId, long[] groupIds, java.lang.String keywords,
109                    java.lang.String structureId, java.lang.String structureIdComparator,
110                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
111                    throws 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 templateId,
116                    java.lang.String structureId, java.lang.String structureIdComparator,
117                    java.lang.String name, java.lang.String description,
118                    boolean andOperator, int start, int end,
119                    com.liferay.portal.kernel.util.OrderByComparator obc)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123            public int searchCount(long companyId, long[] groupIds,
124                    java.lang.String keywords, java.lang.String structureId,
125                    java.lang.String structureIdComparator)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129            public int searchCount(long companyId, long[] groupIds,
130                    java.lang.String templateId, java.lang.String structureId,
131                    java.lang.String structureIdComparator, java.lang.String name,
132                    java.lang.String description, boolean andOperator)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
136                    long groupId, java.lang.String templateId,
137                    java.lang.String structureId,
138                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
139                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
140                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
141                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
142                    java.io.File smallFile,
143                    com.liferay.portal.service.ServiceContext serviceContext)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException;
146    
147            public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
148                    long groupId, java.lang.String templateId,
149                    java.lang.String structureId,
150                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
151                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
152                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
153                    boolean cacheable,
154                    com.liferay.portal.service.ServiceContext serviceContext)
155                    throws com.liferay.portal.kernel.exception.PortalException,
156                            com.liferay.portal.kernel.exception.SystemException;
157    }