Examples of SampleInformation


Examples of org.wso2.carbon.sample.installer.beans.SampleInformation

        if (samplesDescConfig.length > 0) {
            // now load the cloud services configuration
            Map<String, CloudServiceConfig> cloudServiceConfigs = CloudServiceConfigParser.
                    loadCloudServicesConfiguration().getCloudServiceConfigs();
            for (SampleConfig sample : samplesDescConfig) {
                SampleInformation information = new SampleInformation();
                information.setFileName(sample.getFileName());
                information.setSampleName(sample.getName());
                String[] requiredServices = sample.getCloudServices();
                information.setRequiredServices(requiredServices);
                List<String> serviceEPRs = new LinkedList<String>();
                for (String service : requiredServices) {
                    serviceEPRs.add(cloudServiceConfigs.get(service).getLink());
                }
                information.setServiceEPRs(serviceEPRs.toArray(new String[serviceEPRs.size()]));
                sampleInformation.add(information);
            }
        }
    }
View Full Code Here

Examples of org.wso2.carbon.sample.installer.beans.SampleInformation

     * @return a record containing information on each sample available on the system.
     */
    public static SampleInformation[] getSampleInformation() {
        List<SampleInformation> samples = new LinkedList<SampleInformation>();
        for (SampleInformation sample : sampleInformation) {
            SampleInformation temp = new SampleInformation();
            temp.setServiceEPRs(sample.getServiceEPRs());
            temp.setRequiredServices(sample.getRequiredServices());
            temp.setFileName(sample.getFileName());
            temp.setSampleName(sample.getSampleName());
            samples.add(temp);
        }
        return samples.toArray(new SampleInformation[samples.size()]);

        //return sampleInformation.toArray(new SampleInformation[sampleInformation.size()]);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.