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            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
056            public com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
057                    long companyId, int start, int end, java.lang.String languageId)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
061            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
062                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
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 int getEntriesCount(
068                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
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 com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
078                    java.lang.String className, long classPK)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException;
081    
082            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083            public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
084                    long companyId, long[] groupIds, java.lang.String className,
085                    java.lang.String keywords, java.lang.String languageId, int start,
086                    int end) throws com.liferay.portal.kernel.exception.SystemException;
087    
088            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089            public int searchEntryDisplaysCount(long companyId, long[] groupIds,
090                    java.lang.String className, java.lang.String keywords,
091                    java.lang.String languageId)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
095                    long groupId, java.lang.String className, long classPK,
096                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
097                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
098                    java.util.Date endDate, java.util.Date publishDate,
099                    java.util.Date expirationDate, java.lang.String mimeType,
100                    java.lang.String title, java.lang.String description,
101                    java.lang.String summary, java.lang.String url,
102                    java.lang.String layoutUuid, int height, int width,
103                    java.lang.Integer priority, boolean sync)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException;
106    }