1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
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  /**
24   * <a href="AssetTagLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       AssetTagLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface AssetTagLocalService {
50      public com.liferay.portlet.asset.model.AssetTag addAssetTag(
51          com.liferay.portlet.asset.model.AssetTag assetTag)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.asset.model.AssetTag createAssetTag(long tagId);
55  
56      public void deleteAssetTag(long tagId)
57          throws com.liferay.portal.kernel.exception.PortalException,
58              com.liferay.portal.kernel.exception.SystemException;
59  
60      public void deleteAssetTag(
61          com.liferay.portlet.asset.model.AssetTag assetTag)
62          throws com.liferay.portal.kernel.exception.SystemException;
63  
64      @SuppressWarnings("unchecked")
65      public java.util.List dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      @SuppressWarnings("unchecked")
70      public java.util.List dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.kernel.exception.SystemException;
73  
74      @SuppressWarnings("unchecked")
75      public java.util.List dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException;
80  
81      public long dynamicQueryCount(
82          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
83          throws com.liferay.portal.kernel.exception.SystemException;
84  
85      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
86      public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
87          throws com.liferay.portal.kernel.exception.PortalException,
88              com.liferay.portal.kernel.exception.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
92          int start, int end)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96      public int getAssetTagsCount()
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
100         com.liferay.portlet.asset.model.AssetTag assetTag)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
104         com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
108         java.lang.String name, java.lang.String[] tagProperties,
109         com.liferay.portal.service.ServiceContext serviceContext)
110         throws com.liferay.portal.kernel.exception.PortalException,
111             com.liferay.portal.kernel.exception.SystemException;
112 
113     public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
114         boolean addCommunityPermissions, boolean addGuestPermissions)
115         throws com.liferay.portal.kernel.exception.PortalException,
116             com.liferay.portal.kernel.exception.SystemException;
117 
118     public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
119         java.lang.String[] communityPermissions,
120         java.lang.String[] guestPermissions)
121         throws com.liferay.portal.kernel.exception.PortalException,
122             com.liferay.portal.kernel.exception.SystemException;
123 
124     public void checkTags(long userId, long groupId, java.lang.String[] names)
125         throws com.liferay.portal.kernel.exception.PortalException,
126             com.liferay.portal.kernel.exception.SystemException;
127 
128     public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
129         long tagId, long classNameId)
130         throws com.liferay.portal.kernel.exception.PortalException,
131             com.liferay.portal.kernel.exception.SystemException;
132 
133     public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
134         throws com.liferay.portal.kernel.exception.PortalException,
135             com.liferay.portal.kernel.exception.SystemException;
136 
137     public void deleteTag(long tagId)
138         throws com.liferay.portal.kernel.exception.PortalException,
139             com.liferay.portal.kernel.exception.SystemException;
140 
141     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
143         long entryId)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
148         long groupId)
149         throws com.liferay.portal.kernel.exception.SystemException;
150 
151     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152     public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
153         throws com.liferay.portal.kernel.exception.PortalException,
154             com.liferay.portal.kernel.exception.SystemException;
155 
156     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157     public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
158         java.lang.String name)
159         throws com.liferay.portal.kernel.exception.PortalException,
160             com.liferay.portal.kernel.exception.SystemException;
161 
162     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163     public long[] getTagIds(long groupId, java.lang.String[] names)
164         throws com.liferay.portal.kernel.exception.PortalException,
165             com.liferay.portal.kernel.exception.SystemException;
166 
167     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168     public java.lang.String[] getTagNames()
169         throws com.liferay.portal.kernel.exception.SystemException;
170 
171     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172     public java.lang.String[] getTagNames(long classNameId, long classPK)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176     public java.lang.String[] getTagNames(java.lang.String className,
177         long classPK)
178         throws com.liferay.portal.kernel.exception.SystemException;
179 
180     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
186         long classNameId, long classPK)
187         throws com.liferay.portal.kernel.exception.SystemException;
188 
189     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
191         long groupId, long classNameId, java.lang.String name)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
196         long groupId, long classNameId, java.lang.String name, int start,
197         int end) throws com.liferay.portal.kernel.exception.SystemException;
198 
199     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
201         java.lang.String className, long classPK)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public int getTagsSize(long groupId, long classNameId, java.lang.String name)
206         throws com.liferay.portal.kernel.exception.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public boolean hasTag(long groupId, java.lang.String name)
210         throws com.liferay.portal.kernel.exception.PortalException,
211             com.liferay.portal.kernel.exception.SystemException;
212 
213     public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
214         long tagId, long classNameId)
215         throws com.liferay.portal.kernel.exception.PortalException,
216             com.liferay.portal.kernel.exception.SystemException;
217 
218     public void mergeTags(long fromTagId, long toTagId)
219         throws com.liferay.portal.kernel.exception.PortalException,
220             com.liferay.portal.kernel.exception.SystemException;
221 
222     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223     public com.liferay.portal.kernel.json.JSONArray search(long groupId,
224         java.lang.String name, java.lang.String[] tagProperties, int start,
225         int end) throws com.liferay.portal.kernel.exception.SystemException;
226 
227     public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
228         long tagId, java.lang.String name, java.lang.String[] tagProperties,
229         com.liferay.portal.service.ServiceContext serviceContext)
230         throws com.liferay.portal.kernel.exception.PortalException,
231             com.liferay.portal.kernel.exception.SystemException;
232 }