Package org.opencms.jsp.userdata
Class CmsUserDataHeader
java.lang.Object
org.opencms.jsp.userdata.CmsUserDataHeader
- All Implemented Interfaces:
I_CmsConfigurationParameterHandler
,I_CmsUserDataDomain
Shows email address / user name as a header.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencms.jsp.userdata.I_CmsUserDataDomain
I_CmsUserDataDomain.Mode
-
Field Summary
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfigurationParameter
(String paramName, String paramValue) Adds a configuration parameter to this parameter configurable class instance.void
appendInfoHtml
(CmsObject cms, CmsUserDataRequestType reqType, List<CmsUser> user, org.jsoup.nodes.Element element) Appends the user data to the given HTML element.Returns the parameters of this configurable class instance, ornull
if the class does not need any parameters.void
Initializes a configuration after all parameters have been added.void
initialize
(CmsObject cms) Initializes the domain with an admin CmsObject.boolean
Checks if the plugin is available in the given mode.boolean
matchesUser
(CmsObject cms, CmsUserDataRequestType reqType, CmsUser user) Checks if the user matches the domain for the given user data request type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.jsp.userdata.I_CmsUserDataDomain
appendlInfoForEmail
-
Constructor Details
-
CmsUserDataHeader
public CmsUserDataHeader()
-
-
Method Details
-
addConfigurationParameter
Description copied from interface:I_CmsConfigurationParameterHandler
Adds a configuration parameter to this parameter configurable class instance.- Specified by:
addConfigurationParameter
in interfaceI_CmsConfigurationParameterHandler
- Parameters:
paramName
- the name of the parameterparamValue
- the value for the parameter- See Also:
-
appendInfoHtml
public void appendInfoHtml(CmsObject cms, CmsUserDataRequestType reqType, List<CmsUser> user, org.jsoup.nodes.Element element) Description copied from interface:I_CmsUserDataDomain
Appends the user data to the given HTML element.- Specified by:
appendInfoHtml
in interfaceI_CmsUserDataDomain
- Parameters:
cms
- the CMS contextreqType
- the request type (email or single user)user
- the list of users (if the request type is singleUser, this has only one element)element
- the HTML element to append the data to- See Also:
-
getConfiguration
Description copied from interface:I_CmsConfigurationParameterHandler
Returns the parameters of this configurable class instance, ornull
if the class does not need any parameters.- Specified by:
getConfiguration
in interfaceI_CmsConfigurationParameterHandler
- Returns:
- the parameters of this configurable class instance,
or
null
if the class does not need any parameters - See Also:
-
initConfiguration
Description copied from interface:I_CmsConfigurationParameterHandler
Initializes a configuration after all parameters have been added.- Specified by:
initConfiguration
in interfaceI_CmsConfigurationParameterHandler
- See Also:
-
initialize
Description copied from interface:I_CmsUserDataDomain
Initializes the domain with an admin CmsObject.- Specified by:
initialize
in interfaceI_CmsUserDataDomain
- Parameters:
cms
- a CmsObject- See Also:
-
isAvailableForMode
Description copied from interface:I_CmsUserDataDomain
Checks if the plugin is available in the given mode.- Specified by:
isAvailableForMode
in interfaceI_CmsUserDataDomain
- Parameters:
mode
- the mode- Returns:
- true if the plugin is available
- See Also:
-
matchesUser
Description copied from interface:I_CmsUserDataDomain
Checks if the user matches the domain for the given user data request type.- Specified by:
matchesUser
in interfaceI_CmsUserDataDomain
- Parameters:
cms
- the CMS contextreqType
- the user data request type (email or single user)user
- the user- Returns:
- true if the domain matches the user
- See Also:
-