/** * This class is meant as a template to provide overriding of the annotations on fields in * <code>org.broadleafcommerce.core.order.fulfillment.domain.BandedPriceFulfillmentOptionImpl</code>. This provides a * stop gap measure to allow someone to weave in the appropriate annotations in 4.0.x without forcing a schema change on those * who prefer not to use it. This should likely be removed in 4.1 for fixed annotations on the entity itself. * * @author Kelly Tisdell * */ @Deprecated public abstract class OptionalEnterpriseBandedPriceFulfillmentOptionTemplate { @OneToMany(mappedBy = "option", targetEntity = FulfillmentPriceBandImpl.class) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "blStandardElements") @AdminPresentationCollection(friendlyName = "BandedPriceFulfillmentOptionBands", excluded = true) protected List<FulfillmentPriceBand> bands = new ArrayList<FulfillmentPriceBand>(); }
protected FieldMetadataOverride constructBasicCollectionMetadataOverride(AdminPresentationCollection annotColl) { if (annotColl != null) { FieldMetadataOverride override = new FieldMetadataOverride(); override.setAddMethodType(annotColl.addType()); override.setSelectizeVisibleField(annotColl.selectizeVisibleField()); override.setManyToField(annotColl.manyToField()); override.setCustomCriteria(annotColl.customCriteria()); override.setUseServerSideInspectionCache(annotColl.useServerSideInspectionCache()); override.setExcluded(annotColl.excluded()); override.setFriendlyName(annotColl.friendlyName()); override.setAddFriendlyName(annotColl.addFriendlyName()); override.setReadOnly(annotColl.readOnly()); override.setSortProperty(annotColl.sortProperty()); override.setSortAscending(annotColl.sortAscending()); override.setOrder(annotColl.order()); override.setTab(annotColl.tab()); override.setTabOrder(annotColl.tabOrder()); override.setGroup(annotColl.group()); override.setSecurityLevel(annotColl.securityLevel()); override.setAddType(annotColl.operationTypes().addType()); override.setFetchType(annotColl.operationTypes().fetchType()); override.setRemoveType(annotColl.operationTypes().removeType()); override.setUpdateType(annotColl.operationTypes().updateType()); override.setInspectType(annotColl.operationTypes().inspectType()); override.setShowIfProperty(annotColl.showIfProperty()); if (annotColl.showIfFieldEquals().length != 0) { processShowIfFieldEqualsAnnotations(annotColl.showIfFieldEquals(), override); override.setCurrencyCodeField(annotColl.currencyCodeField()); override.setLazyFetch(annotColl.lazyFetch());
if (annot != null) { String testKey = prefix + key; if ((testKey.startsWith(propertyName + ".") || testKey.equals(propertyName)) && annot.excluded()) { FieldMetadata metadata = mergedProperties.get(key); if (LOG.isDebugEnabled()) { return; if ((testKey.startsWith(propertyName + ".") || testKey.equals(propertyName)) && !annot.excluded()) { FieldMetadata metadata = mergedProperties.get(key); if (!isParentExcluded) {
/** * This class is meant as a template to provide overriding of the annotations on fields in * <code>org.broadleafcommerce.common.sitemap.domain.SiteMapConfigurationImpl</code>. This provides a * stop gap measure to allow someone to weave in the appropriate annotations in 4.0.x without forcing a schema change on those * who prefer not to use it. This should likely be removed in 4.1 for fixed annotations on the entity itself. * * @author Jeff Fischer * */ @Deprecated public abstract class OptionalEnterpriseSiteMapConfigurationSiteMapGeneratorConfigurationTemplate { @OneToMany(mappedBy = "siteMapConfiguration", targetEntity = SiteMapGeneratorConfigurationImpl.class, cascade = { CascadeType.ALL }, orphanRemoval = true) @AdminPresentationCollection(friendlyName = "SiteMapConfigurationImpl_Generator_Configurations", tab = AbstractModuleConfigurationAdminPresentation.TabName.General) @SiteDiscriminatable(type = SiteDiscriminatableType.SITE) protected List<SiteMapGeneratorConfiguration> siteMapGeneratorConfigurations = new ArrayList<SiteMapGeneratorConfiguration>(); }
/** * This class is meant as a template to provide overriding of the annotations on fields in * <code>org.broadleafcommerce.core.order.fulfillment.domain.BandedWeightFulfillmentOptionImpl</code>. This provides a * stop gap measure to allow someone to weave in the appropriate annotations in 4.0.x without forcing a schema change on those * who prefer not to use it. This should likely be removed in 4.1 for fixed annotations on the entity itself. * * See * * @author Kelly Tisdell * */ @Deprecated public abstract class OptionalEnterpriseBandedWeightFulfillmentOptionTemplate { @OneToMany(mappedBy = "option", targetEntity = FulfillmentWeightBandImpl.class) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "blStandardElements") @AdminPresentationCollection(friendlyName = "BandedWeightFulfillmentOptionBands", excluded = true) protected List<FulfillmentWeightBand> bands = new ArrayList<FulfillmentWeightBand>(); }
/** * CustomSiteMapGenerator is controlled by this configuration. * * @author bpolster */ @Entity @Table(name = "BLC_CUST_SITE_MAP_GEN_CFG") @AdminPresentationClass(friendlyName = "CustomUrlSiteMapGeneratorConfigurationImpl") public class CustomUrlSiteMapGeneratorConfigurationImpl extends SiteMapGeneratorConfigurationImpl implements CustomUrlSiteMapGeneratorConfiguration { private static final long serialVersionUID = 1L; @OneToMany(mappedBy = "customUrlSiteMapGeneratorConfiguration", targetEntity = SiteMapUrlEntryImpl.class, cascade = { CascadeType.ALL }, orphanRemoval = true) @AdminPresentationCollection(friendlyName = "CustomUrlSiteMapGeneratorConfigurationImpl_Custom_URL_Entries") protected List<SiteMapUrlEntry> customURLEntries = new ArrayList<SiteMapUrlEntry>(); @Override public List<SiteMapUrlEntry> getCustomURLEntries() { return customURLEntries; } @Override public void setCustomURLEntries(List<SiteMapUrlEntry> customURLEntries) { this.customURLEntries = customURLEntries; } }
@AdminPresentationCollection(friendlyName = "BandedWeightFulfillmentOptionBands", excluded = true) protected List<FulfillmentWeightBand> bands = new ArrayList<FulfillmentWeightBand>();
@AdminPresentationCollection(friendlyName = "BandedPriceFulfillmentOptionBands", excluded = true) protected List<FulfillmentPriceBand> bands = new ArrayList<FulfillmentPriceBand>();
cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH}) @Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blOrderElements") @AdminPresentationCollection(friendlyName="OrderItemImpl_Price_Details", tab = OrderItemImpl.Presentation.Tab.Name.Advanced, tabOrder = OrderItemImpl.Presentation.Tab.Order.Advanced) protected List<OrderItem> wrappedItems = new ArrayList<OrderItem>();
@AdminPresentationCollection(friendlyName = "SiteMapConfigurationImpl_Generator_Configurations", tab = TabName.General) @SiteDiscriminatable(type = SiteDiscriminatableType.SITE) protected List<SiteMapGeneratorConfiguration> siteMapGeneratorConfigurations = new ArrayList<SiteMapGeneratorConfiguration>();
@AdminPresentationCollection(friendlyName = "RatingSummary_ratings") protected List<RatingDetail> ratings = new ArrayList<RatingDetail>(); @AdminPresentationCollection(friendlyName = "RatingSummary_reviews") protected List<ReviewDetail> reviews = new ArrayList<ReviewDetail>();
@AdminPresentationCollection(friendlyName = "ReviewDetail_feedback") protected List<ReviewFeedback> reviewFeedback;
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blAdminSecurityVolatile") @BatchSize(size = 50) @AdminPresentationCollection(friendlyName = "permissionListTitle", group = GroupName.Permissions, order = FieldOrder.PERMISSIONS, addType = AddMethodType.LOOKUP,
@AdminPresentationCollection(addType = AddMethodType.PERSIST, friendlyName = "DataDrivenEnumerationImpl_Enum_Values", order = 3) protected List<DataDrivenEnumerationValue> enumValues = new ArrayList<DataDrivenEnumerationValue>();
@AdminPresentationCollection(friendlyName="BundleOrderItemImpl_Discrete_Order_Items", tab=OrderItemImpl.Presentation.Tab.Name.Advanced, tabOrder = OrderItemImpl.Presentation.Tab.Order.Advanced) @AdminPresentationCollection(friendlyName="BundleOrderItemImpl_Item_Fee_Prices", tab=OrderItemImpl.Presentation.Tab.Name.Advanced, tabOrder = OrderItemImpl.Presentation.Tab.Order.Advanced)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blAdminSecurity") @BatchSize(size = 50) @AdminPresentationCollection(addType = AddMethodType.LOOKUP, friendlyName = "entityPermissionsTitle", order = 2000) protected List<AdminPermissionQualifiedEntity> qualifiedEntities = new ArrayList<AdminPermissionQualifiedEntity>(); @Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blAdminSecurity") @BatchSize(size = 50) @AdminPresentationCollection(addType = AddMethodType.LOOKUP, friendlyName = "childPermissionsTitle", order = 1000, manyToField = "allParentPermissions",
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "blProducts") @BatchSize(size = 50) @AdminPresentationCollection(friendlyName = "skuBundleItemsTitle", sortProperty = "sequence", tab = TabName.General)
@AdminPresentationCollection(addType = AddMethodType.PERSIST, friendlyName = "OrderItemPriceDetailImpl_orderItemPriceDetailAdjustments") protected List<OrderItemPriceDetailAdjustment> orderItemPriceDetailAdjustments = new ArrayList<OrderItemPriceDetailAdjustment>();
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements") @BatchSize(size = 50) @AdminPresentationCollection(friendlyName = "IndexFieldImpl_fieldTypes", order = 1000) protected List<IndexFieldType> fieldTypes = new ArrayList<>();
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blAdminSecurityVolatile") @BatchSize(size = 50) @AdminPresentationCollection(friendlyName = "roleListTitle", group = GroupName.RolesAndPermissions, order = FieldOrder.ROLES, addType = AddMethodType.LOOKUP, @Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blAdminSecurityVolatile") @BatchSize(size = 50) @AdminPresentationCollection(friendlyName = "permissionListTitle", group = GroupName.RolesAndPermissions, order = FieldOrder.PERMISSIONS, addType = AddMethodType.LOOKUP,