package io.xpipe.ext.base.service;

import io.xpipe.app.storage.DataStoreEntry;
import io.xpipe.core.store.DataStore;

import java.util.List;

public class FixedServiceGroupStoreProvider extends AbstractServiceGroupStoreProvider {

    @Override
    public DataStore defaultStore() {
        return FixedServiceGroupStore.builder().build();
    }

    @Override
    public DataStoreEntry getDisplayParent(DataStoreEntry store) {
        FixedServiceGroupStore s = store.getStore().asNeeded();
        return s.getParent().get();
    }

    @Override
    public List<String> getPossibleNames() {
        return List.of("fixedServiceGroup");
    }

    @Override
    public List<Class<?>> getStoreClasses() {
        return List.of(FixedServiceGroupStore.class);
    }
}
