com.indeed.proctor.consumer.spring
Class AbstractShowTestGroupsController

java.lang.Object
  extended by com.indeed.proctor.consumer.spring.AbstractShowTestGroupsController
All Implemented Interfaces:
ShowGroupsHandler.GroupsSupplier

public abstract class AbstractShowTestGroupsController
extends Object
implements ShowGroupsHandler.GroupsSupplier

To get basic showGroups functionality mount this controller and implement determineGroups(HttpServletRequest request). All request handlers are guarded by PrivilegedIPs.isPrivileged eg @RequestMapping(value = "/private", method = RequestMethod.GET) Will get the following routes: private/showGroups private/showRandomGroups private/showTestMatrix You can force yourself into a group at any point using prforceGroups=xx http://www.indeed.com/private/showGroups?prforceGroups=btnuitst3,testx0

Author:
parker

Constructor Summary
AbstractShowTestGroupsController(AbstractProctorLoader proctorSupplier)
           
 
Method Summary
protected  int getAccessDeniedStatusCode()
           
abstract  boolean isAccessAllowed(javax.servlet.http.HttpServletRequest request)
          Override this if the show groups controller should only be shown to specific types of requests.
 void showGroups(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void showRandomGroups(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void showTestMatrix(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.indeed.proctor.consumer.spring.ShowGroupsHandler.GroupsSupplier
determineGroups
 

Constructor Detail

AbstractShowTestGroupsController

public AbstractShowTestGroupsController(AbstractProctorLoader proctorSupplier)
Method Detail

showGroups

@RequestMapping(value="/showGroups")
public void showGroups(javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response)
                throws IOException,
                       javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException

showRandomGroups

@RequestMapping(value="/showRandomGroups")
public void showRandomGroups(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response)
                      throws IOException,
                             javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException

showTestMatrix

@RequestMapping(value="/showTestMatrix")
public void showTestMatrix(javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
                    throws IOException,
                           javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException

isAccessAllowed

public abstract boolean isAccessAllowed(javax.servlet.http.HttpServletRequest request)
Override this if the show groups controller should only be shown to specific types of requests. eg. restricted by IP

Parameters:
request -
Returns:

getAccessDeniedStatusCode

protected int getAccessDeniedStatusCode()


Copyright © 2014. All Rights Reserved.