Examples of RealmPrincipalType


Examples of org.apache.geronimo.xml.ns.security_1.RealmPrincipalType

        case REALM_PRINCIPAL:
            if (isEmpty(name.getText()) || isEmpty(clazz.getText()) || isEmpty(domainName.getText())
                    || isEmpty(realmName.getText())) {
                return false;
            }
            RealmPrincipalType realmPrincipal = (RealmPrincipalType)eObject;
            if (realmPrincipal == null) {
                realmPrincipal = (RealmPrincipalType)getEFactory().create(RealmPrincipalType.class);
                RoleType role = (RoleType) section.getSelectedObject();
                role.getRealmPrincipal().add(realmPrincipal);
            }
            realmPrincipal.setName(name.getText());
            realmPrincipal.setClazz(clazz.getText());
            realmPrincipal.setDomainName(domainName.getText());
            realmPrincipal.setRealmName(realmName.getText());
            break;
        }
        return true;
    }
View Full Code Here

Examples of org.apache.geronimo.xml.ns.security_1.RealmPrincipalType

                else if (element instanceof DistinguishedNameType) {
                  DistinguishedNameType object = (DistinguishedNameType) element;
                    return "DistinguishedName: name = \"" + object.getName() + "\"";
                }
                else if (element instanceof RealmPrincipalType) {
                  RealmPrincipalType object = (RealmPrincipalType) element;
                    return "RealmPrincipal: name = \"" + object.getName() +
                            "\", class = \"" + object.getClazz() +
                            "\", domain-name = \"" + object.getDomainName() +
                            "\", realm-name = \"" + object.getRealmName() +"\"";
                }
                else if (element instanceof LoginDomainPrincipalType) {
                  LoginDomainPrincipalType object = (LoginDomainPrincipalType) element;
                    return "LoginDomainPrincipal: name = \"" + object.getName() +
                            "\", class = \"" + object.getClazz() +
                            "\", domain-name = \"" + object.getDomainName() +"\"";
                }
                else if (element instanceof PrincipalType) {
                  PrincipalType object = (PrincipalType) element;
                    return "Principal: name = \"" + object.getName() +
                            "\", class = \"" + object.getClazz() + "\"";
                }

                return null;
            }
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.