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);
}
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);
}
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);
}
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;
}
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);
}
Aggregations