Examples of ModelDescription


Examples of org.oasis.wsrp.v2.ModelDescription

    * @return
    * @since 2.6
    */
   public static ModelDescription createModelDescription(List<PropertyDescription> propertyDescriptions)
   {
      ModelDescription description = new ModelDescription();
      if (ParameterValidation.existsAndIsNotEmpty(propertyDescriptions))
      {
         description.getPropertyDescriptions().addAll(propertyDescriptions);
      }
      return description;
   }
View Full Code Here

Examples of org.oasis.wsrp.v2.ModelDescription

    * @return
    * @since 2.6
    */
   public static PortletPropertyDescriptionResponse createPortletPropertyDescriptionResponse(List<PropertyDescription> propertyDescriptions)
   {
      ModelDescription modelDescription = propertyDescriptions == null ? null : createModelDescription(propertyDescriptions);
      PortletPropertyDescriptionResponse portletPropertyDescriptionResponse = new PortletPropertyDescriptionResponse();
      portletPropertyDescriptionResponse.setModelDescription(modelDescription);
      return portletPropertyDescriptionResponse;
   }
View Full Code Here

Examples of org.oasis.wsrp.v2.ModelDescription

         {
            requiresRegistration = Boolean.TRUE;
            log.debug("Producer '" + producerId + "' requires registration");

            // check if the configured registration properties match the producer expectations
            ModelDescription regPropDescs = serviceDescription.getRegistrationPropertyDescription();
            if (regPropDescs != null)
            {
               // assume success, there'll be time to fail if/when needed
               result.setStatus(RefreshResult.Status.SUCCESS);

               List<PropertyDescription> propertyDescriptions = regPropDescs.getPropertyDescriptions();
               if (propertyDescriptions != null && !propertyDescriptions.isEmpty())
               {

                  // extract expected properties from service description
                  Map<QName, RegistrationProperty> descriptionsMap = getRegistrationPropertyDescriptionsFromWSRP(propertyDescriptions);
View Full Code Here

Examples of org.oasis.wsrp.v2.ModelDescription

      private ServiceDescription getServiceDescription(boolean needsRegistrationProperties, boolean needsPortletDescriptions, List<String> portletHandles, List<String> desiredLocales)
      {
         initIfNeeded();

         ModelDescription registrationProperties = needsRegistrationProperties ? this.registrationProperties : null;

         ServiceDescription serviceDescription = WSRPTypeFactory.createServiceDescription(false);
         serviceDescription.setRequiresInitCookie(BEA_8_CONSUMER_FIX);
         List<String> supportedLocales = producer.getSupportedLocales();
         serviceDescription.getLocales().addAll(supportedLocales);
View Full Code Here

Examples of org.oasis.wsrp.v2.ModelDescription

         {
            requiresRegistration = Boolean.TRUE;
            log.debug("Producer '" + producerId + "' requires registration");

            // check if the configured registration properties match the producer expectations
            ModelDescription regPropDescs = serviceDescription.getRegistrationPropertyDescription();
            if (regPropDescs != null)
            {
               result.setStatus(RefreshResult.Status.SUCCESS);
               List<PropertyDescription> propertyDescriptions = regPropDescs.getPropertyDescriptions();
               if (propertyDescriptions != null && !propertyDescriptions.isEmpty())
               {
                  Map<QName, RegistrationProperty> descriptionsMap = getRegistrationPropertyDescriptionsFromWSRP(propertyDescriptions);

                  // check that we don't have unexpected registration properties and if so, mark them as invalid or remove them
View Full Code Here

Examples of org.openengsb.core.api.model.ModelDescription

        when(event.getBundle()).thenReturn(bundle);
        return event;
    }
   
    private ModelDescription getCorrectModel() {
        return new ModelDescription(TestModel.class, new Version(1, 0, 0).toString());
    }
View Full Code Here

Examples of org.openengsb.core.api.model.ModelDescription

    private ModelDescription getCorrectModel() {
        return new ModelDescription(TestModel.class, new Version(1, 0, 0).toString());
    }
   
    private ModelDescription getIncorrectModel() {
        return new ModelDescription(ModelA.class, new Version(1, 0, 0).toString());
    }
View Full Code Here

Examples of org.openengsb.core.api.model.ModelDescription

import org.osgi.framework.Version;

public abstract class TransformationEngineTests {

    protected ModelDescription getModelADescription() {
        return new ModelDescription(ModelA.class, new Version(1, 0, 0).toString());
    }
View Full Code Here

Examples of org.openengsb.core.api.model.ModelDescription

    protected ModelDescription getModelADescription() {
        return new ModelDescription(ModelA.class, new Version(1, 0, 0).toString());
    }

    protected ModelDescription getModelBDescription() {
        return new ModelDescription(ModelB.class, new Version(1, 0, 0).toString());
    }
View Full Code Here

Examples of org.openengsb.core.api.model.ModelDescription

    protected ModelDescription getModelBDescription() {
        return new ModelDescription(ModelB.class, new Version(1, 0, 0).toString());
    }

    protected ModelDescription getModelCDescription() {
        return new ModelDescription(ModelC.class, new Version(1, 0, 0).toString());
    }
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.