* {@inheritDoc}.
*/
@Override
public Serializable execute(final PrincipalActionContext inActionContext) throws ExecutionException
{
SetActivityStarRequest request = (SetActivityStarRequest) inActionContext.getParams();
StarredActivity starActivityData = new StarredActivity(
inActionContext.getPrincipal().getId(),
request.getActivityId());
return (request.getStarActionType() == StarActionType.ADD_STAR)
? insertStarredActivity.execute(starActivityData)
: deleteStarredActivity.execute(starActivityData);
}