public class VertexImport extends Object implements com.v5analytics.webster.ParameterizedHandler
| Constructor and Description |
|---|
VertexImport(org.vertexium.Graph graph,
FileImport fileImport,
WorkspaceRepository workspaceRepository,
VisibilityTranslator visibilityTranslator,
WorkspaceHelper workspaceHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConceptIdToFilesList(List<FileImport.FileOptions> files,
int index,
String conceptId) |
protected void |
addFileToFilesList(List<FileImport.FileOptions> files,
int index,
File file) |
protected void |
addPropertiesToFilesList(List<FileImport.FileOptions> files,
int index,
org.visallo.web.clientapi.model.ClientApiImportProperty[] properties) |
protected void |
addVisibilityToFilesList(List<FileImport.FileOptions> files,
int index,
String visibilitySource) |
protected org.visallo.web.clientapi.model.ClientApiImportProperty[] |
convertPropertiesStringToClientApiImportProperties(String propertiesString) |
protected org.vertexium.Authorizations |
getAuthorizations() |
protected static String |
getFilename(javax.servlet.http.Part part) |
protected List<FileImport.FileOptions> |
getFiles(javax.servlet.http.HttpServletRequest request,
File tempDir,
ResourceBundle resourceBundle,
org.vertexium.Authorizations authorizations,
User user) |
org.vertexium.Graph |
getGraph() |
org.visallo.web.clientapi.model.ClientApiArtifactImportResponse |
handle(boolean shouldPublish,
boolean addToWorkspace,
boolean findExistingByFileHash,
String workspaceId,
org.vertexium.Authorizations authorizations,
User user,
ResourceBundle resourceBundle,
javax.servlet.http.HttpServletRequest request) |
protected org.visallo.web.clientapi.model.ClientApiArtifactImportResponse |
toArtifactImportResponse(List<org.vertexium.Vertex> vertices) |
@Inject
public VertexImport(org.vertexium.Graph graph,
FileImport fileImport,
WorkspaceRepository workspaceRepository,
VisibilityTranslator visibilityTranslator,
WorkspaceHelper workspaceHelper)
protected static String getFilename(javax.servlet.http.Part part)
public org.visallo.web.clientapi.model.ClientApiArtifactImportResponse handle(boolean shouldPublish,
boolean addToWorkspace,
boolean findExistingByFileHash,
String workspaceId,
org.vertexium.Authorizations authorizations,
User user,
ResourceBundle resourceBundle,
javax.servlet.http.HttpServletRequest request)
throws Exception
Exceptionprotected org.visallo.web.clientapi.model.ClientApiArtifactImportResponse toArtifactImportResponse(List<org.vertexium.Vertex> vertices)
protected List<FileImport.FileOptions> getFiles(javax.servlet.http.HttpServletRequest request, File tempDir, ResourceBundle resourceBundle, org.vertexium.Authorizations authorizations, User user) throws Exception
Exceptionprotected org.visallo.web.clientapi.model.ClientApiImportProperty[] convertPropertiesStringToClientApiImportProperties(String propertiesString) throws Exception
Exceptionprotected void addPropertiesToFilesList(List<FileImport.FileOptions> files, int index, org.visallo.web.clientapi.model.ClientApiImportProperty[] properties)
protected void addConceptIdToFilesList(List<FileImport.FileOptions> files, int index, String conceptId)
protected void addVisibilityToFilesList(List<FileImport.FileOptions> files, int index, String visibilitySource)
protected void addFileToFilesList(List<FileImport.FileOptions> files, int index, File file)
public org.vertexium.Graph getGraph()
protected org.vertexium.Authorizations getAuthorizations()
Copyright © 2013–2016 V5 Analytics. All rights reserved.