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 StringgetCreationTimeStamp()The time stamp that this graph was created (if known).UsergetCreator()The user who created this graph (if known).StringgetDescription()A human-readable description of the graph (in the user's preferred language).StringgetGraphQlTypeName()GraphTypegetGraphType()The type of this (master) graph, e.g.StringgetId()The ID of the master graph, as derived from the URI, e.g.BooleangetIsPublished()True if the asset collection has been published.StringgetLabel()A human-readable display label.StringgetLastChangeTimeStamp()Gets the time stamp of the most recent known change.UsergetLastChangeUser()Returns the user who did the most recent known change._ResourcegetMainClass()The main class, if one has been assigned.List<Graph>getOwlImports()StringgetPermission()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 MasterGraphIDgetUri()The URI of the resource.List<WorkflowGraph>getWorkflowGraph()Links a master graph to the workflow graphs that the current user can access.MasterGraphsetCreationTimeStamp(String arg)MasterGraphsetCreator(User arg)MasterGraphsetDescription(String arg)MasterGraphsetGraphType(GraphType arg)MasterGraphsetId(String arg)MasterGraphsetIsPublished(Boolean arg)MasterGraphsetLabel(String arg)MasterGraphsetLastChangeTimeStamp(String arg)MasterGraphsetLastChangeUser(User arg)MasterGraphsetMainClass(_Resource arg)MasterGraphsetOwlImports(List<Graph> arg)MasterGraphsetPermission(String arg)MasterGraphsetResults(List<_ValidationResult> arg)MasterGraphsetSubjectAreas(List<_Resource> arg)MasterGraphsetType(List<_Resource> arg)MasterGraphsetUri(ID arg)MasterGraphsetWorkflowGraph(List<WorkflowGraph> arg)booleanunwrapsToObject(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:
unwrapsToObjectin classAbstractResponse<MasterGraph>
-
-