Search in sources :

Example 1 with ViewAdapter

use of io.lumeer.core.adapter.ViewAdapter in project engine by Lumeer.

the class PusherFacade method init.

@PostConstruct
public void init() {
    constraintManager = ConstraintManager.getInstance(configurationProducer);
    pusherClient = pusherHelperFacade.getPusherClient();
    permissionAdapter = permissionsChecker.getPermissionAdapter();
    collectionAdapter = new CollectionAdapter(collectionDao, favoriteItemDao, documentDao);
    resourceAdapter = new ResourceAdapter(permissionAdapter, collectionDao, linkTypeDao, viewDao, userDao);
    linkTypeAdapter = new LinkTypeAdapter(linkTypeDao, linkInstanceDao);
    viewAdapter = new ViewAdapter(resourceAdapter, favoriteItemDao);
    resourceVariableAdapter = new ResourceVariableAdapter();
    documentAdapter = new DocumentAdapter(resourceCommentDao, favoriteItemDao);
    linkInstanceAdapter = new LinkInstanceAdapter(resourceCommentDao);
    pusherAdapter = new PusherAdapter(getAppId(), getFacadeAdapter(), resourceAdapter, permissionAdapter, viewDao, linkTypeDao, collectionDao);
}
Also used : LinkInstanceAdapter(io.lumeer.core.adapter.LinkInstanceAdapter) PusherAdapter(io.lumeer.core.adapter.PusherAdapter) ResourceAdapter(io.lumeer.core.adapter.ResourceAdapter) DocumentAdapter(io.lumeer.core.adapter.DocumentAdapter) ResourceVariableAdapter(io.lumeer.core.adapter.ResourceVariableAdapter) CollectionAdapter(io.lumeer.core.adapter.CollectionAdapter) LinkTypeAdapter(io.lumeer.core.adapter.LinkTypeAdapter) ViewAdapter(io.lumeer.core.adapter.ViewAdapter) PostConstruct(javax.annotation.PostConstruct)

Example 2 with ViewAdapter

use of io.lumeer.core.adapter.ViewAdapter in project engine by Lumeer.

the class AbstractContextualTask method initialize.

@Override
public ContextualTask initialize(final User initiator, final DaoContextSnapshot daoContextSnapshot, final PusherClient pusherClient, final LumeerS3Client lumeerS3Client, final RequestDataKeeper requestDataKeeper, final ConstraintManager constraintManager, DefaultConfigurationProducer.DeployEnvironment environment, final int recursionDepth) {
    this.initiator = initiator;
    this.daoContextSnapshot = daoContextSnapshot;
    this.pusherClient = pusherClient;
    this.lumeerS3Client = lumeerS3Client;
    this.requestDataKeeper = requestDataKeeper;
    this.constraintManager = constraintManager;
    this.environment = environment;
    this.timeZone = requestDataKeeper.getTimezone();
    this.recursionDepth = recursionDepth;
    collectionAdapter = new CollectionAdapter(daoContextSnapshot.getCollectionDao(), daoContextSnapshot.getFavoriteItemDao(), daoContextSnapshot.getDocumentDao());
    permissionAdapter = new PermissionAdapter(daoContextSnapshot.getUserDao(), daoContextSnapshot.getGroupDao(), daoContextSnapshot.getViewDao(), daoContextSnapshot.getLinkTypeDao(), daoContextSnapshot.getCollectionDao());
    resourceAdapter = new ResourceAdapter(permissionAdapter, daoContextSnapshot.getCollectionDao(), daoContextSnapshot.getLinkTypeDao(), daoContextSnapshot.getViewDao(), daoContextSnapshot.getUserDao());
    viewAdapter = new ViewAdapter(resourceAdapter, daoContextSnapshot.getFavoriteItemDao());
    documentAdapter = new DocumentAdapter(daoContextSnapshot.getResourceCommentDao(), daoContextSnapshot.getFavoriteItemDao());
    linkTypeAdapter = new LinkTypeAdapter(daoContextSnapshot.getLinkTypeDao(), daoContextSnapshot.getLinkInstanceDao());
    linkInstanceAdapter = new LinkInstanceAdapter(daoContextSnapshot.getResourceCommentDao());
    pusherAdapter = new PusherAdapter(getAppId(), new FacadeAdapter(permissionAdapter), resourceAdapter, permissionAdapter, daoContextSnapshot.getViewDao(), daoContextSnapshot.getLinkTypeDao(), daoContextSnapshot.getCollectionDao());
    fileAttachmentAdapter = new FileAttachmentAdapter(getLumeerS3Client(), daoContextSnapshot.getFileAttachmentDao(), environment.name());
    return this;
}
Also used : LinkInstanceAdapter(io.lumeer.core.adapter.LinkInstanceAdapter) PusherAdapter(io.lumeer.core.adapter.PusherAdapter) FileAttachmentAdapter(io.lumeer.core.adapter.FileAttachmentAdapter) ResourceAdapter(io.lumeer.core.adapter.ResourceAdapter) DocumentAdapter(io.lumeer.core.adapter.DocumentAdapter) FacadeAdapter(io.lumeer.core.adapter.FacadeAdapter) CollectionAdapter(io.lumeer.core.adapter.CollectionAdapter) ViewAdapter(io.lumeer.core.adapter.ViewAdapter) LinkTypeAdapter(io.lumeer.core.adapter.LinkTypeAdapter) PermissionAdapter(io.lumeer.core.adapter.PermissionAdapter)

Example 3 with ViewAdapter

use of io.lumeer.core.adapter.ViewAdapter in project engine by Lumeer.

the class ViewFacade method init.

@PostConstruct
public void init() {
    resourceAdapter = new ResourceAdapter(permissionsChecker.getPermissionAdapter(), collectionDao, linkTypeDao, viewDao, userDao);
    adapter = new ViewAdapter(resourceAdapter, favoriteItemDao);
}
Also used : ResourceAdapter(io.lumeer.core.adapter.ResourceAdapter) ViewAdapter(io.lumeer.core.adapter.ViewAdapter) PostConstruct(javax.annotation.PostConstruct)

Aggregations

ResourceAdapter (io.lumeer.core.adapter.ResourceAdapter)3 ViewAdapter (io.lumeer.core.adapter.ViewAdapter)3 CollectionAdapter (io.lumeer.core.adapter.CollectionAdapter)2 DocumentAdapter (io.lumeer.core.adapter.DocumentAdapter)2 LinkInstanceAdapter (io.lumeer.core.adapter.LinkInstanceAdapter)2 LinkTypeAdapter (io.lumeer.core.adapter.LinkTypeAdapter)2 PusherAdapter (io.lumeer.core.adapter.PusherAdapter)2 PostConstruct (javax.annotation.PostConstruct)2 FacadeAdapter (io.lumeer.core.adapter.FacadeAdapter)1 FileAttachmentAdapter (io.lumeer.core.adapter.FileAttachmentAdapter)1 PermissionAdapter (io.lumeer.core.adapter.PermissionAdapter)1 ResourceVariableAdapter (io.lumeer.core.adapter.ResourceVariableAdapter)1