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 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
064 long[] vocabularyIds,
065 com.liferay.portal.service.ServiceContext serviceContext)
066 throws PortalException;
067
068 public void deleteVocabulary(long vocabularyId) throws PortalException;
069
070 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
071 public com.liferay.portlet.asset.model.AssetVocabulary fetchVocabulary(
072 long vocabularyId) throws PortalException;
073
074
077 @java.lang.Deprecated
078 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
080 long companyId) throws PortalException;
081
082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
084 long groupId) throws PortalException;
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
088 long groupId, boolean createDefaultVocabulary)
089 throws PortalException;
090
091 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
093 long groupId, boolean createDefaultVocabulary, int start, int end,
094 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
095 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, java.lang.String name, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
104 long groupId, int start, int end,
105 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc);
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
109 long[] groupIds);
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public int getGroupVocabulariesCount(long groupId);
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public int getGroupVocabulariesCount(long groupId, java.lang.String name);
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public int getGroupVocabulariesCount(long[] groupIds);
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
122 long groupId, java.lang.String name, int start, int end,
123 boolean addDefaultVocabulary,
124 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
125 throws PortalException;
126
127 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
129 long groupId, java.lang.String name, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
131 throws PortalException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
135 long[] groupIds);
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
139 long[] groupIds, java.lang.String className);
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
143 long[] groupIds, java.lang.String className, long classTypePK);
144
145
150 public java.lang.String getOSGiServiceIdentifier();
151
152
156 @java.lang.Deprecated
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
159 long[] vocabularyIds) throws PortalException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
163 long vocabularyId) throws PortalException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
167 long groupId, java.lang.String title, boolean addDefaultVocabulary,
168 int start, int end) throws PortalException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
172 long groupId, java.lang.String title, boolean addDefaultVocabulary,
173 int start, int end, com.liferay.portal.kernel.search.Sort sort)
174 throws PortalException;
175
176 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
177 long vocabularyId, java.lang.String title,
178 java.util.Map<java.util.Locale, java.lang.String> titleMap,
179 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
180 java.lang.String settings,
181 com.liferay.portal.service.ServiceContext serviceContext)
182 throws PortalException;
183 }