
com.xlrit.gears.engine.security.ContentStoreSession Maven / Gradle / Ivy
package com.xlrit.gears.engine.security;
import javax.annotation.Nonnull;
import com.xlrit.gears.base.content.Content;
import com.xlrit.gears.base.content.ContentRef;
import com.xlrit.gears.base.content.ContentStore;
import lombok.RequiredArgsConstructor;
import org.flowable.common.engine.impl.interceptor.Session;
@RequiredArgsConstructor
public class ContentStoreSession implements ContentStore, Session {
private final ContentStore delegate;
@Nonnull
@Override
public Content findContent(String id) {
return delegate.findContent(id);
}
@Nonnull
@Override
public Content findContent(ContentRef contentRef) {
return delegate.findContent(contentRef);
}
@Override
public ContentRef putContent(String filename, String contentType, byte[] data) {
return delegate.putContent(filename, contentType, data);
}
@Override
public void deleteContent(String id) {
delegate.deleteContent(id);
}
@Override
public void flush() {
// nothing to do
}
@Override
public void close() {
// nothing to do
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy