001    /**
002     * Copyright (c) 2000-2010 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.asset.service;
016    
017    import com.liferay.portal.kernel.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * The interface for the asset entry remote service.
025     *
026     * <p>
027     * 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.
028     * </p>
029     *
030     * <p>
031     * 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.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see AssetEntryServiceUtil
036     * @see com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
037     * @see com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface AssetEntryService {
043            public void deleteEntry(long entryId)
044                    throws com.liferay.portal.kernel.exception.PortalException,
045                            com.liferay.portal.kernel.exception.SystemException;
046    
047            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
048            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
049                    long companyId, int start, int end)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
053            public int getCompanyEntriesCount(long companyId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
057            public java.lang.String getCompanyEntriesRSS(long companyId, int max,
058                    java.lang.String type, double version, java.lang.String displayStyle,
059                    java.lang.String feedURL, java.lang.String tagURL)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException;
062    
063            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
064            public com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
065                    long companyId, int start, int end, java.lang.String languageId)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
069            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
070                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075            public int getEntriesCount(
076                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException;
079    
080            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081            public java.lang.String getEntriesRSS(
082                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery,
083                    java.lang.String name, java.lang.String type, double version,
084                    java.lang.String displayStyle, java.lang.String feedURL,
085                    java.lang.String tagURL)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException;
088    
089            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
090            public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException;
093    
094            public void incrementViewCounter(java.lang.String className, long classPK)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException;
097    
098            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099            public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
100                    long companyId, java.lang.String portletId, java.lang.String keywords,
101                    java.lang.String languageId, int start, int end)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105            public int searchEntryDisplaysCount(long companyId,
106                    java.lang.String portletId, java.lang.String keywords,
107                    java.lang.String languageId)
108                    throws com.liferay.portal.kernel.exception.SystemException;
109    
110            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
111                    long groupId, java.lang.String className, long classPK,
112                    java.lang.String classUuid, long[] categoryIds,
113                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
114                    java.util.Date endDate, java.util.Date publishDate,
115                    java.util.Date expirationDate, java.lang.String mimeType,
116                    java.lang.String title, java.lang.String description,
117                    java.lang.String summary, java.lang.String url, int height, int width,
118                    java.lang.Integer priority, boolean sync)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException;
121    }