com.sri.emo.controller
Class PermissionController

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.jcorporate.expresso.core.controller.Controller
          extended by com.jcorporate.expresso.core.controller.DBController
              extended by com.sri.common.controller.AbstractDBController
                  extended by com.sri.emo.controller.PermissionController
All Implemented Interfaces:
Serializable

public class PermissionController
extends AbstractDBController

Handle manipulation of permissions.

Author:
larry hamel
See Also:
Serialized Form

Field Summary
static String ADMIN_CHK
           
static String ASSOC_CHK
           
static String DISABLED
           
static String DO_EDIT_GROUP
           
static String DO_EDIT_PERMS
           
static String KEY_FIELD_VALUES
          Name of incoming parameter which has values for key fields of RowSecuredDBObject, delimited by bar (|).
static String OBJ_TYPE
           
static String OTHERS_READ_ALWAYS
          Setup item in expresso schema for whether others (in unix sense--all other users) can read always.
static String PROMPT_EDIT_GROUP
           
static String PROMPT_EDIT_PERMS
           
static String READ_CHK
           
static String VIEW_TRANS
           
static String WRITE_CHK
           
 
Fields inherited from class com.sri.common.controller.AbstractDBController
COLUMN, COMMON_FOOTER_HANDLER, COMMON_HEADER_HANDLER, DELIMIT, EDIT_GROUP_DISPLAY, EMBEDDED_MODE, FOOTER, MAX_CHARS_OUTPUT, MAX_TEXTAREA_LENGTH, MULTIPLE_TEXTAREA_NUM_LINES, REQUEST_CONTAINER, ROW, ROW_BLOCK, SESSION_CONTAINER, SINGLE_TEXTAREA_NUM_LINES, TEXTAREA_NUM_COLS, WARNING_LIST
 
Fields inherited from class com.jcorporate.expresso.core.controller.DBController
CACHE_NAME
 
Fields inherited from class com.jcorporate.expresso.core.controller.Controller
CONTROLLER_PARAM_KEY, CTL_SUCC_CTL, CTL_SUCC_STATE, CTL_SUCC_TRAN, mLog, NEWSTATE_EXCEPTION_KEY, ORIGINAL_URL_KEY, REQUEST_KEY, RESPONSE_KEY, RETURN_TO_SENDER_TRAN, STATE_ERR_CTL, STATE_ERR_STATE, STATE_ERR_TRAN, STATE_PARAM_KEY, STATE_SUCC_CTL, STATE_SUCC_STATE, STATE_SUCC_TRAN
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
PermissionController()
           
 
Method Summary
 String getTitle()
          Returns the title of this controller
static boolean othersReadAlways()
          Setup item in expresso schema for whether others (in unix sense--all other users) can read always.
protected  void runDoEditPermsState(ExpressoRequest request, ExpressoResponse response)
          Do for editing single pick item.
protected  void runPromptEditGroupState(ControllerRequest request, ControllerResponse response)
          prompt editing of group; just reuses prompt edit for any RowSec object, using a PermGroup, a wrapper on UserGroup
protected  void runPromptEditPermsState(ExpressoRequest request, ExpressoResponse response)
          Prompt for edits.
 
Methods inherited from class com.sri.common.controller.AbstractDBController
addEmbeddedParameter, addWarning, addWarningList, getActionForwarding, getCheckbox, getPermsTrans, getPrettyXML, getTextArea, getTextArea, getWarningList, isEmbeddedMode, isValidAndPopulated, outputXML, populateDBObject, postPerform, prePerform, stateAllowed, str, strTrunc, trimAllTextFields
 
Methods inherited from class com.jcorporate.expresso.core.controller.DBController
getString, isAllowed
 
Methods inherited from class com.jcorporate.expresso.core.controller.Controller
addFinalState, addPromptTransitions, addRegDomainParamtoSession, addRequestedURLtoSession, addState, addStatePairing, endTimer, execute, findControllerForm, generateToken, getActionForward, getControllerChainingTransition, getControllerSecurityTransition, getFinalState, getInitialState, getLogger, getParamValues, getRequestURL, getSchema, getSchemaHierarchy, getSchemaInstance, getSchemaStack, getState, getStates, getString, getString, handleException, instantiate, isFinalState, isHandleState, isPromptState, isTokenValid, loadStateForm, newExpressoState, newState, nextHandleState, nextPromptState, populateStateForm, postPerform, prePerform, previousPromptState, processRequestTransitions, processTransitions, redirectRequest, redirectRequest, remapFromExtension, resetToken, saveToken, setControllerChainingTransition, setControllerSecurityTransition, setCurrentState, setInitialState, setSchema, setSchema, setupDefaultValues, setupReturnToSender, setupSubclassLog, transition, transition, transition, unloadStateForm
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROMPT_EDIT_PERMS

public static final String PROMPT_EDIT_PERMS
See Also:
Constant Field Values

DO_EDIT_PERMS

public static final String DO_EDIT_PERMS
See Also:
Constant Field Values

PROMPT_EDIT_GROUP

public static final String PROMPT_EDIT_GROUP
See Also:
Constant Field Values

DO_EDIT_GROUP

public static final String DO_EDIT_GROUP
See Also:
Constant Field Values

KEY_FIELD_VALUES

public static final String KEY_FIELD_VALUES
Name of incoming parameter which has values for key fields of RowSecuredDBObject, delimited by bar (|).

See Also:
Constant Field Values

OBJ_TYPE

public static final String OBJ_TYPE
See Also:
Constant Field Values

ASSOC_CHK

public static final String ASSOC_CHK
See Also:
Constant Field Values

READ_CHK

public static final String READ_CHK
See Also:
Constant Field Values

WRITE_CHK

public static final String WRITE_CHK
See Also:
Constant Field Values

ADMIN_CHK

public static final String ADMIN_CHK
See Also:
Constant Field Values

VIEW_TRANS

public static final String VIEW_TRANS
See Also:
Constant Field Values

DISABLED

public static final String DISABLED
See Also:
Constant Field Values

OTHERS_READ_ALWAYS

public static final String OTHERS_READ_ALWAYS
Setup item in expresso schema for whether others (in unix sense--all other users) can read always. DEFAULT TRUE.

See Also:
Constant Field Values
Constructor Detail

PermissionController

public PermissionController()
Method Detail

getTitle

public String getTitle()
Returns the title of this controller

Overrides:
getTitle in class Controller
Returns:
java.lang.String

runPromptEditPermsState

protected void runPromptEditPermsState(ExpressoRequest request,
                                       ExpressoResponse response)
                                throws ControllerException,
                                       DBException
Prompt for edits.

Parameters:
request - The ControllerRequest object.
response - The ControllerResponse object.
Throws:
ControllerException - upon error.
DBException

othersReadAlways

public static boolean othersReadAlways()
Setup item in expresso schema for whether others (in unix sense--all other users) can read always. DEFAULT TRUE.


runDoEditPermsState

protected void runDoEditPermsState(ExpressoRequest request,
                                   ExpressoResponse response)
                            throws ControllerException
Do for editing single pick item.

Parameters:
request - The ControllerRequest object.
response - The ControllerResponse object.
Throws:
ControllerException - upon error.

runPromptEditGroupState

protected void runPromptEditGroupState(ControllerRequest request,
                                       ControllerResponse response)
                                throws ControllerException
prompt editing of group; just reuses prompt edit for any RowSec object, using a PermGroup, a wrapper on UserGroup

Parameters:
request - The ControllerRequest object.
response - The ControllerResponse object.
Throws:
ControllerException - upon error.


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.