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