001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface AssetLinkLocalService {
043 public com.liferay.portlet.asset.model.AssetLink addAssetLink(
044 com.liferay.portlet.asset.model.AssetLink assetLink)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.asset.model.AssetLink createAssetLink(
048 long linkId);
049
050 public void deleteAssetLink(long linkId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteAssetLink(
055 com.liferay.portlet.asset.model.AssetLink assetLink)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public 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
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.asset.model.AssetLink getAssetLink(long linkId)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException;
083
084 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085 public java.util.List<com.liferay.portlet.asset.model.AssetLink> getAssetLinks(
086 int start, int end)
087 throws com.liferay.portal.kernel.exception.SystemException;
088
089 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
090 public int getAssetLinksCount()
091 throws com.liferay.portal.kernel.exception.SystemException;
092
093 public com.liferay.portlet.asset.model.AssetLink updateAssetLink(
094 com.liferay.portlet.asset.model.AssetLink assetLink)
095 throws com.liferay.portal.kernel.exception.SystemException;
096
097 public com.liferay.portlet.asset.model.AssetLink updateAssetLink(
098 com.liferay.portlet.asset.model.AssetLink assetLink, boolean merge)
099 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public com.liferay.portlet.asset.model.AssetLink addLink(long userId,
102 long entryId1, long entryId2, int type, int weight)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException;
105
106 public void deleteLink(long linkId)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException;
109
110 public void deleteLinks(long entryId)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113 public void deleteLinks(long entryId1, long entryId2)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117 public java.util.List<com.liferay.portlet.asset.model.AssetLink> getLinks(
118 long entryId, int typeId)
119 throws com.liferay.portal.kernel.exception.SystemException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public java.util.List<com.liferay.portlet.asset.model.AssetLink> getReverseLinks(
123 long entryId, int typeId)
124 throws com.liferay.portal.kernel.exception.SystemException;
125 }