001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface AssetTagLocalService {
043 public com.liferay.portlet.asset.model.AssetTag addAssetTag(
044 com.liferay.portlet.asset.model.AssetTag assetTag)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.asset.model.AssetTag createAssetTag(long tagId);
048
049 public void deleteAssetTag(long tagId)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException;
052
053 public void deleteAssetTag(
054 com.liferay.portlet.asset.model.AssetTag assetTag)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057 @SuppressWarnings("unchecked")
058 public java.util.List dynamicQuery(
059 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
060 throws com.liferay.portal.kernel.exception.SystemException;
061
062 @SuppressWarnings("unchecked")
063 public java.util.List dynamicQuery(
064 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
065 int end) throws com.liferay.portal.kernel.exception.SystemException;
066
067 @SuppressWarnings("unchecked")
068 public java.util.List dynamicQuery(
069 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
070 int end,
071 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072 throws com.liferay.portal.kernel.exception.SystemException;
073
074 public long dynamicQueryCount(
075 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
076 throws com.liferay.portal.kernel.exception.SystemException;
077
078 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079 public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException;
082
083 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
085 int start, int end)
086 throws com.liferay.portal.kernel.exception.SystemException;
087
088 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089 public int getAssetTagsCount()
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
093 com.liferay.portlet.asset.model.AssetTag assetTag)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
097 com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
101 java.lang.String name, java.lang.String[] tagProperties,
102 com.liferay.portal.service.ServiceContext serviceContext)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException;
105
106 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
107 boolean addCommunityPermissions, boolean addGuestPermissions)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException;
110
111 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
112 java.lang.String[] communityPermissions,
113 java.lang.String[] guestPermissions)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException;
116
117 public void checkTags(long userId, long groupId, java.lang.String[] names)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
122 long tagId, long classNameId)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
127 throws com.liferay.portal.kernel.exception.PortalException,
128 com.liferay.portal.kernel.exception.SystemException;
129
130 public void deleteTag(long tagId)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException;
133
134 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
136 long entryId)
137 throws com.liferay.portal.kernel.exception.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
141 long groupId)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
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.AssetTag getTag(long groupId,
151 java.lang.String name)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public long[] getTagIds(long groupId, java.lang.String[] names)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public java.lang.String[] getTagNames()
162 throws com.liferay.portal.kernel.exception.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public java.lang.String[] getTagNames(long classNameId, long classPK)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public java.lang.String[] getTagNames(java.lang.String className,
170 long classPK)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
179 long classNameId, long classPK)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
184 long groupId, long classNameId, java.lang.String name)
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
189 long groupId, long classNameId, java.lang.String name, int start,
190 int end) throws com.liferay.portal.kernel.exception.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
194 java.lang.String className, long classPK)
195 throws com.liferay.portal.kernel.exception.SystemException;
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public int getTagsSize(long groupId, long classNameId, java.lang.String name)
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public boolean hasTag(long groupId, java.lang.String name)
203 throws com.liferay.portal.kernel.exception.PortalException,
204 com.liferay.portal.kernel.exception.SystemException;
205
206 public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
207 long tagId, long classNameId)
208 throws com.liferay.portal.kernel.exception.PortalException,
209 com.liferay.portal.kernel.exception.SystemException;
210
211 public void mergeTags(long fromTagId, long toTagId)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException;
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
217 java.lang.String name, java.lang.String[] tagProperties, int start,
218 int end) throws com.liferay.portal.kernel.exception.SystemException;
219
220 public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
221 long tagId, java.lang.String name, java.lang.String[] tagProperties,
222 com.liferay.portal.service.ServiceContext serviceContext)
223 throws com.liferay.portal.kernel.exception.PortalException,
224 com.liferay.portal.kernel.exception.SystemException;
225 }