Interface OperatingPlatformManagerInterface
-
public interface OperatingPlatformManagerInterfaceOperatingPlatformManagerInterface provides methods to define operating platforms. OperatingPlatforms describe the operating system and hardware characteristics of a host.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearOperatingPlatformFromHost(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String hostGUID)Remove any link from an operating platform to the requested host.StringcreateOperatingPlatform(String userId, String infrastructureManagerGUID, String infrastructureManagerName, OperatingPlatformProperties operatingPlatformProperties)Create a new metadata element to represent the operating platform.StringcreateOperatingPlatformFromTemplate(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String templateGUID, TemplateProperties templateProperties)Create a new metadata element to represent a operating platform using an existing metadata element as a template.List<OperatingPlatformElement>findOperatingPlatforms(String userId, String searchString, int startFrom, int pageSize)Retrieve the list of operating platform metadata elements that contain the search string.OperatingPlatformElementgetOperatingPlatformByGUID(String userId, String operatingPlatformGUID)Retrieve the operating platform metadata element with the supplied unique identifier.List<OperatingPlatformElement>getOperatingPlatformsByName(String userId, String name, int startFrom, int pageSize)Retrieve the list of operating platform metadata elements with a matching qualified or display name.voidlinkOperatingPlatformToHost(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String operatingPlatformGUID, String hostGUID)Set up the link between the operating platform and a host.voidremoveOperatingPlatform(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String operatingPlatformGUID)Remove the metadata element representing a operating platform.voidupdateOperatingPlatform(String userId, String infrastructureManagerGUID, String infrastructureManagerName, boolean isMergeUpdate, String operatingPlatformGUID, OperatingPlatformProperties operatingPlatformProperties)Update the metadata element representing a operating platform.
-
-
-
Method Detail
-
createOperatingPlatform
String createOperatingPlatform(String userId, String infrastructureManagerGUID, String infrastructureManagerName, OperatingPlatformProperties operatingPlatformProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent the operating platform.- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the callerinfrastructureManagerName- unique name of software server capability representing the calleroperatingPlatformProperties- properties to store- Returns:
- unique identifier of the new metadata element
- 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)
-
createOperatingPlatformFromTemplate
String createOperatingPlatformFromTemplate(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a operating platform using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new operating platform.- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the callerinfrastructureManagerName- unique name of software server capability representing the callertemplateGUID- unique identifier of the metadata element to copytemplateProperties- descriptive properties that override the template- Returns:
- unique identifier of the new metadata element
- 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)
-
updateOperatingPlatform
void updateOperatingPlatform(String userId, String infrastructureManagerGUID, String infrastructureManagerName, boolean isMergeUpdate, String operatingPlatformGUID, OperatingPlatformProperties operatingPlatformProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing a operating platform.- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the callerinfrastructureManagerName- unique name of software server capability representing the callerisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?operatingPlatformGUID- unique identifier of the metadata element to updateoperatingPlatformProperties- new properties for this element- 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)
-
removeOperatingPlatform
void removeOperatingPlatform(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String operatingPlatformGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a operating platform. This will delete the operating platform and all categories and terms.- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the callerinfrastructureManagerName- unique name of software server capability representing the calleroperatingPlatformGUID- unique identifier of the metadata element 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)
-
linkOperatingPlatformToHost
void linkOperatingPlatformToHost(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String operatingPlatformGUID, String hostGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Set up the link between the operating platform and a host. If the host is already linked to a different operating platform, the existing link is deleted.- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the callerinfrastructureManagerName- unique name of software server capability representing the calleroperatingPlatformGUID- unique identifier of the operating platform metadata elementhostGUID- unique identifier of the host- 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)
-
clearOperatingPlatformFromHost
void clearOperatingPlatformFromHost(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String hostGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove any link from an operating platform to the requested host. This is useful if the host is being decommissioned or undergoing an extensive reinstall.- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the callerinfrastructureManagerName- unique name of software server capability representing the callerhostGUID- unique identifier of the host- 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)
-
findOperatingPlatforms
List<OperatingPlatformElement> findOperatingPlatforms(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of operating platform metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId- calling usersearchString- string to find in the propertiesstartFrom- 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)
-
getOperatingPlatformsByName
List<OperatingPlatformElement> getOperatingPlatformsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of operating platform metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId- calling username- name to search forstartFrom- 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)
-
getOperatingPlatformByGUID
OperatingPlatformElement getOperatingPlatformByGUID(String userId, String operatingPlatformGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the operating platform metadata element with the supplied unique identifier.- Parameters:
userId- calling useroperatingPlatformGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- 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)
-
-