Examples of PatternType


Examples of org.apache.geronimo.deployment.xbeans.PatternType

                        moduleFile = new NestedJarFile(earFile, modulePath);
                    } catch (IOException e) {
                        throw new DeploymentException("Invalid moduleFile: " + modulePath, e);
                    }
                } else {
                    PatternType patternType = gerExtModule.getExternalPath();
                    String groupId = trim(patternType.getGroupId());
                    String artifactId = trim(patternType.getArtifactId());
                    String version = trim(patternType.getVersion());
                    String type = trim(patternType.getType());
                    Artifact artifact = new Artifact(groupId, artifactId, version, type);
                    try {
                        artifact = getArtifactResolver().resolveInClassLoader(artifact);
                    } catch (MissingDependencyException e) {
                        throw new DeploymentException("Could not resolve external rar location in repository: " + artifact, e);
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.PatternType

        }

        PatternType[] dependencyArray = gbean.getDependencyArray();
        if (dependencyArray != null) {
            for (int i = 0; i < dependencyArray.length; i++) {
                PatternType patternType = dependencyArray[i];
                builder.addDependency(patternType);
            }
        }

        GBeanData gbeanData = builder.getGBeanData();
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.PatternType

        if (processAdvancedSettings) {
            String parameterName = "security" + "." + "credentialStoreRef";
            if (map.containsKey(parameterName)) {
                String patternString = request.getParameter(parameterName);
                String[] elements = patternString.split("/", 6);
                PatternType pattern = PatternType.Factory.newInstance();
                pattern.setGroupId(elements[0]);
                pattern.setArtifactId(elements[1]);
                // pattern.setVersion(elements[2]);
                // pattern.setType(elements[3]);
                // pattern.setModule(elements[4]);
                pattern.setName(elements[5]);
                security.setCredentialStoreRef(pattern);
                dependenciesSet.add(JndiRefsConfigData.getDependencyString(patternString));
            }
            String prefix = "security" + "." + "defaultSubject" + ".";
            if (map.containsKey(prefix + "realm")) {
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.PatternType

                boolean wrapPrincipals = (abstractLoginModule.isSetWrapPrincipals() && abstractLoginModule.getWrapPrincipals());
                ReferencePatterns loginModuleReferencePatterns;
                String name;
                if (abstractLoginModule instanceof GerLoginModuleRefType) {
                    GerLoginModuleRefType loginModuleRef = (GerLoginModuleRefType) abstractLoginModule;
                    PatternType patternType = loginModuleRef.getPattern();
                    AbstractNameQuery loginModuleNameQuery = SingleGBeanBuilder.buildAbstractNameQuery(patternType, USE_REFERENCE_INFO);
                    loginModuleReferencePatterns = new ReferencePatterns(loginModuleNameQuery);
                    name = (String) loginModuleNameQuery.getName().get("name");
                    if (name == null) {
                        throw new DeploymentException("You must specify the name of the login module in the login module ref " + patternType);
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.PatternType

                if (ref.isSetName()) {
                    String name = ref.getName().trim();
                    AbstractNameQuery roleMapperDataName = new AbstractNameQuery(null, Collections.singletonMap("name", name), PrincipalRoleMapper.class.getName());
                    setRoleMapperName(applicationContext, roleMapperDataName);
                } else {
                    PatternType SecurityRefType = ref.getRef();
                    AbstractNameQuery roleMapperDataName = SingleGBeanBuilder.buildAbstractNameQuery(SecurityRefType, GBeanInfoBuilder.DEFAULT_J2EE_TYPE, Collections.singleton(CredentialStore.class.getName()));
                    setRoleMapperName(applicationContext, roleMapperDataName);
                }
            } catch (XmlException e) {
                throw new DeploymentException("Could not validate security element", e);
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.PatternType

        }

        SubjectInfo defaultSubjectInfo = buildSubjectInfo(securityType.getDefaultSubject());
        AbstractNameQuery credentialStoreName;
        if (securityType.isSetCredentialStoreRef()) {
            PatternType credentialStoreType = securityType.getCredentialStoreRef();
            credentialStoreName = SingleGBeanBuilder.buildAbstractNameQuery(credentialStoreType, GBeanInfoBuilder.DEFAULT_J2EE_TYPE, Collections.singleton(CredentialStore.class.getName()));
        } else {
            credentialStoreName = this.defaultCredentialStoreName;
        }
        Naming naming = deploymentContext.getNaming();
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.PatternType

                defaultSubjectId = gerDefaultSubject.getId();
                defaultSubjectRealm = gerDefaultSubject.getRealm();
            }

            if (security.isSetCredentialStoreRef()) {
                PatternType c = security.getCredentialStoreRef();
                credentialStoreRef = new CredentialStoreRef(c.getGroupId(), c.getArtifactId(), c.getVersion(), c.getType(), c.getModule(), c.getName());
            }
            doasCurrentCaller = security.getDoasCurrentCaller();
            useContextHandler = security.getUseContextHandler();
        }
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.PatternType

        }

        PatternType[] dependencyArray = gbean.getDependencyArray();
        if (dependencyArray != null) {
            for (int i = 0; i < dependencyArray.length; i++) {
                PatternType patternType = dependencyArray[i];
                builder.addDependency(patternType);
            }
        }

        GBeanData gbeanData = builder.getGBeanData();
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.PatternType

                boolean wrapPrincipals = (abstractLoginModule.isSetWrapPrincipals() && abstractLoginModule.getWrapPrincipals());
                ReferencePatterns loginModuleReferencePatterns;
                String name;
                if (abstractLoginModule instanceof GerLoginModuleRefType) {
                    GerLoginModuleRefType loginModuleRef = (GerLoginModuleRefType) abstractLoginModule;
                    PatternType patternType = loginModuleRef.getPattern();
                    AbstractNameQuery loginModuleNameQuery = SingleGBeanBuilder.buildAbstractNameQuery(patternType, USE_REFERENCE_INFO);
                    loginModuleReferencePatterns = new ReferencePatterns(loginModuleNameQuery);
                    name = (String) loginModuleNameQuery.getName().get("name");
                    if (name == null) {
                        throw new DeploymentException("You must specify the name of the login module in the login module ref " + patternType);
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.PatternType

                if (ref.isSetName()) {
                    String name = ref.getName().trim();
                    AbstractNameQuery roleMapperDataName = new AbstractNameQuery(null, Collections.singletonMap("name", name), PrincipalRoleMapper.class.getName());
                    setRoleMapperName(applicationContext, roleMapperDataName);
                } else {
                    PatternType SecurityRefType = ref.getRef();
                    AbstractNameQuery roleMapperDataName = SingleGBeanBuilder.buildAbstractNameQuery(SecurityRefType, GBeanInfoBuilder.DEFAULT_J2EE_TYPE, Collections.singleton(CredentialStore.class.getName()));
                    setRoleMapperName(applicationContext, roleMapperDataName);
                }
            } catch (XmlException e) {
                throw new DeploymentException("Could not validate security element", e);
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.