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
087 public java.lang.String getBeanIdentifier();
088
089
092 @java.lang.Deprecated
093 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
095 long companyId) throws PortalException;
096
097 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
098 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
099 long groupId) throws PortalException;
100
101 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
103 long groupId, boolean createDefaultVocabulary)
104 throws PortalException;
105
106 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
107 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
108 long groupId, boolean createDefaultVocabulary, int start, int end,
109 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
110 throws PortalException;
111
112 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
114 long groupId, java.lang.String name, int start, int end,
115 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
119 long groupId, int start, int end,
120 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
124 long[] groupIds);
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public int getGroupVocabulariesCount(long groupId);
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public int getGroupVocabulariesCount(long groupId, java.lang.String name);
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public int getGroupVocabulariesCount(long[] groupIds);
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 boolean addDefaultVocabulary,
139 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
140 throws PortalException;
141
142 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143 public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
144 long groupId, java.lang.String name, int start, int end,
145 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
146 throws PortalException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
150 long[] groupIds);
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
154 long[] groupIds, java.lang.String className);
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
158 long[] groupIds, java.lang.String className, long classTypePK);
159
160
163 @java.lang.Deprecated
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
166 long groupId, java.lang.String name, int start, int end,
167 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
168 throws PortalException;
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, int start, int end,
186 boolean addDefaultVocabulary) throws PortalException;
187
188
193 public void setBeanIdentifier(java.lang.String beanIdentifier);
194
195 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
196 long vocabularyId, java.lang.String title,
197 java.util.Map<java.util.Locale, java.lang.String> titleMap,
198 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
199 java.lang.String settings,
200 com.liferay.portal.service.ServiceContext serviceContext)
201 throws PortalException;
202 }