Class DiscriminatedProperties<P>

java.lang.Object
com.broadleafcommerce.fulfillment.properties.DiscriminatedProperties<P>
Type Parameters:
P -

public abstract class DiscriminatedProperties<P> extends Object
Mechanism to allow us to specify fulfillment properties defined for different tenants and/or applications.
Author:
Kelly Tisdell (ktisdell)
  • Constructor Details

    • DiscriminatedProperties

      public DiscriminatedProperties()
  • Method Details

    • getField

      protected <T> T getField(String fieldName, @Nullable String applicationId, @Nullable String tenantId)
      Looks for a property based first on the applicaionId and then the tenantId and then with no discrimination.
      Type Parameters:
      T -
      Parameters:
      fieldName -
      applicationId -
      tenantId -
      Returns:
    • getField

      protected <T> T getField(String fieldName, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • getApplication

      public Map<String,P> getApplication()
    • setApplication

      public void setApplication(Map<String,P> application)
    • getTenant

      public Map<String,P> getTenant()
    • setTenant

      public void setTenant(Map<String,P> tenant)