class FileService extends BasicService implements OwnerAPISupport<File> {

	@GET
	@Path("/files")
	@Produces(MediaType.APPLICATION_JSON)
	public List<File> getFiles(@QueryParam("userId") String userId) {
		return FileDAO.getFilesForUser(getForeignUser(userId));
	}

}