1
22
23 package com.liferay.portlet.tags.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27
28 import com.liferay.portlet.tags.service.TagsVocabularyServiceUtil;
29
30 import java.rmi.RemoteException;
31
32
82 public class TagsVocabularyServiceSoap {
83 public static com.liferay.portlet.tags.model.TagsVocabularySoap addVocabulary(
84 java.lang.String name, boolean folksonomy,
85 com.liferay.portal.service.ServiceContext serviceContext)
86 throws RemoteException {
87 try {
88 com.liferay.portlet.tags.model.TagsVocabulary returnValue = TagsVocabularyServiceUtil.addVocabulary(name,
89 folksonomy, serviceContext);
90
91 return com.liferay.portlet.tags.model.TagsVocabularySoap.toSoapModel(returnValue);
92 }
93 catch (Exception e) {
94 _log.error(e, e);
95
96 throw new RemoteException(e.getMessage());
97 }
98 }
99
100 public static void deleteVocabulary(long vocabularyId)
101 throws RemoteException {
102 try {
103 TagsVocabularyServiceUtil.deleteVocabulary(vocabularyId);
104 }
105 catch (Exception e) {
106 _log.error(e, e);
107
108 throw new RemoteException(e.getMessage());
109 }
110 }
111
112 public static com.liferay.portlet.tags.model.TagsVocabularySoap[] getCompanyVocabularies(
113 long companyId, boolean folksonomy) throws RemoteException {
114 try {
115 java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> returnValue =
116 TagsVocabularyServiceUtil.getCompanyVocabularies(companyId,
117 folksonomy);
118
119 return com.liferay.portlet.tags.model.TagsVocabularySoap.toSoapModels(returnValue);
120 }
121 catch (Exception e) {
122 _log.error(e, e);
123
124 throw new RemoteException(e.getMessage());
125 }
126 }
127
128 public static com.liferay.portlet.tags.model.TagsVocabularySoap[] getGroupVocabularies(
129 long groupId, boolean folksonomy) throws RemoteException {
130 try {
131 java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> returnValue =
132 TagsVocabularyServiceUtil.getGroupVocabularies(groupId,
133 folksonomy);
134
135 return com.liferay.portlet.tags.model.TagsVocabularySoap.toSoapModels(returnValue);
136 }
137 catch (Exception e) {
138 _log.error(e, e);
139
140 throw new RemoteException(e.getMessage());
141 }
142 }
143
144 public static com.liferay.portlet.tags.model.TagsVocabularySoap getVocabulary(
145 long vocabularyId) throws RemoteException {
146 try {
147 com.liferay.portlet.tags.model.TagsVocabulary returnValue = TagsVocabularyServiceUtil.getVocabulary(vocabularyId);
148
149 return com.liferay.portlet.tags.model.TagsVocabularySoap.toSoapModel(returnValue);
150 }
151 catch (Exception e) {
152 _log.error(e, e);
153
154 throw new RemoteException(e.getMessage());
155 }
156 }
157
158 public static com.liferay.portlet.tags.model.TagsVocabularySoap updateVocabulary(
159 long vocabularyId, java.lang.String name, boolean folksonomy)
160 throws RemoteException {
161 try {
162 com.liferay.portlet.tags.model.TagsVocabulary returnValue = TagsVocabularyServiceUtil.updateVocabulary(vocabularyId,
163 name, folksonomy);
164
165 return com.liferay.portlet.tags.model.TagsVocabularySoap.toSoapModel(returnValue);
166 }
167 catch (Exception e) {
168 _log.error(e, e);
169
170 throw new RemoteException(e.getMessage());
171 }
172 }
173
174 private static Log _log = LogFactoryUtil.getLog(TagsVocabularyServiceSoap.class);
175 }