package io.xpipe.ext.base;

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

public interface GroupStore<T extends DataStore> extends DataStore {

    DataStoreEntryRef<? extends T> getParent();

    @Override
    default void checkComplete() throws Throwable {
        var p = getParent();
        if (p != null) {
            p.checkComplete();
        }
    }
}
