1
14
15 package com.liferay.portlet.blogs.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class BlogsEntryServiceUtil {
40 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
41 long plid, java.lang.String title, java.lang.String content,
42 int displayDateMonth, int displayDateDay, int displayDateYear,
43 int displayDateHour, int displayDateMinute, boolean draft,
44 boolean allowTrackbacks, java.lang.String[] trackbacks,
45 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
46 boolean addGuestPermissions,
47 com.liferay.portal.theme.ThemeDisplay themeDisplay)
48 throws com.liferay.portal.PortalException,
49 com.liferay.portal.SystemException, java.rmi.RemoteException {
50 return getService()
51 .addEntry(plid, title, content, displayDateMonth,
52 displayDateDay, displayDateYear, displayDateHour,
53 displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
54 addCommunityPermissions, addGuestPermissions, themeDisplay);
55 }
56
57 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
58 long plid, java.lang.String title, java.lang.String content,
59 int displayDateMonth, int displayDateDay, int displayDateYear,
60 int displayDateHour, int displayDateMinute, boolean draft,
61 boolean allowTrackbacks, java.lang.String[] trackbacks,
62 java.lang.String[] tagsEntries,
63 java.lang.String[] communityPermissions,
64 java.lang.String[] guestPermissions,
65 com.liferay.portal.theme.ThemeDisplay themeDisplay)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException, java.rmi.RemoteException {
68 return getService()
69 .addEntry(plid, title, content, displayDateMonth,
70 displayDateDay, displayDateYear, displayDateHour,
71 displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
72 communityPermissions, guestPermissions, themeDisplay);
73 }
74
75 public static void deleteEntry(long entryId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException, java.rmi.RemoteException {
78 getService().deleteEntry(entryId);
79 }
80
81 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
82 long companyId, int max)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException, java.rmi.RemoteException {
85 return getService().getCompanyEntries(companyId, max);
86 }
87
88 public static java.lang.String getCompanyEntriesRSS(long companyId,
89 int max, java.lang.String type, double version,
90 java.lang.String displayStyle, java.lang.String feedURL,
91 java.lang.String entryURL,
92 com.liferay.portal.theme.ThemeDisplay themeDisplay)
93 throws com.liferay.portal.PortalException,
94 com.liferay.portal.SystemException, java.rmi.RemoteException {
95 return getService()
96 .getCompanyEntriesRSS(companyId, max, type, version,
97 displayStyle, feedURL, entryURL, themeDisplay);
98 }
99
100 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
101 long entryId)
102 throws com.liferay.portal.PortalException,
103 com.liferay.portal.SystemException, java.rmi.RemoteException {
104 return getService().getEntry(entryId);
105 }
106
107 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
108 long groupId, java.lang.String urlTitle)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException, java.rmi.RemoteException {
111 return getService().getEntry(groupId, urlTitle);
112 }
113
114 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
115 long groupId, int max)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException, java.rmi.RemoteException {
118 return getService().getGroupEntries(groupId, max);
119 }
120
121 public static java.lang.String getGroupEntriesRSS(long groupId, int max,
122 java.lang.String type, double version, java.lang.String displayStyle,
123 java.lang.String feedURL, java.lang.String entryURL,
124 com.liferay.portal.theme.ThemeDisplay themeDisplay)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException, java.rmi.RemoteException {
127 return getService()
128 .getGroupEntriesRSS(groupId, max, type, version,
129 displayStyle, feedURL, entryURL, themeDisplay);
130 }
131
132 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
133 long organizationId, int max)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException, java.rmi.RemoteException {
136 return getService().getOrganizationEntries(organizationId, max);
137 }
138
139 public static java.lang.String getOrganizationEntriesRSS(
140 long organizationId, int max, java.lang.String type, double version,
141 java.lang.String displayStyle, java.lang.String feedURL,
142 java.lang.String entryURL,
143 com.liferay.portal.theme.ThemeDisplay themeDisplay)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException, java.rmi.RemoteException {
146 return getService()
147 .getOrganizationEntriesRSS(organizationId, max, type,
148 version, displayStyle, feedURL, entryURL, themeDisplay);
149 }
150
151 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
152 long entryId, java.lang.String title, java.lang.String content,
153 int displayDateMonth, int displayDateDay, int displayDateYear,
154 int displayDateHour, int displayDateMinute, boolean draft,
155 boolean allowTrackbacks, java.lang.String[] trackbacks,
156 java.lang.String[] tagsEntries,
157 com.liferay.portal.theme.ThemeDisplay themeDisplay)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException, java.rmi.RemoteException {
160 return getService()
161 .updateEntry(entryId, title, content, displayDateMonth,
162 displayDateDay, displayDateYear, displayDateHour,
163 displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
164 themeDisplay);
165 }
166
167 public static BlogsEntryService getService() {
168 if (_service == null) {
169 _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
170 }
171
172 return _service;
173 }
174
175 public void setService(BlogsEntryService service) {
176 _service = service;
177 }
178
179 private static BlogsEntryService _service;
180 }