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 AssetVocabularyLocalService {
50 public com.liferay.portlet.asset.model.AssetVocabulary addAssetVocabulary(
51 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
55 long vocabularyId);
56
57 public void deleteAssetVocabulary(long vocabularyId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteAssetVocabulary(
62 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 @SuppressWarnings("unchecked")
66 public java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.kernel.exception.SystemException;
69
70 @SuppressWarnings("unchecked")
71 public java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.kernel.exception.SystemException;
74
75 @SuppressWarnings("unchecked")
76 public java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.kernel.exception.SystemException;
81
82 public long dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.kernel.exception.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
88 long vocabularyId)
89 throws com.liferay.portal.kernel.exception.PortalException,
90 com.liferay.portal.kernel.exception.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
94 java.lang.String uuid, long groupId)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
100 int start, int end)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public int getAssetVocabulariesCount()
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
108 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
109 throws com.liferay.portal.kernel.exception.SystemException;
110
111 public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
112 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
113 boolean merge)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
117 java.lang.String uuid, long userId,
118 java.util.Map<java.util.Locale, java.lang.String> titleMap,
119 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
120 java.lang.String settings,
121 com.liferay.portal.service.ServiceContext serviceContext)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException;
124
125 public void addVocabularyResources(
126 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
127 boolean addCommunityPermissions, boolean addGuestPermissions)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 public void addVocabularyResources(
132 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
133 java.lang.String[] communityPermissions,
134 java.lang.String[] guestPermissions)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public void deleteVocabulary(
139 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException;
142
143 public void deleteVocabulary(long vocabularyId)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
149 long companyId)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
154 long[] groupIds)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException;
157
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
160 long groupId)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
166 long groupId, java.lang.String name)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
172 long vocabularyId)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException;
175
176 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
177 long vocabularyId,
178 java.util.Map<java.util.Locale, java.lang.String> titleMap,
179 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
180 java.lang.String settings,
181 com.liferay.portal.service.ServiceContext serviceContext)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException;
184 }