Package com.atlan.model.discovery
Class LinkableQuery.LinkableQueryBuilder<C extends LinkableQuery,B extends LinkableQuery.LinkableQueryBuilder<C,B>>
java.lang.Object
com.atlan.model.discovery.LinkableQuery.LinkableQueryBuilder<C,B>
- Enclosing class:
- LinkableQuery
public abstract static class LinkableQuery.LinkableQueryBuilder<C extends LinkableQuery,B extends LinkableQuery.LinkableQueryBuilder<C,B>>
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract C
build()
certificateStatus
(CertificateStatus certificateStatus) certificateStatuses
(Collection<? extends CertificateStatus> certificateStatuses) client
(AtlanClient client) forConnection
(Connection connection) Limit assets to a given connection.Limit assets to a specified subset of those in a connection.hierarchy
(com.atlan.model.discovery.LinkableQuery.AssetHierarchy hierarchy) Asset hierarchy (connector type, connection qualifiedName) to limit assets.owners
(com.atlan.model.discovery.LinkableQuery.Owners owners) Owners by which to limit assets.properties
(Collection<? extends DiscoveryFilter> properties) property
(DiscoveryFilter property) protected abstract B
self()
tags
(Collection<? extends TagFilter> tags) terms
(com.atlan.model.discovery.LinkableQuery.Terms terms) Terms by which to limit assets.Convert this linkable query into an actual link (URL).toString()
toUrl()
Convert this linkable query into an actual link (URL).typeNames
(Collection<? extends String> typeNames) withAll
(List<GlossaryTerm> terms) Limit assets to those with all the specified terms assigned.withAnyOf
(List<GlossaryTerm> terms) Limit assets to those with any of the specified terms assigned.Limit assets to those with any terms assigned.withNoneOf
(List<GlossaryTerm> terms) Limit assets to those with none of the specified terms assigned.Limit assets to those without any owners defined (individuals or groups).Limit assets to those with no terms assigned.withOwners
(List<String> usernames, List<String> groups) Limit assets to those with any of the specified owners.Limit assets to those with a particular Atlan tag assigned.withTagValue
(String tagName, String value) Limit assets to those with a particular source tag assigned, with a particular value.
-
Constructor Details
-
LinkableQueryBuilder
public LinkableQueryBuilder()
-
-
Method Details
-
forConnection
Limit assets to a given connection.- Parameters:
connection
- for which to limit assets- Returns:
- the query builder, limited to assets from the specific connection
-
forPrefix
Limit assets to a specified subset of those in a connection.- Parameters:
qualifiedNamePrefix
- full qualifiedName prefix that all assets in the subset should start withdenormalizedAttributeName
- name of the denormalized attribute where the prefix can be found on all assets (for example,schemaQualifiedName
)- Returns:
- the query builder, limited to a subset of assets in a connection
-
withTag
Limit assets to those with a particular Atlan tag assigned.- Parameters:
tagName
- human-readable name of the Atlan tag- Returns:
- the query builder, limited to assets with the Atlan tag assigned
-
withTagValue
Limit assets to those with a particular source tag assigned, with a particular value.- Parameters:
tagName
- human-readable name of the Atlan tag mapped to a source tagvalue
- of the source tag- Returns:
- the query builder, limited to assets with the Atlan tag assigned with a particular value
-
withoutOwners
Limit assets to those without any owners defined (individuals or groups).- Returns:
- the query builder, limited to assets without any owners assigned
-
withOwners
Limit assets to those with any of the specified owners.- Parameters:
usernames
- (optional) list of usernames to match as ownersgroups
- (optional) list of internal group names to match as owners- Returns:
- the query builder, limited to assets with any of the specified owners assigned
- Throws:
AtlanException
- if there are problems confirming any of the provided owners
-
withAnyOf
Limit assets to those with any of the specified terms assigned.- Parameters:
terms
- minimal details about the terms, which must include at least GUID, qualifiedName, and name- Returns:
- the query builder, limited to assets with any of the specified terms assigned
-
withAll
Limit assets to those with all the specified terms assigned.- Parameters:
terms
- minimal details about the terms, which must include at least GUID, qualifiedName, and name- Returns:
- the query builder, limited to assets with all the specified terms assigned
-
withNoneOf
Limit assets to those with none of the specified terms assigned.- Parameters:
terms
- minimal details about the terms, which must include at least GUID, qualifiedName, and name- Returns:
- the query builder, limited to assets with none of the specified terms assigned
-
withoutTerms
Limit assets to those with no terms assigned.- Returns:
- the query builder, limited to assets without any terms assigned
-
withAnyTerm
Limit assets to those with any terms assigned.- Returns:
- the query builder, limited to assets with any terms assigned
-
toUrl
Convert this linkable query into an actual link (URL).- Returns:
- the URL (without tenant domain / hostname) for accessing this limited set of assets
-
toFullUrl
Convert this linkable query into an actual link (URL). Note: this will not work if the code is running in the tenant itself (e.g. via a custom package).- Returns:
- the full URL (including tenant domain) for accessing this limited set of assets in the tenant
-
client
- Returns:
this
.
-
certificateStatus
-
certificateStatuses
-
clearCertificateStatuses
-
hierarchy
Asset hierarchy (connector type, connection qualifiedName) to limit assets.- Returns:
this
.
-
owners
Owners by which to limit assets.- Returns:
this
.
-
property
-
properties
-
clearProperties
-
tag
-
tags
-
clearTags
-
terms
Terms by which to limit assets.- Returns:
this
.
-
typeName
-
typeNames
-
clearTypeNames
-
self
-
build
-
toString
-