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, int start, int end,
119 com.liferay.portal.kernel.util.OrderByComparator obc)
120 throws 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, java.lang.String name, 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 int getGroupVocabulariesCount(long groupId)
130 throws com.liferay.portal.kernel.exception.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public int getGroupVocabulariesCount(long groupId, java.lang.String name)
134 throws com.liferay.portal.kernel.exception.SystemException;
135
136 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137 public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
138 long groupId, java.lang.String name, int start, int end,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
145 long[] vocabularyIds)
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 com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
151 long vocabularyId)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException;
154
155
158 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
159 long vocabularyId,
160 java.util.Map<java.util.Locale, java.lang.String> titleMap,
161 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
162 java.lang.String settings,
163 com.liferay.portal.service.ServiceContext serviceContext)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
168 long vocabularyId, java.lang.String title,
169 java.util.Map<java.util.Locale, java.lang.String> titleMap,
170 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
171 java.lang.String settings,
172 com.liferay.portal.service.ServiceContext serviceContext)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException;
175 }