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.service.BaseService;
024
025
038 @JSONWebService
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface AssetCategoryService extends BaseService {
042
047
048
053 public java.lang.String getBeanIdentifier();
054
055
060 public void setBeanIdentifier(java.lang.String beanIdentifier);
061
062 public com.liferay.portlet.asset.model.AssetCategory addCategory(
063 long parentCategoryId,
064 java.util.Map<java.util.Locale, java.lang.String> titleMap,
065 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
066 long vocabularyId, java.lang.String[] categoryProperties,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071 public void deleteCategories(long[] categoryIds)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075 public void deleteCategory(long categoryId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
081 java.lang.String className, long classPK)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public com.liferay.portlet.asset.model.AssetCategory getCategory(
087 long categoryId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException;
090
091 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
093 long parentCategoryId)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException;
096
097 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
098 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
099 long parentCategoryId, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException;
103
104
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public com.liferay.portal.kernel.json.JSONArray getJSONSearch(
109 long groupId, java.lang.String keywords, long vocabularyId, int start,
110 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public com.liferay.portal.kernel.json.JSONArray getJSONSearch(
116 long groupId, java.lang.String name, long[] vocabularyIds, int start,
117 int end)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
123 long vocabularyId, int start, int end,
124 com.liferay.portal.kernel.util.OrderByComparator obc)
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 com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
130 long groupId, java.lang.String name, long vocabularyId, int start,
131 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
137 long vocabularyId, int start, int end,
138 com.liferay.portal.kernel.util.OrderByComparator obc)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException;
141
142 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
144 long parentCategoryId, long vocabularyId, 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.AssetCategory> getVocabularyCategories(
151 long groupId, java.lang.String name, long vocabularyId, int start,
152 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public int getVocabularyCategoriesCount(long groupId, long vocabularyId)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public int getVocabularyCategoriesCount(long groupId,
161 java.lang.String name, long vocabularyId)
162 throws com.liferay.portal.kernel.exception.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
166 long vocabularyId, int start, int end,
167 com.liferay.portal.kernel.util.OrderByComparator obc)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 public com.liferay.portlet.asset.model.AssetCategory moveCategory(
172 long categoryId, long parentCategoryId, long vocabularyId,
173 com.liferay.portal.service.ServiceContext serviceContext)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
179 long groupId, java.lang.String keywords, long vocabularyId, int start,
180 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException;
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
186 java.lang.String name, java.lang.String[] categoryProperties,
187 int start, int end)
188 throws com.liferay.portal.kernel.exception.PortalException,
189 com.liferay.portal.kernel.exception.SystemException;
190
191 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
192 long categoryId, long parentCategoryId,
193 java.util.Map<java.util.Locale, java.lang.String> titleMap,
194 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
195 long vocabularyId, java.lang.String[] categoryProperties,
196 com.liferay.portal.service.ServiceContext serviceContext)
197 throws com.liferay.portal.kernel.exception.PortalException,
198 com.liferay.portal.kernel.exception.SystemException;
199 }