public class AssetOwnerRESTServices extends Object
| Constructor and Description |
|---|
AssetOwnerRESTServices()
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,
AssetProperties requestBody)
Add a simple asset description to the catalog.
|
GUIDResponse |
addCombinedSchemaToAsset(String serverName,
String userId,
String assetGUID,
CombinedSchemaRequestBody requestBody)
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,
SchemaAttributeProperties requestBody)
Adds attributes 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,
List<SchemaAttributeProperties> requestBody)
Adds attributes 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 requestBody)
Adds attributes to a complex schema type like a relational table, avro schema or a structured document.
|
GUIDResponse |
addSchemaTypeToAsset(String serverName,
String userId,
String assetGUID,
SchemaTypeProperties requestBody)
Stores the supplied schema type in the catalog and attaches it to the asset.
|
GUIDResponse |
addSchemaTypeToAsset(String serverName,
String userId,
String assetGUID,
SchemaTypeRequestBody requestBody)
Deprecated.
|
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.
|
AssetElementsResponse |
findAssets(String serverName,
String userId,
String searchString,
int startFrom,
int pageSize)
Return a list of assets with the requested search string in their name, qualified name
or description.
|
AssetElementsResponse |
getAssetsByName(String serverName,
String userId,
String name,
int startFrom,
int pageSize)
Return a list of assets with the requested name.
|
AssetElementResponse |
getAssetSummary(String serverName,
String userId,
String assetGUID)
Return the basic attributes of an asset.
|
DiscoveryAnalysisReportListResponse |
getDiscoveryAnalysisReports(String serverName,
String userId,
String assetGUID,
int startingFrom,
int maxPageSize)
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 with their descriptions.
|
VoidResponse |
publishAsset(String serverName,
String userId,
String assetGUID,
NullRequestBody requestBody)
Update the zones for a specific asset to the zone list specified in the publishZones
|
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.
|
VoidResponse |
withdrawAsset(String serverName,
String userId,
String assetGUID,
NullRequestBody requestBody)
Update the zones for a specific asset to the zone list specified in the defaultZones
|
public NameListResponse getTypesOfAsset(String serverName, String userId)
serverName - name of the server instance to connect touserId - calling userpublic StringMapResponse getTypesOfAssetDescriptions(String serverName, String userId)
serverName - name of the server instance to connect touserId - calling userpublic GUIDResponse addAssetToCatalog(String serverName, String userId, String typeName, AssetProperties 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 assetpublic GUIDResponse addCombinedSchemaToAsset(String serverName, String userId, String assetGUID, CombinedSchemaRequestBody 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 type to create and attach directly to the asset.public GUIDResponse addSchemaTypeToAsset(String serverName, String userId, String assetGUID, SchemaTypeProperties 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 type to create and attach directly to the asset.@Deprecated public GUIDResponse addSchemaTypeToAsset(String serverName, String userId, String assetGUID, SchemaTypeRequestBody 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 type to create and attach directly to the asset.public VoidResponse attachSchemaTypeToAsset(String serverName, String userId, String assetGUID, String schemaTypeGUID, 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 - nullpublic GUIDResponse detachSchemaTypeFromAsset(String serverName, String userId, String assetGUID, 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 - nullpublic VoidResponse deleteAssetSchemaType(String serverName, String userId, String assetGUID, 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 - nullpublic VoidResponse addSchemaAttributes(String serverName, String userId, String assetGUID, String parentGUID, SchemaAttributesRequestBody requestBody)
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.requestBody - list of schema attribute objects.public VoidResponse addSchemaAttributes(String serverName, String userId, String assetGUID, String parentGUID, List<SchemaAttributeProperties> requestBody)
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.requestBody - list of schema attribute objects.public GUIDResponse addSchemaAttribute(String serverName, String userId, String assetGUID, String parentGUID, SchemaAttributeProperties requestBody)
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.requestBody - schema attribute object.public VoidResponse addConnectionToAsset(String serverName, String userId, String assetGUID, 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.public VoidResponse addSemanticAssignment(String serverName, String userId, String assetGUID, String glossaryTermGUID, 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.public VoidResponse addSemanticAssignment(String serverName, String userId, String assetGUID, String glossaryTermGUID, String assetElementGUID, 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.public VoidResponse removeSemanticAssignment(String serverName, String userId, String assetGUID, String glossaryTermGUID, 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 bodypublic VoidResponse removeSemanticAssignment(String serverName, String userId, String assetGUID, String glossaryTermGUID, String assetElementGUID, 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 bodypublic VoidResponse addAssetOrigin(String serverName, String userId, String assetGUID, OriginRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of assetrequestBody - Descriptive labels describing origin of the assetpublic VoidResponse removeAssetOrigin(String serverName, String userId, String assetGUID, NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of assetrequestBody - null request bodypublic VoidResponse publishAsset(String serverName, String userId, String assetGUID, NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier for the asset to updaterequestBody - null request bodypublic VoidResponse withdrawAsset(String serverName, String userId, String assetGUID, NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier for the asset to updaterequestBody - null request bodypublic VoidResponse updateAssetZones(String serverName, String userId, String assetGUID, 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.public VoidResponse updateAssetOwner(String serverName, String userId, String assetGUID, OwnerRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier for the asset to updaterequestBody - values describing the new ownerpublic VoidResponse addSecurityTags(String serverName, String userId, String assetGUID, SecurityTagsRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of assetrequestBody - list of security labels and propertiespublic VoidResponse addSecurityTags(String serverName, String userId, String assetGUID, String assetElementGUID, 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 propertiespublic VoidResponse removeSecurityTags(String serverName, String userId, String assetGUID, NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userassetGUID - unique identifier of assetrequestBody - null request bodypublic VoidResponse removeSecurityTags(String serverName, String userId, String assetGUID, String assetElementGUID, 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 bodypublic AssetElementsResponse getAssetsByName(String serverName, String userId, String name, int startFrom, int pageSize)
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 returnpublic AssetElementsResponse findAssets(String serverName, String userId, String searchString, int startFrom, int pageSize)
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 returnpublic AssetElementResponse getAssetSummary(String serverName, String userId, String assetGUID)
userId - calling userassetGUID - unique identifier of the assetpublic DiscoveryAnalysisReportListResponse getDiscoveryAnalysisReports(String serverName, String userId, String assetGUID, int startingFrom, int maxPageSize)
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 neededmaxPageSize - maximum number of elements to return an this callpublic AnnotationListResponse getDiscoveryReportAnnotations(String serverName, String userId, String discoveryReportGUID, int startingFrom, int maximumResults, 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.public AnnotationListResponse getExtendedAnnotations(String serverName, String userId, String annotationGUID, int startingFrom, int maximumResults, 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.public VoidResponse deleteAsset(String serverName, String userId, String assetGUID, 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.