Class SecureController
java.lang.Object
org.odpi.openmetadata.userinterface.uichassis.springboot.api.SecureController
- Direct Known Subclasses:
GlossaryViewController
,RepositoryExplorerController
,TypeExplorerController
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 Details
-
PAGE_OFFSET_DEFAULT_VALUE
- See Also:
-
PAGE_SIZE_DEFAULT_VALUE
- See Also:
-
-
Constructor Details
-
SecureController
public SecureController()
-
-
Method Details
-
getUser
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.- Returns:
- userName or null if there is not one
-