summaryrefslogblamecommitdiffstats
path: root/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java
blob: ea81a452af0f56a9e18440a09aaf482edd0035b5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                           
                                                                           









                                                                                      
                                    


         
package org.openslx.bwlp.sat.thrift.cache;

import java.util.List;

import org.apache.thrift.TException;
import org.openslx.bwlp.thrift.iface.OperatingSystem;
import org.openslx.thrifthelper.ThriftManager;

/**
 * Holds the list of all known organizations. The list is synchronized with
 * the master server.
 */
public class OperatingSystemList extends CacheBase<List<OperatingSystem>> {

	private static final OperatingSystemList instance = new OperatingSystemList();

	public static List<OperatingSystem> get() {
		return instance.getInternal();
	}

	@Override
	protected List<OperatingSystem> getCallback() throws TException {
		return ThriftManager.getMasterClient().getOperatingSystems();
		// TODO: Store in DB
	}

}