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.portlet.asset.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022    import com.liferay.portal.kernel.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.security.ac.AccessControlled;
026    import com.liferay.portal.service.BaseService;
027    
028    /**
029     * Provides the remote service interface for AssetEntry. Methods of this
030     * service are expected to have security checks based on the propagated JAAS
031     * credentials because this service can be accessed remotely.
032     *
033     * @author Brian Wing Shun Chan
034     * @see AssetEntryServiceUtil
035     * @see com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
036     * @see com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl
037     * @generated
038     */
039    @AccessControlled
040    @JSONWebService
041    @ProviderType
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface AssetEntryService extends BaseService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * 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.
049             */
050    
051            /**
052            * Returns the Spring bean ID for this bean.
053            *
054            * @return the Spring bean ID for this bean
055            */
056            public java.lang.String getBeanIdentifier();
057    
058            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
059            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
060                    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 java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
067                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
068                    throws com.liferay.portal.kernel.exception.PortalException;
069    
070            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
071            public int getEntriesCount(
072                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
073                    throws com.liferay.portal.kernel.exception.PortalException;
074    
075            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076            public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
077                    throws com.liferay.portal.kernel.exception.PortalException;
078    
079            public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
080                    java.lang.String className, long classPK)
081                    throws com.liferay.portal.kernel.exception.PortalException;
082    
083            /**
084            * Sets the Spring bean ID for this bean.
085            *
086            * @param beanIdentifier the Spring bean ID for this bean
087            */
088            public void setBeanIdentifier(java.lang.String beanIdentifier);
089    
090            /**
091            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, Date,
092            Date, String, long, String, long, long[], String[], boolean,
093            Date, Date, Date, String, String, String, String, String,
094            String, int, int, Integer, boolean)}
095            */
096            @java.lang.Deprecated
097            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
098                    long groupId, java.lang.String className, long classPK,
099                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
100                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
101                    java.util.Date endDate, java.util.Date expirationDate,
102                    java.lang.String mimeType, java.lang.String title,
103                    java.lang.String description, java.lang.String summary,
104                    java.lang.String url, java.lang.String layoutUuid, int height,
105                    int width, java.lang.Integer priority, boolean sync)
106                    throws com.liferay.portal.kernel.exception.PortalException;
107    
108            /**
109            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, String,
110            long, String, long, long[], String[], boolean, Date, Date,
111            Date, String, String, String, String, String, String, int,
112            int, Integer, boolean)}
113            */
114            @java.lang.Deprecated
115            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
116                    long groupId, java.lang.String className, long classPK,
117                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
118                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
119                    java.util.Date endDate, java.util.Date publishDate,
120                    java.util.Date expirationDate, java.lang.String mimeType,
121                    java.lang.String title, java.lang.String description,
122                    java.lang.String summary, java.lang.String url,
123                    java.lang.String layoutUuid, int height, int width,
124                    java.lang.Integer priority, boolean sync)
125                    throws com.liferay.portal.kernel.exception.PortalException;
126    
127            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
128                    long groupId, java.util.Date createDate, java.util.Date modifiedDate,
129                    java.lang.String className, long classPK, java.lang.String classUuid,
130                    long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
131                    boolean visible, java.util.Date startDate, java.util.Date endDate,
132                    java.util.Date expirationDate, java.lang.String mimeType,
133                    java.lang.String title, java.lang.String description,
134                    java.lang.String summary, java.lang.String url,
135                    java.lang.String layoutUuid, int height, int width,
136                    java.lang.Integer priority, boolean sync)
137                    throws com.liferay.portal.kernel.exception.PortalException;
138    }