@ SuppressWarnings ( "unchecked" ) public Collection < ProductResourceImpl > getAllProducts ( LicenseType licenseType ) throws RepositoryBackendException { Collection < ProductResourceImpl > product = ( Collection < ProductResourceImpl > ) getAllResources ( licenseType , ResourceType . INSTALL ) ; Collection < ProductResourceImpl > addons = ( Collection < ProductResourceImpl > ) getAllResources ( licenseType , ResourceType . ADDON ) ; product . addAll ( addons ) ; return product ; }
Get all products with a given license type