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.security.ac.AccessControlled;
024 import com.liferay.portal.service.BaseService;
025
026
037 @AccessControlled
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 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
084 java.lang.String title,
085 com.liferay.portal.service.ServiceContext serviceContext)
086 throws com.liferay.portal.kernel.exception.PortalException,
087 com.liferay.portal.kernel.exception.SystemException;
088
089
093 public void deleteVocabularies(long[] vocabularyIds)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException;
096
097 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
098 long[] vocabularyIds,
099 com.liferay.portal.service.ServiceContext serviceContext)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException;
102
103 public void deleteVocabulary(long vocabularyId)
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> getCompanyVocabularies(
109 long companyId)
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)
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> getGroupsVocabularies(
121 long[] groupIds, java.lang.String className)
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)
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, boolean createDefaultVocabulary)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 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, 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 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
145 long groupId, java.lang.String name, int start, int end,
146 com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public int getGroupVocabulariesCount(long groupId)
151 throws com.liferay.portal.kernel.exception.SystemException;
152
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154 public int getGroupVocabulariesCount(long groupId, java.lang.String name)
155 throws com.liferay.portal.kernel.exception.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
159 long groupId, java.lang.String name, int start, int end,
160 boolean addDefaultVocabulary,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
167 long groupId, java.lang.String name, int start, int end,
168 com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
177 long groupId, java.lang.String name, int start, int end,
178 com.liferay.portal.kernel.util.OrderByComparator obc)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
184 long[] vocabularyIds)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
190 long vocabularyId)
191 throws com.liferay.portal.kernel.exception.PortalException,
192 com.liferay.portal.kernel.exception.SystemException;
193
194
198 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
199 long vocabularyId,
200 java.util.Map<java.util.Locale, java.lang.String> titleMap,
201 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
202 java.lang.String settings,
203 com.liferay.portal.service.ServiceContext serviceContext)
204 throws com.liferay.portal.kernel.exception.PortalException,
205 com.liferay.portal.kernel.exception.SystemException;
206
207 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
208 long vocabularyId, java.lang.String title,
209 java.util.Map<java.util.Locale, java.lang.String> titleMap,
210 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
211 java.lang.String settings,
212 com.liferay.portal.service.ServiceContext serviceContext)
213 throws com.liferay.portal.kernel.exception.PortalException,
214 com.liferay.portal.kernel.exception.SystemException;
215 }