summaryrefslogblamecommitdiffstats
path: root/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/SupportedFeatures.java
blob: a454fc218c7599edeaf7f86eea016273ff20e936 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                       




                                                              
                                                       



                                                                                                      














                                                                  
package org.openslx.bwlp.sat;

import org.openslx.sat.thrift.version.Feature;

public class SupportedFeatures {

	private static String supportedFeatures = null;

	static {
		registerFeature(Feature.EXTEND_EXPIRED_VM);
		registerFeature(Feature.NETWORK_SHARES);
		registerFeature(Feature.MULTIPLE_HYPERVISORS);
		registerFeature(Feature.SERVER_SIDE_COPY);
		registerFeature(Feature.LECTURE_FILTER_LDAP);
		registerFeature(Feature.CONFIGURE_USB);
		// TODO Docker Container currently not as a release Feature. Needs Update of Database.
		// Enable Feature by adding ("docker", "Docker") to virtualizer table
		// and rebuild Server with enabled Feature and replace jar on Sat.
//		registerFeature(Feature.DOCKER_CONTAINER);
	}

	public static String getFeatureString() {
		return supportedFeatures;
	}

	private static void registerFeature(Feature feature) {
		if (supportedFeatures == null) {
			supportedFeatures = feature.name();
		} else {
			supportedFeatures += " " + feature.name();
		}
	}

}