@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) |
GUIDResponse |
addAssetToCatalog(String serverName,
String userId,
String typeName,
AssetRequestBody requestBody)
Add a simple asset description to the catalog.
|
VoidResponse |
addConnectionToAsset(String serverName,
String userId,
String assetGUID,
ConnectionRequestBody requestBody)
Adds a connection to an asset.
|
VoidResponse |
addSchemaAttributesToSchema(String serverName,
String userId,
String schemaTypeGUID,
List<SchemaAttribute> schemaAttributes)
Adds attributes to a complex schema type like a relational table or a structured document.
|
GUIDResponse |
addSchemaToAsset(String serverName,
String userId,
String assetGUID,
SchemaRequestBody requestBody)
Links the supplied schema to the asset.
|
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 |
createGovernanceZone(String serverName,
String userId,
ZoneRequestBody requestBody)
Create a definition of a governance zone.
|
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.
|
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.
|
ZoneResponse |
getGovernanceZone(String serverName,
String userId,
String qualifiedName)
Return information about a specific governance zone.
|
ZoneListResponse |
getGovernanceZones(String serverName,
String userId,
int startingFrom,
int maximumResults)
Return information about all of the governance zones.
|
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.
|
@RequestMapping(method=POST,
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@RequestMapping(method=POST,
path="/assets/{assetGUID}/schema-type")
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@RequestMapping(method=POST,
path="/schemas/{schemaTypeGUID}/schema-attributes")
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.@RequestMapping(method=POST,
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.@RequestMapping(method=POST,
path="/assets/{assetGUID}/meanings/{glossaryTermGUID}/elements/{assetElementGUID}")
public VoidResponse addSemanticAssignment(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@PathVariable
String glossaryTermGUID,
@PathVariable
String assetElementGUID,
@RequestBody
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.@RequestMapping(method=POST,
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@RequestMapping(method=POST,
path="/governance-zones/")
public VoidResponse createGovernanceZone(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestBody
ZoneRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userrequestBody - other properties for a governance zone@RequestMapping(method=GET,
path="/governance-zones/")
public ZoneListResponse getGovernanceZones(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestParam
int startingFrom,
@RequestParam
int maximumResults)
serverName - name of the server instance to connect touserId - calling userstartingFrom - position in the list (used when there are so many reports that paging is neededmaximumResults - maximum number of elements to return an this call@RequestMapping(method=GET,
path="/governance-zones/name/{qualifiedName}")
public ZoneResponse getGovernanceZone(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String qualifiedName)
serverName - name of the server instance to connect touserId - calling userqualifiedName - unique name for the zone@RequestMapping(method=POST,
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.@RequestMapping(method=POST,
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@RequestMapping(method=POST,
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@RequestMapping(method=POST,
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@RequestMapping(method=GET,
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@RequestMapping(method=GET,
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.@RequestMapping(method=GET,
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.@RequestMapping(method=POST,
path="/assets/{assetGUID}/delete")
public VoidResponse deleteAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
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–2019 ODPi. All rights reserved.