Package org.opencms.security
Interface I_CmsCustomLogin
- All Superinterfaces:
I_CmsConfigurationParameterHandler
Interface for plugging in a custom login button in the login dialog which redirects to some sort of third-party authentication page.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumMode enum indicating how the custom login should be displayed. -
Field Summary
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD -
Method Summary
Modifier and TypeMethodDescriptiongetLoginButtonCaption(Locale locale) Gets the caption to display on the button for the given locale.getMode()Indicates how the custom login should be displayed.getRedirect(String orgUnit) Gets the page to redirect to after the user has clicked on the custom button.voidinitialize(CmsObject cms) Sets the CmsObject needed for VFS operations or anything like that.booleanOnly if this returns true should the custom login be enabled.booleanChecks if the custom login method needs the user to select the OU in the login dialog.Methods inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
addConfigurationParameter, getConfiguration, initConfiguration
-
Method Details
-
getMode
Indicates how the custom login should be displayed.- Returns:
- the display mode
-
getRedirect
Gets the page to redirect to after the user has clicked on the custom button.- Parameters:
orgUnit- the organizational unit that has been selected, or null if none was selected- Returns:
- the redirect URI
-
getLoginButtonCaption
Gets the caption to display on the button for the given locale.- Parameters:
locale- the locale- Returns:
- the caption to display
-
initialize
Sets the CmsObject needed for VFS operations or anything like that.- Parameters:
cms- a CmsObject with admin privileges
-
isEnabled
boolean isEnabled()Only if this returns true should the custom login be enabled.- Returns:
- true if the custom login should be enabled
-
needsOrgUnit
boolean needsOrgUnit()Checks if the custom login method needs the user to select the OU in the login dialog.- Returns:
- true if the custom login method needs the OU
-