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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfigurationParameter(String paramName, String paramValue) Adds a configuration parameter to this parameter configurable class instance.voidappendInfoHtml(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, ornullif the class does not need any parameters.voidInitializes a configuration after all parameters have been added.voidinitialize(CmsObject cms) Initializes the domain with an admin CmsObject.booleanChecks if the plugin is available in the given mode.booleanmatchesUser(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, waitMethods inherited from interface org.opencms.jsp.userdata.I_CmsUserDataDomain
appendlInfoForEmail
-
Constructor Details
-
CmsUserDataHeader
public CmsUserDataHeader()
-
-
Method Details
-
addConfigurationParameter
Description copied from interface:I_CmsConfigurationParameterHandlerAdds a configuration parameter to this parameter configurable class instance.- Specified by:
addConfigurationParameterin 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_CmsUserDataDomainAppends the user data to the given HTML element.- Specified by:
appendInfoHtmlin 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_CmsConfigurationParameterHandlerReturns the parameters of this configurable class instance, ornullif the class does not need any parameters.- Specified by:
getConfigurationin interfaceI_CmsConfigurationParameterHandler- Returns:
- the parameters of this configurable class instance,
or
nullif the class does not need any parameters - See Also:
-
initConfiguration
Description copied from interface:I_CmsConfigurationParameterHandlerInitializes a configuration after all parameters have been added.- Specified by:
initConfigurationin interfaceI_CmsConfigurationParameterHandler- See Also:
-
initialize
Description copied from interface:I_CmsUserDataDomainInitializes the domain with an admin CmsObject.- Specified by:
initializein interfaceI_CmsUserDataDomain- Parameters:
cms- a CmsObject- See Also:
-
isAvailableForMode
Description copied from interface:I_CmsUserDataDomainChecks if the plugin is available in the given mode.- Specified by:
isAvailableForModein interfaceI_CmsUserDataDomain- Parameters:
mode- the mode- Returns:
- true if the plugin is available
- See Also:
-
matchesUser
Description copied from interface:I_CmsUserDataDomainChecks if the user matches the domain for the given user data request type.- Specified by:
matchesUserin 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:
-