com.liferay.portlet.social.model
Class BaseSocialRequestInterpreter

java.lang.Object
  extended by com.liferay.portlet.social.model.BaseSocialRequestInterpreter
All Implemented Interfaces:
SocialRequestInterpreter

public abstract class BaseSocialRequestInterpreter
extends java.lang.Object
implements SocialRequestInterpreter

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
BaseSocialRequestInterpreter()
           
 
Method Summary
protected abstract  SocialRequestFeedEntry doInterpret(SocialRequest request, ThemeDisplay themeDisplay)
           
protected abstract  boolean doProcessConfirmation(SocialRequest request, ThemeDisplay themeDisplay)
           
protected  boolean doProcessRejection(SocialRequest request, ThemeDisplay themeDisplay)
           
 java.lang.String getUserName(long userId, ThemeDisplay themeDisplay)
           
 SocialRequestFeedEntry interpret(SocialRequest request, ThemeDisplay themeDisplay)
           
 boolean processConfirmation(SocialRequest request, ThemeDisplay themeDisplay)
           
 boolean processRejection(SocialRequest request, ThemeDisplay themeDisplay)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.social.model.SocialRequestInterpreter
getClassNames
 

Constructor Detail

BaseSocialRequestInterpreter

public BaseSocialRequestInterpreter()
Method Detail

getUserName

public java.lang.String getUserName(long userId,
                                    ThemeDisplay themeDisplay)

interpret

public SocialRequestFeedEntry interpret(SocialRequest request,
                                        ThemeDisplay themeDisplay)
Specified by:
interpret in interface SocialRequestInterpreter

processConfirmation

public boolean processConfirmation(SocialRequest request,
                                   ThemeDisplay themeDisplay)
Specified by:
processConfirmation in interface SocialRequestInterpreter

processRejection

public boolean processRejection(SocialRequest request,
                                ThemeDisplay themeDisplay)
Specified by:
processRejection in interface SocialRequestInterpreter

doInterpret

protected abstract SocialRequestFeedEntry doInterpret(SocialRequest request,
                                                      ThemeDisplay themeDisplay)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

doProcessConfirmation

protected abstract boolean doProcessConfirmation(SocialRequest request,
                                                 ThemeDisplay themeDisplay)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

doProcessRejection

protected boolean doProcessRejection(SocialRequest request,
                                     ThemeDisplay themeDisplay)
                              throws java.lang.Exception
Throws:
java.lang.Exception