Ejemplo n.º 1
0
  /**
   * Returns a XML for displaying attribute in property sheet.
   *
   * @param serviceSchema Service schemas.
   * @param model Model for getting localized string and user locale.
   * @throws SMSException if attribute schema cannot obtained.
   * @throws SSOException if single sign on token is invalid.
   */
  public PropertyXMLBuilder(ServiceSchema serviceSchema, AMModel model, Set attributeSchemas)
      throws SMSException, SSOException {
    this.model = model;
    this.serviceName = serviceSchema.getServiceName();
    getServiceResourceBundle(serviceSchema);

    if (serviceBundle != null) {
      mapTypeToAttributeSchema = new HashMap(attributeSchemas.size() * 2);
      mapTypeToAttributeSchema.put(NULL_TYPE, attributeSchemas);
    }
  }
Ejemplo n.º 2
0
  /**
   * Returns a XML for displaying attribute in property sheet.
   *
   * @param serviceSchema Service schemas.
   * @param model Model for getting localized string and user locale.
   * @throws SMSException if attribute schema cannot obtained.
   * @throws SSOException if single sign on token is invalid.
   */
  public PropertyXMLBuilder(ServiceSchema serviceSchema, AMModel model)
      throws SMSException, SSOException {
    this.model = model;
    this.serviceName = serviceSchema.getServiceName();
    getServiceResourceBundle(serviceSchema);

    if (serviceBundle != null) {
      mapTypeToAttributeSchema = new HashMap();
      mapTypeToAttributeSchema.put(
          serviceSchema.getServiceType(), serviceSchema.getAttributeSchemas());
    }
  }