class FileConnection implements ObjectStoreConnection {

    @Override
    public List<String> listEntities(String domainName) {
        DomainStruct domainStruct = getDomainStruct(domainName);
        if (domainStruct == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "domain not found", "listEntities");
        }
        HashMap<String, Entity> entities = domainStruct.getEntities();
        ArrayList<String> list = new ArrayList<>();
        if (entities != null) {
            list.addAll(entities.keySet());
        }
        Collections.sort(list);
        return list;
    }

    public  FileConnection(File rootDir, File quotaDir);

}