com.arsdigita.ui.permissions
Class PermissionsDispatcher

java.lang.Object
  extended bycom.arsdigita.dispatcher.MapDispatcher
      extended bycom.arsdigita.bebop.page.BebopMapDispatcher
          extended bycom.arsdigita.bebop.BebopMapDispatcher
              extended bycom.arsdigita.ui.permissions.PermissionsDispatcher
All Implemented Interfaces:
Dispatcher, com.arsdigita.ui.permissions.PermissionsConstants

public class PermissionsDispatcher
extends BebopMapDispatcher
implements com.arsdigita.ui.permissions.PermissionsConstants

Dispatcher for the permissions UI package. Manages permissions admin pages. The dispatcher is mounted at /permissions/ Below that, an index page is mounted at "" or "index", a particualar object's permission page is mounted at "one".

Version:
$Id: //core-platform/dev/src/com/arsdigita/ui/permissions/PermissionsDispatcher.java#10 $
Author:
sdeusch@arsditgita.com

Nested Class Summary
 
Nested classes inherited from class com.arsdigita.dispatcher.MapDispatcher
MapDispatcher.ParseConfigHandler
 
Field Summary
static String APPLICATION_NAME
           
static String BUNDLE_NAME
           
static PrivilegeDescriptor[] DEFAULT_PRIVILEGES
          These are our five default privileges.
static int DIRECT
           
static String DIRECT_PERMISSIONS
           
static String INDIRECT_PERMISSIONS
           
static int INHERITED
           
static GlobalizedMessage MAIN_SITE
           
static GlobalizedMessage NO_RESULTS
           
static String OBJECT_ID
           
static GlobalizedMessage PAGE_DENIED_TITLE
           
static GlobalizedMessage PAGE_GRANT_LEFT
           
static GlobalizedMessage PAGE_GRANT_RIGHT
           
static GlobalizedMessage PAGE_GRANT_TITLE
           
static GlobalizedMessage PAGE_OBJECT_INDEX
           
static GlobalizedMessage PAGE_OBJECT_NONE
           
static GlobalizedMessage PAGE_OBJECT_PANEL_TITLE
           
static GlobalizedMessage PAGE_TITLE
           
static GlobalizedMessage PERM_TABLE_ACTIONS
           
static GlobalizedMessage PERM_TABLE_DIRECT_EXPLANATION
           
static GlobalizedMessage PERM_TABLE_DIRECT_HEADING
           
static GlobalizedMessage PERM_TABLE_GRANTEE
           
static GlobalizedMessage PERM_TABLE_INDIRECT_CONTEXT
           
static GlobalizedMessage PERM_TABLE_INDIRECT_EXPLANATION
           
static GlobalizedMessage PERM_TABLE_INDIRECT_HEADING
           
static GlobalizedMessage PERM_TABLE_INHERITED
           
static GlobalizedMessage PERM_TABLE_NO_PARENT_CONTEXT
           
static GlobalizedMessage PERMISSIONS_INDEX
           
static GlobalizedMessage PERMISSIONS_INDEX_NAVBAR
           
static GlobalizedMessage PERSONAL_SITE
           
static String PRIV_SET
           
static GlobalizedMessage REMOVE_ALL_CONFIRM
           
static String RETRIEVE_USERS
           
static GlobalizedMessage SAVE_BUTTON
           
static GlobalizedMessage SEARCH_BUTTON
           
static GlobalizedMessage SEARCH_LABEL
           
static String SEARCH_QUERY
           
 
Fields inherited from class com.arsdigita.bebop.page.BebopMapDispatcher
versionId
 
Constructor Summary
PermissionsDispatcher()
          Initializes dispatcher by registering above listed URLs with bebop pages.
 
Method Summary
protected  void preprocessRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, RequestContext ctx, String url)
          Provides the opportunity for subclasses to do some preprocessing of a given url, before it is handed off to the main dispatcher.
 
Methods inherited from class com.arsdigita.bebop.page.BebopMapDispatcher
addPage, getPresentationManager, newParseConfigHandler, setMap, setNotFoundPage, setPresentationManager
 
Methods inherited from class com.arsdigita.dispatcher.MapDispatcher
addPage, dispatch, getMap, readFromFile, requireTrailingSlash, setNotFoundDispatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_NAME

public static final String APPLICATION_NAME
See Also:
Constant Field Values

DEFAULT_PRIVILEGES

public static final PrivilegeDescriptor[] DEFAULT_PRIVILEGES
These are our five default privileges.


BUNDLE_NAME

public static final String BUNDLE_NAME
See Also:
Constant Field Values

SEARCH_LABEL

public static final GlobalizedMessage SEARCH_LABEL

SEARCH_BUTTON

public static final GlobalizedMessage SEARCH_BUTTON

SAVE_BUTTON

public static final GlobalizedMessage SAVE_BUTTON

NO_RESULTS

public static final GlobalizedMessage NO_RESULTS

PERM_TABLE_DIRECT_HEADING

public static final GlobalizedMessage PERM_TABLE_DIRECT_HEADING

PERM_TABLE_DIRECT_EXPLANATION

public static final GlobalizedMessage PERM_TABLE_DIRECT_EXPLANATION

PERM_TABLE_INDIRECT_HEADING

public static final GlobalizedMessage PERM_TABLE_INDIRECT_HEADING

PERM_TABLE_INDIRECT_EXPLANATION

public static final GlobalizedMessage PERM_TABLE_INDIRECT_EXPLANATION

PERM_TABLE_INDIRECT_CONTEXT

public static final GlobalizedMessage PERM_TABLE_INDIRECT_CONTEXT

PERM_TABLE_GRANTEE

public static final GlobalizedMessage PERM_TABLE_GRANTEE

PERM_TABLE_ACTIONS

public static final GlobalizedMessage PERM_TABLE_ACTIONS

REMOVE_ALL_CONFIRM

public static final GlobalizedMessage REMOVE_ALL_CONFIRM

PERM_TABLE_INHERITED

public static final GlobalizedMessage PERM_TABLE_INHERITED

PERM_TABLE_NO_PARENT_CONTEXT

public static final GlobalizedMessage PERM_TABLE_NO_PARENT_CONTEXT

PAGE_TITLE

public static final GlobalizedMessage PAGE_TITLE

MAIN_SITE

public static final GlobalizedMessage MAIN_SITE

PERSONAL_SITE

public static final GlobalizedMessage PERSONAL_SITE

PERMISSIONS_INDEX

public static final GlobalizedMessage PERMISSIONS_INDEX

PERMISSIONS_INDEX_NAVBAR

public static final GlobalizedMessage PERMISSIONS_INDEX_NAVBAR

PAGE_GRANT_TITLE

public static final GlobalizedMessage PAGE_GRANT_TITLE

PAGE_GRANT_LEFT

public static final GlobalizedMessage PAGE_GRANT_LEFT

PAGE_GRANT_RIGHT

public static final GlobalizedMessage PAGE_GRANT_RIGHT

PAGE_DENIED_TITLE

public static final GlobalizedMessage PAGE_DENIED_TITLE

PAGE_OBJECT_INDEX

public static final GlobalizedMessage PAGE_OBJECT_INDEX

PAGE_OBJECT_PANEL_TITLE

public static final GlobalizedMessage PAGE_OBJECT_PANEL_TITLE

PAGE_OBJECT_NONE

public static final GlobalizedMessage PAGE_OBJECT_NONE

DIRECT

public static final int DIRECT
See Also:
Constant Field Values

INHERITED

public static final int INHERITED
See Also:
Constant Field Values

OBJECT_ID

public static final String OBJECT_ID
See Also:
Constant Field Values

DIRECT_PERMISSIONS

public static final String DIRECT_PERMISSIONS
See Also:
Constant Field Values

INDIRECT_PERMISSIONS

public static final String INDIRECT_PERMISSIONS
See Also:
Constant Field Values

SEARCH_QUERY

public static final String SEARCH_QUERY
See Also:
Constant Field Values

PRIV_SET

public static final String PRIV_SET
See Also:
Constant Field Values

RETRIEVE_USERS

public static final String RETRIEVE_USERS
See Also:
Constant Field Values
Constructor Detail

PermissionsDispatcher

public PermissionsDispatcher()
Initializes dispatcher by registering above listed URLs with bebop pages.

Method Detail

preprocessRequest

protected void preprocessRequest(javax.servlet.http.HttpServletRequest req,
                                 javax.servlet.http.HttpServletResponse resp,
                                 RequestContext ctx,
                                 String url)
Description copied from class: MapDispatcher
Provides the opportunity for subclasses to do some preprocessing of a given url, before it is handed off to the main dispatcher. The typical action is to set the cache control policy.

Overrides:
preprocessRequest in class MapDispatcher


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC