/** * Initialise method */ public void init() { // Prevent the ratebale aspect from being copied bindNoCopyBehaviour(ContentModel.ASPECT_RATEABLE); // Prevent the roll up aspects from being copied for (RatingScheme ratingScheme : ratingSchemeRegistry.getRatingSchemes().values()) { if (ratingScheme.getPropertyRollups() != null && ratingScheme.getPropertyRollups().size() > 0) { QName rollupAspectName = ratingNamingConventions.getRollupAspectNameFor(ratingScheme); bindNoCopyBehaviour(rollupAspectName); } } }
/** * Initialise method */ public void init() { // Prevent the ratebale aspect from being copied bindNoCopyBehaviour(ContentModel.ASPECT_RATEABLE); // Prevent the roll up aspects from being copied for (RatingScheme ratingScheme : ratingSchemeRegistry.getRatingSchemes().values()) { if (ratingScheme.getPropertyRollups() != null && ratingScheme.getPropertyRollups().size() > 0) { QName rollupAspectName = ratingNamingConventions.getRollupAspectNameFor(ratingScheme); bindNoCopyBehaviour(rollupAspectName); } } }
try for (AbstractRatingRollupAlgorithm rollupAlgorithm : ratingScheme.getPropertyRollups())
try for (AbstractRatingRollupAlgorithm rollupAlgorithm : ratingScheme.getPropertyRollups())