/** * Copies all attributes in Landingpage object according to the values specified in the value * object. * * @param domObj The domain object from which the attributed of the value object should be copied * in. * @param voObj The value object containing the values to be copied. */ private static void copyAttributes(PublicLandingpage domObj, VOPublicLandingpage voObj) { domObj.setNumberServices(voObj.getNumberServices()); domObj.setFillinCriterion(voObj.getFillinCriterion()); }
/** * Validates the given Landingpage object that reflects the settings in the given value object. * * @param voObj The value object containing the values to be validated. * @throws ValidationException Thrown if the attributes at the value object do not meet all * constraints. */ public static void validate(VOPublicLandingpage voObj) throws ValidationException { BLValidator.isNotNull("marketplaceId", voObj.getMarketplaceId()); BLValidator.isNonNegativeNumber("numberServices", voObj.getNumberServices()); BLValidator.isNotNull("fillinCriterion", voObj.getFillinCriterion()); BLValidator.isNotNull("landingpageServices", voObj.getLandingpageServices()); }