Class MasterGraphQuery
- java.lang.Object
-
- com.shopify.graphql.support.AbstractQuery<MasterGraphQuery>
-
- org.topbraidlive.client.java.graphql.platform.MasterGraphQuery
-
public class MasterGraphQuery extends AbstractQuery<MasterGraphQuery>
A graph managed by TopBraid together with a change history and permission system.
-
-
Nested Class Summary
-
Field Summary
-
Fields inherited from class com.shopify.graphql.support.AbstractQuery
_queryBuilder, ALIAS_SUFFIX_SEPARATOR, CUSTOM_FIELD_LABEL
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MasterGraphQuery
addFragmentReference(Fragment<MasterGraphQuery> fragment)
Adds aMasterGraphQuery
fragment reference at the current position of the query.static Fragment<MasterGraphQuery>
createFragment(String name, MasterGraphQueryDefinition queryDef)
Creates a GraphQL "named" fragment with the specified query type definition.MasterGraphQuery
creationTimeStamp()
The time stamp that this graph was created (if known).MasterGraphQuery
creationTimeStamp(MasterGraphQuery.CreationTimeStampArgumentsDefinition argsDef)
The time stamp that this graph was created (if known).MasterGraphQuery
creator(MasterGraphQuery.CreatorArgumentsDefinition argsDef, UserQueryDefinition queryDef)
The user who created this graph (if known).MasterGraphQuery
creator(UserQueryDefinition queryDef)
The user who created this graph (if known).MasterGraphQuery
description()
A human-readable description of the graph (in the user's preferred language).MasterGraphQuery
description(MasterGraphQuery.DescriptionArgumentsDefinition argsDef)
A human-readable description of the graph (in the user's preferred language).MasterGraphQuery
graphType(GraphTypeQueryDefinition queryDef)
The type of this (master) graph, e.g.MasterGraphQuery
graphType(MasterGraphQuery.GraphTypeArgumentsDefinition argsDef, GraphTypeQueryDefinition queryDef)
The type of this (master) graph, e.g.MasterGraphQuery
id()
The ID of the master graph, as derived from the URI, e.g.MasterGraphQuery
id(MasterGraphQuery.IdArgumentsDefinition argsDef)
The ID of the master graph, as derived from the URI, e.g.MasterGraphQuery
isPublished()
True if the asset collection has been published.MasterGraphQuery
isPublished(MasterGraphQuery.IsPublishedArgumentsDefinition argsDef)
True if the asset collection has been published.MasterGraphQuery
label()
A human-readable display label.MasterGraphQuery
lastChangeTimeStamp()
Gets the time stamp of the most recent known change.MasterGraphQuery
lastChangeTimeStamp(MasterGraphQuery.LastChangeTimeStampArgumentsDefinition argsDef)
Gets the time stamp of the most recent known change.MasterGraphQuery
lastChangeUser(MasterGraphQuery.LastChangeUserArgumentsDefinition argsDef, UserQueryDefinition queryDef)
Returns the user who did the most recent known change.MasterGraphQuery
lastChangeUser(UserQueryDefinition queryDef)
Returns the user who did the most recent known change.MasterGraphQuery
mainClass(_ResourceQueryDefinition queryDef)
The main class, if one has been assigned.MasterGraphQuery
owlImports(GraphQueryDefinition queryDef)
MasterGraphQuery
owlImports(MasterGraphQuery.OwlImportsArgumentsDefinition argsDef, GraphQueryDefinition queryDef)
MasterGraphQuery
permission()
The permission of the current user, with values: "viewer", "editor" or "manager".MasterGraphQuery
permission(MasterGraphQuery.PermissionArgumentsDefinition argsDef)
The permission of the current user, with values: "viewer", "editor" or "manager".MasterGraphQuery
Results(_ValidationResultQueryDefinition queryDef)
The (validation) results for the surrounding object, e.g.MasterGraphQuery
subjectAreas(_ResourceQueryDefinition queryDef)
The subject area of a master graph, if one has been assigned.MasterGraphQuery
type(_ResourceQueryDefinition queryDef)
The types of this MasterGraphMasterGraphQuery
uri()
The URI of the resource.MasterGraphQuery
workflowGraph(MasterGraphQuery.WorkflowGraphArgumentsDefinition argsDef, WorkflowGraphQueryDefinition queryDef)
Links a master graph to the workflow graphs that the current user can access.MasterGraphQuery
workflowGraph(WorkflowGraphQueryDefinition queryDef)
Links a master graph to the workflow graphs that the current user can access.-
Methods inherited from class com.shopify.graphql.support.AbstractQuery
addCustomObjectField, addCustomSimpleField, appendQuotedString, startField, startInlineFragment, withAlias
-
-
-
-
Method Detail
-
Results
public MasterGraphQuery Results(_ValidationResultQueryDefinition queryDef)
The (validation) results for the surrounding object, e.g. current constraint violations.
-
creationTimeStamp
public MasterGraphQuery creationTimeStamp()
The time stamp that this graph was created (if known).
-
creationTimeStamp
public MasterGraphQuery creationTimeStamp(MasterGraphQuery.CreationTimeStampArgumentsDefinition argsDef)
The time stamp that this graph was created (if known).
-
creator
public MasterGraphQuery creator(UserQueryDefinition queryDef)
The user who created this graph (if known).
-
creator
public MasterGraphQuery creator(MasterGraphQuery.CreatorArgumentsDefinition argsDef, UserQueryDefinition queryDef)
The user who created this graph (if known).
-
description
public MasterGraphQuery description()
A human-readable description of the graph (in the user's preferred language).
-
description
public MasterGraphQuery description(MasterGraphQuery.DescriptionArgumentsDefinition argsDef)
A human-readable description of the graph (in the user's preferred language).
-
graphType
public MasterGraphQuery graphType(GraphTypeQueryDefinition queryDef)
The type of this (master) graph, e.g. Taxonomy.
-
graphType
public MasterGraphQuery graphType(MasterGraphQuery.GraphTypeArgumentsDefinition argsDef, GraphTypeQueryDefinition queryDef)
The type of this (master) graph, e.g. Taxonomy.
-
id
public MasterGraphQuery id()
The ID of the master graph, as derived from the URI, e.g. "geo".
-
id
public MasterGraphQuery id(MasterGraphQuery.IdArgumentsDefinition argsDef)
The ID of the master graph, as derived from the URI, e.g. "geo".
-
isPublished
public MasterGraphQuery isPublished()
True if the asset collection has been published.
-
isPublished
public MasterGraphQuery isPublished(MasterGraphQuery.IsPublishedArgumentsDefinition argsDef)
True if the asset collection has been published.
-
label
public MasterGraphQuery label()
A human-readable display label.
-
lastChangeTimeStamp
public MasterGraphQuery lastChangeTimeStamp()
Gets the time stamp of the most recent known change.
-
lastChangeTimeStamp
public MasterGraphQuery lastChangeTimeStamp(MasterGraphQuery.LastChangeTimeStampArgumentsDefinition argsDef)
Gets the time stamp of the most recent known change.
-
lastChangeUser
public MasterGraphQuery lastChangeUser(UserQueryDefinition queryDef)
Returns the user who did the most recent known change.
-
lastChangeUser
public MasterGraphQuery lastChangeUser(MasterGraphQuery.LastChangeUserArgumentsDefinition argsDef, UserQueryDefinition queryDef)
Returns the user who did the most recent known change.
-
mainClass
public MasterGraphQuery mainClass(_ResourceQueryDefinition queryDef)
The main class, if one has been assigned. This is only supported by some graph types such as reference datasets.
-
owlImports
public MasterGraphQuery owlImports(GraphQueryDefinition queryDef)
-
owlImports
public MasterGraphQuery owlImports(MasterGraphQuery.OwlImportsArgumentsDefinition argsDef, GraphQueryDefinition queryDef)
-
permission
public MasterGraphQuery permission()
The permission of the current user, with values: "viewer", "editor" or "manager".
-
permission
public MasterGraphQuery permission(MasterGraphQuery.PermissionArgumentsDefinition argsDef)
The permission of the current user, with values: "viewer", "editor" or "manager".
-
subjectAreas
public MasterGraphQuery subjectAreas(_ResourceQueryDefinition queryDef)
The subject area of a master graph, if one has been assigned.
-
type
public MasterGraphQuery type(_ResourceQueryDefinition queryDef)
The types of this MasterGraph
-
uri
public MasterGraphQuery uri()
The URI of the resource.
-
workflowGraph
public MasterGraphQuery workflowGraph(WorkflowGraphQueryDefinition queryDef)
Links a master graph to the workflow graphs that the current user can access.
-
workflowGraph
public MasterGraphQuery workflowGraph(MasterGraphQuery.WorkflowGraphArgumentsDefinition argsDef, WorkflowGraphQueryDefinition queryDef)
Links a master graph to the workflow graphs that the current user can access.
-
createFragment
public static Fragment<MasterGraphQuery> createFragment(String name, MasterGraphQueryDefinition queryDef)
Creates a GraphQL "named" fragment with the specified query type definition. The generics nature of fragments ensures that a fragment can only be used at the right place in the GraphQL request.- Parameters:
name
- The name of the fragment, must be unique for a given GraphQL request.queryDef
- The fragment definition.- Returns:
- The fragment of a given generics type.
-
addFragmentReference
public MasterGraphQuery addFragmentReference(Fragment<MasterGraphQuery> fragment)
Adds aMasterGraphQuery
fragment reference at the current position of the query. For example for a fragment namedtest
, calling this method will add the reference...test
in the query. For GraphQL types implementing an interface, there will be some similar methods using the Query type of each implemented interface.- Parameters:
fragment
- The fragment to reference.
-
-