Package org.gatein.wsrp.consumer

Examples of org.gatein.wsrp.consumer.RegistrationProperty$PropertyChangeListener


      initial.setRegistrationState(Safe.getBytes(getRegistrationState()));

      // registration properties
      for (RegistrationPropertyMapping rpm : getRegistrationProperties())
      {
         RegistrationProperty prop = initial.setRegistrationPropertyValue(rpm.getName(), rpm.getValue());

         RegistrationPropertyDescriptionMapping rpdm = rpm.getDescription();
         if (rpdm != null)
         {
            RegistrationPropertyDescription desc = rpdm.toRegistrationPropertyDescription();
            prop.setDescription(desc);
         }

         prop.setStatus(rpm.getStatus());

         // set RegistrationInfo as listener of property changes
         prop.setListener(initial);
      }

      return initial;
   }
View Full Code Here


   @Override
   public RegistrationProperty toModel(RegistrationProperty initial, RegistrationInfo registrationInfo)
   {
      if (initial == null)
      {
         initial = new RegistrationProperty();
      }

      initial.setName(QName.valueOf(getName()));
      initial.setStatus(getStatus());
      initial.setLang(WSRPConstants.DEFAULT_LOCALE);
View Full Code Here

      // registration properties
      final List<RegistrationPropertyMapping> properties = getRegistrationProperties();
      final Map<QName, RegistrationProperty> propertyMap = new HashMap<QName, RegistrationProperty>(properties.size());
      for (RegistrationPropertyMapping rpm : properties)
      {
         final RegistrationProperty property = rpm.toModel(null, initial);
         propertyMap.put(property.getName(), property);

         // set RegistrationInfo as listener of property changes
         property.setListener(initial);
      }
      initial.setRegistrationProperties(propertyMap);

      return initial;
   }
View Full Code Here

TOP

Related Classes of org.gatein.wsrp.consumer.RegistrationProperty$PropertyChangeListener

Copyright © 2018 www.massapicom. 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.