001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.service.BaseService;
024
025
038 @JSONWebService
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface AssetVocabularyService extends BaseService {
042
047
048
053 public java.lang.String getBeanIdentifier();
054
055
060 public void setBeanIdentifier(java.lang.String beanIdentifier);
061
062
066 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
067 java.util.Map<java.util.Locale, java.lang.String> titleMap,
068 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
069 java.lang.String settings,
070 com.liferay.portal.service.ServiceContext serviceContext)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
075 java.lang.String title,
076 java.util.Map<java.util.Locale, java.lang.String> titleMap,
077 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
078 java.lang.String settings,
079 com.liferay.portal.service.ServiceContext serviceContext)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException;
082
083
087 public void deleteVocabularies(long[] vocabularyIds)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException;
090
091 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
092 long[] vocabularyIds,
093 com.liferay.portal.service.ServiceContext serviceContext)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException;
096
097 public void deleteVocabulary(long vocabularyId)
098 throws com.liferay.portal.kernel.exception.PortalException,
099 com.liferay.portal.kernel.exception.SystemException;
100
101 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
103 long companyId)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
109 long[] groupIds)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
115 long[] groupIds, java.lang.String className)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException;
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
121 long groupId)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException;
124
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
127 long groupId, boolean createDefaultVocabulary)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
133 long groupId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.kernel.exception.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
139 long groupId, java.lang.String name, int start, int end,
140 com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public int getGroupVocabulariesCount(long groupId)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public int getGroupVocabulariesCount(long groupId, java.lang.String name)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
153 long groupId, java.lang.String name, int start, int end,
154 boolean addDefaultVocabulary,
155 com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
161 long groupId, java.lang.String name, int start, int end,
162 com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabulariesDisplay(
168 long groupId, java.lang.String name, int start, int end,
169 boolean addDefaultVocabulary,
170 com.liferay.portal.kernel.util.OrderByComparator obc)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
176 long[] vocabularyIds)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException;
179
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
182 long vocabularyId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException;
185
186
190 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
191 long vocabularyId,
192 java.util.Map<java.util.Locale, java.lang.String> titleMap,
193 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
194 java.lang.String settings,
195 com.liferay.portal.service.ServiceContext serviceContext)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException;
198
199 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
200 long vocabularyId, java.lang.String title,
201 java.util.Map<java.util.Locale, java.lang.String> titleMap,
202 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
203 java.lang.String settings,
204 com.liferay.portal.service.ServiceContext serviceContext)
205 throws com.liferay.portal.kernel.exception.PortalException,
206 com.liferay.portal.kernel.exception.SystemException;
207 }