All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.visallo.web.clientapi.model.ClientApiWorkspaceUpdateData Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package org.visallo.web.clientapi.model;

import java.util.ArrayList;
import java.util.List;

public class ClientApiWorkspaceUpdateData implements ClientApiObject {
    private String title;
    private List entityUpdates = new ArrayList();
    private List entityDeletes = new ArrayList();
    private List userUpdates = new ArrayList();
    private List userDeletes = new ArrayList();

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List getEntityUpdates() {
        return entityUpdates;
    }

    public List getEntityDeletes() {
        return entityDeletes;
    }

    public List getUserDeletes() {
        return userDeletes;
    }

    public List getUserUpdates() {
        return userUpdates;
    }

    public static class EntityUpdate {
        private String vertexId;
        private GraphPosition graphPosition;
        private String graphLayoutJson;

        public EntityUpdate() {

        }

        public EntityUpdate(String vertexId, GraphPosition graphPosition) {
            this.vertexId = vertexId;
            this.graphPosition = graphPosition;
        }

        public String getVertexId() {
            return vertexId;
        }

        public EntityUpdate setVertexId(String vertexId) {
            this.vertexId = vertexId;
            return this;
        }

        public GraphPosition getGraphPosition() {
            return graphPosition;
        }

        public EntityUpdate setGraphPosition(GraphPosition graphPosition) {
            this.graphPosition = graphPosition;
            return this;
        }

        public String getGraphLayoutJson() {
            return graphLayoutJson;
        }

        public EntityUpdate setGraphLayoutJson(String graphLayoutJson) {
            this.graphLayoutJson = graphLayoutJson;
            return this;
        }
    }

    public static class UserUpdate {
        private String userId;
        private WorkspaceAccess access;

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public WorkspaceAccess getAccess() {
            return access;
        }

        public void setAccess(WorkspaceAccess access) {
            this.access = access;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy