|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.layout.impl.BaseUserAction
public abstract class BaseUserAction
Abstract portlet placement action
Field Summary | |
---|---|
protected java.lang.String |
errorTemplate
|
protected org.apache.commons.logging.Log |
log
|
protected RolesSecurityBehavior |
securityBehavior
|
protected java.lang.String |
template
|
protected UserManager |
userManager
|
Fields inherited from interface org.apache.jetspeed.layout.impl.Constants |
---|
ABS, ACTION, CARTESIAN, COL, CUSTOM_MENUS, DEFAULT_LAYOUT, DESKTOP_EXTENDED, DESKTOP_PAGE_DECORATIONS, DESKTOP_PORTLET_DECORATIONS, DESTINATION, DOWN, FILTER, FOLDER, FOLDERS, FORMAT, FRAGMENTID, FRAGMENTS, GUESTUSERS, HEIGHT, INCLUDE_MENU_DEFS, IPADDRESS, LAYOUT, LAYOUTID, LAYOUTS, LEFT, LINK, LINKS, MENU, MENU_CONTEXT, MENU_DEFINITIONS, MENU_LOCALE, MENU_NAME, METADATA, NEWCOL, NEWROW, OFFLINE, OLD_DESKTOP_EXTENDED, OLD_HEIGHT, OLD_PORTLET_MODE, OLD_WIDTH, OLD_WINDOW_STATE, OLD_X, OLD_Y, OLD_Z, OLDCOL, OLDROW, ONLINE, PAGE, PAGE_DECORATIONS, PAGE_QUALIFIED_CREATE_ON_EDIT, PAGES, PORTLET_DECORATIONS, PORTLET_MODE, PORTLETENTITY, PORTLETID, PORTLETS, PROFILED_PATH, REASON, RESOURCE_NAME, RIGHT, ROLES, ROW, SECURITY_DEFS, SECURITY_OWNER, SECURITY_REFS, SESSIONS, SHORT_TITLE, SIZES, SOURCE, STANDARD_MENUS, STATUS, TITLE, TYPE, UP, USER_IS_ANONYMOUS, USERINFO, USERNAME, USERS, WIDTH, WINDOW_STATE, X, Y, Z |
Constructor Summary | |
---|---|
BaseUserAction(java.lang.String template,
java.lang.String errorTemplate,
RolesSecurityBehavior securityBehavior)
|
|
BaseUserAction(java.lang.String template,
java.lang.String errorTemplate,
UserManager userManager)
|
|
BaseUserAction(java.lang.String template,
java.lang.String errorTemplate,
UserManager userManager,
RolesSecurityBehavior securityBehavior)
|
Method Summary | |
---|---|
boolean |
buildContext(RequestContext requestContext,
java.util.Map responseContext)
Build the normal context template |
boolean |
buildErrorContext(RequestContext requestContext,
java.util.Map responseContext)
Build the error context template |
boolean |
checkAccess(RequestContext context,
java.lang.String action)
Checks to see if the current subject has access to to execute this action. |
boolean |
createNewPageOnEdit(RequestContext context)
|
java.lang.String |
getActionParameter(RequestContext requestContext,
java.lang.String name)
|
java.lang.String |
getErrorTemplate()
|
Fragment |
getFragmentIdFromLocation(int row,
int column,
Page page)
|
Fragment |
getParentFragmentById(java.lang.String id,
Fragment root)
|
java.lang.String |
getTemplate()
|
boolean |
isTrue(java.lang.String parameter)
Helper method to determine if a parameter is true. |
boolean |
runBatch(RequestContext requestContext,
java.util.Map resultMap)
Same as run method, but runs in batch mode, as a hint to the action that it is running a multiple action and can delay its update runBatch currently supports pageManager.updatePage |
protected Fragment |
searchForParentFragmentById(java.lang.String id,
Fragment parent)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jetspeed.ajax.AjaxAction |
---|
run |
Field Detail |
---|
protected org.apache.commons.logging.Log log
protected java.lang.String template
protected UserManager userManager
protected java.lang.String errorTemplate
protected RolesSecurityBehavior securityBehavior
Constructor Detail |
---|
public BaseUserAction(java.lang.String template, java.lang.String errorTemplate, RolesSecurityBehavior securityBehavior)
public BaseUserAction(java.lang.String template, java.lang.String errorTemplate, UserManager userManager)
public BaseUserAction(java.lang.String template, java.lang.String errorTemplate, UserManager userManager, RolesSecurityBehavior securityBehavior)
Method Detail |
---|
public boolean buildContext(RequestContext requestContext, java.util.Map responseContext)
AjaxBuilder
buildContext
in interface AjaxBuilder
requestContext
- The Jetspeed Request ContextresponseContext
- Context variables to be substituted into template
public boolean buildErrorContext(RequestContext requestContext, java.util.Map responseContext)
AjaxBuilder
buildErrorContext
in interface AjaxBuilder
requestContext
- The Jetspeed Request ContextresponseContext
- Context variables to be substituted into template
public java.lang.String getErrorTemplate()
getErrorTemplate
in interface AjaxBuilder
public java.lang.String getTemplate()
getTemplate
in interface AjaxBuilder
public boolean checkAccess(RequestContext context, java.lang.String action)
AjaxAction
checkAccess
in interface AjaxAction
public boolean createNewPageOnEdit(RequestContext context)
public Fragment getFragmentIdFromLocation(int row, int column, Page page)
public boolean runBatch(RequestContext requestContext, java.util.Map resultMap) throws AJAXException
AjaxAction
runBatch
in interface AjaxAction
requestContext
- The Jetspeed Request ContextresultMap
- map of action parameters passed to the builder context
AJAXException
public java.lang.String getActionParameter(RequestContext requestContext, java.lang.String name)
public Fragment getParentFragmentById(java.lang.String id, Fragment root)
protected Fragment searchForParentFragmentById(java.lang.String id, Fragment parent)
public boolean isTrue(java.lang.String parameter)
parameter
- The value to be determined as boolean true or false.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |