Package org.opencms.jsp.userdata
Class CmsDefaultUserDataDomain
java.lang.Object
org.opencms.jsp.userdata.CmsDefaultUserDataDomain
- All Implemented Interfaces:
I_CmsConfigurationParameterHandler
,I_CmsUserDataDomain
User data domain that only matches users requesting their information via user name and password.
Produces HTML for standard OpenCms user information like name, description, address, institution etc.
-
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> users, 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
matchesUser
(CmsObject cms, CmsUserDataRequestType reqType, CmsUser user) Checks if the user matches the domain for the given user data request type.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opencms.jsp.userdata.I_CmsUserDataDomain
appendlInfoForEmail, isAvailableForMode
-
Constructor Details
-
CmsDefaultUserDataDomain
public CmsDefaultUserDataDomain()
-
-
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> users, 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)users
- 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:
-
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:
-
toString
-