|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface SocialRequestInterpreterLocalService
Provides the local service interface for SocialRequestInterpreter. 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.
SocialRequestInterpreterLocalServiceUtil
,
com.liferay.portlet.social.service.base.SocialRequestInterpreterLocalServiceBaseImpl
,
com.liferay.portlet.social.service.impl.SocialRequestInterpreterLocalServiceImpl
Method Summary | |
---|---|
void |
addRequestInterpreter(SocialRequestInterpreter requestInterpreter)
Adds the social request interpreter to the list of available interpreters. |
void |
deleteRequestInterpreter(SocialRequestInterpreter requestInterpreter)
Removes the social request interpreter from the list of available interpreters. |
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
SocialRequestFeedEntry |
interpret(SocialRequest request,
ThemeDisplay themeDisplay)
Creates a human readable request feed entry for the social request using an available compatible request interpreter. |
void |
processConfirmation(SocialRequest request,
ThemeDisplay themeDisplay)
Processes the confirmation of the social request. |
void |
processRejection(SocialRequest request,
ThemeDisplay themeDisplay)
Processes the rejection of the social request. |
void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
Method Detail |
---|
String getBeanIdentifier()
void setBeanIdentifier(String beanIdentifier)
beanIdentifier
- the Spring bean ID for this beanvoid addRequestInterpreter(SocialRequestInterpreter requestInterpreter)
requestInterpreter
- the social request interpretervoid deleteRequestInterpreter(SocialRequestInterpreter requestInterpreter)
requestInterpreter
- the social request interpreterSocialRequestFeedEntry interpret(SocialRequest request, ThemeDisplay themeDisplay)
This method finds the appropriate interpreter for the request by going through the available interpreters to find one that can handle the asset type of the request.
request
- the social request to be translated to human readable
formthemeDisplay
- the theme display needed by interpreters to create
links and get localized text fragments
void processConfirmation(SocialRequest request, ThemeDisplay themeDisplay)
Confirmations are handled by finding the appropriate social request interpreter and calling its processConfirmation() method. To find the appropriate interpreter this method goes through the available interpreters to find one that can handle the asset type of the request.
request
- the social request being confirmedthemeDisplay
- the theme display needed by interpreters to create
links and get localized text fragmentsvoid processRejection(SocialRequest request, ThemeDisplay themeDisplay)
Rejections are handled by finding the appropriate social request interpreters and calling their processRejection() methods. To find the appropriate interpreters this method goes through the available interpreters and asks them if they can handle the asset type of the request.
request
- the social request being rejectedthemeDisplay
- the theme display needed by interpreters to create
links and get localized text fragments
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |