public class FilesIntegratorContext extends Object
| Constructor and Description |
|---|
FilesIntegratorContext(FilesAndFoldersClient client,
DataManagerEventClient eventClient,
String userId,
String fileServerCapabilityGUID,
String fileServerCapabilityName)
Create a new client with no authentication embedded in the HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
addDataFileToCatalog(DataFileProperties dataFileProperties,
String connectorProviderName)
Creates a new file asset and links it to the folder structure implied in the path name.
|
List<String> |
addDataFileToCatalogFromTemplate(String templateGUID,
TemplateProperties templateProperties)
Add an asset description a file based on the content of a template object.
|
List<String> |
addDataFolderToCatalog(FileFolderProperties fileFolderProperties,
String connectorProviderName)
Creates a new folder asset that is identified as a data asset.
|
List<String> |
addDataFolderToCatalogFromTemplate(String templateGUID,
TemplateProperties templateProperties)
Add an asset description a file based on the content of a template object.
|
void |
archiveDataFileInCatalog(String dataFileGUID,
ArchiveProperties archiveProperties)
Mark the file asset description in the catalog as archived.
|
void |
archiveDataFolderInCatalog(String dataFolderGUID,
ArchiveProperties archiveProperties)
Mark the data folder asset description in the catalog as archived.
|
void |
attachDataFileAssetToFolder(String folderGUID,
String fileGUID)
Link an existing file asset to a folder.
|
void |
attachTopLevelFolder(String fileSystemGUID,
String folderGUID)
Links a folder to a file system.
|
void |
clearSchemaType(String schemaAttributeGUID)
Remove the type information from a schema attribute.
|
String |
createEnumSchemaType(EnumSchemaTypeProperties schemaTypeProperties,
String validValuesSetGUID)
Create a new metadata element to represent a schema type that has a fixed set of values that are described by a valid value set.
|
String |
createLiteralSchemaType(LiteralSchemaTypeProperties schemaTypeProperties)
Create a new metadata element to represent a schema type that has a fixed value.
|
String |
createMapSchemaType(MapSchemaTypeProperties schemaTypeProperties,
String mapFromSchemaTypeGUID,
String mapToSchemaTypeGUID)
Create a new metadata element to represent a schema type.
|
List<String> |
createNestedFolders(String parentGUID,
String pathName)
Creates a new folder asset for each element in the pathName.
|
String |
createPrimitiveSchemaType(PrimitiveSchemaTypeProperties schemaTypeProperties)
Create a new metadata element to represent a primitive schema type such as a string, integer or character.
|
String |
createSchemaAttribute(String schemaElementGUID,
SchemaAttributeProperties schemaAttributeProperties)
Create a new metadata element to represent a schema attribute.
|
String |
createSchemaAttributeFromTemplate(String schemaElementGUID,
String templateGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent a schema attribute using an existing metadata element as a template.
|
String |
createSchemaTypeChoice(SchemaTypeChoiceProperties schemaTypeProperties,
List<String> schemaTypeOptionGUIDs)
Create a new metadata element to represent a list of possible schema types that can be used for the attached schema attribute.
|
String |
createSchemaTypeFromTemplate(String templateGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent a schema type using an existing metadata element as a template.
|
String |
createStructSchemaType(StructSchemaTypeProperties schemaTypeProperties)
Create a new metadata element to represent a schema type.
|
void |
deleteDataFileFromCatalog(String dataFileGUID,
String fullPathname)
Remove the file asset description from the catalog.
|
void |
detachDataFileAssetFromFolder(String folderGUID,
String fileGUID)
Remove a link between a file asset and a folder.
|
void |
detachTopLevelFolder(String fileSystemGUID,
String folderGUID)
Removed the link between a folder and a file system.
|
List<SchemaAttributeElement> |
findSchemaAttributes(String searchString,
String typeName,
int startFrom,
int pageSize)
Retrieve the list of schema attribute metadata elements that contain the search string.
|
List<SchemaTypeElement> |
findSchemaType(String searchString,
String typeName,
int startFrom,
int pageSize)
Retrieve the list of schema type metadata elements that contain the search string.
|
List<ValidValueSetElement> |
findValidValueSet(String searchString,
int startFrom,
int pageSize)
Retrieve the list of valid value set metadata elements that contain the search string.
|
DataFileElement |
getFileByGUID(String fileGUID)
Retrieve a FolderProperties asset by its unique identifier (GUID).
|
DataFileElement |
getFileByPathName(String pathName)
Retrieve a folder by its fully qualified path name.
|
FileFolderElement |
getFolderByGUID(String folderGUID)
Retrieve a FolderProperties asset by its unique identifier (GUID).
|
FileFolderElement |
getFolderByPathName(String pathName)
Retrieve a folder by its fully qualified path name.
|
List<DataFileElement> |
getFolderFiles(String folderGUID,
int startFrom,
int pageSize)
Get the data files inside a folder - both those that are nested and those that are linked.
|
List<SchemaAttributeElement> |
getNestedAttributes(String parentSchemaElementGUID,
int startFrom,
int pageSize)
Retrieve the list of schema attributes associated with a StructSchemaType or nested underneath a schema attribute.
|
List<FileFolderElement> |
getNestedFolders(String parentFolderGUID,
int startFrom,
int pageSize)
Return the list of folders nested inside a folder.
|
SchemaAttributeElement |
getSchemaAttributeByGUID(String schemaAttributeGUID)
Retrieve the schema attribute metadata element with the supplied unique identifier.
|
List<SchemaAttributeElement> |
getSchemaAttributesByName(String name,
String typeName,
int startFrom,
int pageSize)
Retrieve the list of schema attribute metadata elements with a matching qualified or display name.
|
SchemaTypeElement |
getSchemaTypeByGUID(String schemaTypeGUID)
Retrieve the schema type metadata element with the supplied unique identifier.
|
List<SchemaTypeElement> |
getSchemaTypeByName(String name,
String typeName,
int startFrom,
int pageSize)
Retrieve the list of schema type metadata elements with a matching qualified or display name.
|
SchemaTypeElement |
getSchemaTypeForElement(String parentElementGUID,
String parentElementTypeName)
Return the schema type associated with a specific open metadata element (data asset, process or port).
|
ElementHeader |
getSchemaTypeParent(String schemaTypeGUID)
Retrieve the header of the metadata element connected to a schema type.
|
List<DataFileElement> |
getTopLevelDataFiles(String fileSystemGUID,
int startFrom,
int pageSize)
Return the list of folders nested inside a folder.
|
List<FileFolderElement> |
getTopLevelFolders(String fileSystemGUID,
int startFrom,
int pageSize)
Return the list of folders linked to the file server capability.
|
List<ValidValueSetElement> |
getValidValueSetByName(String name,
int startFrom,
int pageSize)
Retrieve the list of valid value set metadata elements with a matching qualified or display name.
|
void |
registerListener(DataManagerEventListener listener)
Register a listener object that will be passed each of the events published by
the Data Manager OMAS.
|
void |
removeSchemaAttribute(String schemaAttributeGUID)
Remove the metadata element representing a schema attribute.
|
void |
removeSchemaType(String schemaTypeGUID)
Remove the metadata element representing a schema type.
|
void |
setupSchemaType(String schemaAttributeGUID,
String schemaTypeGUID)
Connect a schema type to a schema attribute.
|
void |
updateDataFileInCatalog(String dataFileGUID,
boolean isMergeUpdate,
DataFileProperties dataFileProperties)
Update the file asset description in the catalog.
|
void |
updateDataFolderInCatalog(String dataFolderGUID,
boolean isMergeUpdate,
FileFolderProperties fileFolderProperties)
Update the data folder asset description in the catalog.
|
void |
updateSchemaAttribute(String schemaAttributeGUID,
boolean isMergeUpdate,
SchemaAttributeProperties schemaAttributeProperties)
Update the properties of the metadata element representing a schema attribute.
|
void |
updateSchemaType(String schemaTypeGUID,
boolean isMergeUpdate,
SchemaTypeProperties schemaTypeProperties)
Update the metadata element representing a schema type.
|
public FilesIntegratorContext(FilesAndFoldersClient client, DataManagerEventClient eventClient, String userId, String fileServerCapabilityGUID, String fileServerCapabilityName)
client - client to map request toeventClient - client to register for eventsuserId - integration daemon's userIdfileServerCapabilityGUID - unique identifier of the software server capability for the file manager (or null)fileServerCapabilityName - unique name of the software server capability for the file manager (or null)public void registerListener(DataManagerEventListener listener) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, PropertyServerException, UserNotAuthorizedException
listener - listener objectInvalidParameterException - one of the parameters is null or invalid.ConnectionCheckedException - there are errors in the configuration of the connection which is preventing
the creation of a connector.ConnectorCheckedException - there are errors in the initialization of the connector.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<String> createNestedFolders(String parentGUID, String pathName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
parentGUID - unique identifier of root object to connect the folder to (fileSystemGUID or folderGUID)pathName - pathname of the folder (or folders)InvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void attachTopLevelFolder(String fileSystemGUID, String folderGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
fileSystemGUID - unique identifier of the file systemfolderGUID - unique identifier of the folder in the catalogInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void detachTopLevelFolder(String fileSystemGUID, String folderGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
fileSystemGUID - unique identifier of the file systemfolderGUID - unique identifier of the folder in the catalogInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<String> addDataFileToCatalog(DataFileProperties dataFileProperties, String connectorProviderName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
dataFileProperties - details of the data file to add to the catalog as an assetconnectorProviderName - class name of connector provider for connector to access this assetInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<String> addDataFileToCatalogFromTemplate(String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
templateGUID - unique identifier of the file asset to copytemplateProperties - override properties for the assetInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void updateDataFileInCatalog(String dataFileGUID, boolean isMergeUpdate, DataFileProperties dataFileProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
dataFileGUID - unique identifier of the data file assetisMergeUpdate - should the supplied properties completely override the existing properties or augment them?dataFileProperties - properties for the assetInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void archiveDataFileInCatalog(String dataFileGUID, ArchiveProperties archiveProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
dataFileGUID - unique identifier of the data file assetarchiveProperties - properties to help locate the archive copyInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void deleteDataFileFromCatalog(String dataFileGUID, String fullPathname) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
dataFileGUID - unique identifier of the data file assetfullPathname - unique path and file name for fileInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<String> addDataFolderToCatalog(FileFolderProperties fileFolderProperties, String connectorProviderName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
fileFolderProperties - properties to describe the folder propertiesconnectorProviderName - class name of connector provider for connector to access this assetInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<String> addDataFolderToCatalogFromTemplate(String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
templateGUID - unique identifier of the file asset to copytemplateProperties - override properties for the assetInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void updateDataFolderInCatalog(String dataFolderGUID, boolean isMergeUpdate, FileFolderProperties fileFolderProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
dataFolderGUID - unique identifier of the data folder assetisMergeUpdate - should the supplied properties completely override the existing properties or augment them?fileFolderProperties - properties for the assetInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void archiveDataFolderInCatalog(String dataFolderGUID, ArchiveProperties archiveProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
dataFolderGUID - unique identifier of the data folder assetarchiveProperties - properties to help locate the archive copyInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void attachDataFileAssetToFolder(String folderGUID, String fileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
folderGUID - unique identifier of the folderfileGUID - unique identifier of the fileInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void detachDataFileAssetFromFolder(String folderGUID, String fileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
folderGUID - unique identifier of the folderfileGUID - unique identifier of the fileInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic FileFolderElement getFolderByGUID(String folderGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
folderGUID - unique identifier used to locate the folderInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic FileFolderElement getFolderByPathName(String pathName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
pathName - path nameInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<FileFolderElement> getTopLevelFolders(String fileSystemGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
fileSystemGUID - unique identifier of the software server capability representing the file systemstartFrom - starting point in the listpageSize - maximum number of resultsInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<FileFolderElement> getNestedFolders(String parentFolderGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
parentFolderGUID - unique identifier of the parent folder or file systemstartFrom - starting point in the listpageSize - maximum number of resultsInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<DataFileElement> getTopLevelDataFiles(String fileSystemGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
fileSystemGUID - unique identifier of the software server capability representing the file systemstartFrom - starting point in the listpageSize - maximum number of resultsInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<DataFileElement> getFolderFiles(String folderGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
folderGUID - unique identifier of the parent folderstartFrom - starting point in the listpageSize - maximum number of resultsInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic DataFileElement getFileByGUID(String fileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
fileGUID - unique identifier used to locate the folderInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic DataFileElement getFileByPathName(String pathName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
pathName - path nameInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic String createPrimitiveSchemaType(PrimitiveSchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeProperties - properties about the schema type to storeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createLiteralSchemaType(LiteralSchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeProperties - properties about the schema type to storeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createEnumSchemaType(EnumSchemaTypeProperties schemaTypeProperties, String validValuesSetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeProperties - properties about the schema type to storevalidValuesSetGUID - unique identifier of the valid values set to usedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<ValidValueSetElement> getValidValueSetByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
name - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<ValidValueSetElement> findValidValueSet(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
searchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createStructSchemaType(StructSchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeProperties - properties about the schema type to storeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createSchemaTypeChoice(SchemaTypeChoiceProperties schemaTypeProperties, List<String> schemaTypeOptionGUIDs) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeProperties - properties about the schema type to storeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createMapSchemaType(MapSchemaTypeProperties schemaTypeProperties, String mapFromSchemaTypeGUID, String mapToSchemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeProperties - properties about the schema type to storeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createSchemaTypeFromTemplate(String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
templateGUID - unique identifier of the metadata element to copytemplateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateSchemaType(String schemaTypeGUID, boolean isMergeUpdate, SchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeGUID - unique identifier of the metadata element to updateisMergeUpdate - should the new properties be merged with existing properties (true) or completely replace them (false)?schemaTypeProperties - new properties for the metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeSchemaType(String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeGUID - unique identifier of the metadata element to removeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<SchemaTypeElement> findSchemaType(String searchString, String typeName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
searchString - string to find in the propertiestypeName - optional type name for the schema type - used to restrict the search resultsstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public SchemaTypeElement getSchemaTypeForElement(String parentElementGUID, String parentElementTypeName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
parentElementGUID - unique identifier of the open metadata element that this schema type is connected toparentElementTypeName - unique type name of the open metadata element that this schema type is connected toInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<SchemaTypeElement> getSchemaTypeByName(String name, String typeName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
name - name to search fortypeName - optional type name for the schema type - used to restrict the search resultsstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public SchemaTypeElement getSchemaTypeByGUID(String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeGUID - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public ElementHeader getSchemaTypeParent(String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeGUID - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createSchemaAttribute(String schemaElementGUID, SchemaAttributeProperties schemaAttributeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaElementGUID - unique identifier of the schemaType or Schema Attribute where the schema attribute is nested underneathschemaAttributeProperties - properties for the schema attributeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createSchemaAttributeFromTemplate(String schemaElementGUID, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaElementGUID - unique identifier of the schemaType or Schema Attribute where the schema attribute is connected totemplateGUID - unique identifier of the metadata element to copytemplateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setupSchemaType(String schemaAttributeGUID, String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaAttributeGUID - unique identifier of the schema attributeschemaTypeGUID - unique identifier of the schema type to connectInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearSchemaType(String schemaAttributeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaAttributeGUID - unique identifier of the schema attributeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateSchemaAttribute(String schemaAttributeGUID, boolean isMergeUpdate, SchemaAttributeProperties schemaAttributeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaAttributeGUID - unique identifier of the schema attribute to updateisMergeUpdate - should the new properties be merged with existing properties (true) or completely replace them (false)?schemaAttributeProperties - new properties for the schema attributeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeSchemaAttribute(String schemaAttributeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaAttributeGUID - unique identifier of the metadata element to removeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<SchemaAttributeElement> findSchemaAttributes(String searchString, String typeName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
searchString - string to find in the propertiestypeName - optional type name for the schema type - used to restrict the search resultsstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<SchemaAttributeElement> getNestedAttributes(String parentSchemaElementGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
parentSchemaElementGUID - unique identifier of the schemaType of intereststartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<SchemaAttributeElement> getSchemaAttributesByName(String name, String typeName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
name - name to search fortypeName - optional type name for the schema type - used to restrict the search resultsstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public SchemaAttributeElement getSchemaAttributeByGUID(String schemaAttributeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaAttributeGUID - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.