Liferay 6.1.2-ce-ga3

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 Object
implements SocialRequestInterpreter


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)
           
 String getUserName(long userId, ThemeDisplay themeDisplay)
           
 String getUserNameLink(long userId, ThemeDisplay themeDisplay)
           
 SocialRequestFeedEntry interpret(SocialRequest request, ThemeDisplay themeDisplay)
           
 boolean processConfirmation(SocialRequest request, ThemeDisplay themeDisplay)
           
 void processDuplicateRequestsFromUser(SocialRequest request, int oldStatus)
           
 void processDuplicateRequestsToUser(SocialRequest request, int oldStatus)
           
 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 String getUserName(long userId,
                          ThemeDisplay themeDisplay)

getUserNameLink

public String getUserNameLink(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

processDuplicateRequestsFromUser

public void processDuplicateRequestsFromUser(SocialRequest request,
                                             int oldStatus)
                                      throws SystemException
Throws:
SystemException

processDuplicateRequestsToUser

public void processDuplicateRequestsToUser(SocialRequest request,
                                           int oldStatus)
                                    throws SystemException
Throws:
SystemException

processRejection

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

doInterpret

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

doProcessConfirmation

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

doProcessRejection

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

Liferay 6.1.2-ce-ga3