Class GreenhouseService


  • public class GreenhouseService
    extends java.lang.Object
    Service for Greenhouse.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean addGreenhouse​(java.lang.String name, java.lang.String description, java.lang.String userToken)
      Add a new greenhouse to the repository.
      Greenhouse getGreenhouse()
      Get a greenhouse from the repository.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GreenhouseService

        public GreenhouseService​(GreenhouseRepository repository)
        Constructor for GreenhouseService.
        Parameters:
        repository - The GreenhouseRepository to use.
    • Method Detail

      • addGreenhouse

        public boolean addGreenhouse​(java.lang.String name,
                                     java.lang.String description,
                                     java.lang.String userToken)
        Add a new greenhouse to the repository.
        Parameters:
        name - The name of the greenhouse.
        description - The description of the greenhouse.
        userToken - The user token of the user.
        Returns:
        The UUID of the greenhouse.