Examples of PropertyList


Examples of org.rhq.core.domain.configuration.PropertyList

  public Object getResult() {
    return result;
  }
 
  private void setComplexResult() {
    PropertyList list = new PropertyList(LISTNAME); //$NON-NLS-1$
    PropertyMap pm;
    Iterator resultIter = ((List)content).iterator();
    while (resultIter.hasNext()) {
      Map reportRowMap = (Map) resultIter.next();
      Iterator reportRowKeySetIter = reportRowMap.keySet().iterator();
      pm = new PropertyMap("userMap"); //$NON-NLS-1$     

      while (reportRowKeySetIter.hasNext()) {
        String key = (String) reportRowKeySetIter.next();
        pm.put(new PropertySimple(key, reportRowMap.get(key)==null?"":reportRowMap.get(key))); //$NON-NLS-1$
      }
      list.add(pm);
    }
   
    result = list;
  }
View Full Code Here

Examples of org.rhq.core.domain.configuration.PropertyList

        configuration.put(new PropertySimple("anyAuthenticated", //$NON-NLS-1$
            anyAuthenticated));
        configuration
            .put(new PropertySimple("description", description)); //$NON-NLS-1$

        PropertyList mappedRoleNameList = new PropertyList(
            "mappedRoleNameList"); //$NON-NLS-1$
        configuration.put(mappedRoleNameList);
        ManagedProperty mappedRoleNames = managedObject
            .getProperty("mappedRoleNames"); //$NON-NLS-1$
        if (mappedRoleNames != null) {
          CollectionValueSupport props = (CollectionValueSupport) mappedRoleNames
              .getValue();
          for (MetaValue mappedRoleName : props.getElements()) {
            PropertyMap mappedRoleNameMap = null;

            try {
              mappedRoleNameMap = new PropertyMap(
                  "map", //$NON-NLS-1$
                  new PropertySimple(
                      "name", (ProfileServiceUtil.stringValue(mappedRoleName)))); //$NON-NLS-1$
            } catch (Exception e) {
              final String msg = "Exception in loadResourceConfiguration(): " + e.getMessage(); //$NON-NLS-1$
              LOG.error(msg, e);
            }
            mappedRoleNameList.add(mappedRoleNameMap);
          }
        }
      }
    }
View Full Code Here

Examples of org.rhq.core.domain.configuration.PropertyList

        configuration.put(new PropertySimple("anyAuthenticated",
            anyAuthenticated));
        configuration
            .put(new PropertySimple("description", description));

        PropertyList mappedRoleNameList = new PropertyList(
            "mappedRoleNameList");
        configuration.put(mappedRoleNameList);
        ManagedProperty mappedRoleNames = managedObject
            .getProperty("mappedRoleNames");
        if (mappedRoleNames != null) {
          CollectionValueSupport props = (CollectionValueSupport)mappedRoleNames.getValue();
          for (MetaValue mappedRoleName : props.getElements()) {
            mappedRoleNameList.add(new PropertySimple("name", ProfileServiceUtil.stringValue(mappedRoleName)));
          }

        }
        // Add to return values
        discoveredResources.add(detail);
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.