001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class AssetLinkLocalServiceUtil {
033 public static com.liferay.portlet.asset.model.AssetLink addAssetLink(
034 com.liferay.portlet.asset.model.AssetLink assetLink)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addAssetLink(assetLink);
037 }
038
039 public static com.liferay.portlet.asset.model.AssetLink createAssetLink(
040 long linkId) {
041 return getService().createAssetLink(linkId);
042 }
043
044 public static void deleteAssetLink(long linkId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteAssetLink(linkId);
048 }
049
050 public static void deleteAssetLink(
051 com.liferay.portlet.asset.model.AssetLink assetLink)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteAssetLink(assetLink);
054 }
055
056 @SuppressWarnings("unchecked")
057 public static java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getService().dynamicQuery(dynamicQuery);
061 }
062
063 @SuppressWarnings("unchecked")
064 public static java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException {
067 return getService().dynamicQuery(dynamicQuery, start, end);
068 }
069
070 @SuppressWarnings("unchecked")
071 public static java.util.List dynamicQuery(
072 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073 int end,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078 }
079
080 public static long dynamicQueryCount(
081 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getService().dynamicQueryCount(dynamicQuery);
084 }
085
086 public static com.liferay.portlet.asset.model.AssetLink getAssetLink(
087 long linkId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getAssetLink(linkId);
091 }
092
093 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> getAssetLinks(
094 int start, int end)
095 throws com.liferay.portal.kernel.exception.SystemException {
096 return getService().getAssetLinks(start, end);
097 }
098
099 public static int getAssetLinksCount()
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().getAssetLinksCount();
102 }
103
104 public static com.liferay.portlet.asset.model.AssetLink updateAssetLink(
105 com.liferay.portlet.asset.model.AssetLink assetLink)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().updateAssetLink(assetLink);
108 }
109
110 public static com.liferay.portlet.asset.model.AssetLink updateAssetLink(
111 com.liferay.portlet.asset.model.AssetLink assetLink, boolean merge)
112 throws com.liferay.portal.kernel.exception.SystemException {
113 return getService().updateAssetLink(assetLink, merge);
114 }
115
116 public static com.liferay.portlet.asset.model.AssetLink addLink(
117 long userId, long entryId1, long entryId2, int type, int weight)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException {
120 return getService().addLink(userId, entryId1, entryId2, type, weight);
121 }
122
123 public static void deleteLink(long linkId)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException {
126 getService().deleteLink(linkId);
127 }
128
129 public static void deleteLinks(long entryId)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 getService().deleteLinks(entryId);
132 }
133
134 public static void deleteLinks(long entryId1, long entryId2)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 getService().deleteLinks(entryId1, entryId2);
137 }
138
139 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> getLinks(
140 long entryId, int typeId)
141 throws com.liferay.portal.kernel.exception.SystemException {
142 return getService().getLinks(entryId, typeId);
143 }
144
145 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> getReverseLinks(
146 long entryId, int typeId)
147 throws com.liferay.portal.kernel.exception.SystemException {
148 return getService().getReverseLinks(entryId, typeId);
149 }
150
151 public static AssetLinkLocalService getService() {
152 if (_service == null) {
153 _service = (AssetLinkLocalService)PortalBeanLocatorUtil.locate(AssetLinkLocalService.class.getName());
154 }
155
156 return _service;
157 }
158
159 public void setService(AssetLinkLocalService service) {
160 _service = service;
161 }
162
163 private static AssetLinkLocalService _service;
164 }