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
039 @AccessControlled
040 @JSONWebService
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface AssetVocabularyService extends BaseService {
044
049
050
055 public java.lang.String getBeanIdentifier();
056
057
062 public void setBeanIdentifier(java.lang.String beanIdentifier);
063
064
067 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
068 java.util.Map<java.util.Locale, java.lang.String> titleMap,
069 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
070 java.lang.String settings,
071 com.liferay.portal.service.ServiceContext serviceContext)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
076 java.lang.String title,
077 java.util.Map<java.util.Locale, java.lang.String> titleMap,
078 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
079 java.lang.String settings,
080 com.liferay.portal.service.ServiceContext serviceContext)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException;
083
084 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
085 java.lang.String title,
086 com.liferay.portal.service.ServiceContext serviceContext)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException;
089
090 public void deleteVocabularies(long[] vocabularyIds)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException;
093
094 public void deleteVocabulary(long vocabularyId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException;
097
098 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
100 long companyId)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException;
103
104 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
106 long[] groupIds)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException;
109
110 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
112 long[] groupIds, java.lang.String className)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException;
115
116 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
118 long groupId)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
124 long groupId, boolean createDefaultVocabulary)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException;
127
128 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
130 long groupId, int start, int end,
131 com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.kernel.exception.SystemException;
133
134 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
136 long groupId, java.lang.String name, int start, int end,
137 com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.kernel.exception.SystemException;
139
140 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141 public int getGroupVocabulariesCount(long groupId)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public int getGroupVocabulariesCount(long groupId, java.lang.String name)
146 throws com.liferay.portal.kernel.exception.SystemException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
150 long groupId, java.lang.String name, int start, int end,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
157 long[] vocabularyIds)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
163 long vocabularyId)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167
170 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
171 long vocabularyId,
172 java.util.Map<java.util.Locale, java.lang.String> titleMap,
173 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
174 java.lang.String settings,
175 com.liferay.portal.service.ServiceContext serviceContext)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException;
178
179 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
180 long vocabularyId, java.lang.String title,
181 java.util.Map<java.util.Locale, java.lang.String> titleMap,
182 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
183 java.lang.String settings,
184 com.liferay.portal.service.ServiceContext serviceContext)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException;
187 }