Search in sources :

Example 1 with FacadeAdapter

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

Aggregations

CollectionAdapter (io.lumeer.core.adapter.CollectionAdapter)1 DocumentAdapter (io.lumeer.core.adapter.DocumentAdapter)1 FacadeAdapter (io.lumeer.core.adapter.FacadeAdapter)1 FileAttachmentAdapter (io.lumeer.core.adapter.FileAttachmentAdapter)1 LinkInstanceAdapter (io.lumeer.core.adapter.LinkInstanceAdapter)1 LinkTypeAdapter (io.lumeer.core.adapter.LinkTypeAdapter)1 PermissionAdapter (io.lumeer.core.adapter.PermissionAdapter)1 PusherAdapter (io.lumeer.core.adapter.PusherAdapter)1 ResourceAdapter (io.lumeer.core.adapter.ResourceAdapter)1 ViewAdapter (io.lumeer.core.adapter.ViewAdapter)1