Interface ProductRegistryService
-
public interface ProductRegistryService
Use ProductRegistryService to obtain read-only access to the Global Component Registry.
Methods to retrieve Products and Components are available. In most of them, use an instance of the SoftwareObjectSearchCriteria class to refine your search.
The ProductRegistryService can be obtained through the one of the custom code Proxy objects by a request for the ProductRegistryService implementation class, as follows:
ProductRegistryService service = (ProductRegistryService) proxy.getService(ProductRegistryService.class);
- See Also:
SoftwareObject
,Product
,Component
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Component[]
getComponents(SoftwareObjectSearchCriteria criteria)
Retrieves Components from the registry.Component
getNewestComponent(SoftwareObjectSearchCriteria criteria)
Retrieves the Newest Component from the registry.Product
getNewestProduct(SoftwareObjectSearchCriteria criteria)
Retrieves the Newest Product from the registry.Product[]
getProducts(SoftwareObjectSearchCriteria criteria)
Retrieves Products from the registry.Product[]
getProductsByVendor(java.lang.String UUID)
Retrieves Products from the registry, filtered by a specific Vendor.Product[]
getProductsWithComponent(java.lang.String UUID)
Retrieves Products from the registry, filtered by a specific Component.
-
-
-
Method Detail
-
getProducts
Product[] getProducts(SoftwareObjectSearchCriteria criteria)
Retrieves Products from the registry.
The results are sorted by Name, Version and Last Modification Date.
- Parameters:
criteria
- Only the Products that match the criteria are returned. If the provided argument is null, all the Products are returned.- Returns:
- A sorted and filtered array of Products.
- See Also:
Product
,SoftwareObjectSearchCriteria
,getNewestProduct(com.zerog.ia.api.pub.registry.SoftwareObjectSearchCriteria)
,getComponents(com.zerog.ia.api.pub.registry.SoftwareObjectSearchCriteria)
-
getComponents
Component[] getComponents(SoftwareObjectSearchCriteria criteria)
Retrieves Components from the registry.
The results are sorted by Name and Version.
- Parameters:
criteria
- Only the Components that match the criteria are returned. If the provided argument is null, all the Components are returned.- Returns:
- A sorted and filtered array of Components.
- See Also:
Component
,SoftwareObjectSearchCriteria
,getNewestComponent(com.zerog.ia.api.pub.registry.SoftwareObjectSearchCriteria)
,getProducts(com.zerog.ia.api.pub.registry.SoftwareObjectSearchCriteria)
-
getNewestProduct
Product getNewestProduct(SoftwareObjectSearchCriteria criteria)
Retrieves the Newest Product from the registry.
If more than one Product matches the criteria specified, the results are sorted by Name, Version and Last Modification and the first Product is returned.
- Parameters:
criteria
- Only the Products that match the criteria are used to determine the newest one. If the provided argument is null, all the Products are used.- Returns:
- An instance of Component.
- See Also:
Product
,SoftwareObjectSearchCriteria
,getProducts(com.zerog.ia.api.pub.registry.SoftwareObjectSearchCriteria)
-
getNewestComponent
Component getNewestComponent(SoftwareObjectSearchCriteria criteria)
Retrieves the Newest Component from the registry.
If more than one Component matches the criteria specified, the results are sorted by Name and Version and the first Component is returned.
- Parameters:
criteria
- Only the Components that match the criteria are used to determine the newest one. If the provided argument is null, all the Components are used.- Returns:
- An instance of Component.
- See Also:
Component
,SoftwareObjectSearchCriteria
,getComponents(com.zerog.ia.api.pub.registry.SoftwareObjectSearchCriteria)
-
getProductsByVendor
Product[] getProductsByVendor(java.lang.String UUID)
Retrieves Products from the registry, filtered by a specific Vendor.
The results are sorted by Name, Version and Last Modification Date.
- Parameters:
UUID
- Represents the UUID of the Vendor (e.g. "f2e0e6a6-1eec-11b2-adcb-d5eb84d8b90a"). Only the Products that match the specific Vendor are returned. If the provided argument is null, all the Products are returned.- Returns:
- A sorted and filtered array of Products.
- See Also:
Product
,getProducts(com.zerog.ia.api.pub.registry.SoftwareObjectSearchCriteria)
-
getProductsWithComponent
Product[] getProductsWithComponent(java.lang.String UUID)
Retrieves Products from the registry, filtered by a specific Component.
The results are sorted by Name, Version and Last Modification Date.
- Parameters:
UUID
- Represents the UUID of the Component (e.g. "f2e0e6a6-1eec-11b2-adcb-d5eb84d8b90a"). Only the Products that contain the specific Component are returned. If the provided argument is null, all the Products are returned.- Returns:
- A sorted and filtered array of Products.
- See Also:
Product
,Component
,getProducts(com.zerog.ia.api.pub.registry.SoftwareObjectSearchCriteria)
-
-