1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tags.service;
24  
25  
26  /**
27   * <a href="TagsAssetServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * {@link TagsAssetService} bean. The static methods of
37   * this class calls the same methods of the bean instance. It's convenient to be
38   * able to just write one line to call a method on a bean instead of writing a
39   * lookup call and a method call.
40   * </p>
41   *
42   * @author    Brian Wing Shun Chan
43   * @see       TagsAssetService
44   * @generated
45   */
46  public class TagsAssetServiceUtil {
47      public static void deleteAsset(long assetId)
48          throws com.liferay.portal.PortalException,
49              com.liferay.portal.SystemException, java.rmi.RemoteException {
50          getService().deleteAsset(assetId);
51      }
52  
53      public static com.liferay.portlet.tags.model.TagsAsset getAsset(
54          long assetId)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException, java.rmi.RemoteException {
57          return getService().getAsset(assetId);
58      }
59  
60      public static java.lang.String getAssetsRSS(long groupId,
61          long[] classNameIds, long[] entryIds, long[] notEntryIds,
62          boolean andOperator, java.lang.String orderByCol1,
63          java.lang.String orderByCol2, java.lang.String orderByType1,
64          java.lang.String orderByType2, boolean excludeZeroViewCount,
65          java.util.Date publishDate, java.util.Date expirationDate, int max,
66          java.lang.String type, double version, java.lang.String displayStyle,
67          java.lang.String feedURL, java.lang.String entryURL)
68          throws com.liferay.portal.PortalException,
69              com.liferay.portal.SystemException, java.rmi.RemoteException {
70          return getService()
71                     .getAssetsRSS(groupId, classNameIds, entryIds, notEntryIds,
72              andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
73              excludeZeroViewCount, publishDate, expirationDate, max, type,
74              version, displayStyle, feedURL, entryURL);
75      }
76  
77      public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
78          java.lang.String languageId) throws java.rmi.RemoteException {
79          return getService().getAssetTypes(languageId);
80      }
81  
82      public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
83          long companyId, int start, int end, java.lang.String languageId)
84          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
85          return getService()
86                     .getCompanyAssetDisplays(companyId, start, end, languageId);
87      }
88  
89      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
90          long companyId, int start, int end)
91          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
92          return getService().getCompanyAssets(companyId, start, end);
93      }
94  
95      public static int getCompanyAssetsCount(long companyId)
96          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
97          return getService().getCompanyAssetsCount(companyId);
98      }
99  
100     public static java.lang.String getCompanyAssetsRSS(long companyId, int max,
101         java.lang.String type, double version, java.lang.String displayStyle,
102         java.lang.String feedURL, java.lang.String entryURL)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException, java.rmi.RemoteException {
105         return getService()
106                    .getCompanyAssetsRSS(companyId, max, type, version,
107             displayStyle, feedURL, entryURL);
108     }
109 
110     public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
111         java.lang.String className, long classPK)
112         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
113         return getService().incrementViewCounter(className, classPK);
114     }
115 
116     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
117         long companyId, java.lang.String portletId, java.lang.String keywords,
118         java.lang.String languageId, int start, int end)
119         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
120         return getService()
121                    .searchAssetDisplays(companyId, portletId, keywords,
122             languageId, start, end);
123     }
124 
125     public static int searchAssetDisplaysCount(long companyId,
126         java.lang.String portletId, java.lang.String keywords,
127         java.lang.String languageId)
128         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
129         return getService()
130                    .searchAssetDisplaysCount(companyId, portletId, keywords,
131             languageId);
132     }
133 
134     public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
135         long groupId, java.lang.String className, long classPK,
136         java.lang.String[] entryNames, java.util.Date startDate,
137         java.util.Date endDate, java.util.Date publishDate,
138         java.util.Date expirationDate, java.lang.String mimeType,
139         java.lang.String title, java.lang.String description,
140         java.lang.String summary, java.lang.String url, int height, int width,
141         java.lang.Integer priority)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException, java.rmi.RemoteException {
144         return getService()
145                    .updateAsset(groupId, className, classPK, entryNames,
146             startDate, endDate, publishDate, expirationDate, mimeType, title,
147             description, summary, url, height, width, priority);
148     }
149 
150     public static TagsAssetService getService() {
151         if (_service == null) {
152             throw new RuntimeException("TagsAssetService is not set");
153         }
154 
155         return _service;
156     }
157 
158     public void setService(TagsAssetService service) {
159         _service = service;
160     }
161 
162     private static TagsAssetService _service;
163 }