Examples of importFrom()


Examples of org.jboss.dna.cnd.CndImporter.importFrom()

            Destination destination = new GraphBatchDestination(batch);
            CndImporter importer = new CndImporter(destination, pathFactory.createRootPath());
            InputStream is = getClass().getResourceAsStream(resourceName);

            // This submits the batch
            importer.importFrom(is, problems, resourceName);
        }
        this.problems = new ImmutableProblems(problems);
    }

    /**
 
View Full Code Here

Examples of org.jboss.shrinkwrap.api.importer.ZipImporter.importFrom()

        File defaultFile = new File(getRepo(), "default/default.car");
        Assert.assertTrue(defaultFile.exists());

        JavaArchive lib = ShrinkWrap.create(JavaArchive.class, "default.car");
        ZipImporter zipImporter = lib.as(ZipImporter.class);
        zipImporter.importFrom(defaultFile);

        testArchive(module, lib);
    }

    @Test
View Full Code Here

Examples of org.modeshape.jcr.CndImporter.importFrom()

    private CndImporter importNodesFromCND( InputStream cndInputStream ) throws IOException {
        Problems problemsDuringImport = new SimpleProblems();

        CndImporter cndImporter = new CndImporter(new ExecutionContext());
        cndImporter.importFrom(cndInputStream, problemsDuringImport, null);
        if (problemsDuringImport.hasErrors()) {
            problemsDuringImport.writeTo(LOGGER);
            return null;
        }
View Full Code Here

Examples of org.picketlink.config.federation.IDPType.importFrom()

            if (configuration.isSupportMetadata()) {
                try {
                    IDPType metadataConfig = new IDPMetadataConfigurationProvider().getIDPConfiguration();

                    metadataConfig.importFrom(configuration);

                    providerType = metadataConfig;
                } catch (ProcessingException e) {
                    throw PicketLinkLogger.ROOT_LOGGER.federationSAMLMetadataConfigError(configuration.getAlias(), e);
                }
View Full Code Here

Examples of org.picketlink.config.federation.SPType.importFrom()

                        metadataConfig = new SPPostMetadataConfigurationProvider().getSPConfiguration();
                    } else {
                        metadataConfig = new SPRedirectMetadataConfigurationProvider().getSPConfiguration();
                    }

                    metadataConfig.importFrom(configuration);

                    providerType = metadataConfig;
                } catch (ProcessingException e) {
                    throw PicketLinkLogger.ROOT_LOGGER.federationSAMLMetadataConfigError(configuration.getAlias(), e);
                }
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.IDPType.importFrom()

        } else {
            throw logger.nullValueError(IDP_MD_FILE);
        }

        if (configParsedIDPType != null) {
            idpType.importFrom(configParsedIDPType);
        }

        return idpType;
    }
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.SPType.importFrom()

            } catch (ConfigurationException ce) {
                throw logger.processingError(ce);
            }
        }
        if (configParsedSPType != null) {
            spType.importFrom(configParsedSPType);
        }
        return spType;
    }

    private boolean fileAvailable() {
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.SPType.importFrom()

        } else {
            throw logger.nullValueError(SP_MD_FILE);
        }
       
        if (configParsedSPType != null) {
            spType.importFrom(configParsedSPType);
        }
        return spType;
    }

    private boolean fileAvailable() {
View Full Code Here

Examples of org.wildfly.extension.picketlink.federation.config.IDPConfiguration.importFrom()

                    throw PicketLinkLogger.ROOT_LOGGER.federationSAMLMetadataConfigError(configuration.getAlias(), e);
                }
            }

            if (configParsedIDPType != null) {
                configuration.importFrom(configParsedIDPType);
            }

            return (IDPType) providerType;
        }
View Full Code Here

Examples of org.wildfly.extension.picketlink.federation.config.SPConfiguration.importFrom()

                    throw PicketLinkLogger.ROOT_LOGGER.federationSAMLMetadataConfigError(configuration.getAlias(), e);
                }
            }

            if (configParsedSPType != null) {
                configuration.importFrom(configParsedSPType);
            }

            return (SPType) providerType;
        }
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.