Removes all profile markers from a profile.

Class Name

atg.markers.userprofiling.droplet.RemoveAllMarkersFromProfile

Component

/atg/markers/userprofiling/droplet/RemoveAllMarkersFromProfile
Droplet

Required Input Parameters

None

Optional Input Parameters

itemId

The profile ID that has profile markers to be removed. If omitted, the value indicated in the item input parameter is used.

item

The profile item that that has profile markers to be removed. If omitted, the active profile is used.

markerManager

The Profile Marker Manager component to use. If omitted, the Profile Marker Manager indicated in the servlet bean’s repositoryMarkerManager property is used.

markerPropertyName

The property on the profile whose markers are to be removed. If omitted, the servlet bean uses the default value specified in its defaultMarkerPropertyName property.

Output Parameters

markerCount

Contains the number of profile markers removed from this servlet bean’s execution.

errorMsg

Contains any error messages generated during the servlet bean’s execution.

Open Parameters

output

Rendered when all profile markers are removed from the profile.

error

Rendered when an error occurred during servlet bean execution.

Usage Notes

RemoveAllMarkersFromProfile 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 Removing Profile Markers section in the Using Profile Markers chapter of the ATG Personalization Programming Guide.

Example

The following example removes 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>