Class AssetManagerClientBase
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.itinfrastructure.client.AssetManagerClientBase
-
- All Implemented Interfaces:
DeploymentManagementInterface,ServerPurposeManagerInterface
- Direct Known Subclasses:
CapabilityManagerClient,DataAssetManagerClient,HostManagerClient,PlatformManagerClient,ProcessManagerClient,ServerManagerClient
public abstract class AssetManagerClientBase extends Object implements ServerPurposeManagerInterface, DeploymentManagementInterface
AssetManagerClientBase supports the APIs to maintain assets and their related objects. It is called from the specific clients that manage the specializations of asset.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddServerPurpose(String userId, String infrastructureManagerGUID, String infrastructureManagerName, boolean infrastructureManagerIsHome, String itAssetGUID, String classificationName, Date effectiveFrom, Date effectiveTo, Map<String,Object> classificationProperties)Add a Server Purpose classification to an IT asset.voidclearDeployment(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String itAssetGUID, String destinationGUID, Date effectiveTime)Remove a deployment relationship.voidclearServerPurpose(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String assetTypeName, String assetGUID, String classificationName, Date effectiveTime)Remove a server purpose classification.voiddeployITAsset(String userId, String infrastructureManagerGUID, String infrastructureManagerName, boolean infrastructureManagerIsHome, String itAssetGUID, String destinationGUID, DeploymentProperties deploymentProperties)Create a relationship that represents the deployment of an IT infrastructure asset to a specific deployment destination (another asset).List<DeploymentElement>getDeployedITAssets(String userId, String destinationGUID, Date effectiveTime, int startFrom, int pageSize)Return the list of assets deployed on a particular destination.List<DeploymentElement>getDeploymentDestinations(String userId, String itAssetGUID, Date effectiveTime, int startFrom, int pageSize)Return the list of destinations that a particular IT infrastructure asset is deployed to.voidupdateITAssetDeployment(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String deploymentGUID, boolean isMergeUpdate, DeploymentProperties deploymentProperties)Update a deployment relationship.voidupdateServerPurpose(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String assetTypeName, String assetGUID, String classificationName, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, Map<String,Object> classificationProperties)Update the properties of a classification for an asset.
-
-
-
Method Detail
-
addServerPurpose
public void addServerPurpose(String userId, String infrastructureManagerGUID, String infrastructureManagerName, boolean infrastructureManagerIsHome, String itAssetGUID, String classificationName, Date effectiveFrom, Date effectiveTo, Map<String,Object> classificationProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Add a Server Purpose classification to an IT asset.- Specified by:
addServerPurposein interfaceServerPurposeManagerInterface- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the infrastructure managerinfrastructureManagerName- unique name of software server capability representing the infrastructure managerinfrastructureManagerIsHome- ensure that only the infrastructure manager can update this assetitAssetGUID- unique identifier of the assetclassificationName- name of the classification typeeffectiveFrom- when should relationship be effective - null means immediatelyeffectiveTo- when should relationship no longer be effective - null means neverclassificationProperties- properties- Throws:
InvalidParameterException- 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)
-
updateServerPurpose
public void updateServerPurpose(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String assetTypeName, String assetGUID, String classificationName, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, Map<String,Object> classificationProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the properties of a classification for an asset.- Specified by:
updateServerPurposein interfaceServerPurposeManagerInterface- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the infrastructure managerinfrastructureManagerName- unique name of software server capability representing the infrastructure managerassetTypeName- name of type for the assetassetGUID- unique identifier of the assetclassificationName- name of the classification typeeffectiveFrom- when should relationship be effective - null means immediatelyeffectiveTo- when should relationship no longer be effective - null means neverisMergeUpdate- should the supplied properties be merged with existing properties (true) by replacing just the properties with matching names, or should the entire properties of the instance be replaced?classificationProperties- properties- Throws:
InvalidParameterException- 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)
-
clearServerPurpose
public void clearServerPurpose(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String assetTypeName, String assetGUID, String classificationName, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a server purpose classification.- Specified by:
clearServerPurposein interfaceServerPurposeManagerInterface- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the infrastructure managerinfrastructureManagerName- unique name of software server capability representing the infrastructure managerassetTypeName- name of type for the assetassetGUID- unique identifier of the assetclassificationName- name of the classification typeeffectiveTime- effective time of the classification to remove- Throws:
InvalidParameterException- 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)
-
deployITAsset
public void deployITAsset(String userId, String infrastructureManagerGUID, String infrastructureManagerName, boolean infrastructureManagerIsHome, String itAssetGUID, String destinationGUID, DeploymentProperties deploymentProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a relationship that represents the deployment of an IT infrastructure asset to a specific deployment destination (another asset).- Specified by:
deployITAssetin interfaceDeploymentManagementInterface- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the infrastructure managerinfrastructureManagerName- unique name of software server capability representing the infrastructure managerinfrastructureManagerIsHome- should the relationship be marked as owned by the infrastructure manager so others can not update?itAssetGUID- unique identifier of the IT infrastructure assetdestinationGUID- unique identifier of the destination where the asset is being deployed todeploymentProperties- relationship properties- Throws:
InvalidParameterException- 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)
-
updateITAssetDeployment
public void updateITAssetDeployment(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String deploymentGUID, boolean isMergeUpdate, DeploymentProperties deploymentProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update a deployment relationship.- Specified by:
updateITAssetDeploymentin interfaceDeploymentManagementInterface- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the infrastructure managerinfrastructureManagerName- unique name of software server capability representing the infrastructure managerdeploymentGUID- unique identifier of the relationshipisMergeUpdate- should the supplied properties be merged with existing properties (true) by replacing just the properties with matching names, or should the entire properties of the instance be replaced?deploymentProperties- properties for the relationship- Throws:
InvalidParameterException- 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)
-
clearDeployment
public void clearDeployment(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String itAssetGUID, String destinationGUID, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a deployment relationship.- Specified by:
clearDeploymentin interfaceDeploymentManagementInterface- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the infrastructure managerinfrastructureManagerName- unique name of software server capability representing the infrastructure manageritAssetGUID- unique identifier of the IT infrastructure assetdestinationGUID- unique identifier of the destination where the asset is being deployed toeffectiveTime- time when the deployment is effective- Throws:
InvalidParameterException- 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)
-
getDeployedITAssets
public List<DeploymentElement> getDeployedITAssets(String userId, String destinationGUID, Date effectiveTime, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the list of assets deployed on a particular destination.- Specified by:
getDeployedITAssetsin interfaceDeploymentManagementInterface- Parameters:
userId- calling userdestinationGUID- unique identifier of the destination asset to queryeffectiveTime- effective time for the querystartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- 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)
-
getDeploymentDestinations
public List<DeploymentElement> getDeploymentDestinations(String userId, String itAssetGUID, Date effectiveTime, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the list of destinations that a particular IT infrastructure asset is deployed to.- Specified by:
getDeploymentDestinationsin interfaceDeploymentManagementInterface- Parameters:
userId- calling useritAssetGUID- unique identifier of the IT infrastructure asset to queryeffectiveTime- effective time for the querystartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- 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)
-
-