001    /**
002     * Copyright (c) 2000-2011 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.asset.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 asset entry 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 AssetEntryServiceUtil
033     * @see com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
034     * @see com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface AssetEntryService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link AssetEntryServiceUtil} to access the asset entry remote service. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
046            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
047            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
048                    long companyId, int start, int end)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
052            public int getCompanyEntriesCount(long companyId)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            /**
056            * @deprecated
057            */
058            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
059            public java.lang.String getCompanyEntriesRSS(long companyId, int max,
060                    java.lang.String type, double version, java.lang.String displayStyle,
061                    java.lang.String feedURL, java.lang.String tagURL)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException;
064    
065            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066            public com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
067                    long companyId, int start, int end, java.lang.String languageId)
068                    throws com.liferay.portal.kernel.exception.SystemException;
069    
070            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
071            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
072                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077            public int getEntriesCount(
078                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * @deprecated
084            */
085            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086            public java.lang.String getEntriesRSS(
087                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery,
088                    java.lang.String name, java.lang.String type, double version,
089                    java.lang.String displayStyle, java.lang.String feedURL,
090                    java.lang.String tagURL)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException;
093    
094            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095            public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException;
098    
099            public void incrementViewCounter(java.lang.String className, long classPK)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104            public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
105                    long companyId, long[] groupIds, java.lang.String className,
106                    java.lang.String keywords, java.lang.String languageId, int start,
107                    int end) throws com.liferay.portal.kernel.exception.SystemException;
108    
109            /**
110            * @deprecated {@link #searchEntryDisplays(long, long[], String, String,
111            String)}
112            */
113            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114            public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
115                    long companyId, java.lang.String portletId, java.lang.String keywords,
116                    java.lang.String languageId, int start, int end)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120            public int searchEntryDisplaysCount(long companyId, long[] groupIds,
121                    java.lang.String className, java.lang.String keywords,
122                    java.lang.String languageId)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            /**
126            * @deprecated {@link #searchEntryDisplaysCount(long, long[], String,
127            String, String)}
128            */
129            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130            public int searchEntryDisplaysCount(long companyId,
131                    java.lang.String portletId, java.lang.String keywords,
132                    java.lang.String languageId)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
136                    long groupId, java.lang.String className, long classPK,
137                    java.lang.String classUuid, long[] categoryIds,
138                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
139                    java.util.Date endDate, java.util.Date publishDate,
140                    java.util.Date expirationDate, java.lang.String mimeType,
141                    java.lang.String title, java.lang.String description,
142                    java.lang.String summary, java.lang.String url, int height, int width,
143                    java.lang.Integer priority, boolean sync)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException;
146    }