org.apache.jetspeed.layout.impl
Class SecurityPermissionAction
java.lang.Object
org.apache.jetspeed.layout.impl.BasePortletAction
org.apache.jetspeed.layout.impl.SecurityPermissionAction
- All Implemented Interfaces:
- org.apache.jetspeed.ajax.AjaxAction, org.apache.jetspeed.ajax.AjaxBuilder, Constants
public class SecurityPermissionAction
- extends BasePortletAction
- implements org.apache.jetspeed.ajax.AjaxAction, org.apache.jetspeed.ajax.AjaxBuilder, Constants
Security Permission action
AJAX Parameters:
action = permission
method = add | update | delete
resource = name of the resource to modify
type = portlet | page | folder
roles = comma separated list of roles
actions = comma separated list of actions
oldactions = comma separated list of old actions
- Version:
- $Id: $
- Author:
- David Sean Taylor
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
protected Map |
permissionMap
|
protected org.apache.jetspeed.security.PermissionManager |
pm
|
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 |
SecurityPermissionAction(String template,
String errorTemplate,
org.apache.jetspeed.security.PermissionManager pm,
org.apache.jetspeed.layout.PortletActionSecurityBehavior securityBehavior,
Map permissionMap)
|
Methods inherited from class org.apache.jetspeed.layout.impl.BasePortletAction |
buildContext, buildErrorContext, checkAccess, createNewPageOnEdit, getActionParameter, getErrorTemplate, getFragmentIdFromLocation, getFragmentIdFromLocation, getNonNullActionParameter, getParentFragmentById, getTemplate, isCreateNewPageOnEditEnabled, isPageQualifiedForCreateNewPageOnEdit, runBatch |
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 |
checkAccess, runBatch |
Methods inherited from interface org.apache.jetspeed.ajax.AjaxBuilder |
buildContext, buildErrorContext, getErrorTemplate, getTemplate |
log
protected static final org.apache.commons.logging.Log log
pm
protected org.apache.jetspeed.security.PermissionManager pm
permissionMap
protected Map permissionMap
SecurityPermissionAction
public SecurityPermissionAction(String template,
String errorTemplate,
org.apache.jetspeed.security.PermissionManager pm,
org.apache.jetspeed.layout.PortletActionSecurityBehavior securityBehavior,
Map permissionMap)
run
public boolean run(org.apache.jetspeed.request.RequestContext requestContext,
Map resultMap)
throws org.apache.jetspeed.ajax.AJAXException
- Specified by:
run
in interface org.apache.jetspeed.ajax.AjaxAction
- Throws:
org.apache.jetspeed.ajax.AJAXException
addPermission
protected int addPermission(org.apache.jetspeed.request.RequestContext requestContext,
Map resultMap)
throws org.apache.jetspeed.ajax.AJAXException
- Throws:
org.apache.jetspeed.ajax.AJAXException
updatePermission
protected int updatePermission(org.apache.jetspeed.request.RequestContext requestContext,
Map resultMap)
throws org.apache.jetspeed.ajax.AJAXException
- Throws:
org.apache.jetspeed.ajax.AJAXException
updateRoles
protected int updateRoles(Permission permission,
String roleNames)
throws org.apache.jetspeed.security.SecurityException
- Throws:
org.apache.jetspeed.security.SecurityException
removePermission
protected int removePermission(org.apache.jetspeed.request.RequestContext requestContext,
Map resultMap)
throws org.apache.jetspeed.ajax.AJAXException
- Throws:
org.apache.jetspeed.ajax.AJAXException
mapTypeToClassname
protected String mapTypeToClassname(String type)
throws org.apache.jetspeed.ajax.AJAXException
- Throws:
org.apache.jetspeed.ajax.AJAXException
createPermissionFromClass
protected Permission createPermissionFromClass(String type,
String resource,
String actions)
throws org.apache.jetspeed.ajax.AJAXException
- Throws:
org.apache.jetspeed.ajax.AJAXException
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.