com.sri.emo.controller
Class PermissionController
java.lang.Object
org.apache.struts.action.Action
com.jcorporate.expresso.core.controller.Controller
com.jcorporate.expresso.core.controller.DBController
com.sri.common.controller.AbstractDBController
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
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.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 |
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.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 |
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
PermissionController
public PermissionController()
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.