| com.jcorporate.expresso.core.controller.Controller com.jcorporate.expresso.core.controller.DBController
All known Subclasses: com.jcorporate.expresso.ext.controller.ComponentManager, com.jcorporate.expresso.services.controller.ControllerSecurityMatrix, com.jcorporate.expresso.services.controller.Status, com.jcorporate.expresso.ext.xml.controller.XMLController, com.jcorporate.expresso.ext.controller.ServeTextFile, com.jcorporate.expresso.services.controller.EditUserPreference, com.jcorporate.expresso.ext.controller.HealthCheck, com.jcorporate.expresso.ext.controller.Download, com.jcorporate.expresso.ext.controller.DataTransfer, com.jcorporate.expresso.services.controller.JobSecurityMatrix, com.jcorporate.expresso.services.controller.DBMaint, com.jcorporate.expresso.services.controller.LoginController, com.jcorporate.expresso.services.controller.CronController, com.jcorporate.expresso.ext.controller.ReportServer, com.jcorporate.expresso.ext.controller.RunTests, com.jcorporate.expresso.services.controller.Registration, com.jcorporate.expresso.ext.controller.RunSQL, com.jcorporate.expresso.core.controller.SecureIfSetController, com.jcorporate.expresso.services.controller.DBSecurityMatrix, com.jcorporate.expresso.services.controller.Log, com.jcorporate.expresso.services.controller.ErrorHandler, com.jcorporate.expresso.services.controller.ValidationController, com.jcorporate.expresso.ext.controller.TestController, com.jcorporate.expresso.ext.controller.Upload, com.jcorporate.expresso.services.controller.CacheControl, com.jcorporate.expresso.services.controller.QueueJob,
DBController | abstract public class DBController extends Controller (Code) | | An extension of the basic Controller object that knows how to
connect to a database, and how to read it's own security
information for each state
|
DBController | public DBController()(Code) | | |
getString | protected String getString(String stringCode, Object[] args, ControllerRequest myRequest)(Code) | | Override the superclass getString, as now we know the user
and the DB, and thus can use the language preferences of the user
if available.
Parameters: stringCode - The code in the MessagesBundle to retrieve Parameters: args - the i18n formatting arguments Parameters: myRequest - the controllerRequest object the properly formatted string |
isAllowed | public static boolean isAllowed(ControllerRequest request, DBController controller, String newState) throws DBException, CacheException(Code) | | for the given controller class and state, can the user in this request access this state?
Parameters: request - current request Parameters: controller - controller in question Parameters: newState - state in question true if state is allowed for user specified in request throws: DBException - upon database error throws: CacheException - upon error working with the cache system. |
stateAllowed | public boolean stateAllowed(String newState, ControllerRequest myRequest) throws ControllerException(Code) | | For database controllers, we check if the new state is allowed
against the database objects for that purpose
Parameters: newState - The name of the new state that is being requested; controller class is assumed to be 'this' Parameters: myRequest - the ControllerRequest object True if the state is permitted for this user, else false throws: ControllerException - if another undefined error takes place whilechecking security. |
Methods inherited from com.jcorporate.expresso.core.controller.Controller | protected void addFinalState(State newFinalState) throws NonHandleableException(Code)(Java Doc) protected void addPromptTransitions(State nextState, ControllerResponse response) throws ControllerException(Code)(Java Doc) protected void addRegDomainParamtoSession(HttpServletRequest req, ControllerRequest creq, String regDomain) throws ControllerException(Code)(Java Doc) protected void addRequestedURLtoSession(HttpServletRequest req, ControllerRequest creq) throws ControllerException(Code)(Java Doc) protected void addState(State newState)(Code)(Java Doc) protected void addStatePairing(State promptState, State handleState, String stateFormClass) throws NonHandleableException(Code)(Java Doc) protected void endTimer(long beginTimer, HttpServletRequest request)(Code)(Java Doc) public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) protected ActionForm findControllerForm(ControllerRequest request) throws ControllerException(Code)(Java Doc) protected String generateToken(ControllerRequest request)(Code)(Java Doc) protected ActionForward getActionForward(ServletControllerRequest req, ActionConfig mapping, ControllerResponse res) throws NonHandleableException, ControllerException(Code)(Java Doc) protected Transition getControllerChainingTransition()(Code)(Java Doc) protected Transition getControllerSecurityTransition()(Code)(Java Doc) public State getFinalState()(Code)(Java Doc) public String getInitialState()(Code)(Java Doc) public synchronized Logger getLogger()(Code)(Java Doc) public static String[] getParamValues(ServletControllerRequest request, String paramName)(Code)(Java Doc) protected String getRequestURL(HttpServletRequest req)(Code)(Java Doc) final protected String getSchema()(Code)(Java Doc) public synchronized Stack getSchemaHierarchy()(Code)(Java Doc) protected Schema getSchemaInstance()(Code)(Java Doc) public synchronized Stack getSchemaStack()(Code)(Java Doc) final public State getState(String stateName)(Code)(Java Doc) final public Hashtable getStates()(Code)(Java Doc) protected String getString(String stringCode)(Code)(Java Doc) protected String getString(String stringCode, Object[] args)(Code)(Java Doc) public String getTitle()(Code)(Java Doc) protected void handleException(HttpServletRequest req, ControllerRequest creq, String dbName, String userName, Throwable theException) throws ServletException(Code)(Java Doc) public static synchronized Controller instantiate(String className) throws ControllerException(Code)(Java Doc) protected boolean isFinalState(String newState)(Code)(Java Doc) protected boolean isHandleState(State nextState)(Code)(Java Doc) protected boolean isPromptState(State nextState)(Code)(Java Doc) protected boolean isTokenValid(ControllerRequest request)(Code)(Java Doc) protected StateForm loadStateForm(State nextState, ActionForm controllerForm) throws ControllerException(Code)(Java Doc) public ControllerResponse newState(String newState, ControllerRequest myRequest) throws ControllerException, NonHandleableException(Code)(Java Doc) protected String nextHandleState(State nextState)(Code)(Java Doc) protected String nextPromptState(State nextState)(Code)(Java Doc) protected void populateStateForm(StateForm stateForm, ControllerRequest request) throws ControllerException(Code)(Java Doc) protected void postPerform(State nextState, ControllerRequest request, ControllerResponse response) throws ControllerException(Code)(Java Doc) protected void prePerform(State nextState, ControllerRequest request, ControllerResponse response) throws ControllerException(Code)(Java Doc) protected String previousPromptState(State nextState)(Code)(Java Doc) protected void processRequestTransitions(State nextState, ControllerRequest request) throws ControllerException(Code)(Java Doc) protected Transition processTransitions(ControllerRequest request, ControllerResponse response, State nextState) throws ControllerException, NonHandleableException(Code)(Java Doc) protected void redirectRequest(HttpServletResponse response, String redirectURL) throws IOException(Code)(Java Doc) public void redirectRequest(ControllerRequest request, ControllerResponse response, String redirectURL) throws IOException(Code)(Java Doc) protected ForwardConfig remapFromExtension(ForwardConfig fwd, ActionConfig mapping, ServletControllerRequest req) throws ControllerException(Code)(Java Doc) protected void resetToken(ControllerRequest request)(Code)(Java Doc) protected void saveToken(ControllerRequest request)(Code)(Java Doc) protected void setControllerChainingTransition(Transition newControllerChainingTransition) throws NonHandleableException(Code)(Java Doc) protected void setControllerSecurityTransition(Transition newControllerSecurityTransition)(Code)(Java Doc) public ControllerResponse setCurrentState(String newState, ControllerRequest params) throws ControllerException, NonHandleableException(Code)(Java Doc) public void setInitialState(String newInitialState)(Code)(Java Doc) protected void setSchema(String schemaClass)(Code)(Java Doc) protected void setSchema(Class schemaClass)(Code)(Java Doc) public void setupDefaultValues(String dbName) throws DBException(Code)(Java Doc) protected void setupReturnToSender(State nextState, ControllerRequest request) throws ControllerException(Code)(Java Doc) protected synchronized void setupSubclassLog()(Code)(Java Doc) public boolean stateAllowed(String newState, ControllerRequest params) throws ControllerException(Code)(Java Doc) protected void transition(String newState, ControllerRequest req, ControllerResponse res) throws ControllerException, NonHandleableException(Code)(Java Doc) protected void transition(String newState, Class externalController, ControllerRequest req, ControllerResponse res) throws ControllerException, NonHandleableException(Code)(Java Doc) protected void transition(String newState, ControllerRequest req, ControllerResponse res, boolean clear) throws ControllerException, NonHandleableException(Code)(Java Doc) protected void unloadStateForm(StateForm stateForm, ActionForm controllerForm) throws ControllerException(Code)(Java Doc)
|
|
|