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 void deleteVocabularies(long[] vocabularyIds)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException;
087
088 public void deleteVocabulary(long vocabularyId)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException;
091
092 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
094 long companyId)
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> getGroupsVocabularies(
100 long[] groupIds)
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, java.lang.String className)
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> getGroupVocabularies(
112 long groupId)
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, boolean createDefaultVocabulary)
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, int start, int end,
125 com.liferay.portal.kernel.util.OrderByComparator obc)
126 throws 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, java.lang.String name, 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 int getGroupVocabulariesCount(long groupId)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public int getGroupVocabulariesCount(long groupId, java.lang.String name)
140 throws com.liferay.portal.kernel.exception.SystemException;
141
142 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143 public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
144 long groupId, java.lang.String name, int start, int end,
145 com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
151 long[] vocabularyIds)
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 com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
157 long vocabularyId)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException;
160
161
164 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
165 long vocabularyId,
166 java.util.Map<java.util.Locale, java.lang.String> titleMap,
167 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
168 java.lang.String settings,
169 com.liferay.portal.service.ServiceContext serviceContext)
170 throws com.liferay.portal.kernel.exception.PortalException,
171 com.liferay.portal.kernel.exception.SystemException;
172
173 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
174 long vocabularyId, java.lang.String title,
175 java.util.Map<java.util.Locale, java.lang.String> titleMap,
176 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
177 java.lang.String settings,
178 com.liferay.portal.service.ServiceContext serviceContext)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException;
181 }