001    /**
002     * Copyright (c) 2000-2013 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    @ProviderType
040    @AccessControlled
041    @JSONWebService
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            /**
059            * Sets the Spring bean ID for this bean.
060            *
061            * @param beanIdentifier the Spring bean ID for this bean
062            */
063            public void setBeanIdentifier(java.lang.String beanIdentifier);
064    
065            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
067                    long companyId, int start, int end)
068                    throws com.liferay.portal.kernel.exception.SystemException;
069    
070            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
071            public int getCompanyEntriesCount(long companyId)
072                    throws com.liferay.portal.kernel.exception.SystemException;
073    
074            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
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 int getEntriesCount(
082                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException;
085    
086            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087            public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
092                    java.lang.String className, long classPK)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
097                    long groupId, java.util.Date createDate, java.util.Date modifiedDate,
098                    java.lang.String className, long classPK, java.lang.String classUuid,
099                    long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
100                    boolean visible, java.util.Date startDate, java.util.Date endDate,
101                    java.util.Date expirationDate, java.lang.String mimeType,
102                    java.lang.String title, java.lang.String description,
103                    java.lang.String summary, java.lang.String url,
104                    java.lang.String layoutUuid, int height, int width,
105                    java.lang.Integer priority, boolean sync)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException;
108    
109            /**
110            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, String,
111            long, String, long, long[], String[], boolean, Date, Date,
112            Date, String, String, String, String, String, String, int,
113            int, Integer, boolean)}
114            */
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                            com.liferay.portal.kernel.exception.SystemException;
127    
128            /**
129            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, Date,
130            Date, String, long, String, long, long[], String[], boolean,
131            Date, Date, Date, String, String, String, String, String,
132            String, int, int, Integer, boolean)}
133            */
134            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
135                    long groupId, java.lang.String className, long classPK,
136                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
137                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
138                    java.util.Date endDate, java.util.Date expirationDate,
139                    java.lang.String mimeType, java.lang.String title,
140                    java.lang.String description, java.lang.String summary,
141                    java.lang.String url, java.lang.String layoutUuid, int height,
142                    int width, java.lang.Integer priority, boolean sync)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException;
145    }