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      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public java.util.List<Object> dynamicQuery(
69          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70          int end) throws com.liferay.portal.kernel.exception.SystemException;
71  
72      public java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.kernel.exception.SystemException;
77  
78      public int dynamicQueryCount(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
80          throws com.liferay.portal.kernel.exception.SystemException;
81  
82      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83      public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
84          throws com.liferay.portal.kernel.exception.PortalException,
85              com.liferay.portal.kernel.exception.SystemException;
86  
87      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88      public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
89          int start, int end)
90          throws com.liferay.portal.kernel.exception.SystemException;
91  
92      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93      public int getAssetTagsCount()
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
97          com.liferay.portlet.asset.model.AssetTag assetTag)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
101         com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
105         java.lang.String name, java.lang.String[] tagProperties,
106         com.liferay.portal.service.ServiceContext serviceContext)
107         throws com.liferay.portal.kernel.exception.PortalException,
108             com.liferay.portal.kernel.exception.SystemException;
109 
110     public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
111         boolean addCommunityPermissions, boolean addGuestPermissions)
112         throws com.liferay.portal.kernel.exception.PortalException,
113             com.liferay.portal.kernel.exception.SystemException;
114 
115     public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
116         java.lang.String[] communityPermissions,
117         java.lang.String[] guestPermissions)
118         throws com.liferay.portal.kernel.exception.PortalException,
119             com.liferay.portal.kernel.exception.SystemException;
120 
121     public void checkTags(long userId, long groupId, java.lang.String[] names)
122         throws com.liferay.portal.kernel.exception.PortalException,
123             com.liferay.portal.kernel.exception.SystemException;
124 
125     public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
126         long tagId, long classNameId)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException;
129 
130     public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException;
133 
134     public void deleteTag(long tagId)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException;
137 
138     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
140         long entryId)
141         throws com.liferay.portal.kernel.exception.SystemException;
142 
143     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
145         long groupId)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149     public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException;
152 
153     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154     public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
155         java.lang.String name)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException;
158 
159     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160     public long[] getTagIds(long groupId, java.lang.String[] names)
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 java.lang.String[] getTagNames()
166         throws com.liferay.portal.kernel.exception.SystemException;
167 
168     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169     public java.lang.String[] getTagNames(long classNameId, long classPK)
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173     public java.lang.String[] getTagNames(java.lang.String className,
174         long classPK)
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         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
183         long classNameId, long classPK)
184         throws com.liferay.portal.kernel.exception.SystemException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
188         long groupId, long classNameId, java.lang.String name)
189         throws com.liferay.portal.kernel.exception.SystemException;
190 
191     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
193         long groupId, long classNameId, java.lang.String name, int start,
194         int end) throws com.liferay.portal.kernel.exception.SystemException;
195 
196     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
198         java.lang.String className, long classPK)
199         throws com.liferay.portal.kernel.exception.SystemException;
200 
201     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202     public int getTagsSize(long groupId, long classNameId, java.lang.String name)
203         throws com.liferay.portal.kernel.exception.SystemException;
204 
205     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206     public boolean hasTag(long groupId, java.lang.String name)
207         throws com.liferay.portal.kernel.exception.PortalException,
208             com.liferay.portal.kernel.exception.SystemException;
209 
210     public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
211         long tagId, long classNameId)
212         throws com.liferay.portal.kernel.exception.PortalException,
213             com.liferay.portal.kernel.exception.SystemException;
214 
215     public void mergeTags(long fromTagId, long toTagId)
216         throws com.liferay.portal.kernel.exception.PortalException,
217             com.liferay.portal.kernel.exception.SystemException;
218 
219     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220     public com.liferay.portal.kernel.json.JSONArray search(long groupId,
221         java.lang.String name, java.lang.String[] tagProperties, int start,
222         int end) throws com.liferay.portal.kernel.exception.SystemException;
223 
224     public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
225         long tagId, java.lang.String name, java.lang.String[] tagProperties,
226         com.liferay.portal.service.ServiceContext serviceContext)
227         throws com.liferay.portal.kernel.exception.PortalException,
228             com.liferay.portal.kernel.exception.SystemException;
229 }