public interface IPortletMethodInfo
Metadata for the portlet controller method.
IPortletControllerInfo
Modifier and Type | Field and Description |
---|---|
static String |
CLEAR_STATE_AFTER |
static String |
CLEAR_STATE_BEFORE |
static String |
CLEAR_STATE_BOTH |
static String |
METHOD_CANCEL |
static String |
METHOD_RETURN |
static String |
METHOD_VOID |
Modifier and Type | Method and Description |
---|---|
boolean |
clearStateAfter()
Returns whether the state of the portlet controller bean needs to be cleared right after
the method invocation.
|
boolean |
clearStateBefore()
Returns true if the session state must be cleared before the method invocation and the parameters are loaded
into the session bean
|
String |
getCaption()
Returns the method friendly name
|
IPortletLayoutInfo |
getDefaultErrorLayout()
Returns the method default error layout.
|
IPortletLayoutInfo |
getDefaultLayout()
Returns the default layout for this method.
|
String |
getImplementation()
Returns method implementation
|
Method |
getMethod()
Returns java reflection object for the portlet method.
|
String |
getName()
Returns the method name
|
String[] |
getParamNames()
Deprecated.
|
IPortletMethodParamInfo[] |
getParams()
Deprecated.
|
Class<?>[] |
getParamTypes()
Deprecated.
|
boolean |
hasDefaultErrorLayout()
Returns whether the mathod has default error layout
|
boolean |
hasDefaultLayout()
Returns whether the method has a default layout
|
boolean |
hasImplementation()
Returns whether the method has the implemenation
|
boolean |
isAxsrft()
True if this method requires an anti-cross-site-request-forgery token.
|
void |
setAxsrft(boolean axsrft)
True if this method requires an anti-cross-site-request-forgery token.
|
void |
setCaption(String caption)
Sets the method new caption
|
void |
setClearState(String clearState)
Sets the method clear state behavior
|
void |
setErrorLayout(String errorLayout)
Sets the method new error layout
|
void |
setImplementation(String implementation)
Sets the implementation method name for the portlet controller method.
|
void |
setLayout(String layout)
Sets the method new default layout
|
void |
setName(String name)
Sets the method name
|
static final String METHOD_RETURN
static final String METHOD_CANCEL
static final String METHOD_VOID
static final String CLEAR_STATE_BEFORE
static final String CLEAR_STATE_AFTER
static final String CLEAR_STATE_BOTH
String getName()
IPortletLayoutInfo getDefaultLayout()
IPortletControllerBean.setLayout(java.lang.String)
boolean hasDefaultLayout()
IPortletLayoutInfo getDefaultErrorLayout()
IPortletControllerBean.setErrorLayout(java.lang.String)
boolean hasDefaultErrorLayout()
boolean clearStateBefore()
boolean clearStateAfter()
void setName(String name)
name
- new method namevoid setLayout(String layout)
layout
- new layout namevoid setErrorLayout(String errorLayout)
errorLayout
- new error layoutvoid setClearState(String clearState)
clearState
- new behaviorCLEAR_STATE_AFTER
,
CLEAR_STATE_BEFORE
,
CLEAR_STATE_BOTH
String getCaption()
void setCaption(String caption)
caption
- new caption@Deprecated IPortletMethodParamInfo[] getParams()
@Deprecated String[] getParamNames()
@Deprecated Class<?>[] getParamTypes() throws ClassNotFoundException
ClassNotFoundException
void setImplementation(String implementation)
getName()
and means the name of
the method of the IPortletBean
implementation class.implementation
- the implementationString getImplementation()
setImplementation(java.lang.String)
boolean hasImplementation()
boolean isAxsrft()
void setAxsrft(boolean axsrft)
Method getMethod() throws ClassNotFoundException, NoSuchMethodException
getImplementation()
.ClassNotFoundException
NoSuchMethodException