001
014
015 package com.liferay.portlet.asset.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022 import com.liferay.portal.kernel.security.access.control.AccessControlled;
023 import com.liferay.portal.kernel.transaction.Isolation;
024 import com.liferay.portal.kernel.transaction.Propagation;
025 import com.liferay.portal.kernel.transaction.Transactional;
026 import com.liferay.portal.service.BaseService;
027
028
039 @AccessControlled
040 @JSONWebService
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface AssetVocabularyService extends BaseService {
045
050 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
051 long groupId, java.lang.String title,
052 com.liferay.portal.service.ServiceContext serviceContext)
053 throws PortalException;
054
055 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
056 long groupId, java.lang.String title,
057 java.util.Map<java.util.Locale, java.lang.String> titleMap,
058 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
059 java.lang.String settings,
060 com.liferay.portal.service.ServiceContext serviceContext)
061 throws PortalException;
062
063
067 @java.lang.Deprecated
068 public void deleteVocabularies(long[] vocabularyIds)
069 throws PortalException;
070
071 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
072 long[] vocabularyIds,
073 com.liferay.portal.service.ServiceContext serviceContext)
074 throws PortalException;
075
076 public void deleteVocabulary(long vocabularyId) throws PortalException;
077
078 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079 public com.liferay.portlet.asset.model.AssetVocabulary fetchVocabulary(
080 long vocabularyId) throws PortalException;
081
082
085 @java.lang.Deprecated
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
088 long companyId) throws PortalException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
092 long groupId) throws PortalException;
093
094 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
096 long groupId, boolean createDefaultVocabulary)
097 throws PortalException;
098
099 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
101 long groupId, boolean createDefaultVocabulary, int start, int end,
102 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
103 throws PortalException;
104
105 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
107 long groupId, java.lang.String name, int start, int end,
108 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
109
110 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
112 long groupId, int start, int end,
113 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
117 long[] groupIds);
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public int getGroupVocabulariesCount(long groupId);
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public int getGroupVocabulariesCount(long groupId, java.lang.String name);
124
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public int getGroupVocabulariesCount(long[] groupIds);
127
128 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129 public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
130 long groupId, java.lang.String name, int start, int end,
131 boolean addDefaultVocabulary,
132 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
133 throws PortalException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
137 long groupId, java.lang.String name, int start, int end,
138 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
139 throws PortalException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
143 long[] groupIds);
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
147 long[] groupIds, java.lang.String className);
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
151 long[] groupIds, java.lang.String className, long classTypePK);
152
153
156 @java.lang.Deprecated
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
159 long groupId, java.lang.String name, int start, int end,
160 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
161 throws PortalException;
162
163
168 public java.lang.String getOSGiServiceIdentifier();
169
170
174 @java.lang.Deprecated
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
177 long[] vocabularyIds) throws PortalException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
181 long vocabularyId) throws PortalException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
185 long groupId, java.lang.String title, boolean addDefaultVocabulary,
186 int start, int end) throws PortalException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
190 long groupId, java.lang.String title, boolean addDefaultVocabulary,
191 int start, int end, com.liferay.portal.kernel.search.Sort sort)
192 throws PortalException;
193
194 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
195 long vocabularyId, java.lang.String title,
196 java.util.Map<java.util.Locale, java.lang.String> titleMap,
197 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
198 java.lang.String settings,
199 com.liferay.portal.service.ServiceContext serviceContext)
200 throws PortalException;
201 }