1
22
23 package com.liferay.portlet.social.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface SocialRelationLocalService {
58 public com.liferay.portlet.social.model.SocialRelation addSocialRelation(
59 com.liferay.portlet.social.model.SocialRelation socialRelation)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portlet.social.model.SocialRelation createSocialRelation(
63 long relationId);
64
65 public void deleteSocialRelation(long relationId)
66 throws com.liferay.portal.SystemException,
67 com.liferay.portal.PortalException;
68
69 public void deleteSocialRelation(
70 com.liferay.portlet.social.model.SocialRelation socialRelation)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.social.model.SocialRelation getSocialRelation(
83 long relationId)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portal.PortalException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public java.util.List<com.liferay.portlet.social.model.SocialRelation> getSocialRelations(
89 int start, int end) throws com.liferay.portal.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public int getSocialRelationsCount()
93 throws com.liferay.portal.SystemException;
94
95 public com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
96 com.liferay.portlet.social.model.SocialRelation socialRelation)
97 throws com.liferay.portal.SystemException;
98
99 public com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
100 com.liferay.portlet.social.model.SocialRelation socialRelation,
101 boolean merge) throws com.liferay.portal.SystemException;
102
103 public com.liferay.portlet.social.model.SocialRelation addRelation(
104 long userId1, long userId2, int type)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException;
107
108 public void deleteRelation(long relationId)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException;
111
112 public void deleteRelation(long userId1, long userId2, int type)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException;
115
116 public void deleteRelations(long userId)
117 throws com.liferay.portal.SystemException;
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public com.liferay.portlet.social.model.SocialRelation getRelation(
121 long relationId)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException;
124
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public com.liferay.portlet.social.model.SocialRelation getRelation(
127 long userId1, long userId2, int type)
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public java.util.List<com.liferay.portlet.social.model.SocialRelation> getRelations(
133 long userId, int type, int start, int end)
134 throws com.liferay.portal.SystemException;
135
136 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137 public int getRelationsCount(long userId, int type)
138 throws com.liferay.portal.SystemException;
139
140 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141 public boolean hasRelation(long userId1, long userId2, int type)
142 throws com.liferay.portal.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public boolean isRelatable(long userId1, long userId2, int type)
146 throws com.liferay.portal.SystemException;
147 }