use of com.storedobject.core.TextContentProducer in project SODevelopment by syampillai.
the class DataTransfer method process.
@Override
protected boolean process() {
if (getObjectClass() == null) {
return true;
}
if (actionField.getValue() == 0) {
TextContentProducer cp = new TextContentProducer() {
@Override
public void generateContent() throws Exception {
Writer w = getWriter();
for (StoredObject so : StoredObject.list(objectClass, where, orderBy, any)) {
so.save(w);
}
}
};
((Application) getApplication()).view(cp);
return true;
}
return true;
}
Aggregations