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 getEntries(java.lang.String className,
81 long classPK)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException, java.rmi.RemoteException {
84 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
85
86 return tagsEntryService.getEntries(className, classPK);
87 }
88
89 public static java.util.List search(long companyId, java.lang.String name,
90 java.lang.String[] properties)
91 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
92 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
93
94 return tagsEntryService.search(companyId, name, properties);
95 }
96
97 public static java.util.List search(long companyId, java.lang.String name,
98 java.lang.String[] properties, int begin, int end)
99 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
100 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
101
102 return tagsEntryService.search(companyId, name, properties, begin, end);
103 }
104
105 public static com.liferay.portal.kernel.json.JSONArrayWrapper searchAutocomplete(
106 long companyId, java.lang.String name, java.lang.String[] properties,
107 int begin, int end)
108 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
109 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
110
111 return tagsEntryService.searchAutocomplete(companyId, name, properties,
112 begin, end);
113 }
114
115 public static int searchCount(long companyId, java.lang.String name,
116 java.lang.String[] properties)
117 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
118 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
119
120 return tagsEntryService.searchCount(companyId, name, properties);
121 }
122
123 public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
124 long entryId, java.lang.String name)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException, java.rmi.RemoteException {
127 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
128
129 return tagsEntryService.updateEntry(entryId, name);
130 }
131
132 public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
133 long entryId, java.lang.String name, java.lang.String[] properties)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException, java.rmi.RemoteException {
136 TagsEntryService tagsEntryService = TagsEntryServiceFactory.getService();
137
138 return tagsEntryService.updateEntry(entryId, name, properties);
139 }
140 }