Class SocialRequestInterpreterLocalServiceWrapper
Object
com.liferay.social.kernel.service.SocialRequestInterpreterLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService
,ServiceWrapper<SocialRequestInterpreterLocalService>
,SocialRequestInterpreterLocalService
public class SocialRequestInterpreterLocalServiceWrapper
extends Object
implements ServiceWrapper<SocialRequestInterpreterLocalService>, SocialRequestInterpreterLocalService
Provides a wrapper for
SocialRequestInterpreterLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionSocialRequestInterpreterLocalServiceWrapper
(SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) -
Method Summary
Modifier and TypeMethodDescriptionReturns the OSGi service identifier.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
setWrappedService
(SocialRequestInterpreterLocalService socialRequestInterpreterLocalService)
-
Constructor Details
-
SocialRequestInterpreterLocalServiceWrapper
public SocialRequestInterpreterLocalServiceWrapper() -
SocialRequestInterpreterLocalServiceWrapper
public SocialRequestInterpreterLocalServiceWrapper(SocialRequestInterpreterLocalService socialRequestInterpreterLocalService)
-
-
Method Details
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceSocialRequestInterpreterLocalService
- Returns:
- the OSGi service identifier
-
interpret
Creates a human readable request feed entry for the social request using an available compatible request interpreter.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.
- Specified by:
interpret
in interfaceSocialRequestInterpreterLocalService
- Parameters:
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- Returns:
- the social request feed entry
-
processConfirmation
Processes the confirmation of the social request.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.
- Specified by:
processConfirmation
in interfaceSocialRequestInterpreterLocalService
- Parameters:
request
- the social request being confirmedthemeDisplay
- the theme display needed by interpreters to create links and get localized text fragments
-
processRejection
Processes the rejection of the social request.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.
- Specified by:
processRejection
in interfaceSocialRequestInterpreterLocalService
- Parameters:
request
- the social request being rejectedthemeDisplay
- the theme display needed by interpreters to create links and get localized text fragments
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<SocialRequestInterpreterLocalService>
-
setWrappedService
public void setWrappedService(SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) - Specified by:
setWrappedService
in interfaceServiceWrapper<SocialRequestInterpreterLocalService>
-