Package io.lumify.core.model.workspace

Examples of io.lumify.core.model.workspace.Workspace


    protected int run(CommandLine cmd) throws Exception {
        File dataDir = new File(cmd.getOptionValue(CMD_OPT_DATADIR));
        boolean queueDuplicates = cmd.hasOption(CMD_OPT_QUEUE_DUPLICATES);
        String visibilitySource = cmd.getOptionValue(CMD_OPT_VISIBILITY_SOURCE, "");
        String workspaceId = cmd.getOptionValue(CMD_OPT_WORKSPACE_ID, null);
        Workspace workspace;
        if (workspaceId == null) {
            workspace = null;
        } else {
            workspace = workspaceRepository.findById(workspaceId, getUser());
        }
View Full Code Here


        if (getDataImporter().getWorkspacesByGraphId().containsKey(row.getId())) {
            return;
        }

        String id = PALANTIR_WORKSPACE_ID_PREFIX + row.getId();
        Workspace workspace = workspaceRepository.add(id, row.getTitle(), getUser(row));
        getDataImporter().getWorkspacesByGraphId().put(row.getId(), workspace);
    }
View Full Code Here

            if (workspaceId == null) {
                LOGGER.warn("cannot find configuration parameter: %s", SETTING_WORKSPACE_ID);
                return;
            }

            Workspace workspace = this.workspaceRepository.findById(workspaceId, this.userRepository.getSystemUser());
            if (workspace == null) {
                LOGGER.warn("cannot find workspace: %s", workspaceId);
                return;
            }

            this.workspaceRepository.updateUserOnWorkspace(workspace, user.getUserId(), WorkspaceAccess.READ, this.userRepository.getSystemUser());

            this.userRepository.setCurrentWorkspace(user.getUserId(), workspace.getWorkspaceId());
        } catch (Exception ex) {
            LOGGER.error("Could not share workspace", ex);
        }
    }
View Full Code Here

                authorizations);
        auditRepository.auditVertexElementMutation(AuditAction.UPDATE, setPropertyResult.elementMutation, graphVertex, "", user, setPropertyResult.visibility.getVisibility());
        graphVertex = setPropertyResult.elementMutation.save(authorizations);
        graph.flush();

        Workspace workspace = workspaceRepository.findById(workspaceId, user);

        this.workspaceRepository.updateEntityOnWorkspace(workspace, graphVertex.getId(), false, null, user);

        // TODO: use property key from client when we implement multi-valued properties
        this.workQueueRepository.pushGraphPropertyQueue(graphVertex, null, propertyName, workspaceId, visibilitySource);
View Full Code Here

TOP

Related Classes of io.lumify.core.model.workspace.Workspace

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.