1
22
23 package com.liferay.portlet.tags.service;
24
25
51 public class TagsEntryLocalServiceUtil {
52 public static com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
53 com.liferay.portlet.tags.model.TagsEntry model)
54 throws com.liferay.portal.SystemException {
55 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
56
57 return tagsEntryLocalService.addTagsEntry(model);
58 }
59
60 public static java.util.List dynamicQuery(
61 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
62 throws com.liferay.portal.SystemException {
63 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
64
65 return tagsEntryLocalService.dynamicQuery(queryInitializer);
66 }
67
68 public static java.util.List dynamicQuery(
69 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
70 int begin, int end) throws com.liferay.portal.SystemException {
71 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
72
73 return tagsEntryLocalService.dynamicQuery(queryInitializer, begin, end);
74 }
75
76 public static com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
77 com.liferay.portlet.tags.model.TagsEntry model)
78 throws com.liferay.portal.SystemException {
79 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
80
81 return tagsEntryLocalService.updateTagsEntry(model);
82 }
83
84 public static com.liferay.portlet.tags.model.TagsEntry addEntry(
85 long userId, java.lang.String name)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException {
88 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
89
90 return tagsEntryLocalService.addEntry(userId, name);
91 }
92
93 public static com.liferay.portlet.tags.model.TagsEntry addEntry(
94 long userId, java.lang.String name, java.lang.String[] properties)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException {
97 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
98
99 return tagsEntryLocalService.addEntry(userId, name, properties);
100 }
101
102 public static void deleteEntry(long entryId)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException {
105 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
106 tagsEntryLocalService.deleteEntry(entryId);
107 }
108
109 public static void deleteEntry(
110 com.liferay.portlet.tags.model.TagsEntry entry)
111 throws com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException {
113 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
114 tagsEntryLocalService.deleteEntry(entry);
115 }
116
117 public static boolean hasEntry(long companyId, java.lang.String name)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException {
120 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
121
122 return tagsEntryLocalService.hasEntry(companyId, name);
123 }
124
125 public static java.util.List getAssetEntries(long assetId)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
129
130 return tagsEntryLocalService.getAssetEntries(assetId);
131 }
132
133 public static java.util.List getEntries()
134 throws com.liferay.portal.SystemException {
135 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
136
137 return tagsEntryLocalService.getEntries();
138 }
139
140 public static java.util.List getEntries(java.lang.String className,
141 long classPK)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException {
144 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
145
146 return tagsEntryLocalService.getEntries(className, classPK);
147 }
148
149 public static com.liferay.portlet.tags.model.TagsEntry getEntry(
150 long entryId)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException {
153 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
154
155 return tagsEntryLocalService.getEntry(entryId);
156 }
157
158 public static com.liferay.portlet.tags.model.TagsEntry getEntry(
159 long companyId, java.lang.String name)
160 throws com.liferay.portal.PortalException,
161 com.liferay.portal.SystemException {
162 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
163
164 return tagsEntryLocalService.getEntry(companyId, name);
165 }
166
167 public static long[] getEntryIds(long companyId, java.lang.String[] names)
168 throws com.liferay.portal.PortalException,
169 com.liferay.portal.SystemException {
170 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
171
172 return tagsEntryLocalService.getEntryIds(companyId, names);
173 }
174
175 public static java.util.List search(long companyId, java.lang.String name,
176 java.lang.String[] properties)
177 throws com.liferay.portal.SystemException {
178 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
179
180 return tagsEntryLocalService.search(companyId, name, properties);
181 }
182
183 public static java.util.List search(long companyId, java.lang.String name,
184 java.lang.String[] properties, int begin, int end)
185 throws com.liferay.portal.SystemException {
186 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
187
188 return tagsEntryLocalService.search(companyId, name, properties, begin,
189 end);
190 }
191
192 public static com.liferay.portal.kernel.json.JSONArrayWrapper searchAutocomplete(
193 long companyId, java.lang.String name, java.lang.String[] properties,
194 int begin, int end) throws com.liferay.portal.SystemException {
195 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
196
197 return tagsEntryLocalService.searchAutocomplete(companyId, name,
198 properties, begin, end);
199 }
200
201 public static int searchCount(long companyId, java.lang.String name,
202 java.lang.String[] properties)
203 throws com.liferay.portal.SystemException {
204 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
205
206 return tagsEntryLocalService.searchCount(companyId, name, properties);
207 }
208
209 public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
210 long entryId, java.lang.String name)
211 throws com.liferay.portal.PortalException,
212 com.liferay.portal.SystemException {
213 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
214
215 return tagsEntryLocalService.updateEntry(entryId, name);
216 }
217
218 public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
219 long userId, long entryId, java.lang.String name,
220 java.lang.String[] properties)
221 throws com.liferay.portal.PortalException,
222 com.liferay.portal.SystemException {
223 TagsEntryLocalService tagsEntryLocalService = TagsEntryLocalServiceFactory.getService();
224
225 return tagsEntryLocalService.updateEntry(userId, entryId, name,
226 properties);
227 }
228 }