001    /**
002     * Copyright (c) 2000-2012 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.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    import com.liferay.portal.security.ac.AccessControlled;
024    import com.liferay.portal.service.BaseService;
025    
026    /**
027     * The interface for the asset entry remote service.
028     *
029     * <p>
030     * 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.
031     * </p>
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    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
042            PortalException.class, SystemException.class})
043    public interface AssetEntryService extends BaseService {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * 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.
048             */
049    
050            /**
051            * Returns the Spring bean ID for this bean.
052            *
053            * @return the Spring bean ID for this bean
054            */
055            public java.lang.String getBeanIdentifier();
056    
057            /**
058            * Sets the Spring bean ID for this bean.
059            *
060            * @param beanIdentifier the Spring bean ID for this bean
061            */
062            public void setBeanIdentifier(java.lang.String beanIdentifier);
063    
064            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
065            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
066                    long companyId, int start, int end)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070            public int getCompanyEntriesCount(long companyId)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
074            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
075                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public int getEntriesCount(
081                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException;
084    
085            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086            public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException;
089    
090            public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
091                    java.lang.String className, long classPK)
092                    throws com.liferay.portal.kernel.exception.PortalException,
093                            com.liferay.portal.kernel.exception.SystemException;
094    
095            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
096                    long groupId, java.util.Date createDate, java.util.Date modifiedDate,
097                    java.lang.String className, long classPK, java.lang.String classUuid,
098                    long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
099                    boolean visible, java.util.Date startDate, java.util.Date endDate,
100                    java.util.Date expirationDate, java.lang.String mimeType,
101                    java.lang.String title, java.lang.String description,
102                    java.lang.String summary, java.lang.String url,
103                    java.lang.String layoutUuid, int height, int width,
104                    java.lang.Integer priority, boolean sync)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException;
107    
108            /**
109            * @deprecated {@link #updateEntry(long, String, long, String, long, long[],
110            String[], boolean, Date, Date, Date, String, String, String,
111            String, String, String, int, int, Integer, boolean)}
112            */
113            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
114                    long groupId, java.lang.String className, long classPK,
115                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
116                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
117                    java.util.Date endDate, java.util.Date publishDate,
118                    java.util.Date expirationDate, java.lang.String mimeType,
119                    java.lang.String title, java.lang.String description,
120                    java.lang.String summary, java.lang.String url,
121                    java.lang.String layoutUuid, int height, int width,
122                    java.lang.Integer priority, boolean sync)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException;
125    
126            /**
127            * @deprecated {@link #updateEntry(long, Date, Date. String, long, String,
128            long, long[], String[], boolean, Date, Date, Date, String,
129            String, String, String, String, String, int, int, Integer,
130            boolean)}
131            */
132            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
133                    long groupId, java.lang.String className, long classPK,
134                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
135                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
136                    java.util.Date endDate, java.util.Date expirationDate,
137                    java.lang.String mimeType, java.lang.String title,
138                    java.lang.String description, java.lang.String summary,
139                    java.lang.String url, java.lang.String layoutUuid, int height,
140                    int width, java.lang.Integer priority, boolean sync)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException;
143    }