@Test public void getSoftwareServerCapabilityByGUID() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException { String methodName = "getSoftwareServerCapabilityByGUID"; mockGetEntityByGUID(SOFTWARE_SERVER_CAPABILITY_GUID, SOFTWARE_SERVER_CAPABILITY, mockEntityDetails(SOFTWARE_SERVER_CAPABILITY_GUID, SOFTWARE_SERVER_CAPABILITY)); SoftwareServerCapability softwareServerCapabilityByGUID = governedAssetHandler.getSoftwareServerCapabilityByGUID(USER_ID, SOFTWARE_SERVER_CAPABILITY_GUID); assertEquals(SOFTWARE_SERVER_CAPABILITY_GUID, softwareServerCapabilityByGUID.getGUID()); verify(invalidParameterHandler, times(1)).validateUserId(USER_ID, methodName); }
public SoftwareServerCapability getSoftwareServerCapabilityByGUID(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException { String methodName = "getSoftwareServerCapabilityByGUID"; invalidParameterHandler.validateUserId(userId, methodName); EntityDetail entityDetailsByGUID = getEntityDetailsByGUID(userId, guid, SOFTWARE_SERVER_CAPABILITY); if (entityDetailsByGUID == null) { return null; } return convertSoftwareServerCapability(entityDetailsByGUID); }
GovernedAssetHandler { public SoftwareServerCapability getSoftwareServerCapabilityByGUID(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException { String methodName = "getSoftwareServerCapabilityByGUID"; invalidParameterHandler.validateUserId(userId, methodName); EntityDetail entityDetailsByGUID = getEntityDetailsByGUID(userId, guid, SOFTWARE_SERVER_CAPABILITY); if (entityDetailsByGUID == null) { return null; } return convertSoftwareServerCapability(entityDetailsByGUID); } }
GovernedAssetHandler { public SoftwareServerCapability getSoftwareServerCapabilityByGUID(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException { String methodName = "getSoftwareServerCapabilityByGUID"; invalidParameterHandler.validateUserId(userId, methodName); EntityDetail entityDetailsByGUID = getEntityDetailsByGUID(userId, guid, SOFTWARE_SERVER_CAPABILITY); if (entityDetailsByGUID == null) { return null; } return convertSoftwareServerCapability(entityDetailsByGUID); } GovernedAssetHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler,
                                RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, RepositoryErrorHandler errorHandler,
                                List<String> supportedZones); }
GovernedAssetHandler { public SoftwareServerCapability getSoftwareServerCapabilityByGUID(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException { String methodName = "getSoftwareServerCapabilityByGUID"; invalidParameterHandler.validateUserId(userId, methodName); EntityDetail entityDetailsByGUID = getEntityDetailsByGUID(userId, guid, SOFTWARE_SERVER_CAPABILITY); if (entityDetailsByGUID == null) { return null; } return convertSoftwareServerCapability(entityDetailsByGUID); } GovernedAssetHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler,
                                RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, RepositoryErrorHandler errorHandler,
                                List<String> supportedZones); void setSecurityVerifier(OpenMetadataServerSecurityVerifier securityVerifier); List<GovernedAsset> getGovernedAssets(String userId, List<String> entityTypes, Integer offset, Integer pageSize); GovernedAsset getGovernedAsset(String userId, String assedID); boolean containsGovernedClassification(EntityDetail entityDetail); boolean isSchemaElement(InstanceType entityType); String createSoftwareServerCapability(String userId, SoftwareServerCapability softwareServerCapability); SoftwareServerCapability getSoftwareServerCapabilityByGUID(String userId, String guid); GovernedAsset convertGovernedAsset(String userID, EntityDetail entity); }
GovernedAssetHandler { public SoftwareServerCapability getSoftwareServerCapabilityByGUID(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException { String methodName = "getSoftwareServerCapabilityByGUID"; invalidParameterHandler.validateUserId(userId, methodName); EntityDetail entityDetailsByGUID = getEntityDetailsByGUID(userId, guid, SOFTWARE_SERVER_CAPABILITY); if (entityDetailsByGUID == null) { return null; } return convertSoftwareServerCapability(entityDetailsByGUID); } GovernedAssetHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler,
                                RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, RepositoryErrorHandler errorHandler,
                                List<String> supportedZones); void setSecurityVerifier(OpenMetadataServerSecurityVerifier securityVerifier); List<GovernedAsset> getGovernedAssets(String userId, List<String> entityTypes, Integer offset, Integer pageSize); GovernedAsset getGovernedAsset(String userId, String assedID); boolean containsGovernedClassification(EntityDetail entityDetail); boolean isSchemaElement(InstanceType entityType); String createSoftwareServerCapability(String userId, SoftwareServerCapability softwareServerCapability); SoftwareServerCapability getSoftwareServerCapabilityByGUID(String userId, String guid); GovernedAsset convertGovernedAsset(String userID, EntityDetail entity);  }