@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/access-services/asset-owner/users/{userId}")
public class AssetOwnerResource
extends Object
| Constructor and Description |
|---|
AssetOwnerResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
VoidResponse |
addAssetOrigin(String serverName,
String userId,
String assetGUID,
OriginRequestBody requestBody)
Set up the labels that classify an asset's origin.
|
GUIDResponse |
addAssetToCatalog(String serverName,
String userId,
String typeName,
AssetRequestBody requestBody)
Add a simple asset description to the catalog.
|
GUIDResponse |
addCombinedSchemaToAsset(String serverName,
String userId,
String assetGUID,
CombinedSchemaRequestBody schemaInformation)
Stores the supplied schema details in the catalog and attaches it to the asset.
|
VoidResponse |
addConnectionToAsset(String serverName,
String userId,
String assetGUID,
ConnectionRequestBody requestBody)
Adds a connection to an asset.
|
GUIDResponse |
addSchemaAttribute(String serverName,
String userId,
String assetGUID,
String parentGUID,
SchemaAttributeRequestBody schemaAttribute)
Adds the attribute to a complex schema type like a relational table, avro schema or a structured document.
|
VoidResponse |
addSchemaAttributes(String serverName,
String userId,
String assetGUID,
String parentGUID,
SchemaAttributesRequestBody schemaAttributes)
Adds attributes to a complex schema type like a relational table, avro schema or a structured document.
|
VoidResponse |
addSchemaAttributesToSchema(String serverName,
String userId,
String schemaTypeGUID,
List<SchemaAttribute> schemaAttributes)
Deprecated.
|
GUIDResponse |
addSchemaToAsset(String serverName,
String userId,
String assetGUID,
SchemaRequestBody requestBody)
Deprecated.
|
GUIDResponse |
addSchemaTypeToAsset(String serverName,
String userId,
String assetGUID,
SchemaTypeRequestBody schemaType)
Stores the supplied schema type in the catalog and attaches it to the asset.
|
VoidResponse |
addSecurityTags(String serverName,
String userId,
String assetGUID,
SecurityTagsRequestBody requestBody)
Add or replace the security tags for an asset or one of its elements.
|
VoidResponse |
addSecurityTags(String serverName,
String userId,
String assetGUID,
String assetElementGUID,
SecurityTagsRequestBody requestBody)
Add or replace the security tags for an asset or one of its elements.
|
VoidResponse |
addSemanticAssignment(String serverName,
String userId,
String assetGUID,
String glossaryTermGUID,
NullRequestBody requestBody)
Create a simple relationship between a glossary term and an Asset description.
|
VoidResponse |
addSemanticAssignment(String serverName,
String userId,
String assetGUID,
String glossaryTermGUID,
String assetElementGUID,
NullRequestBody requestBody)
Create a simple relationship between a glossary term and an element in an Asset description (typically
a field in the schema).
|
VoidResponse |
attachSchemaTypeToAsset(String serverName,
String userId,
String assetGUID,
String schemaTypeGUID,
NullRequestBody requestBody)
Links the supplied schema type directly to the asset.
|
VoidResponse |
deleteAsset(String serverName,
String userId,
String assetGUID,
NullRequestBody requestBody)
Deletes an asset and all of its associated elements such as schema, connections (unless they are linked to
another asset), discovery reports and associated feedback.
|
VoidResponse |
deleteAssetSchemaType(String serverName,
String userId,
String assetGUID,
NullRequestBody requestBody)
Detaches and deletes an asset's schema.
|
GUIDResponse |
detachSchemaTypeFromAsset(String serverName,
String userId,
String assetGUID,
NullRequestBody requestBody)
Unlinks the schema from the asset but does not delete it.
|
AssetsResponse |
findAssets(String serverName,
String userId,
int startFrom,
int pageSize,
String searchString)
Return a list of assets with the requested search string in their name, qualified name
or description.
|
AssetsResponse |
getAssetsByName(String serverName,
String userId,
int startFrom,
int pageSize,
String name)
Return a list of assets with the requested name.
|
DiscoveryAnalysisReportListResponse |
getDiscoveryAnalysisReports(String serverName,
String userId,
String assetGUID,
int startingFrom,
int maximumResults)
Return the discovery analysis reports about the asset.
|
AnnotationListResponse |
getDiscoveryReportAnnotations(String serverName,
String userId,
String discoveryReportGUID,
int startingFrom,
int maximumResults,
StatusRequestBody requestBody)
Return the annotations linked directly to the report.
|
AnnotationListResponse |
getExtendedAnnotations(String serverName,
String userId,
String annotationGUID,
int startingFrom,
int maximumResults,
StatusRequestBody requestBody)
Return any annotations attached to this annotation.
|
NameListResponse |
getTypesOfAsset(String serverName,
String userId)
Return the asset subtype names.
|
StringMapResponse |
getTypesOfAssetDescriptions(String serverName,
String userId)
Return the asset subtype names mapped to their descriptions.
|
VoidResponse |
removeAssetOrigin(String serverName,
String userId,
String assetGUID,
NullRequestBody requestBody)
Remove the asset origin classification to an asset.
|
VoidResponse |
removeSecurityTags(String serverName,
String userId,
String assetGUID,
NullRequestBody requestBody)
Remove the security tags classification from an asset.
|
VoidResponse |
removeSecurityTags(String serverName,
String userId,
String assetGUID,
String assetElementGUID,
NullRequestBody requestBody)
Remove the security tags classification to one of an asset's elements.
|
VoidResponse |
removeSemanticAssignment(String serverName,
String userId,
String assetGUID,
String glossaryTermGUID,
NullRequestBody requestBody)
Remove the relationship between a glossary term and an element in an Asset description (typically
a field in the schema).
|
VoidResponse |
removeSemanticAssignment(String serverName,
String userId,
String assetGUID,
String glossaryTermGUID,
String assetElementGUID,
NullRequestBody requestBody)
Remove the relationship between a glossary term and an element in an Asset description (typically
a field in the schema).
|
VoidResponse |
updateAssetOwner(String serverName,
String userId,
String assetGUID,
OwnerRequestBody requestBody)
Update the owner information for a specific asset.
|
VoidResponse |
updateAssetZones(String serverName,
String userId,
String assetGUID,
List<String> assetZones)
Update the zones for a specific asset.
|
@GetMapping(path="/assets/sub-types") public NameListResponse getTypesOfAsset(@PathVariable String serverName, @PathVariable String userId)
serverName - name of the server instance to connect touserId - calling user@GetMapping(path="/assets/sub-types/descriptions") public StringMapResponse getTypesOfAssetDescriptions(@PathVariable String serverName, @PathVariable String userId)
serverName - name of the server instance to connect touserId - calling user@PostMapping(path="/assets/{typeName}")
public GUIDResponse addAssetToCatalog(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String typeName,
@RequestBody
AssetRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling user (assumed to be the owner)typeName - specific type of the asset - this must match a defined subtyperequestBody - other properties for asset@PostMapping(path="/assets/{assetGUID}/schemas/top-level-schema-type-with-attributes")
public GUIDResponse addCombinedSchemaToAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
CombinedSchemaRequestBody schemaInformation)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of the asset that the schema is to be attached toschemaInformation - schema type to create and attach directly to the asset.@PostMapping(path="/assets/{assetGUID}/schemas/top-level-schema-type")
public GUIDResponse addSchemaTypeToAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
SchemaTypeRequestBody schemaType)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of the asset that the schema is to be attached toschemaType - schema type to create and attach directly to the asset.@PostMapping(path="/assets/{assetGUID}/schemas/top-level-schema-type/{schemaTypeGUID}/attach")
public VoidResponse attachSchemaTypeToAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@PathVariable
String schemaTypeGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of the asset that the schema is to be attached toschemaTypeGUID - unique identifier of the schema type to attachrequestBody - null@PostMapping(path="/assets/{assetGUID}/schemas/top-level-schema-type/detach")
public GUIDResponse detachSchemaTypeFromAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of the asset that the schema is to be attached torequestBody - null@PostMapping(path="/assets/{assetGUID}/schemas/top-level-schema-type/delete")
public VoidResponse deleteAssetSchemaType(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of the asset that the schema is to be attached torequestBody - null@PostMapping(path="/assets/{assetGUID}/schemas/{parentGUID}/schema-attributes/list")
public VoidResponse addSchemaAttributes(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@PathVariable
String parentGUID,
@RequestBody
SchemaAttributesRequestBody schemaAttributes)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of the asset that the schema is to be attached toparentGUID - unique identifier of the schema element to anchor these attributes to.schemaAttributes - list of schema attribute objects.@PostMapping(path="/assets/{assetGUID}/schemas/{parentGUID}/schema-attributes")
public GUIDResponse addSchemaAttribute(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@PathVariable
String parentGUID,
@RequestBody
SchemaAttributeRequestBody schemaAttribute)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of the asset that the schema is to be attached toparentGUID - unique identifier of the schema element to anchor these attributes to.schemaAttribute - schema attribute object.@PostMapping(path="/assets/{assetGUID}/schema-type")
@Deprecated
public GUIDResponse addSchemaToAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
SchemaRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of the asset that the schema is to be attached torequestBody - schema to attach@PostMapping(path="/schemas/{schemaTypeGUID}/schema-attributes")
@Deprecated
public VoidResponse addSchemaAttributesToSchema(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String schemaTypeGUID,
@RequestBody
List<SchemaAttribute> schemaAttributes)
serverName - name of the server instance to connect touserId - calling userschemaTypeGUID - unique identifier if the schema to anchor these attributes to.schemaAttributes - list of schema attribute objects.@PostMapping(path="/assets/{assetGUID}/connection")
public VoidResponse addConnectionToAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
ConnectionRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of the asset to attach the connection torequestBody - request body including a summary and connection object.
If the connection is already stored (matching guid)
then the existing connection is used.@PostMapping(path="/assets/{assetGUID}/meanings/{glossaryTermGUID}")
public VoidResponse addSemanticAssignment(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@PathVariable
String glossaryTermGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of the asset that is being describedglossaryTermGUID - unique identifier of the glossary termrequestBody - null request body to satisfy POST request.@PostMapping(path="/assets/{assetGUID}/attachments/{assetElementGUID}/meanings/{glossaryTermGUID}")
public VoidResponse addSemanticAssignment(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@PathVariable
String glossaryTermGUID,
@PathVariable
String assetElementGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of the asset that is being describedglossaryTermGUID - unique identifier of the glossary termassetElementGUID - element to link it to - its type must inherit from Referenceable.requestBody - null request body to satisfy POST request.@PostMapping(path="/assets/{assetGUID}/meanings/{glossaryTermGUID}/delete")
public VoidResponse removeSemanticAssignment(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@PathVariable
String glossaryTermGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of assetglossaryTermGUID - unique identifier of the glossary termrequestBody - null request body@PostMapping(path="/assets/{assetGUID}/attachments/{assetElementGUID}/meanings/{glossaryTermGUID}/delete")
public VoidResponse removeSemanticAssignment(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@PathVariable
String glossaryTermGUID,
@PathVariable
String assetElementGUID,
@PathVariable(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of assetglossaryTermGUID - unique identifier of the glossary termassetElementGUID - element to link it to - its type must inherit from Referenceable.requestBody - null request body@PostMapping(path="/assets/{assetGUID}/origin")
public VoidResponse addAssetOrigin(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
OriginRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of assetrequestBody - Descriptive labels describing origin of the asset@PostMapping(path="/assets/{assetGUID}/origin/delete")
public VoidResponse removeAssetOrigin(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of assetrequestBody - null request body@PostMapping(path="/assets/{assetGUID}/governance-zones")
public VoidResponse updateAssetZones(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
List<String> assetZones)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier for the asset to updateassetZones - list of zones for the asset - these values override the current values - null means belongs
to no zones.@PostMapping(path="/assets/{assetGUID}/owner")
public VoidResponse updateAssetOwner(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
OwnerRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier for the asset to updaterequestBody - values describing the new owner@PostMapping(path="/assets/{assetGUID}/security-tags")
public VoidResponse addSecurityTags(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
SecurityTagsRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of assetrequestBody - list of security labels and properties@PostMapping(path="/assets/{assetGUID}/attachments/{assetElementGUID}/security-tags")
public VoidResponse addSecurityTags(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@PathVariable
String assetElementGUID,
@RequestBody
SecurityTagsRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of assetassetElementGUID - element to link it to - its type must inherit from Referenceable.requestBody - list of security labels and properties@PostMapping(path="/assets/{assetGUID}/security-tags/delete")
public VoidResponse removeSecurityTags(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of assetrequestBody - null request body@PostMapping(path="/assets/{assetGUID}/attachments/{assetElementGUID}/security-tags/delete")
public VoidResponse removeSecurityTags(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@PathVariable
String assetElementGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of assetassetElementGUID - element where the security tags need to be removed.requestBody - null request body@PostMapping(path="/assets/by-name") public AssetsResponse getAssetsByName(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody String name)
serverName - name of the server instances for this requestuserId - calling username - name to search forstartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to return@PostMapping(path="/assets/by-search-string") public AssetsResponse findAssets(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody String searchString)
serverName - name of the server instances for this requestuserId - calling usersearchString - string to search for in textstartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to return@GetMapping(path="/assets/{assetGUID}/discovery-analysis-reports")
public DiscoveryAnalysisReportListResponse getDiscoveryAnalysisReports(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestParam
int startingFrom,
@RequestParam
int maximumResults)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of the assetstartingFrom - position in the list (used when there are so many reports that paging is neededmaximumResults - maximum number of elements to return an this call@GetMapping(path="/discovery-analysis-reports/{discoveryReportGUID}/annotations")
public AnnotationListResponse getDiscoveryReportAnnotations(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String discoveryReportGUID,
@RequestParam
int startingFrom,
@RequestParam
int maximumResults,
@RequestBody
StatusRequestBody requestBody)
serverName - name of the server instance to connect touserId - identifier of calling userdiscoveryReportGUID - identifier of the discovery request.startingFrom - initial position in the stored list.maximumResults - maximum number of definitions to return on this call.requestBody - status of the desired annotations - null means all statuses.@GetMapping(path="/annotations/{annotationGUID}/annotations")
public AnnotationListResponse getExtendedAnnotations(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String annotationGUID,
@RequestParam
int startingFrom,
@RequestParam
int maximumResults,
@RequestBody
StatusRequestBody requestBody)
serverName - name of the server instance to connect touserId - identifier of calling userannotationGUID - anchor annotationstartingFrom - starting position in the listmaximumResults - maximum number of annotations that can be returned.requestBody - status of the desired annotations - null means all statuses.@PostMapping(path="/assets/{assetGUID}/delete")
public VoidResponse deleteAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of the attest to attach the connection torequestBody - dummy request body to satisfy POST protocol.Copyright © 2018–2020 ODPi. All rights reserved.