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,
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> requestBody)
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,
String searchString,
int startFrom,
int pageSize)
Return a list of assets with the requested search string in their name, qualified name
or description.
|
AssetsResponse |
getAssetsByName(String serverName,
String userId,
String name,
int startFrom,
int pageSize)
Return a list of assets with the requested name.
|
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.
|
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.
|
public GUIDResponse addAssetToCatalog(String serverName, String userId, String typeName, 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 assetpublic GUIDResponse addSchemaToAsset(String serverName, String userId, String assetGUID, 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 - a new schema is always created because schema can not be shared
between assets.public VoidResponse addSchemaAttributesToSchema(String serverName, String userId, String schemaTypeGUID, List<SchemaAttribute> requestBody)
serverName - name of the server instance to connect touserId - calling userschemaTypeGUID - unique identifier if the schema to anchor these attributes to.requestBody - list of schema attribute objects.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, 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 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 createGovernanceZone(String serverName, String userId, ZoneRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userrequestBody - other properties for a governance zonepublic ZoneListResponse getGovernanceZones(String serverName, String userId, int startingFrom, 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 callpublic ZoneResponse getGovernanceZone(String serverName, String userId, String qualifiedName)
serverName - name of the server instance to connect touserId - calling userqualifiedName - unique name for the zonepublic 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 AssetsResponse 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 AssetsResponse 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 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–2019 ODPi. All rights reserved.