com.liferay.portlet.social.service
Interface SocialRelationLocalService
- All Known Implementing Classes:
- SocialRelationLocalServiceWrapper
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
public interface SocialRelationLocalService
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This interface defines the service. The default implementation is
com.liferay.portlet.social.service.impl.SocialRelationLocalServiceImpl
}.
Modify methods in that class and rerun ServiceBuilder to populate this class
and all other generated classes.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
- Author:
- Brian Wing Shun Chan
- See Also:
SocialRelationLocalServiceUtil
- Generated:
Method Summary |
SocialRelation |
addRelation(long userId1,
long userId2,
int type)
|
SocialRelation |
addSocialRelation(SocialRelation socialRelation)
|
SocialRelation |
createSocialRelation(long relationId)
|
void |
deleteRelation(long relationId)
|
void |
deleteRelation(long userId1,
long userId2,
int type)
|
void |
deleteRelation(SocialRelation relation)
|
void |
deleteRelations(long userId)
|
void |
deleteSocialRelation(long relationId)
|
void |
deleteSocialRelation(SocialRelation socialRelation)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
SocialRelation |
getRelation(long relationId)
|
SocialRelation |
getRelation(long userId1,
long userId2,
int type)
|
java.util.List<SocialRelation> |
getRelations(long userId,
int type,
int start,
int end)
|
int |
getRelationsCount(long userId,
int type)
|
SocialRelation |
getSocialRelation(long relationId)
|
java.util.List<SocialRelation> |
getSocialRelations(int start,
int end)
|
int |
getSocialRelationsCount()
|
boolean |
hasRelation(long userId1,
long userId2,
int type)
|
boolean |
isRelatable(long userId1,
long userId2,
int type)
|
SocialRelation |
updateSocialRelation(SocialRelation socialRelation)
|
SocialRelation |
updateSocialRelation(SocialRelation socialRelation,
boolean merge)
|
addSocialRelation
SocialRelation addSocialRelation(SocialRelation socialRelation)
throws SystemException
- Throws:
SystemException
createSocialRelation
SocialRelation createSocialRelation(long relationId)
deleteSocialRelation
void deleteSocialRelation(long relationId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteSocialRelation
void deleteSocialRelation(SocialRelation socialRelation)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getSocialRelation
@Transactional(propagation=SUPPORTS,
readOnly=true)
SocialRelation getSocialRelation(long relationId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getSocialRelations
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<SocialRelation> getSocialRelations(int start,
int end)
throws SystemException
- Throws:
SystemException
getSocialRelationsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getSocialRelationsCount()
throws SystemException
- Throws:
SystemException
updateSocialRelation
SocialRelation updateSocialRelation(SocialRelation socialRelation)
throws SystemException
- Throws:
SystemException
updateSocialRelation
SocialRelation updateSocialRelation(SocialRelation socialRelation,
boolean merge)
throws SystemException
- Throws:
SystemException
addRelation
SocialRelation addRelation(long userId1,
long userId2,
int type)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteRelation
void deleteRelation(long relationId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteRelation
void deleteRelation(long userId1,
long userId2,
int type)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteRelation
void deleteRelation(SocialRelation relation)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteRelations
void deleteRelations(long userId)
throws SystemException
- Throws:
SystemException
getRelation
@Transactional(propagation=SUPPORTS,
readOnly=true)
SocialRelation getRelation(long relationId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getRelation
@Transactional(propagation=SUPPORTS,
readOnly=true)
SocialRelation getRelation(long userId1,
long userId2,
int type)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getRelations
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<SocialRelation> getRelations(long userId,
int type,
int start,
int end)
throws SystemException
- Throws:
SystemException
getRelationsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getRelationsCount(long userId,
int type)
throws SystemException
- Throws:
SystemException
hasRelation
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean hasRelation(long userId1,
long userId2,
int type)
throws SystemException
- Throws:
SystemException
isRelatable
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean isRelatable(long userId1,
long userId2,
int type)
throws SystemException
- Throws:
SystemException