1
14
15 package com.liferay.portlet.asset.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface AssetCategoryLocalService {
50 public com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
51 com.liferay.portlet.asset.model.AssetCategory assetCategory)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
55 long categoryId);
56
57 public void deleteAssetCategory(long categoryId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteAssetCategory(
62 com.liferay.portlet.asset.model.AssetCategory assetCategory)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74 public com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
75 long categoryId)
76 throws com.liferay.portal.kernel.exception.PortalException,
77 com.liferay.portal.kernel.exception.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
81 int start, int end)
82 throws com.liferay.portal.kernel.exception.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public int getAssetCategoriesCount()
86 throws com.liferay.portal.kernel.exception.SystemException;
87
88 public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
89 com.liferay.portlet.asset.model.AssetCategory assetCategory)
90 throws com.liferay.portal.kernel.exception.SystemException;
91
92 public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
93 com.liferay.portlet.asset.model.AssetCategory assetCategory,
94 boolean merge)
95 throws com.liferay.portal.kernel.exception.SystemException;
96
97 public com.liferay.portlet.asset.model.AssetCategory addCategory(
98 java.lang.String uuid, long userId, long parentCategoryId,
99 java.util.Map<java.util.Locale, String> titleMap, long vocabularyId,
100 java.lang.String[] categoryProperties,
101 com.liferay.portal.service.ServiceContext serviceContext)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException;
104
105 public void addCategoryResources(
106 com.liferay.portlet.asset.model.AssetCategory category,
107 boolean addCommunityPermissions, boolean addGuestPermissions)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException;
110
111 public void addCategoryResources(
112 com.liferay.portlet.asset.model.AssetCategory category,
113 java.lang.String[] communityPermissions,
114 java.lang.String[] guestPermissions)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException;
117
118 public void deleteCategory(
119 com.liferay.portlet.asset.model.AssetCategory category)
120 throws com.liferay.portal.kernel.exception.PortalException,
121 com.liferay.portal.kernel.exception.SystemException;
122
123 public void deleteCategory(long categoryId)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException;
126
127 public void deleteVocabularyCategories(long vocabularyId)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
133 throws 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> getCategories(
137 long classNameId, long classPK)
138 throws com.liferay.portal.kernel.exception.SystemException;
139
140 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
142 java.lang.String className, long classPK)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public com.liferay.portlet.asset.model.AssetCategory getCategory(
147 long categoryId)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public long[] getCategoryIds(java.lang.String className, long classPK)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
157 long parentCategoryId)
158 throws com.liferay.portal.kernel.exception.SystemException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
162 long entryId)
163 throws com.liferay.portal.kernel.exception.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
167 long vocabularyId)
168 throws com.liferay.portal.kernel.exception.SystemException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
172 long vocabularyId)
173 throws com.liferay.portal.kernel.exception.SystemException;
174
175 public void mergeCategories(long fromCategoryId, long toCategoryId)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
181 java.lang.String name, java.lang.String[] categoryProperties,
182 int start, int end)
183 throws com.liferay.portal.kernel.exception.SystemException;
184
185 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
186 long userId, long categoryId, long parentCategoryId,
187 java.util.Map<java.util.Locale, String> titleMap, long vocabularyId,
188 java.lang.String[] categoryProperties,
189 com.liferay.portal.service.ServiceContext serviceContext)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException;
192 }