Search in sources :

Example 1 with LinkInstanceAdapter

use of io.lumeer.core.adapter.LinkInstanceAdapter 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 LinkInstanceAdapter

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

the class SearchFacade method init.

@PostConstruct
public void init() {
    constraintManager = ConstraintManager.getInstance(configurationProducer);
    language = requestDataKeeper.getUserLanguage();
    timezone = requestDataKeeper.getTimezone();
    documentAdapter = new DocumentAdapter(resourceCommentDao, favoriteItemDao);
    linkInstanceAdapter = new LinkInstanceAdapter(resourceCommentDao);
    searchAdapter = new SearchAdapter(permissionsChecker.getPermissionAdapter(), constraintManager, documentDao, dataDao, linkInstanceDao, linkDataDao);
}
Also used : LinkInstanceAdapter(io.lumeer.core.adapter.LinkInstanceAdapter) SearchAdapter(io.lumeer.core.adapter.SearchAdapter) DocumentAdapter(io.lumeer.core.adapter.DocumentAdapter) PostConstruct(javax.annotation.PostConstruct)

Example 3 with LinkInstanceAdapter

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

the class AuditFacade method init.

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

Example 4 with LinkInstanceAdapter

use of io.lumeer.core.adapter.LinkInstanceAdapter 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 5 with LinkInstanceAdapter

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

the class LinkInstanceFacade method init.

@PostConstruct
public void init() {
    constraintManager = ConstraintManager.getInstance(configurationProducer);
    adapter = new LinkInstanceAdapter(resourceCommentDao);
    linkTypeAdapter = new LinkTypeAdapter(linkTypeDao, linkInstanceDao);
}
Also used : LinkInstanceAdapter(io.lumeer.core.adapter.LinkInstanceAdapter) LinkTypeAdapter(io.lumeer.core.adapter.LinkTypeAdapter) PostConstruct(javax.annotation.PostConstruct)

Aggregations

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