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 MasterGraphQueryaddFragmentReference(Fragment<MasterGraphQuery> fragment)Adds aMasterGraphQueryfragment 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.MasterGraphQuerycreationTimeStamp()The time stamp that this graph was created (if known).MasterGraphQuerycreationTimeStamp(MasterGraphQuery.CreationTimeStampArgumentsDefinition argsDef)The time stamp that this graph was created (if known).MasterGraphQuerycreator(MasterGraphQuery.CreatorArgumentsDefinition argsDef, UserQueryDefinition queryDef)The user who created this graph (if known).MasterGraphQuerycreator(UserQueryDefinition queryDef)The user who created this graph (if known).MasterGraphQuerydescription()A human-readable description of the graph (in the user's preferred language).MasterGraphQuerydescription(MasterGraphQuery.DescriptionArgumentsDefinition argsDef)A human-readable description of the graph (in the user's preferred language).MasterGraphQuerygraphType(GraphTypeQueryDefinition queryDef)The type of this (master) graph, e.g.MasterGraphQuerygraphType(MasterGraphQuery.GraphTypeArgumentsDefinition argsDef, GraphTypeQueryDefinition queryDef)The type of this (master) graph, e.g.MasterGraphQueryid()The ID of the master graph, as derived from the URI, e.g.MasterGraphQueryid(MasterGraphQuery.IdArgumentsDefinition argsDef)The ID of the master graph, as derived from the URI, e.g.MasterGraphQueryisPublished()True if the asset collection has been published.MasterGraphQueryisPublished(MasterGraphQuery.IsPublishedArgumentsDefinition argsDef)True if the asset collection has been published.MasterGraphQuerylabel()A human-readable display label.MasterGraphQuerylastChangeTimeStamp()Gets the time stamp of the most recent known change.MasterGraphQuerylastChangeTimeStamp(MasterGraphQuery.LastChangeTimeStampArgumentsDefinition argsDef)Gets the time stamp of the most recent known change.MasterGraphQuerylastChangeUser(MasterGraphQuery.LastChangeUserArgumentsDefinition argsDef, UserQueryDefinition queryDef)Returns the user who did the most recent known change.MasterGraphQuerylastChangeUser(UserQueryDefinition queryDef)Returns the user who did the most recent known change.MasterGraphQuerymainClass(_ResourceQueryDefinition queryDef)The main class, if one has been assigned.MasterGraphQueryowlImports(GraphQueryDefinition queryDef)MasterGraphQueryowlImports(MasterGraphQuery.OwlImportsArgumentsDefinition argsDef, GraphQueryDefinition queryDef)MasterGraphQuerypermission()The permission of the current user, with values: "viewer", "editor" or "manager".MasterGraphQuerypermission(MasterGraphQuery.PermissionArgumentsDefinition argsDef)The permission of the current user, with values: "viewer", "editor" or "manager".MasterGraphQueryResults(_ValidationResultQueryDefinition queryDef)The (validation) results for the surrounding object, e.g.MasterGraphQuerysubjectAreas(_ResourceQueryDefinition queryDef)The subject area of a master graph, if one has been assigned.MasterGraphQuerytype(_ResourceQueryDefinition queryDef)The types of this MasterGraphMasterGraphQueryuri()The URI of the resource.MasterGraphQueryworkflowGraph(MasterGraphQuery.WorkflowGraphArgumentsDefinition argsDef, WorkflowGraphQueryDefinition queryDef)Links a master graph to the workflow graphs that the current user can access.MasterGraphQueryworkflowGraph(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 aMasterGraphQueryfragment reference at the current position of the query. For example for a fragment namedtest, calling this method will add the reference...testin 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.
-
-