Class SimpleSetupResourceService

java.lang.Object
net.solarnetwork.node.setup.SimpleSetupResourceService
All Implemented Interfaces:
SetupResourceService

public class SimpleSetupResourceService extends Object implements SetupResourceService
Basic implementation of SetupResourceService.
Version:
1.0
Author:
matt
  • Constructor Details

    • SimpleSetupResourceService

      public SimpleSetupResourceService()
      Default constructor.
  • Method Details

    • getSetupResource

      public SetupResource getSetupResource(String resourceUID, Locale locale)
      Description copied from interface: SetupResourceService
      Get a specific resource for a resource UID.
      Specified by:
      getSetupResource in interface SetupResourceService
      Parameters:
      resourceUID - The ID of the resource to get.
      locale - The desired locale.
      Returns:
      The resource, or null if not available.
    • getSetupResourcesForConsumer

      public Collection<SetupResource> getSetupResourcesForConsumer(String consumerType, Locale locale)
      Description copied from interface: SetupResourceService
      Get a set of resources for a specific consumer type.
      Specified by:
      getSetupResourcesForConsumer in interface SetupResourceService
      Parameters:
      consumerType - The consumer type to get resources for.
      locale - The desired locale.
      Returns:
      All matching resources, never null.
    • getSetupResourceProviders

      public Collection<SetupResourceProvider> getSetupResourceProviders()
      Get the setup resource providers.
      Returns:
      the providers
    • setSetupResourceProviders

      public void setSetupResourceProviders(Collection<SetupResourceProvider> setupResourceProviders)
      Set the setup resource providers.
      Parameters:
      setupResourceProviders - the providers to set