Action beans reference | HCL Digital Experience
View some additional information related to Action beans and associated methods.
com.ibm.wcp.analysis.beans.Action
bean method signatures are:
Action bean method signatures | Description |
---|---|
|
Logs a non-resource specific action |
|
Logs a resource specific action |
|
Logs a resource specific action with key/value action datum |
|
Logs a resource specific action with multiple key/value action data. Each key can have a single value specified by a string object or multiple values specified by a string array |
Action beans should be instantiated as session beans. They maintain user action information for the current session including the actions logged by resource and their corresponding log counts.
public String[] getActionNames(HttpServletRequest request);
public int getActionCount(HttpServletRequest request, String actionName );
Actions can be logged with or without respect to a specific resource. For example, the "OrderCancel" action does not apply to a specific resource whereas the "BrowseContent" action applies to a specific content resource.
If the call to the action log method specifies a resourceId
and
the collectionName
is null
, the name
of a ResourceCollection
is inferred. The ResourceCollection
used will be any one containing a resource
with the specified resourceId
. The determination
of the ResourceCollection
used in this scenario is
non-deterministic. Note that these variants are suitable for user implementations supporting one and
only one ResourceCollection
per resource
class. If an implementation utilizes multiple ResourceCollections
for the same resource
class, the
collectionName
should be specified.