Package com.ibm.xmlns.stdwip.webServices.wsTopics

Examples of com.ibm.xmlns.stdwip.webServices.wsTopics.TopicType


         String         targetNamespace = topicSpaceType.getTargetNamespace(  );
         TopicType[]    topicArray      = topicSpaceType.getTopicArray(  );

         for ( int j = 0; j < topicArray.length; j++ )
         {
            TopicType topicType = topicArray[j];
            String    name = topicType.getName(  );
            registerBaseNotifTopic( targetNamespace, name );
         }
      }
   }
View Full Code Here


      catch ( Exception e )
      {
         throw new RuntimeException( e );
      }

      TopicType topicType = null;
      if ( containsTopicSpaceForPropertyNamespace( topicSpaceArray,
                                                   propQName.getNamespaceURI(  ) ) )
      {
         // first determine if there is a TopicSpace with the same namespace as the Resource Property
         for ( int i = 0; i < topicSpaceArray.length; i++ )
         {
            TopicSpaceType topicSpaceType = topicSpaceArray[i];

            if ( topicSpaceType.getTargetNamespace(  ).equals( propQName.getNamespaceURI(  ) ) )
            {
               //todo what other fields can be set??
               topicType = topicSpaceType.addNewTopic(  );
               topicType.setName( propQName.getLocalPart(  ) );
            }
         }
      }
      else
      {
         TopicSpaceType topicSpace = getNewTopicSpace(  );

         if ( topicSpace != null )
         {
            topicSpace.setName( "ResourcePropertiesTopicSpace" );
            topicSpace.setTargetNamespace( propQName.getNamespaceURI(  ) );
            topicType = topicSpace.addNewTopic(  );
         }
      }

      if ( topicType != null )
      {
         topicType.setName( propQName.getLocalPart(  ) );
         List messageTypeList = new ArrayList(  );
         messageTypeList.add( ResourceProperties11Constants.RESOURCE_PROPERTIES_PROPERTY_VALUE_CHANGE_NOTIFICATION_QNAME );
         topicType.setMessageTypes( messageTypeList );
      }
   }
View Full Code Here

         String         targetNamespace = topicSpaceType.getTargetNamespace(  );

         if ( ( targetNamespace != null ) && targetNamespace.equals( resourcePropName.getNamespaceURI(  ) ) )
         {
            TopicType[] topicTypeArray    = topicSpaceType.getTopicArray(  );
            TopicType   resourceTopicType =
               getNotifRegisteredResourcePropertyTopic( resourcePropName.getLocalPart(  ),
                                                        topicTypeArray );

            if ( resourceTopicType != null )
            {
View Full Code Here

   private TopicType getNotifRegisteredResourcePropertyTopic( String      resourcePropNCName,
                                                              TopicType[] topicTypeArray )
   {
      for ( int i = 0; i < topicTypeArray.length; i++ )
      {
         TopicType topicType = topicTypeArray[i];

         if ( resourcePropNCName.equals( topicType.getName(  ) ) )
         {
            return topicType;
         }
         else if ( ( topicType.getTopicArray(  ) != null ) && ( topicType.getTopicArray(  ).length > 0 ) )
         {
            return getNotifRegisteredResourcePropertyTopic( resourcePropNCName,
                                                            topicType.getTopicArray(  ) );
         }
      }

      return null;
   }
View Full Code Here

TOP

Related Classes of com.ibm.xmlns.stdwip.webServices.wsTopics.TopicType

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.