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