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
024
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface AssetVocabularyService {
041
046
047
050 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
051 java.util.Map<java.util.Locale, java.lang.String> titleMap,
052 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
053 java.lang.String settings,
054 com.liferay.portal.service.ServiceContext serviceContext)
055 throws com.liferay.portal.kernel.exception.PortalException,
056 com.liferay.portal.kernel.exception.SystemException;
057
058 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
059 java.lang.String title,
060 java.util.Map<java.util.Locale, java.lang.String> titleMap,
061 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
062 java.lang.String settings,
063 com.liferay.portal.service.ServiceContext serviceContext)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException;
066
067 public void deleteVocabularies(long[] vocabularyIds)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071 public void deleteVocabulary(long vocabularyId)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
077 long companyId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
083 long[] groupIds)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException;
086
087 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
089 long[] groupIds, java.lang.String className)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException;
092
093 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
095 long groupId)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException;
098
099 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
101 long groupId, int start, int end,
102 com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
107 long groupId, java.lang.String name, int start, int end,
108 com.liferay.portal.kernel.util.OrderByComparator obc)
109 throws com.liferay.portal.kernel.exception.SystemException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public int getGroupVocabulariesCount(long groupId)
113 throws com.liferay.portal.kernel.exception.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public int getGroupVocabulariesCount(long groupId, java.lang.String name)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
121 long groupId, java.lang.String name, int start, int end,
122 com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
128 long[] vocabularyIds)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
134 long vocabularyId)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138
141 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
142 long vocabularyId,
143 java.util.Map<java.util.Locale, java.lang.String> titleMap,
144 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
145 java.lang.String settings,
146 com.liferay.portal.service.ServiceContext serviceContext)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException;
149
150 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
151 long vocabularyId, java.lang.String title,
152 java.util.Map<java.util.Locale, java.lang.String> titleMap,
153 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
154 java.lang.String settings,
155 com.liferay.portal.service.ServiceContext serviceContext)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException;
158 }