1
19
20 package com.liferay.portlet.messageboards.service;
21
22
23
44 public class MBMessageFlagLocalServiceUtil {
45 public static com.liferay.portlet.messageboards.model.MBMessageFlag addMBMessageFlag(
46 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
47 throws com.liferay.portal.SystemException {
48 return getService().addMBMessageFlag(mbMessageFlag);
49 }
50
51 public static com.liferay.portlet.messageboards.model.MBMessageFlag createMBMessageFlag(
52 long messageFlagId) {
53 return getService().createMBMessageFlag(messageFlagId);
54 }
55
56 public static void deleteMBMessageFlag(long messageFlagId)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException {
59 getService().deleteMBMessageFlag(messageFlagId);
60 }
61
62 public static void deleteMBMessageFlag(
63 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
64 throws com.liferay.portal.SystemException {
65 getService().deleteMBMessageFlag(mbMessageFlag);
66 }
67
68 public static java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70 throws com.liferay.portal.SystemException {
71 return getService().dynamicQuery(dynamicQuery);
72 }
73
74 public static java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException {
77 return getService().dynamicQuery(dynamicQuery, start, end);
78 }
79
80 public static com.liferay.portlet.messageboards.model.MBMessageFlag getMBMessageFlag(
81 long messageFlagId)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException {
84 return getService().getMBMessageFlag(messageFlagId);
85 }
86
87 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> getMBMessageFlags(
88 int start, int end) throws com.liferay.portal.SystemException {
89 return getService().getMBMessageFlags(start, end);
90 }
91
92 public static int getMBMessageFlagsCount()
93 throws com.liferay.portal.SystemException {
94 return getService().getMBMessageFlagsCount();
95 }
96
97 public static com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
98 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
99 throws com.liferay.portal.SystemException {
100 return getService().updateMBMessageFlag(mbMessageFlag);
101 }
102
103 public static com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
104 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
105 boolean merge) throws com.liferay.portal.SystemException {
106 return getService().updateMBMessageFlag(mbMessageFlag, merge);
107 }
108
109 public static void addReadFlags(long userId,
110 com.liferay.portlet.messageboards.model.MBThread thread)
111 throws com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException {
113 getService().addReadFlags(userId, thread);
114 }
115
116 public static void addQuestionFlag(long messageId)
117 throws com.liferay.portal.PortalException,
118 com.liferay.portal.SystemException {
119 getService().addQuestionFlag(messageId);
120 }
121
122 public static void deleteFlags(long userId)
123 throws com.liferay.portal.SystemException {
124 getService().deleteFlags(userId);
125 }
126
127 public static void deleteFlags(long messageId, int flag)
128 throws com.liferay.portal.SystemException {
129 getService().deleteFlags(messageId, flag);
130 }
131
132 public static void deleteQuestionAndAnswerFlags(long threadId)
133 throws com.liferay.portal.SystemException {
134 getService().deleteQuestionAndAnswerFlags(threadId);
135 }
136
137 public static void deleteThreadFlags(long threadId)
138 throws com.liferay.portal.SystemException {
139 getService().deleteThreadFlags(threadId);
140 }
141
142 public static boolean hasAnswerFlag(long messageId)
143 throws com.liferay.portal.SystemException {
144 return getService().hasAnswerFlag(messageId);
145 }
146
147 public static boolean hasQuestionFlag(long messageId)
148 throws com.liferay.portal.SystemException {
149 return getService().hasQuestionFlag(messageId);
150 }
151
152 public static boolean hasReadFlag(long userId,
153 com.liferay.portlet.messageboards.model.MBThread thread)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException {
156 return getService().hasReadFlag(userId, thread);
157 }
158
159 public static MBMessageFlagLocalService getService() {
160 if (_service == null) {
161 throw new RuntimeException("MBMessageFlagLocalService is not set");
162 }
163
164 return _service;
165 }
166
167 public void setService(MBMessageFlagLocalService service) {
168 _service = service;
169 }
170
171 private static MBMessageFlagLocalService _service;
172 }