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.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    
024    /**
025     * The interface for the journal 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 JournalStructureServiceUtil
033     * @see com.liferay.portlet.journal.service.base.JournalStructureServiceBaseImpl
034     * @see com.liferay.portlet.journal.service.impl.JournalStructureServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface JournalStructureService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link JournalStructureServiceUtil} to access the journal structure remote service. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalStructureServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
046            public com.liferay.portlet.journal.model.JournalStructure addStructure(
047                    long groupId, java.lang.String structureId, boolean autoStructureId,
048                    java.lang.String parentStructureId,
049                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
050                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
051                    java.lang.String xsd,
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 com.liferay.portlet.journal.model.JournalStructure copyStructure(
057                    long groupId, java.lang.String oldStructureId,
058                    java.lang.String newStructureId, boolean autoStructureId)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException;
061    
062            public void deleteStructure(long groupId, java.lang.String structureId)
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.journal.model.JournalStructure getStructure(
068                    long groupId, java.lang.String structureId)
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.journal.model.JournalStructure> getStructures(
074                    long groupId)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
079                    long companyId, long[] groupIds, java.lang.String keywords, int start,
080                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
085                    long companyId, long[] groupIds, java.lang.String structureId,
086                    java.lang.String name, java.lang.String description,
087                    boolean andOperator, int start, int end,
088                    com.liferay.portal.kernel.util.OrderByComparator obc)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public int searchCount(long companyId, long[] groupIds,
093                    java.lang.String keywords)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097            public int searchCount(long companyId, long[] groupIds,
098                    java.lang.String structureId, java.lang.String name,
099                    java.lang.String description, boolean andOperator)
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    
102            public com.liferay.portlet.journal.model.JournalStructure updateStructure(
103                    long groupId, java.lang.String structureId,
104                    java.lang.String parentStructureId,
105                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
106                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
107                    java.lang.String xsd,
108                    com.liferay.portal.service.ServiceContext serviceContext)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException;
111    }