Class SecureController
- java.lang.Object
-
- org.odpi.openmetadata.userinterface.uichassis.springboot.api.SecureController
-
- Direct Known Subclasses:
GlossaryViewController,RepositoryExplorerController,TypeExplorerController
public class SecureController extends 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.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPAGE_OFFSET_DEFAULT_VALUEstatic StringPAGE_SIZE_DEFAULT_VALUE
-
Constructor Summary
Constructors Constructor Description SecureController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetUser(javax.servlet.http.HttpServletRequest request)Return user name if there is one or null.
-
-
-
Field Detail
-
PAGE_OFFSET_DEFAULT_VALUE
public static final String PAGE_OFFSET_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
PAGE_SIZE_DEFAULT_VALUE
public static final String PAGE_SIZE_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUser
protected 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
-
-