com.freedomotic.things.ThingRepository Maven / Gradle / Ivy
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.freedomotic.things;
import com.freedomotic.environment.EnvironmentLogic;
import com.freedomotic.exceptions.RepositoryException;
import com.freedomotic.persistence.Repository;
import java.io.File;
import java.util.List;
/**
*
* @author enrico
*/
public interface ThingRepository extends Repository {
public List findByEnvironment(EnvironmentLogic env);
public List findByEnvironment(String uuid);
public List findByProtocol(String protocolName);
//TODO: should return a single element, done this way for backward compatibility
public List findByAddress(String protocol, String address);
//TODO: temporary for refactoring, should be removed
public EnvObjectLogic load(File file) throws RepositoryException;
public List loadAll(File folder) throws RepositoryException;
public void saveAll(File folder) throws RepositoryException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy