Examples of AWNodeValidator


Examples of ariba.ui.aribaweb.util.AWNodeValidator

               
                return actionResults;
            }
        }
        catch (AWNodeChangeException e) {
            AWNodeValidator nv = e.getNodeValidator();
            AWResponseGenerating handlerResults =
                nv.handleNodeValidationException(requestContext);
            nv.terminateCurrentSession(requestContext);
            response = handlerResults.generateResponse();
        }
        catch (AWSessionValidationException exception) {
            try {
                if (AWConcreteApplication.IsDebuggingEnabled) {
                    Log.aribaweb.debug("AWDirectActionRequestHandler: handling session " +
                                       "validation exception");
                }

                // if there is a default validator, run it here
                AWNodeValidator nv = AWNodeManager.getDefaultNodeValidator();
                if (nv != null && !nv.isValid(requestContext)) {
                    Log.aribaweb_nodeValidate.debug("AWDirectActionRequestHandler: invalid node. " +
                                       "NodeValidator generating response.");
                    AWResponseGenerating handlerResults =
                        nv.handleNodeValidationException(requestContext);
                    nv.terminateCurrentSession(requestContext);
                    response = handlerResults.generateResponse();
                }
                else {
                    AWResponseGenerating handlerResults =
                        handleSessionValidationError(requestContext, exception);
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWNodeValidator

    public void assertValidNode (AWRequestContext requestContext,
                                 String directActionClassName, String actionName)
    {
        // default to no-op
        if (_nodeManager != null) {
            AWNodeValidator nv =
                _nodeManager.nodeValidatorForDirectAction(directActionClassName,
                                                          actionName);
            if (nv == null) {
                Log.aribaweb.debug("Node validation called on directAction %s.%s" +
                                   " which does not have a AWNodeValidator defined.",
                                   directActionClassName,
                                   actionName);
            }
            else if (!nv.isValid(requestContext)) {
                throw nv.getNodeChangeException();
            }
        }
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWNodeValidator

        This is a helper method to handleRequest.
        @aribaapi private
     */
    private boolean isValidNode (AWRequestContext requestContext)
    {
        AWNodeValidator val = AWNodeManager.getComponentActionNodeValidator();
        if (val == null) {
            return true;
        }
        return val.isValid(requestContext);

    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWNodeValidator

            }
            catch (AWNodeChangeException e) {
                // This could occur with softafinity when an administrator
                // redirects all users accessing the same object to a specific
                // node.
                AWNodeValidator nv = e.getNodeValidator();
                if (nv == null) {
                    nv = AWNodeManager.getDefaultNodeValidator();
                }

                Assert.that(nv != null, "AWNodeChangeException caught but no valid " +
                                        "AWNodeValidator declared in the nodeValidationException.");
                AWResponseGenerating handlerResults =
                    nv.handleNodeValidationException(requestContext);
                nv.terminateCurrentSession(requestContext);
                response = handlerResults.generateResponse();
            }
            catch (AWSessionValidationException exception) {
                // see comment in handler of AWSessionRestorationException
                // redirec the user to the main application url.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.