private List<Object> list(Object... objects) {
return Arrays.asList(objects);
}
public List<Object> query() {
User loggedInUser = Context.gateKeeper.getLoggedInUser();
PresentCodecastUseCase useCase = new PresentCodecastUseCase();
List<PresentableCodecast> presentableCodecasts = useCase.presentCodecasts(loggedInUser);
List<Object> queryResponse = new ArrayList<Object>();
for (PresentableCodecast pcc : presentableCodecasts)
queryResponse.add(makeRow(pcc));