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 content, int displayDateMonth,
048 int displayDateDay, int displayDateYear, int displayDateHour,
049 int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks,
050 java.lang.String[] trackbacks,
051 com.liferay.portal.service.ServiceContext serviceContext)
052 throws com.liferay.portal.kernel.exception.PortalException,
053 com.liferay.portal.kernel.exception.SystemException;
054
055 public void deleteEntry(long entryId)
056 throws com.liferay.portal.kernel.exception.PortalException,
057 com.liferay.portal.kernel.exception.SystemException;
058
059 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
060 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
061 long companyId, int status, int max)
062 throws com.liferay.portal.kernel.exception.PortalException,
063 com.liferay.portal.kernel.exception.SystemException;
064
065 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066 public java.lang.String getCompanyEntriesRSS(long companyId, int status,
067 int max, java.lang.String type, double version,
068 java.lang.String displayStyle, java.lang.String feedURL,
069 java.lang.String entryURL,
070 com.liferay.portal.theme.ThemeDisplay themeDisplay)
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 com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
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 com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
081 java.lang.String urlTitle)
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 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
087 long groupId, int status, int max)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
092 long groupId, int status, int start, int end)
093 throws com.liferay.portal.kernel.exception.SystemException;
094
095 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096 public int getGroupEntriesCount(long groupId, int status)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public java.lang.String getGroupEntriesRSS(long groupId, int status,
101 int max, java.lang.String type, double version,
102 java.lang.String displayStyle, java.lang.String feedURL,
103 java.lang.String entryURL,
104 com.liferay.portal.theme.ThemeDisplay themeDisplay)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException;
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
110 long companyId, long groupId, int status, int max)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
116 long organizationId, int status, int max)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException;
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public java.lang.String getOrganizationEntriesRSS(long organizationId,
122 int status, int max, java.lang.String type, double version,
123 java.lang.String displayStyle, java.lang.String feedURL,
124 java.lang.String entryURL,
125 com.liferay.portal.theme.ThemeDisplay themeDisplay)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException;
128
129 public void subscribe(long groupId)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 public void unsubscribe(long groupId)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException;
136
137 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
138 long entryId, java.lang.String title, java.lang.String content,
139 int displayDateMonth, int displayDateDay, int displayDateYear,
140 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
141 boolean allowTrackbacks, java.lang.String[] trackbacks,
142 com.liferay.portal.service.ServiceContext serviceContext)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException;
145 }