static void updateParameter(
     OperationParameter parameter,
     LocalizerFacade localizerFacade,
     VOServiceOperationParameter voParameter) {
   updateValueObject(voParameter, parameter);
   voParameter.setParameterId(parameter.getId());
   voParameter.setMandatory(parameter.isMandatory());
   voParameter.setType(OperationParameterType.valueOf(parameter.getType().name()));
   voParameter.setParameterName(
       localizerFacade.getText(
           parameter.getKey(), LocalizedObjectTypes.TECHNICAL_PRODUCT_OPERATION_PARAMETER_NAME));
 }
コード例 #2
0
 public static VOTechnicalService toVOTechnicalProduct(
     TechnicalProduct tProd,
     List<ParameterDefinition> platformParamterDefinitions,
     List<Event> platformEvents,
     LocalizerFacade facade,
     boolean excludeNonConfigurableParameterDefinitions,
     PerformanceHint scope) {
   VOTechnicalService result = new VOTechnicalService();
   result.setTechnicalServiceId(tProd.getTechnicalProductId());
   if (scope != PerformanceHint.ONLY_IDENTIFYING_FIELDS) {
     result.setTechnicalServiceBuildId(tProd.getTechnicalProductBuildId());
     result.setAccessType(tProd.getAccessType());
     result.setBaseUrl(tProd.getBaseURL());
     result.setLoginPath(tProd.getLoginPath());
     result.setProvisioningUrl(tProd.getProvisioningURL());
     result.setProvisioningVersion(tProd.getProvisioningVersion());
     result.setTechnicalServiceDescription(
         facade.getText(tProd.getKey(), LocalizedObjectTypes.TEC_PRODUCT_TECHNICAL_DESC));
     result.setLicense(facade.getText(tProd.getKey(), LocalizedObjectTypes.PRODUCT_LICENSE_DESC));
     result.setAccessInfo(
         facade.getText(tProd.getKey(), LocalizedObjectTypes.TEC_PRODUCT_LOGIN_ACCESS_DESC));
     result.setParameterDefinitions(
         ParameterDefinitionAssembler.toVOParameterDefinitions(
             platformParamterDefinitions,
             tProd.getParameterDefinitions(),
             excludeNonConfigurableParameterDefinitions,
             facade));
     result.setEventDefinitions(
         EventAssembler.toVOEventDefinitions(platformEvents, tProd.getEvents(), facade));
     result.setRoleDefinitions(
         RoleAssembler.toVORoleDefinitions(tProd.getRoleDefinitions(), facade));
     result.setTechnicalServiceOperations(
         TechnicalProductOperationAssembler.toVOTechnicalServiceOperations(
             tProd.getTechnicalProductOperations(), facade));
     result.setTags(TagAssembler.toStrings(tProd.getTags(), facade.getLocale()));
     result.setBillingIdentifier(tProd.getBillingIdentifier());
     updateValueObject(result, tProd);
   }
   return result;
 }