public class FileSystemAssetOwner extends AssetOwner implements AssetOnboardingFileSystem
auditLog, invalidParameterHandler, nullRequestBody, serverName, serverPlatformRootURL| Constructor and Description |
|---|
FileSystemAssetOwner(String serverName,
String serverPlatformRootURL)
Create a new client with no authentication embedded in the HTTP request.
|
FileSystemAssetOwner(String serverName,
String serverPlatformRootURL,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request and an audit log.
|
FileSystemAssetOwner(String serverName,
String serverPlatformRootURL,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
FileSystemAssetOwner(String serverName,
String serverPlatformRootURL,
String userId,
String password,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
addDataFileAssetToCatalog(String userId,
String displayName,
String description,
String pathName)
Creates a new data file asset and links it to the folder structure implied in the path name.
|
List<String> |
addDataFolderAssetToCatalog(String userId,
String displayName,
String description,
String pathName)
Creates a new folder asset that is identified as a data asset.
|
void |
attachDataFileAssetToFolder(String userId,
String folderGUID,
String fileGUID)
Link an existing file asset to a folder.
|
void |
attachFolderToFileSystem(String userId,
String fileSystemGUID,
String folderGUID)
Links a folder to a file system.
|
String |
createFileSystemInCatalog(String userId,
String uniqueName,
String displayName,
String description,
String type,
String version,
String patchLevel,
String source,
String format,
String encryption,
Map<String,String> additionalProperties)
Files live on a file system.
|
List<String> |
createFolderStructureInCatalog(String userId,
String pathName)
Creates a new folder asset for each element in the pathName.
|
List<String> |
createFolderStructureInCatalog(String userId,
String anchorGUID,
String pathName)
Creates a new folder asset for each element in the pathName that is linked from the anchor entity.
|
void |
detachDataFileAssetFromFolder(String userId,
String folderGUID,
String fileGUID)
Remove a link between a file asset and a folder.
|
void |
detachFolderFromFileSystem(String userId,
String fileSystemGUID,
String folderGUID)
Removed the link between a folder and a file system.
|
FileSystem |
getFileSystemByGUID(String userId,
String fileSystemGUID)
Retrieve a FileSystem asset by its unique identifier (GUID).
|
FileSystem |
getFileSystemByUniqueName(String userId,
String uniqueName)
Retrieve a FileSystem asset by its unique name.
|
List<String> |
getFileSystems(String userId,
int startingFrom,
int maxPageSize)
Retrieve a list of defined FileSystems assets.
|
Folder |
getFolderByGUID(String userId,
String folderGUID)
Retrieve a Folder asset by its unique identifier (GUID).
|
Folder |
getFolderByPathName(String userId,
String pathName)
Retrieve a folder by its fully qualified path name.
|
List<String> |
getFolderFiles(String userId,
String folderGUID,
int startingFrom,
int maxPageSize)
Get the files inside a folder - both those that are nested and those that are linked.
|
List<String> |
getNestedFolders(String userId,
String anchorGUID,
int startingFrom,
int maxPageSize)
Return the list of folders nested inside a folder.
|
void |
moveDataFileInCatalog(String userId,
String folderGUID,
String fileGUID)
Move a file from its current parent folder to a new parent folder - this changes the file's qualified name
but not its unique identifier (guid).
|
void |
moveDataFolderInCatalog(String userId,
String folderGUID,
String dataFolderGUID)
Move a data folder from its current parent folder to a new parent folder - this changes the folder's qualified name
but not its unique identifier (guid).
|
addAssetOrigin, addAssetToCatalog, addCombinedSchemaToAsset, addConnectionToAsset, addSchemaAttribute, addSchemaAttributes, addSchemaAttributesToSchema, addSchemaToAsset, addSchemaTypeToAsset, addSecurityTags, addSemanticAssignment, attachSchemaTypeToAsset, deleteAsset, deleteAssetSchemaType, detachSchemaTypeFromAsset, findAssets, getAssetProperties, getAssetsByName, getAssetSummary, getConnectorToAsset, getDiscoveryAnalysisReports, getDiscoveryReportAnnotations, getExtendedAnnotations, getTypesOfAnnotation, getTypesOfAnnotationWithDescriptions, getTypesOfAsset, getTypesOfAssetWithDescriptions, removeAssetOrigin, removeSecurityTags, removeSemanticAssignment, updateAssetOwner, updateAssetZonesgetAssetForConnection, getAssetProperties, getAssetSummary, getConnectionByGUID, getConnectionForAsset, getConnectorForConnectionpublic FileSystemAssetOwner(String serverName, String serverPlatformRootURL, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public FileSystemAssetOwner(String serverName, String serverPlatformRootURL) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public FileSystemAssetOwner(String serverName, String serverPlatformRootURL, String userId, String password, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public FileSystemAssetOwner(String serverName, String serverPlatformRootURL, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public String createFileSystemInCatalog(String userId, String uniqueName, String displayName, String description, String type, String version, String patchLevel, String source, String format, String encryption, Map<String,String> additionalProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createFileSystemInCatalog in interface AssetOnboardingFileSystemuserId - calling useruniqueName - qualified name for the file systemdisplayName - short display namedescription - description of the file systemtype - type of file systemversion - version of file systempatchLevel - patchLevel of software supporting the file systemsource - supplier of the software for this file systemformat - format of files on this file systemencryption - encryption type - null for unencryptedadditionalProperties - additional propertiesInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<String> createFolderStructureInCatalog(String userId, String anchorGUID, String pathName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createFolderStructureInCatalog in interface AssetOnboardingFileSystemuserId - calling useranchorGUID - root object to connect the folder topathName - pathname of the folder (or folders)InvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<String> createFolderStructureInCatalog(String userId, String pathName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createFolderStructureInCatalog in interface AssetOnboardingFileSystemuserId - calling userpathName - pathname of the folder (or folders)InvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void attachFolderToFileSystem(String userId, String fileSystemGUID, String folderGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
attachFolderToFileSystem in interface AssetOnboardingFileSystemuserId - calling userfileSystemGUID - unique identifier of the file system in the catalogfolderGUID - unique identifier of the folder in the catalogInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void detachFolderFromFileSystem(String userId, String fileSystemGUID, String folderGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
detachFolderFromFileSystem in interface AssetOnboardingFileSystemuserId - calling userfileSystemGUID - unique identifier of the file system in the catalogfolderGUID - 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> addDataFileAssetToCatalog(String userId, String displayName, String description, String pathName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
addDataFileAssetToCatalog in interface AssetOnboardingFileSystemuserId - calling userdisplayName - display name for the file in the catalogdescription - description of the file in the catalogpathName - pathname of the data fileInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<String> addDataFolderAssetToCatalog(String userId, String displayName, String description, String pathName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
addDataFolderAssetToCatalog in interface AssetOnboardingFileSystemuserId - calling userdisplayName - display name for the file in the catalogdescription - description of the file in the catalogpathName - pathname of the data folderInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void attachDataFileAssetToFolder(String userId, String folderGUID, String fileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
attachDataFileAssetToFolder in interface AssetOnboardingFileSystemuserId - calling userfolderGUID - 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 userId, String folderGUID, String fileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
detachDataFileAssetFromFolder in interface AssetOnboardingFileSystemuserId - calling userfolderGUID - 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 moveDataFileInCatalog(String userId, String folderGUID, String fileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
moveDataFileInCatalog in interface AssetOnboardingFileSystemuserId - calling userfolderGUID - new parent folderfileGUID - unique identifier of the file to moveInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void moveDataFolderInCatalog(String userId, String folderGUID, String dataFolderGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
moveDataFolderInCatalog in interface AssetOnboardingFileSystemuserId - calling userfolderGUID - new parent folderdataFolderGUID - unique identifier of the file to moveInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic FileSystem getFileSystemByGUID(String userId, String fileSystemGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getFileSystemByGUID in interface AssetOnboardingFileSystemuserId - calling userfileSystemGUID - unique identifier used to locate the file systemInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic FileSystem getFileSystemByUniqueName(String userId, String uniqueName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getFileSystemByUniqueName in interface AssetOnboardingFileSystemuserId - calling useruniqueName - unique identifier used to locate the folderInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<String> getFileSystems(String userId, int startingFrom, int maxPageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getFileSystems in interface AssetOnboardingFileSystemuserId - calling userstartingFrom - starting point in the listmaxPageSize - maximum number of resultsInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic Folder getFolderByGUID(String userId, String folderGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getFolderByGUID in interface AssetOnboardingFileSystemuserId - calling userfolderGUID - unique identifier used to locate the folderInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic Folder getFolderByPathName(String userId, String pathName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getFolderByPathName in interface AssetOnboardingFileSystemuserId - calling userpathName - path nameInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<String> getNestedFolders(String userId, String anchorGUID, int startingFrom, int maxPageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getNestedFolders in interface AssetOnboardingFileSystemuserId - calling useranchorGUID - unique identifier of the anchor folder or file systemstartingFrom - starting point in the listmaxPageSize - maximum number of resultsInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<String> getFolderFiles(String userId, String folderGUID, int startingFrom, int maxPageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getFolderFiles in interface AssetOnboardingFileSystemuserId - calling userfolderGUID - unique identifier of the anchor folderstartingFrom - starting point in the listmaxPageSize - maximum number of resultsInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2020 ODPi. All rights reserved.