本文整理了Java中org.visallo.core.model.workspace.WorkspaceRepository.updateEntityOnWorkspace()
方法的一些代码示例,展示了WorkspaceRepository.updateEntityOnWorkspace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkspaceRepository.updateEntityOnWorkspace()
方法的具体详情如下:
包路径:org.visallo.core.model.workspace.WorkspaceRepository
类名称:WorkspaceRepository
方法名:updateEntityOnWorkspace
暂无
代码示例来源:origin: org.visallo/visallo-core
public void updateEntityOnWorkspace(
String workspaceId,
String vertexId,
User user
) {
Workspace workspace = findById(workspaceId, user);
updateEntityOnWorkspace(workspace, vertexId, user);
}
代码示例来源:origin: org.visallo/visallo-common-rdf
protected void addVertexToWorkspaceIfNeeded(GraphPropertyWorkData data, Vertex vertex, User user) {
if (data.getWorkspaceId() == null) {
return;
}
graph.flush();
workspaceRepository.updateEntityOnWorkspace(data.getWorkspaceId(), vertex.getId(), user);
}
代码示例来源:origin: org.visallo/visallo-core
Edge edge = (Edge) e;
workspaceRepository.updateEntityOnWorkspace(
workspaceId,
edge.getVertexId(Direction.IN),
user
);
workspaceRepository.updateEntityOnWorkspace(
workspaceId,
edge.getVertexId(Direction.OUT),
} else if (e instanceof Vertex) {
workspaceRepository.updateEntityOnWorkspace(workspaceId, e.getId(), user);
} else {
throw new VisalloException("element is not an edge or vertex: " + e);
代码示例来源:origin: org.visallo/visallo-core
protected void addVertexToWorkspaceIfNeeded(GraphPropertyWorkData data, Vertex vertex) {
if (data.getWorkspaceId() == null) {
return;
}
graph.flush();
getWorkspaceRepository().updateEntityOnWorkspace(data.getWorkspaceId(), vertex.getId(), getUser());
}
代码示例来源:origin: org.visallo/visallo-web
workspaceRepository.updateEntityOnWorkspace(workspaceId, graphEdge.getVertexId(Direction.IN), user);
workspaceRepository.updateEntityOnWorkspace(workspaceId, graphEdge.getVertexId(Direction.OUT), user);
代码示例来源:origin: org.visallo/visallo-web
workspaceRepository.updateEntityOnWorkspace(workspaceId, edge.getVertexId(Direction.IN), user);
workspaceRepository.updateEntityOnWorkspace(workspaceId, edge.getVertexId(Direction.OUT), user);
代码示例来源:origin: org.visallo/visallo-web
this.workspaceRepository.updateEntityOnWorkspace(workspace, artifactVertex.getId(), user);
this.workspaceRepository.updateEntityOnWorkspace(workspace, entityVertex.getId(), user);
代码示例来源:origin: org.visallo/visallo-core
);
if (workspace != null) {
workspaceRepository.updateEntityOnWorkspace(
workspace,
vertex.getId(),
workspaceRepository.updateEntityOnWorkspace(workspace, vertex.getId(), user);
workspaceId = workspace.getWorkspaceId();
代码示例来源:origin: org.visallo/visallo-web
workspaceRepository.updateEntityOnWorkspace(workspaceId, edge.getVertexId(Direction.IN), user);
workspaceRepository.updateEntityOnWorkspace(workspaceId, edge.getVertexId(Direction.OUT), user);
代码示例来源:origin: org.visallo/visallo-core
workspaceRepository.updateEntityOnWorkspace(workspaceId, edge.getVertexId(Direction.IN), user);
workspaceRepository.updateEntityOnWorkspace(workspaceId, edge.getVertexId(Direction.OUT), user);
代码示例来源:origin: org.visallo/visallo-web
workspaceRepository.updateEntityOnWorkspace(workspaceId, graphVertexId, user);
代码示例来源:origin: org.visallo/visallo-web
workspaceRepository.updateEntityOnWorkspace(workspaceId, graphVertexId, user);
代码示例来源:origin: org.visallo/visallo-web
ClientApiSourceInfo sourceInfo = ClientApiSourceInfo.fromString(sourceInfoString);
termMentionRepository.addJustification(resolvedVertex, justificationText, sourceInfo, visalloVisibility, authorizations);
workspaceRepository.updateEntityOnWorkspace(workspace, resolvedVertex.getId(), user);
代码示例来源:origin: org.visallo/visallo-core
workspaceRepository.updateEntityOnWorkspace(workspaceId, vertex.getId(), user);
代码示例来源:origin: org.visallo/visallo-core-test
private void doTestPublishVertexAdd(String conceptIri, String expectedError, SandboxStatus expectedConceptStatus) {
Authorizations authorizations = getAuthorizationRepository().getGraphAuthorizations(user, workspace.getWorkspaceId());
Vertex vertex = getGraphRepository().addVertex("junit-vertex", conceptIri, "", workspace.getWorkspaceId(), null, null, user, authorizations);
getWorkspaceRepository().updateEntityOnWorkspace(workspace, vertex.getId(), user);
ClientApiVertexPublishItem publishItem = new ClientApiVertexPublishItem();
publishItem.setVertexId(vertex.getId());
publishItem.setAction(ClientApiPublishItem.Action.ADD_OR_UPDATE);
ClientApiWorkspacePublishResponse response = getWorkspaceRepository().publish(new ClientApiPublishItem[]{publishItem}, user, workspace.getWorkspaceId(), authorizations);
if (expectedError != null) {
assertPublishFailure(response, workspace, getGraph().getVertex(vertex.getId(), authorizations), expectedError);
} else {
assertPublishSuccess(response, workspace, getGraph().getVertex(vertex.getId(), authorizations));
}
if (expectedConceptStatus != null) {
Concept concept = getOntologyRepository().getConceptByIRI(conceptIri, workspace.getWorkspaceId());
assertEquals(expectedConceptStatus, concept.getSandboxStatus());
}
}
代码示例来源:origin: org.visallo/visallo-core-test
private void doTestPublishPropertyAdd(String propertyName, String expectedError, SandboxStatus expectedEdgeStatus) {
User systemUser = getUserRepository().getSystemUser();
Authorizations systemAuthorizations = getAuthorizationRepository().getGraphAuthorizations(systemUser);
Vertex vertex = getGraphRepository().addVertex("v1", JUNIT_CONCEPT_TYPE, "", null, null, null, systemUser, systemAuthorizations);
getWorkspaceRepository().updateEntityOnWorkspace(workspace, vertex.getId(), user);
String propertyKey = "junit";
VisibilityAndElementMutation<Vertex> setPropertyMutation = getGraphRepository().setProperty(vertex, propertyName, propertyKey, "new value", new Metadata(), "", "", workspace.getWorkspaceId(), null, null, user, workspaceAuthorizations);
setPropertyMutation.elementMutation.save(workspaceAuthorizations);
ClientApiPropertyPublishItem publishItem = new ClientApiPropertyPublishItem();
publishItem.setVertexId(vertex.getId());
publishItem.setName(propertyName);
publishItem.setKey(propertyKey);
publishItem.setAction(ClientApiPublishItem.Action.ADD_OR_UPDATE);
ClientApiWorkspacePublishResponse response = getWorkspaceRepository().publish(new ClientApiPublishItem[]{publishItem}, user, workspace.getWorkspaceId(), workspaceAuthorizations);
Property property = getGraph().getVertex(vertex.getId(), workspaceAuthorizations).getProperty(propertyKey, propertyName);
if (expectedError != null) {
assertPublishFailure(response, workspace, property, expectedError);
} else {
assertPublishSuccess(response, workspace, property);
}
if (expectedEdgeStatus != null) {
OntologyProperty ontologyProperty = getOntologyRepository().getPropertyByIRI(propertyName, workspace.getWorkspaceId());
assertEquals(expectedEdgeStatus, ontologyProperty.getSandboxStatus());
}
}
代码示例来源:origin: org.visallo/visallo-web
workspaceRepository.updateEntityOnWorkspace(workspace, vertex.getId(), user);
代码示例来源:origin: org.visallo/visallo-web
workspaceRepository.updateEntityOnWorkspace(workspaceId, vertex.getId(), user);
内容来源于网络,如有侵权,请联系作者删除!