summaryrefslogblamecommitdiffstats
path: root/src/main/java/de/bwlehrpool/bwlp_guac/GroupField.java
blob: 0e9c27b0e9fc6a80d8046fead51cf2604d48251a (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                  


                            
                                            
   
                                       
 

                                

     


                                                                        

     
package de.bwlehrpool.bwlp_guac;

import org.apache.guacamole.GuacamoleException;
import org.apache.guacamole.form.Field;
import org.codehaus.jackson.annotate.JsonProperty;
import java.util.Collection;

/**
 * Field which lets the user select a group.
 */
public class GroupField extends Field {

    public GroupField() {
        super("group", "GROUP");
    }

    @JsonProperty("groups")
    public Collection<JsonGroup> getGroups() throws GuacamoleException {
        return ConnectionManager.getGroupPool().values();
    }
}