PlatformSettings
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.mayocat.configuration.PlatformSettings(Showing top 4 results out of 315)

origin: jvelo/mayocat-shop

  private Optional<AddonGroupDefinition> findGroupDefinition(String groupName)
  {
    // First, find it in platform (has priority)

    if (platformSettings.getAddons().containsKey(groupName)) {
      return Optional.of(platformSettings.getAddons().get(groupName));
    }

    // Then, in theme
    if (context.getTheme() != null && context.getTheme().getDefinition() != null &&
        context.getTheme().getDefinition().getAddons().containsKey(groupName))
    {
      return Optional.of(context.getTheme().getDefinition().getAddons().get(groupName));
    }

    return Optional.absent();
  }
}
origin: jvelo/mayocat-shop

AddonGroup addonGroup = addons.get(groupName);
Map<String, AddonGroupDefinition>[] sources = new Map[2];
sources[0] = platformSettings.getAddons();
if (webContext.getTheme() != null) {
  sources[1] = webContext.getTheme().getDefinition().getAddons();
origin: jvelo/mayocat-shop

@Override
public Object get()
{
  Map<String, Map<String, Object>> entities = Maps.newLinkedHashMap();
  for (EntityMeta meta : entityMetaRegistry.getEntities()) {
    Map data = Maps.newHashMap();
    entities.put(meta.getEntityName(), data);
  }
  Theme theme = context.getTheme();
  if (theme != null) {
    addAddons(entities, theme.getDefinition().getAddons(), AddonSource.THEME);
    addModels(entities, theme.getDefinition().getModels());
    addImageFormats(entities, theme.getDefinition().getImageFormats(), AddonSource.THEME);
    addTypes(entities, theme.getDefinition().getProductTypes());
  }
  addAddons(entities, platformSettings.getAddons(), AddonSource.PLATFORM);
  addImageFormats(entities, platformSettings.getImages(), AddonSource.PLATFORM);
  addModels(entities, platformSettings.getModels());
  for (String entity : entities.keySet()) {
    for (EntityConfigurationContributor contributor : contributors.values()) {
      if (contributor.contributesTo().equals(entity)) {
        contributor.contribute(entities.get(entity));
      }
    }
  }
  return entities;
}
origin: jvelo/mayocat-shop

addonsMapping.put("properties", properties);
for (String groupKey : platformSettings.getAddons().keySet()) {
  AddonGroupDefinition group = platformSettings.getAddons().get(groupKey);
org.mayocat.configurationPlatformSettings

Most used methods

  • getAddons
  • getImages
  • getModels

Popular classes and methods

  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • BorderLayout (java.awt)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • Thread (java.lang)
    A Thread is a concurrent unit of execution. It has its own call stack for methods being invoked, the
  • URL (java.net)
    Class URL represents a Uniform Resource Locator, a pointer to a "resource" on the World Wide Web.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)