* @param inActionContext
* context for the strategy
*/
public void authorize(final PrincipalActionContext inActionContext)
{
DeleteFeedSubscriptionRequest request = (DeleteFeedSubscriptionRequest) inActionContext.getParams();
Serializable[] paramsForAuthorizor = new Serializable[1];
paramsForAuthorizor[0] = request.getEntityId();
HashMap<String, Serializable> values = new HashMap<String, Serializable>();
Principal principal = inActionContext.getPrincipal();
values.put("EUREKA:USER", principal.getAccountId());
values.put("EUREKA:GROUP", request.getEntityId());
List<FeedSubscriber> feedSubs =
getFeedSubsMapper.execute(new GetFeedSubscriberRequest(0L, getEntityId.getEntityId(values), type,
principal.getId()));
boolean found = false;
for (FeedSubscriber feedSub : feedSubs)
{
if (feedSub.getId() == request.getFeedSubscriberId())
{
found = true;
break;
}
}