/*
* Copyright (C) 2003-2011 eXo Platform SAS.
*
* 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/>.
*/
package org.etk.storage.core.impl.jcr;
import java.util.List;
import org.etk.service.bar.BarFilter;
import org.etk.service.foo.FooFilter;
import org.etk.service.foo.model.Bar;
import org.etk.service.foo.model.Foo;
import org.etk.storage.api.BarStorage;
import org.etk.storage.api.FooStorage;
/**
* Created by The eXo Platform SAS
* Author : eXoPlatform
* exo@exoplatform.com
* Jul 22, 2011
*/
public class BarStorageImpl implements BarStorage {
private BarStorage barStorage;
@Override
public List<Bar> getBarByFilter(BarFilter barFilter, int offset, int limit) {
return null;
}
@Override
public int getBarByFilterCount(final BarFilter barFilter) {
return 0;
}
@Override
public Bar findById(String id) {
return null;
}
/**
* Sets the FooStorage
* @param storage
*/
public void setStorage(BarStorage storage) {
this.barStorage = storage;
}
private BarStorage getStorage() {
return (barStorage != null ? barStorage : this);
}
@Override
public Bar loadBar(Foo foo) {
return null;
}
@Override
public Bar saveBar(Bar bar) {
// TODO Auto-generated method stub
return null;
}
@Override
public Bar updateBar(Bar existingBar) {
// TODO Auto-generated method stub
return null;
}
@Override
public void deleteBar(Bar existingBar) {
// TODO Auto-generated method stub
}
}