/** * Returns true if the customer is subscribed to this plan. * * @param userId user id of the customer to check * @return true if customer is subscribed, false if not */ public boolean isSubscribed(Integer userId) { return planDas.isSubscribed(userId, plan.getId()); }