public Set < InstallLicense > getFeatureLicense ( Collection < String > featureNames , Locale locale , String userId , String password ) throws InstallException { Set < InstallLicense > licenses = new HashSet < InstallLicense > ( ) ; if ( featureNames == null || featureNames . isEmpty ( ) ) return licenses ; Map < String , List < List < RepositoryResource > > > installResources = getResolveDirector ( ) . resolveMap ( featureNames , DownloadOption . required , userId , password ) ; if ( isEmpty ( installResources ) ) { this . installAssets = new ArrayList < List < InstallAsset > > ( 0 ) ; return licenses ; } return getFeatureLicense ( locale , installResources ) ; }
Gets the licenses for the specified feature names