001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface AssetEntryService {
043 public void deleteEntry(long entryId)
044 throws com.liferay.portal.kernel.exception.PortalException,
045 com.liferay.portal.kernel.exception.SystemException;
046
047 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
048 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
049 long companyId, int start, int end)
050 throws com.liferay.portal.kernel.exception.SystemException;
051
052 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
053 public int getCompanyEntriesCount(long companyId)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
057 public java.lang.String getCompanyEntriesRSS(long companyId, int max,
058 java.lang.String type, double version, java.lang.String displayStyle,
059 java.lang.String feedURL, java.lang.String tagURL)
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException;
062
063 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
064 public com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
065 long companyId, int start, int end, java.lang.String languageId)
066 throws com.liferay.portal.kernel.exception.SystemException;
067
068 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
069 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
070 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075 public int getEntriesCount(
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 java.lang.String getEntriesRSS(
082 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery,
083 java.lang.String name, java.lang.String type, double version,
084 java.lang.String displayStyle, java.lang.String feedURL,
085 java.lang.String tagURL)
086 throws com.liferay.portal.kernel.exception.PortalException,
087 com.liferay.portal.kernel.exception.SystemException;
088
089 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
090 public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException;
093
094 public void incrementViewCounter(java.lang.String className, long classPK)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException;
097
098 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099 public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
100 long companyId, java.lang.String portletId, java.lang.String keywords,
101 java.lang.String languageId, int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105 public int searchEntryDisplaysCount(long companyId,
106 java.lang.String portletId, java.lang.String keywords,
107 java.lang.String languageId)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110 public com.liferay.portlet.asset.model.AssetEntry updateEntry(
111 long groupId, java.lang.String className, long classPK,
112 java.lang.String classUuid, long[] categoryIds,
113 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
114 java.util.Date endDate, java.util.Date publishDate,
115 java.util.Date expirationDate, java.lang.String mimeType,
116 java.lang.String title, java.lang.String description,
117 java.lang.String summary, java.lang.String url, int height, int width,
118 java.lang.Integer priority, boolean sync)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException;
121 }