コード例 #1
0
 @Override
 protected String getBreadCrumbDisplayName() {
   AMModel model = getModel();
   String serviceName = (String) getPageSessionAttribute(SERVICE_NAME);
   Object[] arg = {model.getLocalizedServiceName(serviceName)};
   return MessageFormat.format(model.getLocalizedString("breadcrumbs.services.edit"), arg);
 }
コード例 #2
0
 /**
  * Constructs a XML builder.
  *
  * @param serviceName Name of the service.
  * @param model Model for getting localized string and user locale.
  * @param attributeSchemas List of attributeSchema.
  * @throws SMSException if attribute schema cannot obtained.
  * @throws SSOException if single sign on token is invalid.
  */
 public PropertyXMLBuilder(String serviceName, AMModel model, Set attributeSchemas)
     throws SMSException, SSOException {
   this.model = model;
   this.serviceName = serviceName;
   svcSchemaManager = new ServiceSchemaManager(serviceName, model.getUserSSOToken());
   getServiceResourceBundle();
   if (serviceBundle != null) {
     mapTypeToAttributeSchema = new HashMap(attributeSchemas.size() * 2);
     mapTypeToAttributeSchema.put(NULL_TYPE, attributeSchemas);
   }
 }
コード例 #3
0
 /**
  * Returns a XML for displaying attribute in property sheet.
  *
  * @param serviceName Name of the service.
  * @param schemaTypes Set of schema types to display.
  * @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(String serviceName, Set schemaTypes, AMModel model)
     throws SMSException, SSOException {
   this.model = model;
   this.schemaTypes = schemaTypes;
   this.serviceName = serviceName;
   svcSchemaManager = new ServiceSchemaManager(serviceName, model.getUserSSOToken());
   getServiceResourceBundle();
   if (serviceBundle != null) {
     mapTypeToAttributeSchema = getAttributeSchemas(serviceName);
   }
 }