001
014
015 package com.liferay.portlet.blogs.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
024
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface BlogsEntryService {
041
046 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
047 java.lang.String title, java.lang.String description,
048 java.lang.String content, int displayDateMonth, int displayDateDay,
049 int displayDateYear, int displayDateHour, int displayDateMinute,
050 boolean allowPingbacks, boolean allowTrackbacks,
051 java.lang.String[] trackbacks, boolean smallImage,
052 java.lang.String smallImageURL, java.lang.String smallImageFileName,
053 java.io.InputStream smallImageInputStream,
054 com.liferay.portal.service.ServiceContext serviceContext)
055 throws com.liferay.portal.kernel.exception.PortalException,
056 com.liferay.portal.kernel.exception.SystemException;
057
058 public void deleteEntry(long entryId)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException;
061
062 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
063 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
064 long companyId, int status, int max)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException;
067
068 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
069 public java.lang.String getCompanyEntriesRSS(long companyId, int status,
070 int max, java.lang.String type, double version,
071 java.lang.String displayStyle, java.lang.String feedURL,
072 java.lang.String entryURL,
073 com.liferay.portal.theme.ThemeDisplay themeDisplay)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException;
081
082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
084 java.lang.String urlTitle)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException;
087
088 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
090 long groupId, int status, int max)
091 throws com.liferay.portal.kernel.exception.SystemException;
092
093 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
095 long groupId, int status, int start, int end)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099 public int getGroupEntriesCount(long groupId, int status)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public java.lang.String getGroupEntriesRSS(long groupId, int status,
104 int max, java.lang.String type, double version,
105 java.lang.String displayStyle, java.lang.String feedURL,
106 java.lang.String entryURL,
107 com.liferay.portal.theme.ThemeDisplay themeDisplay)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
113 long companyId, long groupId, int status, int max)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
119 long organizationId, int status, int max)
120 throws com.liferay.portal.kernel.exception.PortalException,
121 com.liferay.portal.kernel.exception.SystemException;
122
123 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124 public java.lang.String getOrganizationEntriesRSS(long organizationId,
125 int status, int max, java.lang.String type, double version,
126 java.lang.String displayStyle, java.lang.String feedURL,
127 java.lang.String entryURL,
128 com.liferay.portal.theme.ThemeDisplay themeDisplay)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 public void subscribe(long groupId)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException;
135
136 public void unsubscribe(long groupId)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException;
139
140 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
141 long entryId, java.lang.String title, java.lang.String description,
142 java.lang.String content, int displayDateMonth, int displayDateDay,
143 int displayDateYear, int displayDateHour, int displayDateMinute,
144 boolean allowPingbacks, boolean allowTrackbacks,
145 java.lang.String[] trackbacks, boolean smallImage,
146 java.lang.String smallImageURL, java.lang.String smallImageFileName,
147 java.io.InputStream smallImageInputStream,
148 com.liferay.portal.service.ServiceContext serviceContext)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException;
151 }