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 structure 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 DDMStructureServiceUtil
033     * @see com.liferay.portlet.dynamicdatamapping.service.base.DDMStructureServiceBaseImpl
034     * @see com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface DDMStructureService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link DDMStructureServiceUtil} to access the d d m structure remote service. Add custom service methods to {@link com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
046            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
047                    long groupId, long classNameId, java.lang.String structureKey,
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 xsd, java.lang.String storageType, int type,
051                    com.liferay.portal.service.ServiceContext serviceContext)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException;
054    
055            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(
056                    long structureId,
057                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
058                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
059                    com.liferay.portal.service.ServiceContext serviceContext)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException;
062    
063            public void deleteStructure(long structureId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException;
066    
067            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
068            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
069                    long groupId, java.lang.String structureKey)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
074            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
075                    long structureId)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
081                    long companyId, long[] groupIds, long[] classNameIds,
082                    java.lang.String keywords, int start, int end,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
088                    long companyId, long[] groupIds, long[] classNameIds,
089                    java.lang.String name, java.lang.String description,
090                    java.lang.String storageType, int type, boolean andOperator, int start,
091                    int end,
092                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096            public int searchCount(long companyId, long[] groupIds,
097                    long[] classNameIds, java.lang.String keywords)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101            public int searchCount(long companyId, long[] groupIds,
102                    long[] classNameIds, java.lang.String name,
103                    java.lang.String description, java.lang.String storageType, int type,
104                    boolean andOperator)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
108                    long structureId,
109                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
110                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
111                    java.lang.String xsd,
112                    com.liferay.portal.service.ServiceContext serviceContext)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException;
115    
116            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
117                    long groupId, java.lang.String structureKey,
118                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
119                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
120                    java.lang.String xsd,
121                    com.liferay.portal.service.ServiceContext serviceContext)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException;
124    }