ClassName

atg.markers.userprofiling.droplet.RemoveAllMarkersFromProfile

Component

/atg/markers/userprofiling/droplet/RemoveAllMarkersFromProfile
Droplet

This servlet bean works with the Profile Marker Manager to remove all profile markers from a particular user profile.

For more information on removing profile markers, see the RemovingProfileMarkers section in the UsingProfileMarkers chapter of the ATG Personalization Programming Guide.

Input Parameters

itemId
Specifies the profile ID that has profile markers you want to remove. If none is specified here, the value indicated in the item input parameter is used.

item
Specifies the profile item that that has profile markers you want to remove. If none is specified here, the active profile is used.

markerManager
This parameter indicates the Profile Marker Manager component to use. If a Profile Marker Manager is not specified here, the Profile Marker Manager indicated in the servlet bean’s repositoryMarkerManager property is used.

markerPropertyName
Specifies the property on the profile from which you want to remove markers. If a property is not specified here, the servlet bean uses the default value specified in its defaultMarkerPropertyName property.

Output Parameters

markerCount
This parameter contains the number of profile markers removed from this servlet bean’s execution.

errorMsg
This parameter contains any error messages generated during the servlet bean’s execution.

Open Parameters

output
This parameter is rendered when all profile markers are removed from the profile.

error
This parameter is rendered when an error occurred during servlet bean execution.

Example

This example demonstrates how to remove all profile markers from the current user’s profile. When the markers are removed, the user sees a message that states the number of markers that were removed.

<dsp:droplet
 name="/atg/markers/userprofiling/droplet/RemoveAllMarkersFromProfileDroplet">

   <dsp:param name="output">
      There were <dsp:param name="markerCount"/> markers removed from your
      profile.
   </dsp:param>

</dsp:droplet>
 
loading table of contents...