/*****************************************************************************************
Infosistema - OpenBaas
Copyright(C) 2002-2014 Infosistema, S.A.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
www.infosistema.com
info@openbaas.com
Av. José Gomes Ferreira, 11 3rd floor, s.34
Miraflores
1495-139 Algés Portugal
****************************************************************************************/
package infosistema.openbaas.dataaccess.files;
import infosistema.openbaas.data.enums.ModelEnum;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
public class FtpModel implements FileInterface {
private static FtpModel instance;
public static FtpModel getInstance() {
if (instance == null) instance = new FtpModel();
return instance;
}
private FtpModel() {
}
// *** CREATE *** //
@Override
public boolean createApp(String appId) throws Exception {
//TODO
return true;
}
// *** UPLOAD *** //
@Override
public String upload(String appId, ModelEnum type, String id, String extension, InputStream stream) throws Exception {
//TODO
return null;
}
// *** DOWNLOAD *** //
@Override
public byte[] download(String appId, ModelEnum type, String id, String extension, String quality, String bars) throws IOException {
//TODO
return null;
}
// *** DETETE *** //
@Override
public boolean deleteFile(String appId, ModelEnum type, String id, String extension) {
//TODO
return false;
}
@Override
public Boolean delFilesResolution(String appId, ModelEnum type, List<String> filesRes) {
// TODO
return null;
}
}