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