Examples of GBean


Examples of org.apache.geronimo.jee.deployment.Gbean

      public String getColumnText(Object element, int columnIndex) {
    // System.out.println("here");
    if (JAXBElement.class.isInstance(element)) {
        Object value = ((JAXBElement<?>) element).getValue();
        if (Gbean.class.isInstance(value)) {
      Gbean gbean = (Gbean) value;
      switch (columnIndex) {
      case 0:// security realm name
          if (getGbeanAttributeValue(gbean, "realmName") != null) {
        return getGbeanAttributeValue(gbean,
          "realmName");
View Full Code Here

Examples of org.apache.geronimo.jee.deployment.Gbean

        "Invalid Login Details", status);
      return false;
  }

  // set a gbean according to the input from wizard
  Gbean gbean = null;
  if (eObject != null) {
      gbean = (Gbean) ((JAXBElement) eObject).getValue();
      isedit = true;
  } else {
      gbean = new Gbean();// create a new gbean
      eObject = objectFactory.createGbean(gbean);
  }

  // add the data into gbean
  String realmName = page0.textEntries[0].getText() == null ? ""
    : page0.textEntries[0].getText();
  gbean.setName(realmName);// set the gbean name the same as realm name
  gbean
    .setClazz("org.apache.geronimo.security.realm.GenericSecurityRealm");// TODO
  // message

  List<JAXBElement<?>> elelist = gbean
    .getAttributeOrXmlAttributeOrReference();

  // set the attribute
  JAXBElement<Attribute> attributeElement = getAttributeElement(elelist);
  if (attributeElement == null) {
View Full Code Here

Examples of org.apache.geronimo.jee.deployment.Gbean

      combo.add("SQL Realm");
      combo.add("LDAP Realm");
      combo.select(0);

      if (eObject != null) {
    Gbean gbean = (Gbean) ((JAXBElement) eObject).getValue();
    String realmName = getAttributeValue(gbean, "realmName");
    this.textEntries[0].setText(realmName == null ? "" : realmName);
    String loginModuleClass = getLoginModuleClass(gbean);
    if ("org.apache.geronimo.security.realm.providers.PropertiesFileLoginModule"
      .equals(loginModuleClass)) {
View Full Code Here

Examples of org.apache.geronimo.jee.deployment.Gbean

      textEntries[2] = createText(digestGroup, 3);
      createLabel(digestGroup, "Digest Encoding:", 1);
      textEntries[3] = createText(digestGroup, 3);

      if (eObject != null) {
    Gbean gbean = (Gbean) ((JAXBElement) eObject).getValue();
    if (getOptionValue(gbean, "usersURI") != null) {
        textEntries[0].setText(getOptionValue(gbean, "usersURI"));
    }
    if (getOptionValue(gbean, "groupsURI") != null) {
        textEntries[1].setText(getOptionValue(gbean, "groupsURI"));
View Full Code Here

Examples of org.apache.geronimo.jee.deployment.Gbean

      textEntries[2] = createText(digestGroup, 3);
      createLabel(digestGroup, "Digest Encoding:", 1);
      textEntries[3] = createText(digestGroup, 3);

      if (eObject != null) {
    Gbean gbean = (Gbean) ((JAXBElement) eObject).getValue();
    if (getOptionValue(gbean, "userSelect") != null) {
        textEntries[0].setText(getOptionValue(gbean, "userSelect"));
    }
    if (getOptionValue(gbean, "groupSelect") != null) {
        textEntries[1]
View Full Code Here

Examples of org.apache.geronimo.jee.deployment.Gbean

      for (int i = 0; i < textEntries.length; i++) {
    textEntries[i].setEnabled(false);
      }

      if (eObject != null) {
    Gbean gbean = (Gbean) ((JAXBElement) eObject).getValue();
    if (getOptionValue(gbean, "dataSourceName") != null) {
        this.buttons[0].setSelection(true);
        this.dataBasePoolCombo.setEnabled(true);
        this.dataBasePoolCombo.setText(getOptionValue(gbean,
          "dataSourceName"));
View Full Code Here

Examples of org.apache.geronimo.jee.deployment.Gbean

      combo[2].add("simple");
      combo[2].add("strong");
      combo[2].select(1);

      if (eObject != null) {
    Gbean gbean = (Gbean) ((JAXBElement) eObject).getValue();
    if (getOptionValue(gbean, "initialContextFactory") != null) {
        this.combo[0].setText(getOptionValue(gbean,
          "initialContextFactory"));
    }
    if (getOptionValue(gbean, "connectionURL") != null) {
View Full Code Here

Examples of org.apache.geronimo.jee.deployment.Gbean

      roleSearchSubtree.setLayoutData(new GridData(GridData.FILL,
        GridData.FILL, true, false, 4, 1));
      roleSearchSubtree.setSelection(true);

      if (eObject != null) {
    Gbean gbean = (Gbean) ((JAXBElement<?>) eObject).getValue();
    if (getOptionValue(gbean, "userBase") != null) {
        text[0].setText(getOptionValue(gbean, "userBase"));
    }
    if (getOptionValue(gbean, "userSearchMatching") != null) {
        text[1]
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.