001    /**
002     * Copyright (c) 2000-2012 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.dynamicdatamapping.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    
024    /**
025     * The interface for the d d m template remote service.
026     *
027     * <p>
028     * 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.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see DDMTemplateServiceUtil
033     * @see com.liferay.portlet.dynamicdatamapping.service.base.DDMTemplateServiceBaseImpl
034     * @see com.liferay.portlet.dynamicdatamapping.service.impl.DDMTemplateServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface DDMTemplateService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link DDMTemplateServiceUtil} to access the d d m template remote service. Add custom service methods to {@link com.liferay.portlet.dynamicdatamapping.service.impl.DDMTemplateServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
046            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addTemplate(
047                    long groupId, long structureId,
048                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
049                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
050                    java.lang.String type, java.lang.String mode,
051                    java.lang.String language, java.lang.String script,
052                    com.liferay.portal.service.ServiceContext serviceContext)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> copyTemplates(
057                    long structureId, long newStructureId, java.lang.String type,
058                    com.liferay.portal.service.ServiceContext serviceContext)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException;
061    
062            public void deleteTemplate(long templateId)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException;
065    
066            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
067            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
068                    long templateId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException;
071    
072            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
074                    long structureId, java.lang.String type, java.lang.String mode)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
079                    long companyId, long groupId, long structureId,
080                    java.lang.String keywords, java.lang.String type,
081                    java.lang.String mode, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
087                    long companyId, long groupId, long structureId, java.lang.String name,
088                    java.lang.String description, java.lang.String type,
089                    java.lang.String mode, java.lang.String language, boolean andOperator,
090                    int start, int end,
091                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095            public int searchCount(long companyId, long groupId, long structureId,
096                    java.lang.String keywords, java.lang.String type, java.lang.String mode)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100            public int searchCount(long companyId, long groupId, long structureId,
101                    java.lang.String name, java.lang.String description,
102                    java.lang.String type, java.lang.String mode,
103                    java.lang.String language, boolean andOperator)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateTemplate(
107                    long templateId,
108                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
109                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
110                    java.lang.String type, java.lang.String mode,
111                    java.lang.String language, java.lang.String script,
112                    com.liferay.portal.service.ServiceContext serviceContext)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException;
115    }