com.bagri.server.hazelcast.task.doc.CollectionsProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bagri-server-hazelcast Show documentation
Show all versions of bagri-server-hazelcast Show documentation
Bagri DB Cache: Hazelcast implementation
The newest version!
package com.bagri.server.hazelcast.task.doc;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
import com.bagri.core.api.DocumentManagement;
import com.bagri.core.api.SchemaRepository;
import com.bagri.core.system.Permission;
import com.hazelcast.spring.context.SpringAware;
@SpringAware
public class CollectionsProvider extends com.bagri.client.hazelcast.task.doc.CollectionsProvider {
private transient DocumentManagement docMgr;
@Autowired
@Override
public void setRepository(SchemaRepository repo) {
super.setRepository(repo);
this.docMgr = repo.getDocumentManagement();
}
@Override
public Collection call() throws Exception {
checkPermission(Permission.Value.read);
return docMgr.getCollections();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy