package de.bwlehrpool.bwlp_guac; import org.apache.guacamole.GuacamoleException; import org.apache.guacamole.form.Field; import org.codehaus.jackson.annotate.JsonProperty; import org.codehaus.jackson.map.ObjectMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.util.Collection; /** * Field which lets the user select a location. */ public class LocationField extends Field { public LocationField() { super("location", "LOCATION"); } @JsonProperty("locations") public Collection getLocations() throws GuacamoleException { return ConnectionManager.getLocationPool().values(); } }