1
22
23 package com.liferay.portlet.tags.service;
24
25
26
53 public class TagsEntryServiceUtil {
54 public static com.liferay.portlet.tags.model.TagsEntry addEntry(
55 java.lang.String name)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException, java.rmi.RemoteException {
58 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
59
60 return tagsEntryService.addEntry(name);
61 }
62
63 public static com.liferay.portlet.tags.model.TagsEntry addEntry(
64 java.lang.String name, java.lang.String[] properties)
65 throws com.liferay.portal.PortalException,
66 com.liferay.portal.SystemException, java.rmi.RemoteException {
67 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
68
69 return tagsEntryService.addEntry(name, properties);
70 }
71
72 public static void deleteEntry(long entryId)
73 throws com.liferay.portal.PortalException,
74 com.liferay.portal.SystemException, java.rmi.RemoteException {
75 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
76
77 tagsEntryService.deleteEntry(entryId);
78 }
79
80 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
81 java.lang.String className, long classPK)
82 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
83 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
84
85 return tagsEntryService.getEntries(className, classPK);
86 }
87
88 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
89 long groupId, long companyId, long classNameId, java.lang.String name)
90 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
91 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
92
93 return tagsEntryService.getEntries(groupId, companyId, classNameId, name);
94 }
95
96 public static void mergeEntries(long fromEntryId, long toEntryId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException, java.rmi.RemoteException {
99 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
100
101 tagsEntryService.mergeEntries(fromEntryId, toEntryId);
102 }
103
104 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
105 long companyId, java.lang.String name, java.lang.String[] properties)
106 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
107 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
108
109 return tagsEntryService.search(companyId, name, properties);
110 }
111
112 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
113 long companyId, java.lang.String name, java.lang.String[] properties,
114 int start, int end)
115 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
116 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
117
118 return tagsEntryService.search(companyId, name, properties, start, end);
119 }
120
121 public static com.liferay.portal.kernel.json.JSONArray searchAutocomplete(
122 long companyId, java.lang.String name, java.lang.String[] properties,
123 int start, int end)
124 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
125 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
126
127 return tagsEntryService.searchAutocomplete(companyId, name, properties,
128 start, end);
129 }
130
131 public static int searchCount(long companyId, java.lang.String name,
132 java.lang.String[] properties)
133 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
134 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
135
136 return tagsEntryService.searchCount(companyId, name, properties);
137 }
138
139 public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
140 long entryId, java.lang.String name)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException, java.rmi.RemoteException {
143 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
144
145 return tagsEntryService.updateEntry(entryId, name);
146 }
147
148 public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
149 long entryId, java.lang.String name, java.lang.String[] properties)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException, java.rmi.RemoteException {
152 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
153
154 return tagsEntryService.updateEntry(entryId, name, properties);
155 }
156 }