001    /**
002     * Copyright (c) 2000-present 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.asset.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.asset.kernel.model.AssetEntry;
020    import com.liferay.asset.kernel.service.persistence.AssetEntryQuery;
021    
022    import com.liferay.portal.kernel.exception.PortalException;
023    import com.liferay.portal.kernel.exception.SystemException;
024    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
025    import com.liferay.portal.kernel.security.access.control.AccessControlled;
026    import com.liferay.portal.kernel.service.BaseService;
027    import com.liferay.portal.kernel.transaction.Isolation;
028    import com.liferay.portal.kernel.transaction.Propagation;
029    import com.liferay.portal.kernel.transaction.Transactional;
030    
031    import java.util.Date;
032    import java.util.List;
033    
034    /**
035     * Provides the remote service interface for AssetEntry. Methods of this
036     * service are expected to have security checks based on the propagated JAAS
037     * credentials because this service can be accessed remotely.
038     *
039     * @author Brian Wing Shun Chan
040     * @see AssetEntryServiceUtil
041     * @see com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
042     * @see com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl
043     * @generated
044     */
045    @AccessControlled
046    @JSONWebService
047    @ProviderType
048    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
049            PortalException.class, SystemException.class})
050    public interface AssetEntryService extends BaseService {
051            /*
052             * NOTE FOR DEVELOPERS:
053             *
054             * 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.
055             */
056            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
057            public AssetEntry fetchEntry(long entryId) throws PortalException;
058    
059            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
060            public List<AssetEntry> getCompanyEntries(long companyId, int start, int end);
061    
062            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
063            public int getCompanyEntriesCount(long companyId);
064    
065            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066            public List<AssetEntry> getEntries(AssetEntryQuery entryQuery)
067                    throws PortalException;
068    
069            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070            public int getEntriesCount(AssetEntryQuery entryQuery)
071                    throws PortalException;
072    
073            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
074            public AssetEntry getEntry(long entryId) throws PortalException;
075    
076            /**
077            * Returns the OSGi service identifier.
078            *
079            * @return the OSGi service identifier
080            */
081            public java.lang.String getOSGiServiceIdentifier();
082    
083            public AssetEntry incrementViewCounter(java.lang.String className,
084                    long classPK) throws PortalException;
085    
086            public AssetEntry updateEntry(long groupId, Date createDate,
087                    Date modifiedDate, java.lang.String className, long classPK,
088                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
089                    java.lang.String[] tagNames, boolean visible, Date startDate,
090                    Date endDate, Date expirationDate, java.lang.String mimeType,
091                    java.lang.String title, java.lang.String description,
092                    java.lang.String summary, java.lang.String url,
093                    java.lang.String layoutUuid, int height, int width,
094                    java.lang.Double priority) throws PortalException;
095    
096            /**
097            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, Date,
098            Date, String, long, String, long, long[], String[], boolean,
099            Date, Date, Date, String, String, String, String, String,
100            String, int, int, Double)}
101            */
102            @java.lang.Deprecated
103            public AssetEntry updateEntry(long groupId, Date createDate,
104                    Date modifiedDate, java.lang.String className, long classPK,
105                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
106                    java.lang.String[] tagNames, boolean visible, Date startDate,
107                    Date endDate, Date expirationDate, java.lang.String mimeType,
108                    java.lang.String title, java.lang.String description,
109                    java.lang.String summary, java.lang.String url,
110                    java.lang.String layoutUuid, int height, int width,
111                    java.lang.Integer priority, boolean sync) throws PortalException;
112    }