/** {@inheritDoc} */ public List<ContentSource> getResult(RequestContext context) { User user = context.getCurrentUser(); return ChannelFactory.lookupContentSources(user.getOrg()); }
/** {@inheritDoc} */ public List<ContentSource> getResult(RequestContext context) { User user = context.getCurrentUser(); long cid = context.getRequiredParam("cid"); Channel chan = ChannelFactory.lookupByIdAndUser(cid, user); return ChannelFactory.lookupContentSources(user.getOrg(), chan); }