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