Class SecureController


  • public class SecureController
    extends java.lang.Object
    This class provides a method to access the user name from the servlet session. This class should be subclassed so that the user can be obtained and then used on omas calls.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getUser​(javax.servlet.http.HttpServletRequest request)
      Return user name if there is one or null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PAGE_OFFSET_DEFAULT_VALUE

        public static final java.lang.String PAGE_OFFSET_DEFAULT_VALUE
        See Also:
        Constant Field Values
      • PAGE_SIZE_DEFAULT_VALUE

        public static final java.lang.String PAGE_SIZE_DEFAULT_VALUE
        See Also:
        Constant Field Values
    • Constructor Detail

      • SecureController

        public SecureController()
    • Method Detail

      • getUser

        protected java.lang.String getUser​(javax.servlet.http.HttpServletRequest request)
        Return user name if there is one or null. Passing null as the user to a rest call should result in a user not authorized error.
        Parameters:
        request - servlet request
        Returns:
        userName or null if there is not one