Class MasterGraph
- java.lang.Object
-
- com.shopify.graphql.support.AbstractResponse<MasterGraph>
-
- org.topbraidlive.client.java.graphql.platform.MasterGraph
-
- All Implemented Interfaces:
Serializable
public class MasterGraph extends AbstractResponse<MasterGraph>
A graph managed by TopBraid together with a change history and permission system.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.shopify.graphql.support.AbstractResponse
optimisticData, responseData
-
-
Constructor Summary
Constructors Constructor Description MasterGraph()
MasterGraph(com.google.gson.JsonObject fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCreationTimeStamp()
The time stamp that this graph was created (if known).User
getCreator()
The user who created this graph (if known).String
getDescription()
A human-readable description of the graph (in the user's preferred language).String
getGraphQlTypeName()
GraphType
getGraphType()
The type of this (master) graph, e.g.String
getId()
The ID of the master graph, as derived from the URI, e.g.Boolean
getIsPublished()
True if the asset collection has been published.String
getLabel()
A human-readable display label.String
getLastChangeTimeStamp()
Gets the time stamp of the most recent known change.User
getLastChangeUser()
Returns the user who did the most recent known change._Resource
getMainClass()
The main class, if one has been assigned.List<Graph>
getOwlImports()
String
getPermission()
The permission of the current user, with values: "viewer", "editor" or "manager".List<_ValidationResult>
getResults()
The (validation) results for the surrounding object, e.g.List<_Resource>
getSubjectAreas()
The subject area of a master graph, if one has been assigned.List<_Resource>
getType()
The types of this MasterGraphID
getUri()
The URI of the resource.List<WorkflowGraph>
getWorkflowGraph()
Links a master graph to the workflow graphs that the current user can access.MasterGraph
setCreationTimeStamp(String arg)
MasterGraph
setCreator(User arg)
MasterGraph
setDescription(String arg)
MasterGraph
setGraphType(GraphType arg)
MasterGraph
setId(String arg)
MasterGraph
setIsPublished(Boolean arg)
MasterGraph
setLabel(String arg)
MasterGraph
setLastChangeTimeStamp(String arg)
MasterGraph
setLastChangeUser(User arg)
MasterGraph
setMainClass(_Resource arg)
MasterGraph
setOwlImports(List<Graph> arg)
MasterGraph
setPermission(String arg)
MasterGraph
setResults(List<_ValidationResult> arg)
MasterGraph
setSubjectAreas(List<_Resource> arg)
MasterGraph
setType(List<_Resource> arg)
MasterGraph
setUri(ID arg)
MasterGraph
setWorkflowGraph(List<WorkflowGraph> arg)
boolean
unwrapsToObject(String key)
-
Methods inherited from class com.shopify.graphql.support.AbstractResponse
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAlias
-
-
-
-
Constructor Detail
-
MasterGraph
public MasterGraph()
-
MasterGraph
public MasterGraph(com.google.gson.JsonObject fields) throws SchemaViolationError
- Throws:
SchemaViolationError
-
-
Method Detail
-
getGraphQlTypeName
public String getGraphQlTypeName()
-
getUri
public ID getUri()
The URI of the resource.
-
setUri
public MasterGraph setUri(ID arg)
-
getLabel
public String getLabel()
A human-readable display label.
-
setLabel
public MasterGraph setLabel(String arg)
-
getCreationTimeStamp
public String getCreationTimeStamp()
The time stamp that this graph was created (if known).
-
setCreationTimeStamp
public MasterGraph setCreationTimeStamp(String arg)
-
getCreator
public User getCreator()
The user who created this graph (if known).
-
setCreator
public MasterGraph setCreator(User arg)
-
getDescription
public String getDescription()
A human-readable description of the graph (in the user's preferred language).
-
setDescription
public MasterGraph setDescription(String arg)
-
getGraphType
public GraphType getGraphType()
The type of this (master) graph, e.g. Taxonomy.
-
setGraphType
public MasterGraph setGraphType(GraphType arg)
-
getId
public String getId()
The ID of the master graph, as derived from the URI, e.g. "geo".
-
setId
public MasterGraph setId(String arg)
-
getIsPublished
public Boolean getIsPublished()
True if the asset collection has been published.
-
setIsPublished
public MasterGraph setIsPublished(Boolean arg)
-
getLastChangeTimeStamp
public String getLastChangeTimeStamp()
Gets the time stamp of the most recent known change.
-
setLastChangeTimeStamp
public MasterGraph setLastChangeTimeStamp(String arg)
-
getLastChangeUser
public User getLastChangeUser()
Returns the user who did the most recent known change.
-
setLastChangeUser
public MasterGraph setLastChangeUser(User arg)
-
getMainClass
public _Resource getMainClass()
The main class, if one has been assigned. This is only supported by some graph types such as reference datasets.
-
setMainClass
public MasterGraph setMainClass(_Resource arg)
-
setOwlImports
public MasterGraph setOwlImports(List<Graph> arg)
-
getPermission
public String getPermission()
The permission of the current user, with values: "viewer", "editor" or "manager".
-
setPermission
public MasterGraph setPermission(String arg)
-
getSubjectAreas
public List<_Resource> getSubjectAreas()
The subject area of a master graph, if one has been assigned.
-
setSubjectAreas
public MasterGraph setSubjectAreas(List<_Resource> arg)
-
getWorkflowGraph
public List<WorkflowGraph> getWorkflowGraph()
Links a master graph to the workflow graphs that the current user can access.
-
setWorkflowGraph
public MasterGraph setWorkflowGraph(List<WorkflowGraph> arg)
-
setType
public MasterGraph setType(List<_Resource> arg)
-
getResults
public List<_ValidationResult> getResults()
The (validation) results for the surrounding object, e.g. current constraint violations.
-
setResults
public MasterGraph setResults(List<_ValidationResult> arg)
-
unwrapsToObject
public boolean unwrapsToObject(String key)
- Specified by:
unwrapsToObject
in classAbstractResponse<MasterGraph>
-
-