Liferay 6.1.2-ce-ga3

com.liferay.util.bridges.alloy
Class BaseAlloyControllerImpl

java.lang.Object
  extended by com.liferay.util.bridges.alloy.BaseAlloyControllerImpl
All Implemented Interfaces:
AlloyController

public abstract class BaseAlloyControllerImpl
extends Object
implements AlloyController


Field Summary
protected  String actionPath
           
protected  ActionRequest actionRequest
           
protected  ActionResponse actionResponse
           
protected  AlloyPortlet alloyPortlet
           
protected  AlloyServiceInvoker alloyServiceInvoker
           
protected static String CALLED_PROCESS_ACTION
           
protected  ClassLoader classLoader
           
protected  Class<?> clazz
           
protected  Company company
           
protected  MessageListener controllerMessageListener
           
protected  String controllerPath
           
protected  EventRequest eventRequest
           
protected  EventResponse eventResponse
           
protected  Indexer indexer
           
protected  String indexerClassName
           
protected  String lifecycle
           
protected  LiferayPortletConfig liferayPortletConfig
           
protected  LiferayPortletResponse liferayPortletResponse
           
protected  Locale locale
           
protected static Log log
           
protected  Map<String,Method> methodsMap
           
protected  MimeResponse mimeResponse
           
protected  javax.servlet.jsp.PageContext pageContext
           
protected  Portlet portlet
           
protected  PortletContext portletContext
           
protected  PortletRequest portletRequest
           
protected  PortletResponse portletResponse
           
protected  PortletURL portletURL
           
protected  String redirect
           
protected  RenderRequest renderRequest
           
protected  RenderResponse renderResponse
           
protected  javax.servlet.http.HttpServletRequest request
           
protected  ResourceRequest resourceRequest
           
protected  ResourceResponse resourceResponse
           
protected  javax.servlet.http.HttpServletResponse response
           
protected  MessageListener schedulerMessageListener
           
protected  javax.servlet.ServletConfig servletConfig
           
protected  javax.servlet.ServletContext servletContext
           
protected  ThemeDisplay themeDisplay
           
static String TOUCH
           
protected  User user
           
protected static String VIEW_PATH
           
protected  String viewPath
           
 
Constructor Summary
BaseAlloyControllerImpl()
           
 
Method Summary
protected  void addSuccessMessage()
           
 void afterPropertiesSet()
           
protected  MessageListener buildControllerMessageListener()
           
protected  String buildIncludePath(String viewPath)
           
protected  Indexer buildIndexer()
           
protected  MessageListener buildSchedulerMessageListener()
           
 void execute()
           
protected  void executeAction(Method method)
           
protected  void executeRender(Method method)
           
protected  void executeResource(Method method)
           
protected  Object getConstantsBean(Class<?> clazz)
           
protected  String getControllerDestinationName()
           
protected  String getMessageListenerGroupName()
           
protected  Method getMethod(String methodName, Class<?>... parameterTypes)
           
protected  String getMethodKey(String methodName, Class<?>... parameterTypes)
           
 Portlet getPortlet()
           
 javax.servlet.http.HttpServletRequest getRequest()
           
protected  String getSchedulerDestinationName()
           
protected  String getSchedulerJobName()
           
protected  Trigger getSchedulerTrigger()
           
protected  Map<String,Serializable> getSearchAttributes(Object... attributes)
           
 ThemeDisplay getThemeDisplay()
           
 long increment()
           
protected  long increment(String name)
           
protected  void initClass()
           
protected  void initIndexer()
           
protected  void initMessageListener(String destinationName, MessageListener messageListener, boolean enableScheduler)
           
protected  void initMessageListeners()
           
protected  void initMethods()
           
protected  void initPaths()
           
protected  void initPortletVariables()
           
protected  void initServletVariables()
           
protected  void initThemeDisplayVariables()
           
protected  void redirectTo(PortletURL portletURL)
           
protected  void redirectTo(String redirect)
           
protected  void render(String actionPath)
           
protected  void renderError(String pattern, Object... arguments)
           
protected  AlloySearchResult search(Map<String,Serializable> attributes, String keywords, Sort sort)
           
protected  AlloySearchResult search(Map<String,Serializable> attributes, String keywords, Sort[] sorts)
           
protected  AlloySearchResult search(String keywords)
           
protected  AlloySearchResult search(String keywords, Sort sort)
           
protected  AlloySearchResult search(String keywords, Sort[] sorts)
           
 void setPageContext(javax.servlet.jsp.PageContext pageContext)
           
protected  String translate(String pattern, Object... arguments)
           
protected  void updateAttachedModel(BaseModel<?> baseModel)
           
protected  void updateAuditedModel(BaseModel<?> baseModel)
           
protected  void updateGroupedModel(BaseModel<?> baseModel)
           
 void updateModel(BaseModel<?> baseModel)
           
protected  void writeJSON(Object json)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOUCH

public static final String TOUCH

CALLED_PROCESS_ACTION

protected static final String CALLED_PROCESS_ACTION

VIEW_PATH

protected static final String VIEW_PATH

log

protected static Log log

actionPath

protected String actionPath

actionRequest

protected ActionRequest actionRequest

actionResponse

protected ActionResponse actionResponse

alloyPortlet

protected AlloyPortlet alloyPortlet

alloyServiceInvoker

protected AlloyServiceInvoker alloyServiceInvoker

classLoader

protected ClassLoader classLoader

clazz

protected Class<?> clazz

company

protected Company company

controllerMessageListener

protected MessageListener controllerMessageListener

controllerPath

protected String controllerPath

eventRequest

protected EventRequest eventRequest

eventResponse

protected EventResponse eventResponse

indexer

protected Indexer indexer

indexerClassName

protected String indexerClassName

lifecycle

protected String lifecycle

liferayPortletConfig

protected LiferayPortletConfig liferayPortletConfig

liferayPortletResponse

protected LiferayPortletResponse liferayPortletResponse

locale

protected Locale locale

methodsMap

protected Map<String,Method> methodsMap

mimeResponse

protected MimeResponse mimeResponse

pageContext

protected javax.servlet.jsp.PageContext pageContext

portlet

protected Portlet portlet

portletContext

protected PortletContext portletContext

portletRequest

protected PortletRequest portletRequest

portletResponse

protected PortletResponse portletResponse

portletURL

protected PortletURL portletURL

redirect

protected String redirect

renderRequest

protected RenderRequest renderRequest

renderResponse

protected RenderResponse renderResponse

request

protected javax.servlet.http.HttpServletRequest request

resourceRequest

protected ResourceRequest resourceRequest

resourceResponse

protected ResourceResponse resourceResponse

response

protected javax.servlet.http.HttpServletResponse response

schedulerMessageListener

protected MessageListener schedulerMessageListener

servletConfig

protected javax.servlet.ServletConfig servletConfig

servletContext

protected javax.servlet.ServletContext servletContext

themeDisplay

protected ThemeDisplay themeDisplay

user

protected User user

viewPath

protected String viewPath
Constructor Detail

BaseAlloyControllerImpl

public BaseAlloyControllerImpl()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface AlloyController

execute

public void execute()
             throws Exception
Specified by:
execute in interface AlloyController
Throws:
Exception

getPortlet

public Portlet getPortlet()
Specified by:
getPortlet in interface AlloyController

getRequest

public javax.servlet.http.HttpServletRequest getRequest()
Specified by:
getRequest in interface AlloyController

getThemeDisplay

public ThemeDisplay getThemeDisplay()
Specified by:
getThemeDisplay in interface AlloyController

increment

public long increment()
               throws Exception
Specified by:
increment in interface AlloyController
Throws:
Exception

setPageContext

public void setPageContext(javax.servlet.jsp.PageContext pageContext)
Specified by:
setPageContext in interface AlloyController

updateModel

public void updateModel(BaseModel<?> baseModel)
                 throws Exception
Specified by:
updateModel in interface AlloyController
Throws:
Exception

addSuccessMessage

protected void addSuccessMessage()

buildControllerMessageListener

protected MessageListener buildControllerMessageListener()

buildIncludePath

protected String buildIncludePath(String viewPath)

buildIndexer

protected Indexer buildIndexer()

buildSchedulerMessageListener

protected MessageListener buildSchedulerMessageListener()

executeAction

@Transactional(isolation=PORTAL,
               propagation=REQUIRES_NEW,
               rollbackFor=java.lang.Exception.class)
protected void executeAction(Method method)
                      throws Exception
Throws:
Exception

executeRender

protected void executeRender(Method method)
                      throws Exception
Throws:
Exception

executeResource

protected void executeResource(Method method)
                        throws Exception
Throws:
Exception

getConstantsBean

protected Object getConstantsBean(Class<?> clazz)

getControllerDestinationName

protected String getControllerDestinationName()

getMessageListenerGroupName

protected String getMessageListenerGroupName()

getMethod

protected Method getMethod(String methodName,
                           Class<?>... parameterTypes)

getMethodKey

protected String getMethodKey(String methodName,
                              Class<?>... parameterTypes)

getSchedulerDestinationName

protected String getSchedulerDestinationName()

getSchedulerJobName

protected String getSchedulerJobName()

getSchedulerTrigger

protected Trigger getSchedulerTrigger()

getSearchAttributes

protected Map<String,Serializable> getSearchAttributes(Object... attributes)
                                                throws Exception
Throws:
Exception

increment

protected long increment(String name)
                  throws Exception
Throws:
Exception

initClass

protected void initClass()

initIndexer

protected void initIndexer()

initMessageListener

protected void initMessageListener(String destinationName,
                                   MessageListener messageListener,
                                   boolean enableScheduler)

initMessageListeners

protected void initMessageListeners()

initMethods

protected void initMethods()

initPaths

protected void initPaths()

initPortletVariables

protected void initPortletVariables()

initServletVariables

protected void initServletVariables()

initThemeDisplayVariables

protected void initThemeDisplayVariables()

redirectTo

protected void redirectTo(PortletURL portletURL)

redirectTo

protected void redirectTo(String redirect)

render

protected void render(String actionPath)

renderError

protected void renderError(String pattern,
                           Object... arguments)

search

protected AlloySearchResult search(Map<String,Serializable> attributes,
                                   String keywords,
                                   Sort sort)
                            throws Exception
Throws:
Exception

search

protected AlloySearchResult search(Map<String,Serializable> attributes,
                                   String keywords,
                                   Sort[] sorts)
                            throws Exception
Throws:
Exception

search

protected AlloySearchResult search(String keywords)
                            throws Exception
Throws:
Exception

search

protected AlloySearchResult search(String keywords,
                                   Sort sort)
                            throws Exception
Throws:
Exception

search

protected AlloySearchResult search(String keywords,
                                   Sort[] sorts)
                            throws Exception
Throws:
Exception

translate

protected String translate(String pattern,
                           Object... arguments)

updateAttachedModel

protected void updateAttachedModel(BaseModel<?> baseModel)
                            throws Exception
Throws:
Exception

updateAuditedModel

protected void updateAuditedModel(BaseModel<?> baseModel)
                           throws Exception
Throws:
Exception

updateGroupedModel

protected void updateGroupedModel(BaseModel<?> baseModel)
                           throws Exception
Throws:
Exception

writeJSON

protected void writeJSON(Object json)
                  throws Exception
Throws:
Exception

Liferay 6.1.2-ce-ga3