├── README.md ├── features ├── andes │ ├── org.wso2.carbon.andes.server.feature │ │ └── resources │ │ │ ├── databases │ │ │ └── generatedDatabaseLocation │ │ │ ├── build.properties │ │ │ └── dbscripts │ │ │ └── migration-3.0.0_to_3.1.0 │ │ │ └── oracle-mb.sql │ └── pom.xml └── metrics │ └── pom.xml ├── .gitignore ├── components ├── andes │ ├── org.wso2.carbon.andes.ui │ │ └── src │ │ │ └── main │ │ │ ├── resources │ │ │ ├── web │ │ │ │ ├── queues │ │ │ │ │ ├── images │ │ │ │ │ │ ├── add.gif │ │ │ │ │ │ ├── byte.png │ │ │ │ │ │ ├── list.gif │ │ │ │ │ │ ├── map.png │ │ │ │ │ │ ├── move.gif │ │ │ │ │ │ ├── plus.gif │ │ │ │ │ │ ├── qpid.png │ │ │ │ │ │ ├── text.png │ │ │ │ │ │ ├── minus.gif │ │ │ │ │ │ ├── nodata.gif │ │ │ │ │ │ ├── object.png │ │ │ │ │ │ ├── queues.gif │ │ │ │ │ │ ├── refresh.gif │ │ │ │ │ │ ├── restart.png │ │ │ │ │ │ ├── secure.gif │ │ │ │ │ │ ├── stream.png │ │ │ │ │ │ ├── treetop.jpg │ │ │ │ │ │ ├── queue_add.png │ │ │ │ │ │ ├── queue_browse.png │ │ │ │ │ │ ├── queue_type_sqs.gif │ │ │ │ │ │ ├── queue_add_success.png │ │ │ │ │ │ ├── queue_from_tenant.png │ │ │ │ │ │ ├── queue_type_admin.gif │ │ │ │ │ │ ├── queue_type_amqp.gif │ │ │ │ │ │ └── queue_delete_success.png │ │ │ │ │ ├── update_queue_role_permissions_to_session_ajaxprocessor.jsp │ │ │ │ │ ├── queue_purge_ajaxprocessor.jsp │ │ │ │ │ ├── load_queue_details_from_bEnd_ajaxprocessor.jsp │ │ │ │ │ ├── resources-i18n-ajaxprocessor.jsp │ │ │ │ │ ├── queue_delete_ajaxprocessor.jsp │ │ │ │ │ ├── styles │ │ │ │ │ │ ├── tree-styles.css │ │ │ │ │ │ └── dsxmleditor.css │ │ │ │ │ ├── dlc_message_delete_ajaxprocessor.jsp │ │ │ │ │ ├── dlc_message_restore_ajaxprocessor.jsp │ │ │ │ │ ├── add_queue_and_assign_role_permissions_ajaxprocessor.jsp │ │ │ │ │ ├── dlc_message_destinations_list_retrieve_ajaxprocessor.jsp │ │ │ │ │ ├── dlc_message_reroute_ajaxprocessor.jsp │ │ │ │ │ ├── queue_messages_ids_ajaxprocessor.jsp │ │ │ │ │ ├── message_content.jsp │ │ │ │ │ └── update_queue_role_permissions_ajaxprocessor.jsp │ │ │ │ └── subscriptions │ │ │ │ │ ├── images │ │ │ │ │ ├── add.gif │ │ │ │ │ ├── list.gif │ │ │ │ │ ├── move.gif │ │ │ │ │ ├── qpid.png │ │ │ │ │ ├── text.png │ │ │ │ │ ├── refresh.gif │ │ │ │ │ ├── restart.png │ │ │ │ │ ├── secure.gif │ │ │ │ │ ├── subscribe.png │ │ │ │ │ ├── unsubscribe.png │ │ │ │ │ ├── queue_type_amqp.gif │ │ │ │ │ └── unsubscribe_grey.png │ │ │ │ │ ├── styles │ │ │ │ │ ├── tree-styles.css │ │ │ │ │ └── dsxmleditor.css │ │ │ │ │ ├── retrieve_message_count_ajaxprocessor.jsp │ │ │ │ │ ├── retrive_message_count_for_subscriber_ajaxprocessor.jsp │ │ │ │ │ ├── subscriptions_close_ajaxprocessor.jsp │ │ │ │ │ └── docs │ │ │ │ │ └── userguide.html │ │ │ └── org │ │ │ │ └── wso2 │ │ │ │ └── carbon │ │ │ │ └── andes │ │ │ │ └── ui │ │ │ │ └── i18n │ │ │ │ └── JSResources.properties │ │ │ └── java │ │ │ └── org │ │ │ └── wso2 │ │ │ └── carbon │ │ │ └── andes │ │ │ └── ui │ │ │ └── Constants.java │ ├── org.wso2.carbon.andes.event.ui │ │ └── src │ │ │ └── main │ │ │ ├── resources │ │ │ ├── web │ │ │ │ ├── topics │ │ │ │ │ ├── images │ │ │ │ │ │ ├── add.gif │ │ │ │ │ │ ├── up.png │ │ │ │ │ │ ├── delete.gif │ │ │ │ │ │ ├── down.png │ │ │ │ │ │ ├── hide.gif │ │ │ │ │ │ ├── line.png │ │ │ │ │ │ ├── minus.gif │ │ │ │ │ │ ├── nodata.gif │ │ │ │ │ │ ├── plus.gif │ │ │ │ │ │ ├── secure.gif │ │ │ │ │ │ ├── show.gif │ │ │ │ │ │ ├── type.gif │ │ │ │ │ │ ├── details.gif │ │ │ │ │ │ ├── refresh.gif │ │ │ │ │ │ ├── treetop.jpg │ │ │ │ │ │ ├── Subscribe.png │ │ │ │ │ │ ├── node-normal.gif │ │ │ │ │ │ ├── subscribe.gif │ │ │ │ │ │ ├── Add_subtopic.png │ │ │ │ │ │ ├── Topic_Browser.png │ │ │ │ │ │ ├── Topic_details.png │ │ │ │ │ │ ├── icon-tree-dot.gif │ │ │ │ │ │ ├── node-selected.gif │ │ │ │ │ │ ├── icon-tree-minus.gif │ │ │ │ │ │ ├── icon-tree-minus.jpg │ │ │ │ │ │ ├── icon-tree-plus.gif │ │ │ │ │ │ ├── icon-tree-plus.jpg │ │ │ │ │ │ └── icon-tree-plus-alone.jpg │ │ │ │ │ ├── css │ │ │ │ │ │ ├── topics.css │ │ │ │ │ │ └── dsxmleditor.css │ │ │ │ │ ├── js │ │ │ │ │ │ ├── eventing_utils.js │ │ │ │ │ │ ├── subscriptions.js │ │ │ │ │ │ └── topics.js │ │ │ │ │ ├── update_topic_role_permissions_to_session_ajaxprocessor.jsp │ │ │ │ │ ├── access_topic_roles_ajaxprocessor.jsp │ │ │ │ │ ├── add_topic_to_backend_ajaxprocessor.jsp │ │ │ │ │ ├── load_topic_details_from_bEnd_ajaxprocessor.jsp │ │ │ │ │ ├── try_it_out_invoke_ajaxprocessor.jsp │ │ │ │ │ └── update_role_permissions_from_session_ajaxprocessor.jsp │ │ │ │ └── eventing │ │ │ │ │ ├── images │ │ │ │ │ ├── add.gif │ │ │ │ │ ├── down.png │ │ │ │ │ ├── hide.gif │ │ │ │ │ ├── list.gif │ │ │ │ │ ├── plus.gif │ │ │ │ │ ├── show.gif │ │ │ │ │ ├── type.gif │ │ │ │ │ ├── up.png │ │ │ │ │ ├── minus.gif │ │ │ │ │ ├── nodata.gif │ │ │ │ │ ├── secure.gif │ │ │ │ │ ├── topics.gif │ │ │ │ │ ├── refresh.gif │ │ │ │ │ ├── treetop.jpg │ │ │ │ │ └── subscriptions.gif │ │ │ │ │ ├── css │ │ │ │ │ ├── subscriptions.css │ │ │ │ │ └── dsxmleditor.css │ │ │ │ │ └── js │ │ │ │ │ ├── eventing_utils.js │ │ │ │ │ ├── subscriptions.js │ │ │ │ │ ├── treecontrol.js │ │ │ │ │ └── topics.js │ │ │ └── org │ │ │ │ └── wso2 │ │ │ │ └── carbon │ │ │ │ └── andes │ │ │ │ └── event │ │ │ │ └── ui │ │ │ │ └── i18n │ │ │ │ └── Resources.properties │ │ │ └── java │ │ │ └── org │ │ │ └── wso2 │ │ │ └── carbon │ │ │ └── andes │ │ │ └── event │ │ │ └── ui │ │ │ └── UIConstants.java │ ├── org.wso2.carbon.andes.cluster.mgt.ui │ │ └── src │ │ │ └── main │ │ │ ├── resources │ │ │ ├── web │ │ │ │ └── andes-cluster-mgt │ │ │ │ │ ├── images │ │ │ │ │ ├── list.gif │ │ │ │ │ ├── move.gif │ │ │ │ │ ├── plus.gif │ │ │ │ │ ├── qpid.png │ │ │ │ │ ├── minus.gif │ │ │ │ │ ├── nodata.gif │ │ │ │ │ ├── secure.gif │ │ │ │ │ ├── nodeIDBox.png │ │ │ │ │ ├── refresh.gif │ │ │ │ │ ├── restart.png │ │ │ │ │ ├── treetop.jpg │ │ │ │ │ ├── nodeQueues.png │ │ │ │ │ ├── cluster_info.png │ │ │ │ │ ├── queue_type_sqs.gif │ │ │ │ │ ├── cluster-details.png │ │ │ │ │ ├── queue_type_admin.gif │ │ │ │ │ ├── queue_type_amqp.gif │ │ │ │ │ ├── cassandra-connection.png │ │ │ │ │ ├── nodewiseQueueWorkers.png │ │ │ │ │ └── zookeeper-connection.png │ │ │ │ │ └── styles │ │ │ │ │ ├── tree-styles.css │ │ │ │ │ └── dsxmleditor.css │ │ │ ├── org │ │ │ │ └── wso2 │ │ │ │ │ └── carbon │ │ │ │ │ └── andes │ │ │ │ │ └── cluster │ │ │ │ │ └── mgt │ │ │ │ │ └── ui │ │ │ │ │ └── i18n │ │ │ │ │ └── Resources.properties │ │ │ └── META-INF │ │ │ │ └── component.xml │ │ │ └── java │ │ │ └── org │ │ │ └── wso2 │ │ │ └── carbon │ │ │ └── andes │ │ │ └── cluster │ │ │ └── mgt │ │ │ └── ui │ │ │ └── Constants.java │ ├── org.wso2.carbon.andes.core │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── wso2 │ │ │ └── carbon │ │ │ └── andes │ │ │ └── core │ │ │ ├── AndesException.java │ │ │ ├── internal │ │ │ ├── util │ │ │ │ ├── AdministrativeManagementConstants.java │ │ │ │ ├── QueueManagementConstants.java │ │ │ │ └── SubscriptionManagementConstants.java │ │ │ ├── builder │ │ │ │ ├── QueueManagerServiceBuilder.java │ │ │ │ └── SubscriptionManagerServiceBuilder.java │ │ │ └── ds │ │ │ │ └── QueueManagerServiceValueHolder.java │ │ │ ├── types │ │ │ └── QueueRolePermission.java │ │ │ ├── QueueManagerException.java │ │ │ └── SubscriptionManagerException.java │ ├── org.wso2.carbon.andes.authentication │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── wso2 │ │ │ └── carbon │ │ │ └── andes │ │ │ └── authentication │ │ │ ├── service │ │ │ ├── AuthenticationServiceImpl.java │ │ │ └── AuthenticationService.java │ │ │ └── andes │ │ │ └── oauth │ │ │ └── exception │ │ │ └── OAuthTokenValidationException.java │ ├── org.wso2.carbon.andes │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── org │ │ │ │ └── wso2 │ │ │ │ └── carbon │ │ │ │ └── andes │ │ │ │ ├── listeners │ │ │ │ └── BrokerLifecycleListener.java │ │ │ │ └── service │ │ │ │ └── exception │ │ │ │ └── ConfigurationException.java │ │ │ └── resources │ │ │ └── META-INF │ │ │ └── services.xml │ ├── org.wso2.carbon.andes.event.core │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── wso2 │ │ │ └── carbon │ │ │ └── andes │ │ │ └── event │ │ │ └── core │ │ │ ├── subscription │ │ │ ├── EventDispatcher.java │ │ │ ├── EventFilter.java │ │ │ └── SubscriptionManagerFactory.java │ │ │ ├── EventBrokerFactory.java │ │ │ ├── exception │ │ │ ├── EventBrokerException.java │ │ │ └── EventBrokerConfigurationException.java │ │ │ ├── EventBundleNotificationService.java │ │ │ ├── delivery │ │ │ └── DeliveryManagerFactory.java │ │ │ ├── NotificationManager.java │ │ │ ├── TopicManagerServiceFactory.java │ │ │ ├── TopicRolePermission.java │ │ │ ├── internal │ │ │ ├── subscription │ │ │ │ └── registry │ │ │ │ │ └── RegistryTopicManagerServiceFactory.java │ │ │ └── builder │ │ │ │ └── EventAxis2ConfigurationContextObserver.java │ │ │ ├── Message.java │ │ │ └── TopicNode.java │ ├── org.wso2.carbon.andes.cluster.mgt │ │ └── src │ │ │ └── main │ │ │ ├── resources │ │ │ └── META-INF │ │ │ │ ├── component.xml │ │ │ │ └── services.xml │ │ │ └── java │ │ │ └── org │ │ │ └── wso2 │ │ │ └── carbon │ │ │ └── andes │ │ │ └── cluster │ │ │ └── mgt │ │ │ ├── Topic.java │ │ │ ├── ClusterMgtAdminException.java │ │ │ └── internal │ │ │ ├── ClusterManagementDataHolder.java │ │ │ ├── QueueException.java │ │ │ ├── ClusterMgtException.java │ │ │ ├── ClusterMgtConstants.java │ │ │ └── ClusterManagerServiceComponent.java │ ├── org.wso2.carbon.andes.commons │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── wso2 │ │ │ └── carbon │ │ │ └── andes │ │ │ └── commons │ │ │ ├── registry │ │ │ └── RegistryClientException.java │ │ │ ├── QueueDetails.java │ │ │ ├── SubscriptionDetails.java │ │ │ └── internal │ │ │ └── CommonsDataHolder.java │ ├── org.wso2.carbon.andes.event.admin │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── org │ │ │ │ └── wso2 │ │ │ │ └── carbon │ │ │ │ └── andes │ │ │ │ └── event │ │ │ │ └── admin │ │ │ │ ├── internal │ │ │ │ ├── EventAdminHolder.java │ │ │ │ └── EventAdminDS.java │ │ │ │ └── exception │ │ │ │ └── EventAdminException.java │ │ │ └── resources │ │ │ └── META-INF │ │ │ └── component.xml │ ├── org.wso2.carbon.andes.authorization │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── wso2 │ │ │ └── carbon │ │ │ └── andes │ │ │ └── authorization │ │ │ ├── andes │ │ │ └── AndesAuthorizationHandlerException.java │ │ │ └── service │ │ │ └── andes │ │ │ └── AndesAuthorizationPluginConfiguration.java │ ├── org.wso2.carbon.andes.admin │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── wso2 │ │ │ └── carbon │ │ │ └── andes │ │ │ └── admin │ │ │ └── internal │ │ │ └── Exception │ │ │ └── BrokerManagerAdminException.java │ └── org.wso2.carbon.andes.admin.mqtt │ │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── wso2 │ │ └── carbon │ │ └── andes │ │ └── admin │ │ └── mqtt │ │ └── BrokerManagerAdminException.java └── metrics │ ├── org.wso2.carbon.messaging.metrics.ui │ └── src │ │ └── main │ │ └── resources │ │ ├── org │ │ └── wso2 │ │ │ └── carbon │ │ │ └── messaging │ │ │ └── metrics │ │ │ └── ui │ │ │ └── i18n │ │ │ └── Resources.properties │ │ ├── META-INF │ │ └── component.xml │ │ └── web │ │ └── metrics-view │ │ └── metrics_mb_menu_ajaxprocessor.jsp │ └── pom.xml ├── issue_template.md ├── .github └── workflows │ └── coverage.yml └── service-stubs └── pom.xml /README.md: -------------------------------------------------------------------------------- 1 | # carbon-business-messaging 2 | -------------------------------------------------------------------------------- /features/andes/org.wso2.carbon.andes.server.feature/resources/databases/generatedDatabaseLocation: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /features/andes/org.wso2.carbon.andes.server.feature/resources/build.properties: -------------------------------------------------------------------------------- 1 | custom = true 2 | root.qpid=conf 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore everything in this directory 2 | target 3 | .classpath 4 | .settings 5 | .project 6 | .idea 7 | .DS_Store 8 | *.iml 9 | *.ipr 10 | *.iws 11 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/add.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/byte.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/byte.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/list.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/list.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/map.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/move.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/move.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/plus.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/qpid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/qpid.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/text.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/minus.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/nodata.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/nodata.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/object.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/object.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queues.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queues.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/refresh.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/refresh.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/restart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/restart.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/secure.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/secure.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/stream.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/stream.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/treetop.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/treetop.jpg -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/add.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/up.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_add.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/add.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/down.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/hide.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/hide.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/list.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/list.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/plus.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/show.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/show.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/type.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/type.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/up.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/delete.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/delete.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/down.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/hide.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/hide.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/line.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/minus.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/nodata.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/nodata.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/plus.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/secure.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/secure.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/show.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/show.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/type.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/type.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_browse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_browse.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/add.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/list.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/list.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/move.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/move.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/qpid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/qpid.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/text.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/minus.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/nodata.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/nodata.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/secure.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/secure.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/topics.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/topics.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/details.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/details.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/refresh.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/refresh.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/treetop.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/treetop.jpg -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_type_sqs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_type_sqs.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/refresh.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/refresh.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/restart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/restart.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/secure.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/secure.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/refresh.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/refresh.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/treetop.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/treetop.jpg -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/Subscribe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/Subscribe.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/node-normal.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/node-normal.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/subscribe.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/subscribe.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_add_success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_add_success.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_from_tenant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_from_tenant.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_type_admin.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_type_admin.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_type_amqp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_type_amqp.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/subscribe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/subscribe.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/Add_subtopic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/Add_subtopic.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/Topic_Browser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/Topic_Browser.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/Topic_details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/Topic_details.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/icon-tree-dot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/icon-tree-dot.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/node-selected.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/node-selected.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/unsubscribe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/unsubscribe.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/subscriptions.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/images/subscriptions.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/icon-tree-minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/icon-tree-minus.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/icon-tree-minus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/icon-tree-minus.jpg -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/icon-tree-plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/icon-tree-plus.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/icon-tree-plus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/icon-tree-plus.jpg -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_delete_success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/images/queue_delete_success.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/queue_type_amqp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/queue_type_amqp.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/unsubscribe_grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/images/unsubscribe_grey.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/list.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/list.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/move.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/move.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/plus.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/qpid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/qpid.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/icon-tree-plus-alone.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/images/icon-tree-plus-alone.jpg -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/minus.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/nodata.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/nodata.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/secure.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/secure.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/nodeIDBox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/nodeIDBox.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/refresh.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/refresh.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/restart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/restart.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/treetop.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/treetop.jpg -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/nodeQueues.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/nodeQueues.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/cluster_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/cluster_info.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/queue_type_sqs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/queue_type_sqs.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/cluster-details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/cluster-details.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/queue_type_admin.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/queue_type_admin.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/queue_type_amqp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/queue_type_amqp.gif -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/cassandra-connection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/cassandra-connection.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/nodewiseQueueWorkers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/nodewiseQueueWorkers.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/zookeeper-connection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/carbon-business-messaging/master/components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/images/zookeeper-connection.png -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/css/subscriptions.css: -------------------------------------------------------------------------------- 1 | .noDataDiv{ 2 | border:solid 1px #d1cece; 3 | padding:10px; 4 | background-color:#f3f3f3; 5 | color:#6b6b6b; 6 | font-style:italic; 7 | } 8 | .noDataDiv-plain{ 9 | padding:10px; 10 | color:#6b6b6b; 11 | font-style:italic; 12 | } -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/css/topics.css: -------------------------------------------------------------------------------- 1 | .noDataDiv { 2 | border: solid 1px #d1cece; 3 | padding: 10px; 4 | background-color: #f3f3f3; 5 | color: #6b6b6b; 6 | font-style: italic; 7 | } 8 | 9 | .noDataDiv-plain { 10 | padding: 10px; 11 | color: #6b6b6b; 12 | font-style: italic; 13 | } 14 | 15 | #topicTree a { 16 | cursor: pointer; 17 | } -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/js/eventing_utils.js: -------------------------------------------------------------------------------- 1 | var textValue = ""; 2 | function clearTextIn(obj){ 3 | if(YAHOO.util.Dom.hasClass(obj,'initE')){ 4 | YAHOO.util.Dom.removeClass(obj,'initE'); 5 | YAHOO.util.Dom.addClass(obj,'normalE'); 6 | textValue = obj.value; 7 | obj.value = ""; 8 | } 9 | } 10 | function fillTextIn(obj){ 11 | if(obj.value ==""){ 12 | obj.value = textValue; 13 | if(YAHOO.util.Dom.hasClass(obj,'normalE')){ 14 | YAHOO.util.Dom.removeClass(obj,'normalE'); 15 | YAHOO.util.Dom.addClass(obj,'initE'); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/js/eventing_utils.js: -------------------------------------------------------------------------------- 1 | var textValue = ""; 2 | function clearTextIn(obj){ 3 | if(YAHOO.util.Dom.hasClass(obj,'initE')){ 4 | YAHOO.util.Dom.removeClass(obj,'initE'); 5 | YAHOO.util.Dom.addClass(obj,'normalE'); 6 | textValue = obj.value; 7 | obj.value = ""; 8 | } 9 | } 10 | function fillTextIn(obj){ 11 | if(obj.value ==""){ 12 | obj.value = textValue; 13 | if(YAHOO.util.Dom.hasClass(obj,'normalE')){ 14 | YAHOO.util.Dom.removeClass(obj,'normalE'); 15 | YAHOO.util.Dom.addClass(obj,'initE'); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/js/subscriptions.js: -------------------------------------------------------------------------------- 1 | var cal1; 2 | YAHOO.util.Event.onDOMReady(function() { 3 | cal1 = new YAHOO.widget.Calendar("cal1", "cal1Container", { title:"Choose a date:", close:true }); 4 | cal1.render(); 5 | cal1.selectEvent.subscribe(calSelectHandler, cal1, true) 6 | }); 7 | function showCalendar() { 8 | cal1.show(); 9 | } 10 | function calSelectHandler(type, args, obj) { 11 | var selected = args[0]; 12 | //var selDate = this.toDate(selected[0]); 13 | var selDate = args[0][0][0] + "/" + args[0][0][1] + "/" + args[0][0][2]; 14 | var activeTime = document.getElementById("expirationTime"); 15 | clearTextIn(activeTime); 16 | activeTime.value = selDate; 17 | cal1.hide(); 18 | } -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/js/subscriptions.js: -------------------------------------------------------------------------------- 1 | var cal1; 2 | YAHOO.util.Event.onDOMReady(function() { 3 | cal1 = new YAHOO.widget.Calendar("cal1", "cal1Container", { title:"Choose a date:", close:true }); 4 | cal1.render(); 5 | cal1.selectEvent.subscribe(calSelectHandler, cal1, true) 6 | }); 7 | function showCalendar() { 8 | cal1.show(); 9 | } 10 | function calSelectHandler(type, args, obj) { 11 | var selected = args[0]; 12 | //var selDate = this.toDate(selected[0]); 13 | var selDate = args[0][0][0] + "/" + args[0][0][1] + "/" + args[0][0][2]; 14 | var activeTime = document.getElementById("expirationTime"); 15 | clearTextIn(activeTime); 16 | activeTime.value = selDate; 17 | cal1.hide(); 18 | } -------------------------------------------------------------------------------- /issue_template.md: -------------------------------------------------------------------------------- 1 | **Description:** 2 | 3 | 4 | **Suggested Labels:** 5 | 6 | 7 | **Suggested Assignees:** 8 | 9 | 10 | **Affected Product Version:** 11 | 12 | **OS, DB, other environment details and versions:** 13 | 14 | **Steps to reproduce:** 15 | 16 | 17 | **Related Issues:** 18 | -------------------------------------------------------------------------------- /components/metrics/org.wso2.carbon.messaging.metrics.ui/src/main/resources/org/wso2/carbon/messaging/metrics/ui/i18n/Resources.properties: -------------------------------------------------------------------------------- 1 | metrics.mb.menu.text=Messaging Metrics 2 | 3 | #View Names 4 | metrics.view.DisruptorView=Disruptor 5 | metrics.view.PubSubView=Publish & Subscribe 6 | metrics.view.MsgAckView=Messages & Acknowledgements 7 | metrics.view.DatabaseView=Database 8 | 9 | #Chart Title according to chart type. i.e. metrics.chart. 10 | metrics.chart.Disruptor=Disruptor 11 | metrics.chart.PubSub=Publish & Subscribe 12 | metrics.chart.MsgAckRecv=Received Messages & Acknowledgements 13 | metrics.chart.MsgAckSent=Sent Messages & Acknowledgements 14 | metrics.chart.DatabaseWriteTime=Database Write Time (milliseconds) 15 | metrics.chart.DatabaseWriteRate=Database Write Rate (writes/second) 16 | metrics.chart.DatabaseReadTime=Database Read Time (milliseconds) 17 | metrics.chart.DatabaseReadRate=Database Read Rate (reads/second) -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/update_topic_role_permissions_to_session_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="java.util.ArrayList" %> 2 | <%@ page import="org.wso2.carbon.andes.event.stub.core.TopicRolePermission" %> 3 | <% 4 | ArrayList topicRolePermissions = (ArrayList) session.getAttribute("topicRolePermissions"); 5 | String role = request.getParameter("role"); 6 | String checked = request.getParameter("checked"); 7 | String action = request.getParameter("action"); 8 | 9 | for(TopicRolePermission permission: topicRolePermissions){ 10 | if(permission.getRoleName().equals(role)){ 11 | if("subscribe".equals(action)){ 12 | permission.setAllowedToSubscribe("true".equals(checked)); 13 | } else if ("publish".equals(action)){ 14 | permission.setAllowedToPublish("true".equals(checked)); 15 | } 16 | } 17 | } 18 | %> -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/update_queue_role_permissions_to_session_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="org.wso2.carbon.andes.stub.admin.types.QueueRolePermission" %> 2 | <%@ page import="java.util.ArrayList" %> 3 | <% 4 | ArrayList queueRolePermissions = (ArrayList) session.getAttribute("queueRolePermissions"); 5 | String role = request.getParameter("role"); 6 | String checked = request.getParameter("checked"); 7 | String action = request.getParameter("action"); 8 | 9 | for(QueueRolePermission permission: queueRolePermissions){ 10 | if(permission.getRoleName().equals(role)){ 11 | if ("consume".equals(action)){ 12 | permission.setAllowedToConsume(Boolean.valueOf(checked)); 13 | } else if ("publish".equals(action)){ 14 | permission.setAllowedToPublish(Boolean.valueOf(checked)); 15 | } 16 | } 17 | } 18 | %> 19 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/java/org/wso2/carbon/andes/event/ui/UIConstants.java: -------------------------------------------------------------------------------- 1 | package org.wso2.carbon.andes.event.ui; 2 | 3 | /** 4 | * Contains UI constant used in JSP 5 | */ 6 | public class UIConstants { 7 | public static final String SUBSCRIPTION_MODE_0 = "mode_0"; 8 | public static final String SUBSCRIPTION_MODE_1 = "mode_1"; 9 | public static final String SUBSCRIPTION_MODE_2 = "mode_2"; 10 | public static final String SUBSCRIPTION_MODE_3 = "mode_3"; 11 | public static final String SUBSCRIPTION_MODE_4 = "mode_4"; 12 | public static final String SUBSCRIPTION_MODE_0_DESCRIPTION = "Topic Only"; 13 | public static final String SUBSCRIPTION_MODE_1_DESCRIPTION = "Immediate Children"; 14 | public static final String SUBSCRIPTION_MODE_2_DESCRIPTION = "Topic and Children"; 15 | public static final String SUBSCRIPTION_MODE_3_DESCRIPTION = "Immediate child"; 16 | public static final String SUBSCRIPTION_MODE_4_DESCRIPTION = "All Children"; 17 | 18 | } 19 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/queue_purge_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %> 2 | <%@ page import="org.wso2.carbon.andes.ui.UIUtils" %> 3 | <%@ page import="org.wso2.carbon.ui.CarbonUIMessage" %> 4 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceBrokerManagerAdminException" %> 5 | <% 6 | AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request); 7 | 8 | String queue = request.getParameter("nameOfQueue"); 9 | String message = ""; 10 | try { 11 | stub.purgeMessagesOfQueue(queue); 12 | } catch (AndesAdminServiceBrokerManagerAdminException e) { 13 | CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(), e); 14 | session.setAttribute(CarbonUIMessage.ID, uiMsg); 15 | message = "Error: " + e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(); 16 | } 17 | %><%=message%> 18 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/load_queue_details_from_bEnd_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %> 2 | <%@ page import="org.wso2.carbon.andes.ui.UIUtils" %> 3 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceBrokerManagerAdminException" %> 4 | <%@ page import="org.wso2.carbon.ui.CarbonUIMessage" %> 5 | 6 | <% 7 | try { 8 | AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request); 9 | String nameOfQueue = request.getParameter("queueName"); 10 | session.removeAttribute("queue"); 11 | session.removeAttribute("queueRolePermission"); 12 | session.setAttribute("queue", nameOfQueue); 13 | 14 | session.setAttribute("queueRolePermission", stub.getQueueRolePermission(nameOfQueue)); 15 | } catch (AndesAdminServiceBrokerManagerAdminException e) { 16 | CarbonUIMessage.sendCarbonUIMessage(e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(), CarbonUIMessage.ERROR, request, e); 17 | } 18 | %> 19 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/styles/tree-styles.css: -------------------------------------------------------------------------------- 1 | .treeControl ul{ 2 | padding:0px; 3 | margin:0px; 4 | } 5 | 6 | .treeControl ul li{ 7 | list-style:none; 8 | padding-left:15px; 9 | padding-top:5px; 10 | white-space:nowrap; 11 | } 12 | .treeControl ul li a.plus{ 13 | background-image:url(../images/plus.gif); 14 | background-repeat:no-repeat; 15 | background-position:0px 2px; 16 | padding-left:15px; 17 | cursor:pointer; 18 | } 19 | .treeControl ul li a.minus{ 20 | background-image:url(../images/minus.gif); 21 | background-repeat:no-repeat; 22 | background-position:0px 2px; 23 | padding-left:15px; 24 | cursor:pointer; 25 | } 26 | .treeControl ul li a.nodata{ 27 | background-image:url(../images/nodata.gif); 28 | background-repeat:no-repeat; 29 | background-position:0px 2px; 30 | padding-left:15px; 31 | cursor:pointer; 32 | } 33 | .treeControl ul li a.treeNode{ 34 | cursor:pointer; 35 | color:#4c99c3; 36 | } 37 | -------------------------------------------------------------------------------- /features/andes/org.wso2.carbon.andes.server.feature/resources/dbscripts/migration-3.0.0_to_3.1.0/oracle-mb.sql: -------------------------------------------------------------------------------- 1 | -- Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 2 | 3 | -- WSO2 Inc. licenses this file to you under the Apache License, 4 | -- Version 2.0 (the "License"); you may not use this file except 5 | -- in compliance with the License. 6 | -- You may obtain a copy of the License at 7 | -- 8 | -- http://www.apache.org/licenses/LICENSE-2.0 9 | -- 10 | -- Unless required by applicable law or agreed to in writing, 11 | -- software distributed under the License is distributed on an 12 | -- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 13 | -- KIND, either express or implied. See the License for the 14 | -- specific language governing permissions and limitations 15 | -- under the License. 16 | 17 | -- WSO2 Message Broker v 3.0.0 to v 3.1.0 migration script for oracle -- 18 | 19 | 20 | ALTER TABLE MB_RETAINED_CONTENT MODIFY (MESSAGE_ID NUMBER(19, 0)); 21 | 22 | ALTER TABLE MB_RETAINED_METADATA MODIFY (MESSAGE_ID NUMBER(19, 0)); 23 | 24 | 25 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.core/src/main/java/org/wso2/carbon/andes/core/AndesException.java: -------------------------------------------------------------------------------- 1 | package org.wso2.carbon.andes.core; 2 | 3 | 4 | /** 5 | * Exception type generic to all andes core level exceptions 6 | */ 7 | public class AndesException extends Exception { 8 | 9 | private String faultCode; 10 | private String faultString; 11 | 12 | public AndesException() { 13 | super(); 14 | } 15 | 16 | public AndesException(String faultString, String faultCode) { 17 | this.faultCode = faultCode; 18 | this.faultString = faultString; 19 | } 20 | 21 | public AndesException(String message) { 22 | super(message); 23 | } 24 | 25 | public AndesException(String message, Throwable cause) { 26 | super(message, cause); 27 | } 28 | 29 | public AndesException(Throwable cause) { 30 | super(cause); 31 | } 32 | 33 | public String getFaultCode() { 34 | return faultCode; 35 | } 36 | 37 | public String getFaultString() { 38 | return faultString; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/retrieve_message_count_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %> 2 | <%@page import="org.wso2.carbon.ui.CarbonUIMessage"%> 3 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %> 4 | <%@ page import="org.wso2.carbon.andes.ui.UIUtils" %> 5 | 6 | <% 7 | AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request); 8 | String numberOfMessages = "-1"; 9 | try{ 10 | String queueName = request.getParameter("queueName"); 11 | String msgPattern = request.getParameter("msgPattern"); 12 | long messageCount = stub.getMessageCount(queueName,msgPattern); 13 | numberOfMessages = Long.toString(messageCount); 14 | } catch (Exception e) { 15 | numberOfMessages = "Error"; 16 | CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, e.getMessage(), e); 17 | session.setAttribute(CarbonUIMessage.ID, uiMsg); 18 | } 19 | %> 20 | <%=numberOfMessages%> 21 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/org/wso2/carbon/andes/event/ui/i18n/Resources.properties: -------------------------------------------------------------------------------- 1 | Eventing=Eventing 2 | subscriptions=Subscriptions 3 | Topics=Topics 4 | Messagebox=Messagebox 5 | next=Next 6 | cancel=Cancel 7 | prev=prev 8 | topic=Topic 9 | xml.message= XML Message 10 | service.invoke= Invoke Service 11 | list=List 12 | add=Add 13 | topic.Details= Topic Details 14 | permission.Details= Permission Details 15 | admin= Admin 16 | ws.subscription.details= WS Subscription Details 17 | jms.subscription.details= JMS Subscription Details 18 | add.topic= Add Topic 19 | role= Role 20 | subscribe= Subscribe 21 | publish = Publish 22 | add.subscription= Add Subscription 23 | topic.name= Topic Name 24 | add.sub.topic= Add Sub Topic 25 | parent.topic= Parent Topic 26 | subtopic.name= Topic Name 27 | go= Go 28 | subscription.mode= Subscription Mode 29 | add.subtopic=Add Subtopic 30 | topic.details=Topic Details 31 | browse=Browse 32 | topics=Topics 33 | search.label=Enter role name pattern to search (* for all) 34 | permissions=Permissions 35 | text.message=Text Message 36 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/org/wso2/carbon/andes/ui/i18n/JSResources.properties: -------------------------------------------------------------------------------- 1 | confirmation.delete=Are you sure to delete? 2 | confirmation.unSubscribe=Are you sure you want to unsubscribe? 3 | confirmation.restore=Are you sure you want to restore? 4 | confirmation.reRoute=Are you sure you want to re-route messages? 5 | info.successful.delete=Successfully deleted. 6 | info.successful.restore=Successfully restored. 7 | info.partial.successful.restore=messages could not be restored due to message being unavailable. 8 | info.fail.restore=Selected messages could not be restored due to message being unavailable. 9 | info.successful.reRoute=Successfully rerouted. 10 | info.partial.successful.reRoute=messages could not be rerouted due to message being unavailable. 11 | info.fail.reRoute=Selected messages could not be rerouted due to message being unavailable. 12 | info.successful.unSubscribe=Successfully unsubscribed. 13 | 14 | 15 | info.zero.items.selected=Please select one or more messages to 16 | info.no.queueu.selected=Please select a queue to restore 17 | delete=delete 18 | restore=restore 19 | reRoute=reroute 20 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/retrive_message_count_for_subscriber_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %> 2 | <%@page import="org.wso2.carbon.ui.CarbonUIMessage"%> 3 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %> 4 | <%@ page import="org.wso2.carbon.andes.ui.UIUtils" %> 5 | <%@ page import="org.wso2.andes.kernel.DestinationType" %> 6 | <%@ page import="org.wso2.andes.kernel.ProtocolType" %> 7 | 8 | <% 9 | AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request); 10 | String numberOfMessages = "-1"; 11 | try{ 12 | String queueName = request.getParameter("queueName"); 13 | long messageCount = stub.getPendingMessageCount(queueName); 14 | numberOfMessages = Long.toString(messageCount); 15 | 16 | } catch (Exception e) { 17 | numberOfMessages = "Error"; 18 | CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, e.getMessage(), e); 19 | session.setAttribute(CarbonUIMessage.ID, uiMsg); 20 | } 21 | %> 22 | <%=numberOfMessages%> 23 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/resources-i18n-ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | 18 | <%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %> 19 | <%@ taglib prefix="carbon" uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" %> 20 | 21 | 24 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/queue_delete_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %> 2 | <%@ page import="org.wso2.carbon.andes.ui.UIUtils" %> 3 | <%@ page import="org.wso2.carbon.ui.CarbonUIMessage" %> 4 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceBrokerManagerAdminException" %> 5 | <% 6 | AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request); 7 | 8 | String queue = request.getParameter("nameOfQueue"); 9 | String topicName = request.getParameter("nameOfTopic"); 10 | String message = ""; 11 | try { 12 | stub.deleteQueue(queue); 13 | if (null != topicName ) { 14 | stub.deleteTopicFromRegistry(topicName, queue); 15 | } 16 | } catch (AndesAdminServiceBrokerManagerAdminException e) { 17 | CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(), e); 18 | session.setAttribute(CarbonUIMessage.ID, uiMsg); 19 | message = "Error: " + e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(); 20 | } 21 | %><%=message%> 22 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.core/src/main/java/org/wso2/carbon/andes/core/internal/util/AdministrativeManagementConstants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.core.internal.util; 20 | 21 | /** 22 | * Class to keep constants on administrative operations 23 | */ 24 | public class AdministrativeManagementConstants { 25 | 26 | public static final String MESSAGE_STATUS_DUMP_MBEAN_OPERATION = "dumpMessageStatusInfo"; 27 | public static final String MESSAGE_STATUS_DUMP_FILE_NAME = "messageStatusDump.xlsx"; 28 | } 29 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/styles/tree-styles.css: -------------------------------------------------------------------------------- 1 | .treeControl ul { 2 | padding: 0px; 3 | margin: 0px; 4 | } 5 | 6 | .treeControl ul li { 7 | list-style: none; 8 | padding-left: 15px; 9 | padding-top: 5px; 10 | white-space: nowrap; 11 | } 12 | 13 | .treeControl ul li a.plus { 14 | background-image: url(../images/plus.gif); 15 | background-repeat: no-repeat; 16 | background-position: 0px 2px; 17 | padding-left: 15px; 18 | cursor: pointer; 19 | } 20 | 21 | .treeControl ul li a.minus { 22 | background-image: url(../images/minus.gif); 23 | background-repeat: no-repeat; 24 | background-position: 0px 2px; 25 | padding-left: 15px; 26 | cursor: pointer; 27 | } 28 | 29 | .treeControl ul li a.nodata { 30 | background-image: url(../images/nodata.gif); 31 | background-repeat: no-repeat; 32 | background-position: 0px 2px; 33 | padding-left: 15px; 34 | cursor: pointer; 35 | } 36 | 37 | .treeControl ul li a.treeNode { 38 | cursor: pointer; 39 | color: #4c99c3; 40 | } 41 | 42 | div#workArea table.styledLeft div.paginatorWrapper > table, div#workArea table.styledLeft div.paginatorWrapper > table tr td { 43 | border: none; 44 | } -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.authentication/src/main/java/org/wso2/carbon/andes/authentication/service/AuthenticationServiceImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.authentication.service; 20 | 21 | public class AuthenticationServiceImpl implements AuthenticationService { 22 | 23 | private String accessKey = null; 24 | 25 | public AuthenticationServiceImpl(String accessKey) { 26 | this.accessKey = accessKey; 27 | } 28 | 29 | public String getAccessKey() { 30 | return accessKey; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/dlc_message_delete_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %> 2 | <%@page import="org.wso2.carbon.ui.CarbonUIMessage"%> 3 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %> 4 | <%@ page import="org.wso2.carbon.andes.ui.UIUtils" %> 5 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceBrokerManagerAdminException" %> 6 | 7 | <% 8 | AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request); 9 | String idList = request.getParameter("msgList"); 10 | String nameOfQueue = request.getParameter("nameOfQueue"); 11 | 12 | String[] idArray = idList.split(","); 13 | long[] andesMessageIDs = new long[idArray.length]; 14 | for (int i = 0; i < idArray.length; i++) { 15 | andesMessageIDs[i] = Long.parseLong(idArray[i]); 16 | } 17 | try { 18 | stub.deleteMessagesFromDeadLetterQueue(andesMessageIDs, nameOfQueue); 19 | 20 | } catch (AndesAdminServiceBrokerManagerAdminException e) { 21 | CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(), e); 22 | session.setAttribute(CarbonUIMessage.ID, uiMsg); 23 | } 24 | %> 25 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.core/src/main/java/org/wso2/carbon/andes/core/internal/builder/QueueManagerServiceBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | package org.wso2.carbon.andes.core.internal.builder; 19 | 20 | import org.wso2.carbon.andes.core.QueueManagerService; 21 | import org.wso2.carbon.andes.core.QueueManagerServiceImpl; 22 | 23 | public final class QueueManagerServiceBuilder { 24 | 25 | public static QueueManagerService createQueueManagerService(){ 26 | QueueManagerServiceImpl queueManagerService = new QueueManagerServiceImpl(); 27 | return queueManagerService; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes/src/main/java/org/wso2/carbon/andes/listeners/BrokerLifecycleListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.listeners; 18 | 19 | 20 | /** 21 | * This is an interface that declares the method where external parties 22 | * can define andes server pre-shutdown work that needs to be done by extending this. 23 | */ 24 | public interface BrokerLifecycleListener { 25 | 26 | /** 27 | * Method declaration for pre-shutdown work 28 | * 29 | */ 30 | public void onShuttingdown(); 31 | /** 32 | * Method declaration for post-shutdown work 33 | * 34 | */ 35 | public void onShutdown(); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/subscription/EventDispatcher.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core.subscription; 18 | 19 | 20 | import org.wso2.carbon.andes.event.core.Message; 21 | 22 | /** 23 | * This interface can be used to receive the Events from the EventBroker interface 24 | */ 25 | public interface EventDispatcher { 26 | 27 | /** 28 | * notify with the subscription details. implementation can use the subscription 29 | * details to send the message. 30 | * @param message 31 | * @param subscription 32 | */ 33 | public void notify(Message message, Subscription subscription); 34 | } 35 | -------------------------------------------------------------------------------- /.github/workflows/coverage.yml: -------------------------------------------------------------------------------- 1 | name: Code coverage upload workflow (codecov) 2 | 3 | on: 4 | schedule: 5 | - cron: '0 20 * * *' 6 | workflow_dispatch: 7 | 8 | permissions: 9 | contents: read # to fetch code (actions/checkout) 10 | 11 | jobs: 12 | build-and-upload-coverage: 13 | runs-on: ubuntu-latest 14 | steps: 15 | - name: Run hostname 16 | run: hostname 17 | - name: Fix host entry 18 | run: sudo echo "127.0.0.1 $(hostname)" | sudo tee -a /etc/hosts 19 | - name: Show hosts 20 | run: cat /etc/hosts 21 | - name: Checkout master 22 | uses: actions/checkout@v3 23 | with: 24 | fetch-depth: '10' 25 | - name: Set up JDK 11 26 | uses: actions/setup-java@v2 27 | with: 28 | java-version: 11 29 | distribution: 'adopt' 30 | - name: Cache Maven packages 31 | uses: actions/cache@v3 32 | with: 33 | path: ~/.m2 34 | key: ${{ runner.os }}-m2 35 | restore-keys: ${{ runner.os }}-m2 36 | - name: Build with tests 37 | run: mvn clean install --file pom.xml 38 | - name: Upload test coverage to Codecov 39 | uses: codecov/codecov-action@v4.0.1 40 | with: 41 | flags: unit_tests 42 | token: ${{ secrets.CODECOV_TOKEN }} 43 | slug: wso2/carbon-business-messaging 44 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/EventBrokerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core; 18 | 19 | import org.apache.axiom.om.OMElement; 20 | import org.wso2.carbon.andes.event.core.exception.EventBrokerConfigurationException; 21 | 22 | /** 23 | * Factory to get the Event broker instances 24 | */ 25 | public interface EventBrokerFactory { 26 | 27 | /** 28 | * returns the event broker from the configuration element 29 | * @param config configuration 30 | * @return 31 | * @throws EventBrokerConfigurationException 32 | */ 33 | EventBroker getEventBroker(OMElement config) throws EventBrokerConfigurationException; 34 | } 35 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt/src/main/resources/META-INF/component.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | Cluster Information 22 | /permission/admin/manage/cluster 23 | 24 | 25 | Nodes 26 | /permission/admin/manage/cluster/list 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/exception/EventBrokerException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core.exception; 18 | 19 | /** 20 | * This exceptions is thrown to any problem which occurs at the message processing time. 21 | */ 22 | public class EventBrokerException extends Exception { 23 | 24 | public EventBrokerException() { 25 | } 26 | 27 | public EventBrokerException(String message) { 28 | super(message); 29 | } 30 | 31 | public EventBrokerException(String message, Throwable cause) { 32 | super(message, cause); 33 | } 34 | 35 | public EventBrokerException(Throwable cause) { 36 | super(cause); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/EventBundleNotificationService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core; 18 | 19 | 20 | import org.wso2.carbon.andes.event.core.qpid.QpidServerDetails; 21 | 22 | /** 23 | * This service is used to notify from the Qpid component if it is present. Qpid component has an declarative service 24 | * to listen for this. so we know it will start up after event component. 25 | */ 26 | public interface EventBundleNotificationService { 27 | 28 | /** 29 | * Notify to register qpidServerDetails 30 | * 31 | * @param qpidServerDetails qpidServerDetails 32 | */ 33 | public void notifyStart(QpidServerDetails qpidServerDetails); 34 | } 35 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.core/src/main/java/org/wso2/carbon/andes/core/internal/builder/SubscriptionManagerServiceBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.core.internal.builder; 20 | 21 | 22 | 23 | import org.wso2.carbon.andes.core.SubscriptionManagerService; 24 | import org.wso2.carbon.andes.core.SubscriptionManagerServiceImpl; 25 | 26 | public class SubscriptionManagerServiceBuilder { 27 | 28 | public static SubscriptionManagerService createSubscriptionManagerService(){ 29 | SubscriptionManagerServiceImpl subscriptionManagerService = new SubscriptionManagerServiceImpl(); 30 | return subscriptionManagerService; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.authentication/src/main/java/org/wso2/carbon/andes/authentication/service/AuthenticationService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.authentication.service; 20 | 21 | /** 22 | * This is an OSGi service used for passing the access key that should be used by 23 | * other Carbon components to log in to the Qpid broker around. Access key is 24 | * generated when the authentication bundle is activated. 25 | */ 26 | public interface AuthenticationService { 27 | 28 | /** 29 | * Get stored access key 30 | * 31 | * @return 32 | * Stored access key 33 | */ 34 | public String getAccessKey(); 35 | } 36 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt/src/main/java/org/wso2/carbon/andes/cluster/mgt/Topic.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | package org.wso2.carbon.andes.cluster.mgt; 19 | 20 | public class Topic { 21 | 22 | private String name; 23 | private int numberOfSubscribers = 0; 24 | 25 | public int getNumberOfSubscribers() { 26 | return numberOfSubscribers; 27 | } 28 | 29 | public void setNumberOfSubscribers(int numberOfSubscribers) { 30 | this.numberOfSubscribers = numberOfSubscribers; 31 | } 32 | 33 | public String getName() { 34 | return name; 35 | } 36 | 37 | public void setName(String name) { 38 | this.name = name; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/delivery/DeliveryManagerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core.delivery; 18 | 19 | import org.apache.axiom.om.OMElement; 20 | import org.wso2.carbon.andes.event.core.exception.EventBrokerConfigurationException; 21 | 22 | /** 23 | * factory interface to create Delivery managers 24 | */ 25 | public interface DeliveryManagerFactory { 26 | 27 | /** 28 | * creates and returns the delivery manager from the omElement config. 29 | * @param config OMElement 30 | * @return delivery manager object 31 | * @throws EventBrokerConfigurationException 32 | */ 33 | DeliveryManager getDeliveryManger(OMElement config) throws EventBrokerConfigurationException; 34 | 35 | } 36 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/dlc_message_restore_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %> 2 | <%@page import="org.wso2.carbon.ui.CarbonUIMessage"%> 3 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %> 4 | <%@ page import="org.wso2.carbon.andes.ui.UIUtils" %> 5 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceBrokerManagerAdminException" %> 6 | 7 | <% 8 | AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request); 9 | String idList = request.getParameter("msgList"); 10 | String nameOfQueue = request.getParameter("nameOfQueue"); 11 | 12 | long unavailableMessageCount = 0; 13 | 14 | String[] idArray = idList.split(","); 15 | long[] andesMessageIDs = new long[idArray.length]; 16 | for (int i = 0; i < idArray.length; i++) { 17 | andesMessageIDs[i] = Long.parseLong(idArray[i]); 18 | } 19 | try { 20 | unavailableMessageCount = stub.restoreSelectedMessagesFromDeadLetterChannel(andesMessageIDs, nameOfQueue); 21 | 22 | } catch (AndesAdminServiceBrokerManagerAdminException e) { 23 | CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, 24 | e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(), e); 25 | session.setAttribute(CarbonUIMessage.ID, uiMsg); 26 | } 27 | %> 28 | <%=unavailableMessageCount%> 29 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/NotificationManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core; 18 | 19 | import org.wso2.carbon.andes.event.core.exception.EventBrokerException; 20 | import org.wso2.carbon.andes.event.core.subscription.Subscription; 21 | 22 | /** 23 | * Implementation of this interface used to send notification to any delivery manager 24 | */ 25 | public interface NotificationManager { 26 | 27 | /** 28 | * Notification message send to given subscription 29 | * 30 | * @param message message 31 | * @param subscription subscription 32 | * @throws EventBrokerException 33 | */ 34 | public void sendNotification(Message message, Subscription subscription) throws EventBrokerException; 35 | } 36 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.commons/src/main/java/org/wso2/carbon/andes/commons/registry/RegistryClientException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.commons.registry; 20 | 21 | /** 22 | * Custom exception for the RegistryClient 23 | */ 24 | public class RegistryClientException extends Exception { 25 | 26 | public RegistryClientException() { 27 | super(); 28 | } 29 | 30 | public RegistryClientException(Throwable cause) { 31 | super(cause); 32 | } 33 | 34 | public RegistryClientException(String message) { 35 | super(message); 36 | } 37 | 38 | public RegistryClientException(String message, Throwable cause) { 39 | super(message, cause); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.core/src/main/java/org/wso2/carbon/andes/core/internal/util/QueueManagementConstants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | package org.wso2.carbon.andes.core.internal.util; 19 | 20 | public class QueueManagementConstants { 21 | public static final String DURABLE_QUEUE_NAMES__MBEAN_ATTRIBUTE = "NamesOfAllDurableQueues"; 22 | public static final String QUEUES_COUNT_MBEAN_ATTRIBUTE = "AllQueueCounts"; 23 | public static final String DLC_QUEUE_INFO_MBEAN_OPERATION = "getDLCQueueInformation"; 24 | public static final String BROKER_SUBSCRIPTION_ATTRIBUTE = "AllSubscriptionInformation"; 25 | public static final String QPID_VHOST_NAME = "carbon"; 26 | public static final String MB_QUEUE_STORAGE_PATH = "event/queues/jms"; 27 | } 28 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.admin/src/main/java/org/wso2/carbon/andes/event/admin/internal/EventAdminHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2015 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.admin.internal; 18 | 19 | 20 | import org.wso2.carbon.andes.event.core.EventBroker; 21 | 22 | /** 23 | * Data holder class of EventAdminDS 24 | */ 25 | public class EventAdminHolder { 26 | 27 | private static EventAdminHolder eventAdminHolder = new EventAdminHolder(); 28 | 29 | private EventBroker eventBroker; 30 | 31 | public static EventAdminHolder getInstance(){ 32 | return eventAdminHolder; 33 | } 34 | 35 | public EventBroker getEventBroker() { 36 | return eventBroker; 37 | } 38 | 39 | public void registerEventBroker(EventBroker eventBroker) { 40 | this.eventBroker = eventBroker; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes/src/main/java/org/wso2/carbon/andes/service/exception/ConfigurationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.service.exception; 20 | 21 | /** 22 | * Configuration exception will be thrown when there is an error in configuration files 23 | */ 24 | public class ConfigurationException extends Exception{ 25 | 26 | public ConfigurationException() { 27 | } 28 | 29 | public ConfigurationException(String message) { 30 | super(message); 31 | } 32 | 33 | public ConfigurationException(String message, Throwable cause) { 34 | super(message, cause); 35 | } 36 | 37 | public ConfigurationException(Throwable cause) { 38 | super(cause); 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/exception/EventBrokerConfigurationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core.exception; 18 | 19 | /** 20 | * Event broker building logic throws this exception to any configuration problem. 21 | */ 22 | public class EventBrokerConfigurationException extends EventBrokerException { 23 | 24 | public EventBrokerConfigurationException() { 25 | 26 | } 27 | 28 | public EventBrokerConfigurationException(String message) { 29 | super(message); 30 | } 31 | 32 | public EventBrokerConfigurationException(String message, Throwable cause) { 33 | super(message, cause); 34 | } 35 | 36 | public EventBrokerConfigurationException(Throwable cause) { 37 | super(cause); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/subscription/EventFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core.subscription; 18 | 19 | /** 20 | * Event filter details 21 | */ 22 | public class EventFilter { 23 | 24 | private String dialect; 25 | private String value; 26 | 27 | public EventFilter(String dialect, String value) { 28 | this.dialect = dialect; 29 | this.value = value; 30 | } 31 | 32 | public String getDialect() { 33 | return dialect; 34 | } 35 | 36 | public void setDialect(String dialect) { 37 | this.dialect = dialect; 38 | } 39 | 40 | public String getValue() { 41 | return value; 42 | } 43 | 44 | public void setValue(String value) { 45 | this.value = value; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/add_queue_and_assign_role_permissions_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceBrokerManagerAdminException" %> 2 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %> 3 | <%@ page import="org.wso2.carbon.andes.stub.admin.types.QueueRolePermission" %> 4 | <%@ page import="org.wso2.carbon.andes.ui.UIUtils" %> 5 | <%@ page import="java.net.URI" %> 6 | <%@ page import="java.util.ArrayList" %> 7 | <% 8 | AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request); 9 | String message = ""; 10 | 11 | String queue = request.getParameter("queue"); 12 | ArrayList queueRolePermissionArrayList = 13 | (ArrayList) session.getAttribute("queueRolePermissions"); 14 | QueueRolePermission[] queueRolePermissions = new QueueRolePermission[queueRolePermissionArrayList.size()]; 15 | queueRolePermissions = queueRolePermissionArrayList.toArray(queueRolePermissions); 16 | 17 | try { 18 | stub.addQueueAndAssignPermission(queue, queueRolePermissions); 19 | message = "Queue added successfully"; 20 | session.removeAttribute("queue"); 21 | } catch (AndesAdminServiceBrokerManagerAdminException e) { 22 | message = "Error: " + e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(); 23 | } 24 | 25 | session.removeAttribute("queueRolePermissions"); 26 | %><%=message%> 27 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/TopicManagerServiceFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core; 18 | 19 | import org.apache.axiom.om.OMElement; 20 | import org.wso2.carbon.andes.event.core.exception.EventBrokerConfigurationException; 21 | 22 | /** 23 | * Implementation of this interface used to create and get topic manager service from given configuration 24 | */ 25 | public interface TopicManagerServiceFactory { 26 | 27 | /** 28 | * Return topic manager service from given configuration 29 | * 30 | * @param config configuration object 31 | * @return topic manager service object 32 | * @throws EventBrokerConfigurationException 33 | */ 34 | public TopicManagerService getTopicManagerService(OMElement config) throws EventBrokerConfigurationException; 35 | 36 | } 37 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/subscription/SubscriptionManagerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core.subscription; 18 | 19 | import org.apache.axiom.om.OMElement; 20 | import org.wso2.carbon.andes.event.core.exception.EventBrokerConfigurationException; 21 | 22 | /** 23 | * Implementation of this interface used to create and get subscription manager object from given config 24 | */ 25 | public interface SubscriptionManagerFactory { 26 | 27 | /** 28 | * Return subscription manager object from given config 29 | * 30 | * @param config configuration object 31 | * @return subscription manager 32 | * @throws EventBrokerConfigurationException 33 | */ 34 | public SubscriptionManager getSubscriptionManager(OMElement config) throws EventBrokerConfigurationException; 35 | } 36 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/subscriptions_close_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %> 2 | <%@ page import="org.wso2.carbon.andes.ui.UIUtils" %> 3 | <%@ page import="org.wso2.carbon.ui.CarbonUIMessage" %> 4 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceBrokerManagerAdminException" %> 5 | <% 6 | AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request); 7 | 8 | boolean isDurable = Boolean.valueOf(request.getParameter("isDurable")); 9 | String subscriptionID = request.getParameter("subscriptionID"); 10 | String subscribedQueueOrTopicName = request.getParameter("subscribedQueueOrTopicName"); 11 | String protocolType = request.getParameter("protocolType"); 12 | String destinationType = request.getParameter("destinationType"); 13 | String subscriberQueueName = request.getParameter("subscriberQueueName"); 14 | String message = ""; 15 | try { 16 | stub.closeSubscription(isDurable, subscriptionID, subscribedQueueOrTopicName, protocolType, destinationType, subscriberQueueName); 17 | } catch (AndesAdminServiceBrokerManagerAdminException e) { 18 | CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(), e); 19 | session.setAttribute(CarbonUIMessage.ID, uiMsg); 20 | message = "Error: " + e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(); 21 | } 22 | %><%=message%> 23 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt/src/main/java/org/wso2/carbon/andes/cluster/mgt/ClusterMgtAdminException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | package org.wso2.carbon.andes.cluster.mgt; 19 | 20 | public class ClusterMgtAdminException extends Exception{ 21 | 22 | public String errorMessage; 23 | 24 | public ClusterMgtAdminException() { 25 | } 26 | 27 | public ClusterMgtAdminException(String message) { 28 | super(message); 29 | errorMessage = message; 30 | } 31 | 32 | public ClusterMgtAdminException(String message, Throwable cause) { 33 | super(message, cause); 34 | errorMessage = message; 35 | } 36 | 37 | public ClusterMgtAdminException(Throwable cause) { 38 | super(cause); 39 | } 40 | 41 | public String getErrorMessage() { 42 | return errorMessage; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.admin/src/main/java/org/wso2/carbon/andes/event/admin/exception/EventAdminException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2015 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.admin.exception; 18 | 19 | /** 20 | * This is custom exception class used to throw exception from AndesEventAdminService to handle by caller. 21 | */ 22 | public class EventAdminException extends Exception { 23 | 24 | public String errorMessage; 25 | 26 | public EventAdminException() { 27 | } 28 | 29 | public EventAdminException(String message) { 30 | super(message); 31 | errorMessage = message; 32 | } 33 | 34 | public EventAdminException(String message, Throwable cause) { 35 | super(message, cause); 36 | errorMessage = message; 37 | } 38 | 39 | public EventAdminException(Throwable cause) { 40 | super(cause); 41 | } 42 | 43 | public String getErrorMessage() { 44 | return errorMessage; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/styles/tree-styles.css: -------------------------------------------------------------------------------- 1 | .treeControl ul{ 2 | padding:0px; 3 | margin:0px; 4 | } 5 | 6 | .treeControl ul li{ 7 | list-style:none; 8 | padding-left:15px; 9 | padding-top:5px; 10 | white-space:nowrap; 11 | } 12 | .treeControl ul li a.plus{ 13 | background-image:url(../images/plus.gif); 14 | background-repeat:no-repeat; 15 | background-position:0px 2px; 16 | padding-left:15px; 17 | cursor:pointer; 18 | } 19 | .treeControl ul li a.minus{ 20 | background-image:url(../images/minus.gif); 21 | background-repeat:no-repeat; 22 | background-position:0px 2px; 23 | padding-left:15px; 24 | cursor:pointer; 25 | } 26 | .treeControl ul li a.nodata{ 27 | background-image:url(../images/nodata.gif); 28 | background-repeat:no-repeat; 29 | background-position:0px 2px; 30 | padding-left:15px; 31 | cursor:pointer; 32 | } 33 | .treeControl ul li a.treeNode{ 34 | cursor:pointer; 35 | color:#4c99c3; 36 | } 37 | .currentNodeDetailsDiv{ 38 | background-color:rgba(10,46,38,0.15); 39 | width:100%; 40 | height:100px; 41 | border:1px solid #000; 42 | } 43 | .nodeIDText{ 44 | font-size:30px; 45 | margin-left: 5px; 46 | margin-right: 5px; 47 | } 48 | .runningModeText{ 49 | margin-left:15px; 50 | } 51 | .green-text { 52 | color:#00921E; 53 | } 54 | 55 | .red-text { 56 | color:#E31212; 57 | } 58 | 59 | .margin-top-twenty-five { 60 | margin-top:25px; 61 | } 62 | 63 | .padding-left-ten { 64 | padding-left : 10px; 65 | } -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.core/src/main/java/org/wso2/carbon/andes/core/internal/util/SubscriptionManagementConstants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | package org.wso2.carbon.andes.core.internal.util; 19 | 20 | /*** 21 | * This class holds the MBean related constants so that they can be referred and modified from a single point within carbon-business-messaging. 22 | */ 23 | public class SubscriptionManagementConstants { 24 | 25 | public static final String SUBSCRIPTIONS_MBEAN_ATTRIBUTE = "getSubscriptions"; 26 | public static final String SUBSCRIPTION_CLOSE_MBEAN_ATTRIBUTE = "removeSubscription"; 27 | public static final String FILTERED_SUBSCRIPTIONS_MBEAN_ATTRIBUTE = "getFilteredSubscriptions"; 28 | public static final String FILTERED_SUBSCRIPTION_COUNT_MBEAN_ATTRIBUTE = "getTotalSubscriptionCountForSearchResult"; 29 | public static final String PENDING_MESSAGE_COUNT_MBEAN_ATTRIBUTE = "getPendingMessageCount"; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt/src/main/java/org/wso2/carbon/andes/cluster/mgt/internal/ClusterManagementDataHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | package org.wso2.carbon.andes.cluster.mgt.internal; 19 | 20 | import org.wso2.carbon.andes.service.QpidService; 21 | 22 | public class ClusterManagementDataHolder { 23 | 24 | 25 | private static ClusterManagementDataHolder clusterManagementDataHolder = 26 | new ClusterManagementDataHolder(); 27 | 28 | private QpidService qpidService; 29 | 30 | private ClusterManagementDataHolder() { 31 | 32 | } 33 | 34 | public static ClusterManagementDataHolder getClusterManagementDataHolder() { 35 | return clusterManagementDataHolder; 36 | } 37 | 38 | public QpidService getQpidService() { 39 | return qpidService; 40 | } 41 | 42 | public void setQpidService(QpidService qpidService) { 43 | this.qpidService = qpidService; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /components/metrics/org.wso2.carbon.messaging.metrics.ui/src/main/resources/META-INF/component.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | metrics_mb_menu 22 | metrics.mb.menu.text 23 | org.wso2.carbon.messaging.metrics.ui.i18n.Resources 24 | metrics_menu 25 | ../metrics-view/index.jsp 26 | region4 27 | 2 28 | monitor 29 | ../metrics-view/images/icon_monitor_pc.gif 30 | /permission/admin/monitor/metrics 31 | true 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.core/src/main/java/org/wso2/carbon/andes/core/types/QueueRolePermission.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.core.types; 20 | 21 | public class QueueRolePermission { 22 | 23 | private String roleName; 24 | private boolean isAllowedToConsume; 25 | private boolean isAllowedToPublish; 26 | 27 | public QueueRolePermission(){ 28 | 29 | } 30 | 31 | public QueueRolePermission(String role, boolean allowedToConsume, boolean allowedToPublish){ 32 | roleName = role; 33 | isAllowedToConsume = allowedToConsume; 34 | isAllowedToPublish = allowedToPublish; 35 | } 36 | 37 | public String getRoleName() { 38 | return roleName; 39 | } 40 | 41 | public boolean isAllowedToConsume() { 42 | return isAllowedToConsume; 43 | } 44 | 45 | public boolean isAllowedToPublish() { 46 | return isAllowedToPublish; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/java/org/wso2/carbon/andes/cluster/mgt/ui/Constants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.cluster.mgt.ui; 20 | 21 | public interface Constants { 22 | 23 | public static final String SQS_OPERATION_SEND_MESSAGE = "SendMessage"; 24 | public static final String SQS_OPERATION_RECEIVE_MESSAGE = "ReceiveMessage"; 25 | public static final String SQS_OPERATION_DELETE_MESSAGE = "DeleteMessage"; 26 | public static final String SQS_OPERATION_CHANGE_MESSAGE_VISIBILITY = "ChangeMessageVisibility"; 27 | public static final String SQS_OPERATION_GET_QUEUE_ATTRIBUTES = "GetQueueAttributes"; 28 | 29 | public static final String MB_QUEUE_CREATED_FROM_SQS_CLIENT = "sqsClient"; 30 | public static final String MB_QUEUE_CREATED_FROM_AMQP = "amqp"; 31 | 32 | public static final String SUCCESS = "success"; 33 | public static final String FAILURE = "failure"; 34 | 35 | } 36 | -------------------------------------------------------------------------------- /components/metrics/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | org.wso2.carbon.messaging 21 | business-messaging 22 | 3.3.39-SNAPSHOT 23 | ../../pom.xml 24 | 25 | 26 | 4.0.0 27 | metrics 28 | pom 29 | 3.3.39-SNAPSHOT 30 | WSO2 Carbon - Component - Metrics - Aggregator Module 31 | Messaging Metrics related components 32 | http://wso2.org 33 | 34 | 35 | org.wso2.carbon.messaging.metrics.ui 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /features/metrics/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | org.wso2.carbon.messaging 21 | business-messaging 22 | 3.3.39-SNAPSHOT 23 | ../../pom.xml 24 | 25 | 26 | 4.0.0 27 | metrics-feature 28 | 3.3.39-SNAPSHOT 29 | pom 30 | WSO2 Carbon - Feature - Messaging Metrics Aggregator Module 31 | http://wso2.org 32 | 33 | 34 | org.wso2.carbon.messaging.metrics.ui.feature 35 | org.wso2.carbon.messaging.metrics.feature 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/TopicRolePermission.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core; 18 | 19 | /** 20 | * Keep topic role permission data 21 | */ 22 | public class TopicRolePermission { 23 | 24 | private String roleName; 25 | private boolean isAllowedToSubscribe; 26 | private boolean isAllowedToPublish; 27 | 28 | public String getRoleName() { 29 | return roleName; 30 | } 31 | 32 | public void setRoleName(String roleName) { 33 | this.roleName = roleName; 34 | } 35 | 36 | public boolean isAllowedToSubscribe() { 37 | return isAllowedToSubscribe; 38 | } 39 | 40 | public void setAllowedToSubscribe(boolean allowedToSubscribe) { 41 | isAllowedToSubscribe = allowedToSubscribe; 42 | } 43 | 44 | public boolean isAllowedToPublish() { 45 | return isAllowedToPublish; 46 | } 47 | 48 | public void setAllowedToPublish(boolean allowedToPublish) { 49 | isAllowedToPublish = allowedToPublish; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/java/org/wso2/carbon/andes/ui/Constants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.ui; 20 | 21 | public interface Constants { 22 | 23 | public static final String SQS_OPERATION_SEND_MESSAGE = "SendMessage"; 24 | public static final String SQS_OPERATION_RECEIVE_MESSAGE = "ReceiveMessage"; 25 | public static final String SQS_OPERATION_DELETE_MESSAGE = "DeleteMessage"; 26 | public static final String SQS_OPERATION_CHANGE_MESSAGE_VISIBILITY = "ChangeMessageVisibility"; 27 | public static final String SQS_OPERATION_GET_QUEUE_ATTRIBUTES = "GetQueueAttributes"; 28 | 29 | public static final String MB_QUEUE_CREATED_FROM_SQS_CLIENT = "sqsClient"; 30 | public static final String MB_QUEUE_CREATED_FROM_AMQP = "amqp"; 31 | 32 | public static final String SUCCESS = "success"; 33 | public static final String FAILURE = "failure"; 34 | 35 | public static final String DEAD_LETTER_QUEUE_NAME = "DeadLetterChannel"; 36 | 37 | } 38 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.authorization/src/main/java/org/wso2/carbon/andes/authorization/andes/AndesAuthorizationHandlerException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.authorization.andes; 20 | 21 | /** 22 | * Exception class for user authorization 23 | */ 24 | public class AndesAuthorizationHandlerException extends Exception { 25 | 26 | /** 27 | * {@inheritDoc} 28 | */ 29 | public AndesAuthorizationHandlerException() { 30 | super(); 31 | } 32 | 33 | /** 34 | * {@inheritDoc} 35 | */ 36 | public AndesAuthorizationHandlerException(Throwable cause) { 37 | super(cause); 38 | } 39 | 40 | /** 41 | * {@inheritDoc} 42 | */ 43 | public AndesAuthorizationHandlerException(String message) { 44 | super(message); 45 | } 46 | 47 | /** 48 | * {@inheritDoc} 49 | */ 50 | public AndesAuthorizationHandlerException(String message, Throwable cause) { 51 | super(message, cause); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/org/wso2/carbon/andes/cluster/mgt/ui/i18n/Resources.properties: -------------------------------------------------------------------------------- 1 | no.nodes.available = No nodes are available 2 | no.topics.created = No topics are created 3 | no.queues.created = No queues are created 4 | next=Next 5 | prev=prev 6 | node.host = Host Name 7 | node.id = Node Id 8 | node.queue.workers = Number of Queue workers 9 | node.ip = IP Address of Node 10 | node.port = Port of Node 11 | node.isCoordinator = Coordinator Node 12 | node.total.subscribers=Total Node Subscriptions 13 | node.topics = Number of Topics 14 | node.queues = Number of Queues 15 | node.messaging = Message Holders 16 | node.throughput= Throughput 17 | node.memoryUsage = Amount of Memory Used 18 | node.NumOfMessagesReceivedForLastHalfMin = For Last 30 sec 19 | node.NumOfMessagesReceivedForLastFiveMnt = For Last 5 mnt 20 | node.NumOfMessagesReceivedForLastHour = For Last Hour 21 | node.zookeeperID = Zookeeper ID 22 | operations=Operations 23 | andes-cluster-mgt.menu = Cluster Information 24 | nodes.list = Node List 25 | topics.list =Topic List 26 | queues.list = Queue Worker List 27 | queue.Details= Queue Details 28 | global.queue.name=Global Queue Name 29 | destination.queue.name = User Queue Name 30 | queue.depth=Size 31 | global.queue.messageCount= Global Queue Message Count 32 | node.queue.messageCount=Node Queue Message Count 33 | node.queue.subscriber.count= Number of Subscriptions 34 | queue.created= Created Time 35 | queue.updated= Updated Time 36 | queue.type= Type 37 | queue.worker.Location = Queue Worker Location 38 | topic.name = Name 39 | topic.subscribers = Number of Subscribers 40 | test = Test 41 | cassandra.connection = Cassandra Connection Details 42 | zookeeper.connection = Zookeeper Connection Details 43 | add.queue= Add Queue 44 | queue= Queue Name: -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt/src/main/java/org/wso2/carbon/andes/cluster/mgt/internal/QueueException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | package org.wso2.carbon.andes.cluster.mgt.internal; 19 | 20 | public class QueueException extends Exception { 21 | 22 | private String faultCode; 23 | private String faultString; 24 | 25 | public QueueException() { 26 | super(); 27 | } 28 | 29 | public QueueException(String message, Throwable cause) { 30 | super(message, cause); 31 | } 32 | 33 | public String getFaultCode() { 34 | return faultCode; 35 | } 36 | 37 | public String getFaultString() { 38 | return faultString; 39 | } 40 | 41 | public QueueException(String message) { 42 | super(message); 43 | } 44 | 45 | public QueueException(String faultString, String faultCode) { 46 | this.faultCode = faultCode; 47 | this.faultString = faultString; 48 | } 49 | 50 | public QueueException(Throwable cause) { 51 | super(cause); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/access_topic_roles_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="org.apache.axis2.client.Options" %> 2 | <%@ page import="org.apache.axis2.client.ServiceClient" %> 3 | <%@ page import="org.apache.axis2.context.ConfigurationContext" %> 4 | <%@ page import="org.wso2.carbon.CarbonConstants" %> 5 | <%@ page import="org.wso2.carbon.andes.event.stub.service.AndesEventAdminServiceStub" %> 6 | <%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %> 7 | <%@ page import="org.wso2.carbon.andes.event.stub.service.AndesEventAdminServiceEventAdminException" %> 8 | <% 9 | ConfigurationContext configContext = (ConfigurationContext) config.getServletContext() 10 | .getAttribute(CarbonConstants.CONFIGURATION_CONTEXT); 11 | //Server URL which is defined in the server.xml 12 | String serverURL = CarbonUIUtil.getServerURL(config.getServletContext(), 13 | session) + "AndesEventAdminService.AndesEventAdminServiceHttpsSoap12Endpoint"; 14 | AndesEventAdminServiceStub stub = new AndesEventAdminServiceStub(configContext, serverURL); 15 | 16 | String cookie = (String) session.getAttribute(org.wso2.carbon.utils.ServerConstants.ADMIN_SERVICE_COOKIE); 17 | 18 | ServiceClient client = stub._getServiceClient(); 19 | Options option = client.getOptions(); 20 | option.setManageSession(true); 21 | option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); 22 | 23 | session.removeAttribute("userRoles"); 24 | 25 | try { 26 | session.setAttribute("userRoles", stub.getUserRoles()); 27 | } catch (AndesEventAdminServiceEventAdminException e) { 28 | String message = "Error: " + e.getFaultMessage().getEventAdminException().getErrorMessage(); 29 | %><%=message%><% 30 | } 31 | %> -------------------------------------------------------------------------------- /features/andes/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | org.wso2.carbon.messaging 24 | business-messaging 25 | 3.3.39-SNAPSHOT 26 | ../../pom.xml 27 | 28 | 29 | 4.0.0 30 | andes-feature 31 | 3.3.39-SNAPSHOT 32 | pom 33 | WSO2 Carbon - Feature - Andes Aggregator Module 34 | http://wso2.org 35 | 36 | 37 | org.wso2.carbon.andes.server.feature 38 | org.wso2.carbon.andes.ui.feature 39 | org.wso2.carbon.andes.feature 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.commons/src/main/java/org/wso2/carbon/andes/commons/QueueDetails.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.commons; 20 | 21 | public class QueueDetails { 22 | 23 | private String name; 24 | private boolean isDurable; 25 | private String owner; 26 | private String createdTime; 27 | 28 | public String getName() { 29 | return name; 30 | } 31 | 32 | public void setName(String name) { 33 | this.name = name; 34 | } 35 | 36 | public boolean isDurable() { 37 | return isDurable; 38 | } 39 | 40 | public void setDurable(boolean durable) { 41 | isDurable = durable; 42 | } 43 | 44 | public String getOwner() { 45 | return owner; 46 | } 47 | 48 | public void setOwner(String owner) { 49 | this.owner = owner; 50 | } 51 | 52 | public String getCreatedTime() { 53 | return createdTime; 54 | } 55 | 56 | public void setCreatedTime(String createdTime) { 57 | this.createdTime = createdTime; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /components/metrics/org.wso2.carbon.messaging.metrics.ui/src/main/resources/web/metrics-view/metrics_mb_menu_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | 2 | <% 3 | /* 4 | * Copyright 2015 WSO2 Inc. (http://wso2.org) 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | %> 19 | <%@page import="java.io.OutputStreamWriter"%> 20 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 21 | <%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon"%> 22 | <%@ page import="java.util.Map"%> 23 | <%@ page import="org.wso2.carbon.metrics.view.ui.ChartView"%> 24 | 25 | <% 26 | request.setAttribute("chartBundle", "org.wso2.carbon.messaging.metrics.ui.i18n.Resources"); 27 | Map viewMap = (Map) request.getAttribute("viewMap"); 28 | viewMap.put("DisruptorView", new ChartView(true, new String[] { "Disruptor" })); 29 | viewMap.put("PubSubView", new ChartView(true, new String[] { "PubSub" })); 30 | viewMap.put("MsgAckView", new ChartView(true, new String[] { "MsgAckRecv", "MsgAckSent" })); 31 | viewMap.put("DatabaseView", new ChartView(true, new String[] { "DatabaseReadTime", "DatabaseReadRate", "DatabaseWriteTime", "DatabaseWriteRate" })); 32 | %> 33 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt/src/main/java/org/wso2/carbon/andes/cluster/mgt/internal/ClusterMgtException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | package org.wso2.carbon.andes.cluster.mgt.internal; 19 | 20 | public class ClusterMgtException extends Exception{ 21 | 22 | private String faultCode; 23 | private String faultString; 24 | 25 | public ClusterMgtException() { 26 | super(); 27 | } 28 | 29 | public ClusterMgtException(String message, Throwable cause) { 30 | super(message, cause); 31 | } 32 | 33 | public String getFaultCode() { 34 | return faultCode; 35 | } 36 | 37 | public String getFaultString() { 38 | return faultString; 39 | } 40 | 41 | public ClusterMgtException(String message) { 42 | super(message); 43 | } 44 | 45 | public ClusterMgtException(String faultString, String faultCode) { 46 | this.faultCode = faultCode; 47 | this.faultString = faultString; 48 | } 49 | 50 | public ClusterMgtException(Throwable cause) { 51 | super(cause); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.core/src/main/java/org/wso2/carbon/andes/core/QueueManagerException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | package org.wso2.carbon.andes.core; 19 | 20 | 21 | public class QueueManagerException extends org.wso2.andes.kernel.AndesException{ 22 | private String faultCode; 23 | private String faultString; 24 | 25 | public QueueManagerException() { 26 | super(); 27 | } 28 | 29 | public QueueManagerException(String message, Throwable cause) { 30 | super(message, cause); 31 | } 32 | 33 | public String getFaultCode() { 34 | return faultCode; 35 | } 36 | 37 | public String getFaultString() { 38 | return faultString; 39 | } 40 | 41 | public QueueManagerException(String message) { 42 | super(message); 43 | } 44 | 45 | public QueueManagerException(String faultString, String faultCode) { 46 | this.faultCode = faultCode; 47 | this.faultString = faultString; 48 | } 49 | 50 | public QueueManagerException(Throwable cause) { 51 | super(cause); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/internal/subscription/registry/RegistryTopicManagerServiceFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core.internal.subscription.registry; 18 | 19 | import org.apache.axiom.om.OMElement; 20 | import org.wso2.carbon.andes.event.core.TopicManagerService; 21 | import org.wso2.carbon.andes.event.core.TopicManagerServiceFactory; 22 | import org.wso2.carbon.andes.event.core.exception.EventBrokerConfigurationException; 23 | import org.wso2.carbon.andes.event.core.internal.util.JavaUtil; 24 | 25 | /** 26 | * This class used to create registry based topic manager 27 | */ 28 | public class RegistryTopicManagerServiceFactory implements TopicManagerServiceFactory { 29 | 30 | public static final String EB_ELE_TOPIC_STORAGE_PATH = "topicStoragePath"; 31 | 32 | /** 33 | * {@inheritDoc} 34 | */ 35 | public TopicManagerService getTopicManagerService(OMElement config) throws EventBrokerConfigurationException { 36 | String topicStoragePath = JavaUtil.getValue(config, EB_ELE_TOPIC_STORAGE_PATH); 37 | return new TopicManagerServiceImpl(topicStoragePath); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/docs/userguide.html: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | Message Broker Subscription Information- User Guide 23 | 25 | 29 | 30 | 31 | 32 | 33 | If you are not redirected automatically, follow the link to document 34 | 35 | 36 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt/src/main/java/org/wso2/carbon/andes/cluster/mgt/internal/ClusterMgtConstants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | package org.wso2.carbon.andes.cluster.mgt.internal; 19 | 20 | /** 21 | * Stores cluster management constants which are used to contact through MBeans. 22 | */ 23 | public class ClusterMgtConstants { 24 | 25 | /** 26 | * Attribute name for 'ClusteringEnabled' 27 | */ 28 | public static final String IS_CLUSTERING_ENABLED = "ClusteringEnabled"; 29 | 30 | /** 31 | * Attribute name for 'MyNodeID' 32 | */ 33 | public static final String MY_NODE_ID = "MyNodeID"; 34 | 35 | /** 36 | * Attribute name for 'AllClusterNodeAddresses' 37 | */ 38 | public static final String ALL_CLUSTER_NODE_ADDRESSES = "AllClusterNodeAddresses"; 39 | 40 | /** 41 | * Attribute name for 'CoordinatorNodeAddress' 42 | */ 43 | public static final String COORDINATOR_NODE_ADDRESS = "CoordinatorNodeAddress"; 44 | 45 | /** 46 | * Attribute name for 'StoreHealth' 47 | */ 48 | public static final String STORE_HEALTH = "StoreHealth"; 49 | } 50 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.core/src/main/java/org/wso2/carbon/andes/core/SubscriptionManagerException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.core; 20 | 21 | public class SubscriptionManagerException extends org.wso2.andes.kernel.AndesException { 22 | private String faultCode; 23 | private String faultString; 24 | 25 | public SubscriptionManagerException() { 26 | super(); 27 | } 28 | 29 | public SubscriptionManagerException(String message, Throwable cause) { 30 | super(message, cause); 31 | } 32 | 33 | public String getFaultCode() { 34 | return faultCode; 35 | } 36 | 37 | public String getFaultString() { 38 | return faultString; 39 | } 40 | 41 | public SubscriptionManagerException(String message) { 42 | super(message); 43 | } 44 | 45 | public SubscriptionManagerException(String faultString, String faultCode) { 46 | this.faultCode = faultCode; 47 | this.faultString = faultString; 48 | } 49 | 50 | public SubscriptionManagerException(Throwable cause) { 51 | super(cause); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/Message.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core; 18 | 19 | import org.apache.axiom.om.OMElement; 20 | 21 | import java.util.HashMap; 22 | import java.util.Map; 23 | 24 | /** 25 | * This class is used to keep the OMMessage and 26 | */ 27 | public class Message { 28 | 29 | private Map properties; 30 | 31 | private String message; 32 | 33 | public Message() { 34 | this.properties = new HashMap(); 35 | } 36 | 37 | public void addProperty(String key, String value){ 38 | this.properties.put(key, value); 39 | } 40 | 41 | public Map getProperties() { 42 | return properties; 43 | } 44 | 45 | public void setProperties(Map properties) { 46 | this.properties = properties; 47 | } 48 | 49 | public String getMessage() { 50 | return message; 51 | } 52 | 53 | public void setMessage(String message) { 54 | this.message = message; 55 | } 56 | 57 | public String getProperty(String propertyName){ 58 | return this.properties.get(propertyName); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.commons/src/main/java/org/wso2/carbon/andes/commons/SubscriptionDetails.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.commons; 20 | 21 | /** 22 | * Holds details about JMS subscriptions 23 | */ 24 | public class SubscriptionDetails { 25 | 26 | private String name; 27 | private boolean isDurable; 28 | private String owner; 29 | private String createdTime; 30 | 31 | public String getName() { 32 | return name; 33 | } 34 | 35 | public void setName(String name) { 36 | this.name = name; 37 | } 38 | 39 | public boolean isDurable() { 40 | return isDurable; 41 | } 42 | 43 | public void setDurable(boolean durable) { 44 | isDurable = durable; 45 | } 46 | 47 | public String getOwner() { 48 | return owner; 49 | } 50 | 51 | public void setOwner(String owner) { 52 | this.owner = owner; 53 | } 54 | 55 | public String getCreatedTime() { 56 | return createdTime; 57 | } 58 | 59 | public void setCreatedTime(String createdTime) { 60 | this.createdTime = createdTime; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/dlc_message_destinations_list_retrieve_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %> 2 | <%@ page import="java.util.Set" %> 3 | <%@ page import="java.util.HashSet" %> 4 | <%@ page import="org.wso2.carbon.ui.CarbonUIMessage"%> 5 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %> 6 | <%@ page import="org.wso2.carbon.andes.ui.UIUtils" %> 7 | <%@ page import="org.wso2.carbon.andes.stub.admin.types.Message" %> 8 | <%@ page import="org.wso2.andes.server.queue.DLCQueueUtils" %> 9 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceBrokerManagerAdminException" %> 10 | 11 | <% 12 | AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request); 13 | String destinationList = ""; 14 | try { 15 | String dlcQueueName = request.getParameter("nameOfQueue"); 16 | String[] durableQueues = stub.getNamesOfAllDurableQueues(); 17 | // Creating a string with all destinations with delimiter as # 18 | for (String queueName : durableQueues) { 19 | if (!DLCQueueUtils.isDeadLetterQueue(queueName)) { 20 | destinationList += queueName + "#"; 21 | } 22 | } 23 | // We can remove the # tag only if the destinationList is not empty 24 | if (destinationList.length() > 0) { 25 | //remove the last # 26 | destinationList = destinationList.substring(0, destinationList.length() - 1); 27 | } 28 | } catch (AndesAdminServiceBrokerManagerAdminException e) { 29 | CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(), e); 30 | session.setAttribute(CarbonUIMessage.ID, uiMsg); 31 | } 32 | %> 33 | <%= destinationList %> 34 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/dlc_message_reroute_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %> 2 | <%@page import="org.wso2.carbon.ui.CarbonUIMessage"%> 3 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %> 4 | <%@ page import="org.wso2.carbon.andes.ui.UIUtils" %> 5 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceBrokerManagerAdminException" %> 6 | 7 | <% 8 | AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request); 9 | String idList = request.getParameter("msgList"); 10 | String newQueueName = request.getParameter("newQueueName"); 11 | String nameOfQueue = request.getParameter("nameOfQueue"); 12 | 13 | long unavailableMessageCount = 0; 14 | 15 | String[] idArray = idList.split(","); 16 | if(!idList.isEmpty()) { 17 | long[] andesMessageIDs = new long[idArray.length]; 18 | for (int i = 0; i < idArray.length; i++) { 19 | andesMessageIDs[i] = Long.parseLong(idArray[i]); 20 | } 21 | 22 | try { 23 | unavailableMessageCount = stub.rerouteSelectedMessagesFromDeadLetterChannel(andesMessageIDs, 24 | newQueueName, nameOfQueue); 25 | 26 | } catch (AndesAdminServiceBrokerManagerAdminException e) { 27 | CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, e.getFaultMessage(). 28 | getBrokerManagerAdminException().getErrorMessage(), e); 29 | session.setAttribute(CarbonUIMessage.ID, uiMsg); 30 | } 31 | } else { 32 | CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, "There is no message in DLC belonging to " 33 | + nameOfQueue); 34 | session.setAttribute(CarbonUIMessage.ID, uiMsg); 35 | } 36 | %> 37 | <%=unavailableMessageCount%> -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.admin/src/main/resources/META-INF/component.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | Manage 23 | /permission/admin/manage 24 | 25 | 26 | Topic 27 | /permission/admin/manage/topic 28 | 29 | 30 | Add 31 | /permission/admin/manage/topic/add 32 | 33 | 34 | Details 35 | /permission/admin/manage/topic/details 36 | 37 | 38 | Delete 39 | /permission/admin/manage/topic/delete 40 | 41 | 42 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.admin/src/main/java/org/wso2/carbon/andes/admin/internal/Exception/BrokerManagerAdminException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | package org.wso2.carbon.andes.admin.internal.Exception; 19 | 20 | public class BrokerManagerAdminException extends Exception{ 21 | 22 | private String errorMessage; 23 | 24 | public BrokerManagerAdminException(String message, Exception e) { 25 | super(message, e); 26 | setErrorMessage(message); 27 | } 28 | 29 | public BrokerManagerAdminException(String message, Throwable cause) { 30 | super(message, cause); 31 | setErrorMessage(message); 32 | } 33 | 34 | public BrokerManagerAdminException(String message) { 35 | super(message); 36 | setErrorMessage(message); 37 | } 38 | 39 | public BrokerManagerAdminException(Throwable cause) { 40 | super(cause); 41 | } 42 | 43 | public BrokerManagerAdminException() { 44 | super(); 45 | } 46 | 47 | public String getErrorMessage() { 48 | return errorMessage; 49 | } 50 | 51 | public void setErrorMessage(String errorMessage) { 52 | this.errorMessage = errorMessage; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.authentication/src/main/java/org/wso2/carbon/andes/authentication/andes/oauth/exception/OAuthTokenValidationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | package org.wso2.carbon.andes.authentication.andes.oauth.exception; 19 | 20 | /** 21 | * This Exception will be thrown, when there any interference with token validation flow. 22 | */ 23 | public class OAuthTokenValidationException extends Exception { 24 | private String errMessage; 25 | 26 | public OAuthTokenValidationException(String msg, Exception nestedEx) { 27 | super(msg, nestedEx); 28 | setErrorMessage(msg); 29 | } 30 | 31 | public OAuthTokenValidationException(String message, Throwable cause) { 32 | super(message, cause); 33 | setErrorMessage(message); 34 | } 35 | 36 | public OAuthTokenValidationException(String msg) { 37 | super(msg); 38 | setErrorMessage(msg); 39 | } 40 | 41 | public OAuthTokenValidationException() { 42 | super(); 43 | } 44 | 45 | public OAuthTokenValidationException(Throwable cause) { 46 | super(cause); 47 | } 48 | 49 | public String getErrorMessage() { 50 | return errMessage; 51 | } 52 | 53 | public void setErrorMessage(String errMessage) { 54 | this.errMessage = errMessage; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.admin.mqtt/src/main/java/org/wso2/carbon/andes/admin/mqtt/BrokerManagerAdminException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.admin.mqtt; 20 | 21 | /** 22 | * Error handling class for the BrokerManagerAdminService 23 | */ 24 | public class BrokerManagerAdminException extends Exception{ 25 | 26 | private String errorMessage; 27 | 28 | public BrokerManagerAdminException(String message, Exception e) { 29 | super(message, e); 30 | setErrorMessage(message); 31 | } 32 | 33 | public BrokerManagerAdminException(String message, Throwable cause) { 34 | super(message, cause); 35 | setErrorMessage(message); 36 | } 37 | 38 | public BrokerManagerAdminException(String message) { 39 | super(message); 40 | setErrorMessage(message); 41 | } 42 | 43 | public BrokerManagerAdminException(Throwable cause) { 44 | super(cause); 45 | } 46 | 47 | public BrokerManagerAdminException() { 48 | super(); 49 | } 50 | 51 | public String getErrorMessage() { 52 | return errorMessage; 53 | } 54 | 55 | public void setErrorMessage(String errorMessage) { 56 | this.errorMessage = errorMessage; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/queue_messages_ids_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %> 2 | <%@ page import="org.wso2.carbon.ui.CarbonUIMessage"%> 3 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %> 4 | <%@ page import="org.wso2.carbon.andes.ui.UIUtils" %> 5 | <%@ page import="org.wso2.carbon.andes.stub.admin.types.Message" %> 6 | <%@ page import="org.wso2.andes.server.queue.DLCQueueUtils" %> 7 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceBrokerManagerAdminException" %> 8 | 9 | <% 10 | AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request); 11 | String queueName = request.getParameter("nameOfQueue"); 12 | String messageIDList = ""; 13 | try { 14 | // Getting the number of messages for a destination in DLC 15 | int numberOfMessagesInDLCForQueue = (int) stub.getNumberOfMessagesInDLCForQueue(queueName); 16 | 17 | // Getting the message IDs into a string with delimiter "," 18 | Message[] messagesInDLCForQueue = stub.getMessagesInDLCForQueue(queueName, 0, numberOfMessagesInDLCForQueue); 19 | for (int i = 0; i < numberOfMessagesInDLCForQueue; i++) { 20 | messageIDList += messagesInDLCForQueue[i].getAndesMsgMetadataId() + ","; 21 | } 22 | 23 | // We can remove the "," tag only if the messageIDList is not empty 24 | if (messageIDList.length() > 0) { 25 | //remove the last "," 26 | messageIDList = messageIDList.substring(0, messageIDList.length() - 1); 27 | } 28 | 29 | } catch (AndesAdminServiceBrokerManagerAdminException e) { 30 | CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(), e); 31 | session.setAttribute(CarbonUIMessage.ID, uiMsg); 32 | } 33 | %> 34 | <%= messageIDList %> 35 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/js/treecontrol.js: -------------------------------------------------------------------------------- 1 | function treeColapse(icon) { 2 | var parentNode = icon.parentNode; 3 | var allChildren = parentNode.childNodes; 4 | var todoOther = ""; 5 | var attributes = ""; 6 | //Do minimizing for the rest of the nodes 7 | for (var i = 0; i < allChildren.length; i++) { 8 | if (allChildren[i].nodeName == "UL") { 9 | 10 | if (allChildren[i].style.display == "none") { 11 | attributes = { 12 | opacity: { to: 1 } 13 | }; 14 | var anim = new YAHOO.util.Anim(allChildren[i], attributes); 15 | anim.animate(); 16 | allChildren[i].style.display = ""; 17 | if (YAHOO.util.Dom.hasClass(icon, "plus") || YAHOO.util.Dom.hasClass(icon, "minus")) { 18 | YAHOO.util.Dom.removeClass(icon, "plus"); 19 | YAHOO.util.Dom.addClass(icon, "minus"); 20 | } 21 | todoOther = "show"; 22 | parentNode.style.height = "auto"; 23 | } 24 | else { 25 | attributes = { 26 | opacity: { to: 0 } 27 | }; 28 | anim = new YAHOO.util.Anim(allChildren[i], attributes); 29 | anim.duration = 0.3; 30 | anim.onComplete.subscribe(hideTreeItem, allChildren[i]); 31 | 32 | anim.animate(); 33 | if (YAHOO.util.Dom.hasClass(icon, "plus") || YAHOO.util.Dom.hasClass(icon, "minus")) { 34 | YAHOO.util.Dom.removeClass(icon, "minus"); 35 | YAHOO.util.Dom.addClass(icon, "plus"); 36 | } 37 | todoOther = "hide"; 38 | //parentNode.style.height = "50px"; 39 | } 40 | } 41 | } 42 | } 43 | function hideTreeItem(state,opts,item){ 44 | item.style.display = "none"; 45 | } -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/TopicNode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2005 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.wso2.carbon.andes.event.core; 18 | 19 | /** 20 | * Keep topic node data 21 | */ 22 | public class TopicNode { 23 | 24 | private String nodeName; 25 | private String topicName; 26 | private TopicNode[] children; 27 | private boolean isLeafNode; 28 | 29 | public TopicNode(String nodeName, String topicName) { 30 | this.nodeName = nodeName; 31 | this.topicName = topicName; 32 | isLeafNode = true; 33 | } 34 | 35 | public String getNodeName() { 36 | return nodeName; 37 | } 38 | 39 | public void setNodeName(String nodeName) { 40 | this.nodeName = nodeName; 41 | } 42 | 43 | public String getTopicName() { 44 | return topicName; 45 | } 46 | 47 | public void setTopicName(String topicName) { 48 | this.topicName = topicName; 49 | } 50 | 51 | public TopicNode[] getChildren() { 52 | return children; 53 | } 54 | 55 | public void setChildren(TopicNode[] children) { 56 | this.children = children; 57 | } 58 | 59 | public boolean getLeafNode() { 60 | return isLeafNode; 61 | } 62 | 63 | public void setLeafNode(boolean isLeafNode) { 64 | this.isLeafNode = isLeafNode; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/css/dsxmleditor.css: -------------------------------------------------------------------------------- 1 | .treeControl div.title{ 2 | font-size:14px; 3 | font-weight:bold; 4 | color:#788cb3; 5 | } 6 | .topicData{ 7 | border:solid 1px #ccc; 8 | padding:5px; 9 | } 10 | td.tree-top{ 11 | background-image:url(../images/treetop.jpg); 12 | background-repeat:repeat-x; 13 | height:21px; 14 | } 15 | td.tree-top h3{ 16 | padding-left:10px !important; 17 | padding-right:0px !important; 18 | padding-top:3px !important; 19 | padding-bottom:0px !important; 20 | margin:0px !important; 21 | font-size:12px !important; 22 | font-weight:bold !important; 23 | color:#414141; 24 | 25 | } 26 | .leftBox{ 27 | border:solid 1px #ccc; 28 | padding:5px; 29 | } 30 | .treeControl{ 31 | margin-bottom:10px; 32 | } 33 | .selected{ 34 | background-color:#a0afcd; 35 | color:#fff !important; 36 | padding:3px; 37 | } 38 | .secure{ 39 | color: #009966 !important; 40 | text-decoration:underline; 41 | background-image:url(../images/secure.gif); 42 | background-repeat:no-repeat; 43 | background-position:right center; 44 | padding-right:15px; 45 | } 46 | div#eprInput { 47 | margin: 0px 0px 0px 0px; 48 | display: block; 49 | } 50 | 51 | div#scriptInput { 52 | margin: 0px 20px 0px 20px; 53 | display: none; 54 | } 55 | 56 | .initE { 57 | border: solid 1px #e8e7e7; 58 | text-align: left; 59 | font-style: italic; 60 | color: #adadad; 61 | } 62 | 63 | .normalE { 64 | border: solid 1px #bfbebe; 65 | text-align: left; 66 | } 67 | .importantArea { 68 | background-color:#DDDDDD; 69 | border:1px solid #949494; 70 | padding:5px; 71 | } 72 | #permissionsDiv h4 { 73 | color:#999999; 74 | font-size:12px !important; 75 | font-weight:bold !important; 76 | } 77 | .perRow td { 78 | background-color:#C6C7C8; 79 | border-right:1px solid #DFDFDF !important; 80 | font-weight:bold; 81 | text-align:center; 82 | } -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/web/andes-cluster-mgt/styles/dsxmleditor.css: -------------------------------------------------------------------------------- 1 | .treeControl div.title{ 2 | font-size:14px; 3 | font-weight:bold; 4 | color:#788cb3; 5 | } 6 | .topicData{ 7 | border:solid 1px #ccc; 8 | padding:5px; 9 | } 10 | td.tree-top{ 11 | background-image:url(../images/treetop.jpg); 12 | background-repeat:repeat-x; 13 | height:21px; 14 | } 15 | td.tree-top h3{ 16 | padding-left:10px !important; 17 | padding-right:0px !important; 18 | padding-top:3px !important; 19 | padding-bottom:0px !important; 20 | margin:0px !important; 21 | font-size:12px !important; 22 | font-weight:bold !important; 23 | color:#414141; 24 | 25 | } 26 | .leftBox{ 27 | border:solid 1px #ccc; 28 | padding:5px; 29 | } 30 | .treeControl{ 31 | margin-bottom:10px; 32 | } 33 | .selected{ 34 | background-color:#a0afcd; 35 | color:#fff !important; 36 | padding:3px; 37 | } 38 | .secure{ 39 | color: #009966 !important; 40 | text-decoration:underline; 41 | background-image:url(../images/secure.gif); 42 | background-repeat:no-repeat; 43 | background-position:right center; 44 | padding-right:15px; 45 | } 46 | div#eprInput { 47 | margin: 0px 0px 0px 0px; 48 | display: block; 49 | } 50 | 51 | div#scriptInput { 52 | margin: 0px 20px 0px 20px; 53 | display: none; 54 | } 55 | 56 | .initE { 57 | border: solid 1px #e8e7e7; 58 | text-align: left; 59 | font-style: italic; 60 | color: #adadad; 61 | } 62 | 63 | .normalE { 64 | border: solid 1px #bfbebe; 65 | text-align: left; 66 | } 67 | .importantArea { 68 | background-color:#DDDDDD; 69 | border:1px solid #949494; 70 | padding:5px; 71 | } 72 | #permissionsDiv h4 { 73 | color:#999999; 74 | font-size:12px !important; 75 | font-weight:bold !important; 76 | } 77 | .perRow td { 78 | background-color:#C6C7C8; 79 | border-right:1px solid #DFDFDF !important; 80 | font-weight:bold; 81 | text-align:center; 82 | } -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.commons/src/main/java/org/wso2/carbon/andes/commons/internal/CommonsDataHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | 19 | package org.wso2.carbon.andes.commons.internal; 20 | 21 | import org.wso2.carbon.registry.core.service.RegistryService; 22 | import org.wso2.carbon.user.core.service.RealmService; 23 | 24 | /** 25 | * This singleton class holds common properties used inside the commons bundle 26 | */ 27 | public class CommonsDataHolder { 28 | 29 | private static CommonsDataHolder instance = new CommonsDataHolder(); 30 | 31 | private RegistryService registryService = null; 32 | private RealmService realmService = null; 33 | 34 | private CommonsDataHolder() { 35 | } 36 | 37 | public static CommonsDataHolder getInstance() { 38 | return instance; 39 | } 40 | 41 | public void setRegistryService(RegistryService registryService) { 42 | this.registryService = registryService; 43 | } 44 | 45 | public RegistryService getRegistryService() { 46 | return this.registryService; 47 | } 48 | 49 | public RealmService getRealmService() { 50 | return realmService; 51 | } 52 | 53 | public void setRealmService(RealmService realmService) { 54 | this.realmService = realmService; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.core/src/main/java/org/wso2/carbon/andes/event/core/internal/builder/EventAxis2ConfigurationContextObserver.java: -------------------------------------------------------------------------------- 1 | package org.wso2.carbon.andes.event.core.internal.builder; 2 | 3 | import org.apache.commons.logging.Log; 4 | import org.apache.commons.logging.LogFactory; 5 | import org.wso2.carbon.andes.event.core.EventBroker; 6 | import org.wso2.carbon.context.PrivilegedCarbonContext; 7 | import org.wso2.carbon.utils.AbstractAxis2ConfigurationContextObserver; 8 | 9 | import java.util.HashSet; 10 | import java.util.Set; 11 | 12 | /** 13 | * Axis2 configuration context for eventing 14 | */ 15 | public class EventAxis2ConfigurationContextObserver extends AbstractAxis2ConfigurationContextObserver { 16 | 17 | private static Log log = LogFactory.getLog(EventAxis2ConfigurationContextObserver.class); 18 | private EventBroker eventBroker; 19 | private Set loadedTenants; 20 | 21 | public EventAxis2ConfigurationContextObserver() { 22 | this.loadedTenants = new HashSet<>(); 23 | } 24 | 25 | /** 26 | * Initialize configuration context 27 | * 28 | * @param tenantId tenant to init config 29 | */ 30 | @Override 31 | public void creatingConfigurationContext(int tenantId) { 32 | try { 33 | PrivilegedCarbonContext.startTenantFlow(); 34 | PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantId(tenantId, true); 35 | if (!this.loadedTenants.contains(tenantId)) { 36 | this.eventBroker.initializeTenant(); 37 | this.loadedTenants.add(tenantId); 38 | } 39 | } catch (Exception e) { 40 | log.error("Error in setting tenant information", e); 41 | } finally { 42 | PrivilegedCarbonContext.endTenantFlow(); 43 | } 44 | } 45 | 46 | /** 47 | * Event broker setter method 48 | * 49 | * @param eventBroker event broker object 50 | */ 51 | public void setEventBroker(EventBroker eventBroker) { 52 | this.eventBroker = eventBroker; 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt.ui/src/main/resources/META-INF/component.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | cluster_mgt_menu 22 | andes-cluster-mgt.menu 23 | org.wso2.carbon.andes.cluster.mgt.ui.i18n.Resources 24 | manage_menu 25 | # 26 | region1 27 | 32 28 | home 29 | ../andes-cluster-mgt/images/cluster_info.png 30 | 31 | 32 | node_list 33 | nodes.list 34 | org.wso2.carbon.andes.cluster.mgt.ui.i18n.Resources 35 | cluster_mgt_menu 36 | ../andes-cluster-mgt/nodesList.jsp 37 | region1 38 | 10 39 | manage 40 | ../andes-cluster-mgt/images/list.gif 41 | /permission/admin/manage/cluster/list 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/add_topic_to_backend_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="org.apache.axis2.client.Options" %> 2 | <%@ page import="org.apache.axis2.client.ServiceClient" %> 3 | <%@ page import="org.apache.axis2.context.ConfigurationContext" %> 4 | <%@ page import="org.wso2.carbon.CarbonConstants" %> 5 | <%@ page import="org.wso2.carbon.andes.event.stub.service.AndesEventAdminServiceStub" %> 6 | <%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %> 7 | <%@ page import="org.wso2.carbon.andes.event.stub.service.AndesEventAdminServiceEventAdminException" %> 8 | <% 9 | ConfigurationContext configContext = (ConfigurationContext) config.getServletContext() 10 | .getAttribute(CarbonConstants.CONFIGURATION_CONTEXT); 11 | 12 | //Server URL which is defined in the server.xml 13 | String serverURL = CarbonUIUtil.getServerURL(config.getServletContext(), 14 | session) + "AndesEventAdminService.AndesEventAdminServiceHttpsSoap12Endpoint"; 15 | AndesEventAdminServiceStub stub = new AndesEventAdminServiceStub(configContext, serverURL); 16 | 17 | String cookie = (String) session.getAttribute(org.wso2.carbon.utils.ServerConstants.ADMIN_SERVICE_COOKIE); 18 | 19 | ServiceClient client = stub._getServiceClient(); 20 | Options option = client.getOptions(); 21 | option.setManageSession(true); 22 | option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); 23 | String message = ""; 24 | 25 | try { 26 | String topic = request.getParameter("topic"); 27 | stub.addTopic(topic); 28 | session.removeAttribute("topic"); 29 | session.setAttribute("topic", topic); 30 | } catch (AndesEventAdminServiceEventAdminException e) { 31 | message = "Error: " + e.getFaultMessage().getEventAdminException().getErrorMessage(); 32 | 33 | %> 34 | <%=message%> 35 | <% 36 | return; 37 | } 38 | 39 | session.removeAttribute("topicWsSubscriptions"); 40 | session.removeAttribute("topicJMSSubscriptions"); 41 | message = "Topic added successfully"; 42 | %><%=message%> 43 | 44 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/message_content.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="org.apache.commons.lang.StringEscapeUtils" %> 2 | <%@ page import="org.apache.commons.lang.StringUtils" %> 3 | 4 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 5 | <%@ taglib prefix="carbon" uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" %> 6 | 7 | 8 | 9 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | <% 19 | 20 | final int TEXT_AREA_COLUMN_WIDTH = 200; 21 | String wholeMessage = request.getParameter("message"); 22 | // This will not handle the all the possible cases 23 | // But provide a acceptable level of wrapping. 24 | int textAreaRows = Math.max(StringUtils.countMatches(wholeMessage, "\n"), 25 | wholeMessage.length()/TEXT_AREA_COLUMN_WIDTH) + 2; 26 | 27 | 28 | %> 29 | 30 | 35 | 36 |
37 |

38 |
39 | <%-- There should be no spaces between the " 41 |
42 |
43 | 44 |
45 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/load_topic_details_from_bEnd_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="org.apache.axis2.client.Options" %> 2 | <%@ page import="org.apache.axis2.client.ServiceClient" %> 3 | <%@ page import="org.apache.axis2.context.ConfigurationContext" %> 4 | <%@ page import="org.wso2.carbon.CarbonConstants" %> 5 | <%@ page import="org.wso2.carbon.andes.event.stub.service.AndesEventAdminServiceStub" %> 6 | <%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %> 7 | <%@ page import="org.wso2.carbon.andes.event.stub.service.AndesEventAdminServiceEventAdminException" %> 8 | 9 | <% 10 | ConfigurationContext configContext = (ConfigurationContext) config.getServletContext() 11 | .getAttribute(CarbonConstants.CONFIGURATION_CONTEXT); 12 | //Server URL which is defined in the server.xml 13 | String serverURL = CarbonUIUtil.getServerURL(config.getServletContext(), 14 | session) + "AndesEventAdminService.AndesEventAdminServiceHttpsSoap12Endpoint"; 15 | AndesEventAdminServiceStub stub = new AndesEventAdminServiceStub(configContext, serverURL); 16 | 17 | String cookie = (String) session.getAttribute(org.wso2.carbon.utils.ServerConstants.ADMIN_SERVICE_COOKIE); 18 | 19 | ServiceClient client = stub._getServiceClient(); 20 | Options option = client.getOptions(); 21 | option.setManageSession(true); 22 | option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); 23 | String message = ""; 24 | try { 25 | session.removeAttribute("topic"); 26 | session.removeAttribute("topicWsSubscriptions"); 27 | session.removeAttribute("topicJMSSubscriptions"); 28 | session.removeAttribute("topicRolePermission"); 29 | String topic = request.getParameter("topicPath"); 30 | session.setAttribute("topicRolePermission", stub.getTopicRolePermissions(topic)); 31 | session.setAttribute("topic", topic); 32 | } catch (AndesEventAdminServiceEventAdminException e) { 33 | message = "Error: " + e.getFaultMessage().getEventAdminException().getErrorMessage(); 34 | } 35 | %><%=message%> -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/css/dsxmleditor.css: -------------------------------------------------------------------------------- 1 | .treeControl div.title{ 2 | font-size:14px; 3 | font-weight:bold; 4 | color:#788cb3; 5 | } 6 | .topicData{ 7 | border:solid 1px #ccc; 8 | padding:5px; 9 | } 10 | td.tree-top{ 11 | background-image:url(../images/treetop.jpg); 12 | background-repeat:repeat-x; 13 | height:21px; 14 | } 15 | td.tree-top h3{ 16 | padding-left:10px !important; 17 | padding-right:0px !important; 18 | padding-top:3px !important; 19 | padding-bottom:0px !important; 20 | margin:0px !important; 21 | font-size:12px !important; 22 | font-weight:bold !important; 23 | color:#414141; 24 | 25 | } 26 | .leftBox{ 27 | border:solid 1px #ccc; 28 | padding:5px; 29 | } 30 | .treeControl{ 31 | margin-bottom:10px; 32 | } 33 | .selected{ 34 | background-color:#a0afcd; 35 | color:#fff !important; 36 | padding:3px; 37 | } 38 | .secure{ 39 | color: #009966 !important; 40 | text-decoration:underline; 41 | background-image:url(../images/secure.gif); 42 | background-repeat:no-repeat; 43 | background-position:right center; 44 | padding-right:15px; 45 | } 46 | div#eprInput { 47 | margin: 0px 0px 0px 0px; 48 | display: block; 49 | } 50 | 51 | div#scriptInput { 52 | margin: 0px 20px 0px 20px; 53 | display: none; 54 | } 55 | 56 | .initE { 57 | border: solid 1px #e8e7e7; 58 | text-align: left; 59 | font-style: italic; 60 | color: #adadad; 61 | } 62 | 63 | .normalE { 64 | border: solid 1px #bfbebe; 65 | text-align: left; 66 | } 67 | .importantArea { 68 | background-color:#DDDDDD; 69 | border:1px solid #949494; 70 | padding:5px; 71 | } 72 | #permissionsDiv h4 { 73 | color:#999999; 74 | font-size:12px !important; 75 | font-weight:bold !important; 76 | } 77 | .perRow td { 78 | background-color:#C6C7C8; 79 | border-right:1px solid #DFDFDF !important; 80 | font-weight:bold; 81 | text-align:center; 82 | } 83 | 84 | .disabled-ahref{ 85 | color: grey !important; 86 | cursor: default !important; 87 | } -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/styles/dsxmleditor.css: -------------------------------------------------------------------------------- 1 | .treeControl div.title{ 2 | font-size:14px; 3 | font-weight:bold; 4 | color:#788cb3; 5 | } 6 | .topicData{ 7 | border:solid 1px #ccc; 8 | padding:5px; 9 | } 10 | td.tree-top{ 11 | background-image:url(../images/treetop.jpg); 12 | background-repeat:repeat-x; 13 | height:21px; 14 | } 15 | td.tree-top h3{ 16 | padding-left:10px !important; 17 | padding-right:0px !important; 18 | padding-top:3px !important; 19 | padding-bottom:0px !important; 20 | margin:0px !important; 21 | font-size:12px !important; 22 | font-weight:bold !important; 23 | color:#414141; 24 | 25 | } 26 | .leftBox{ 27 | border:solid 1px #ccc; 28 | padding:5px; 29 | } 30 | .treeControl{ 31 | margin-bottom:10px; 32 | } 33 | .selected{ 34 | background-color:#a0afcd; 35 | color:#fff !important; 36 | padding:3px; 37 | } 38 | .secure{ 39 | color: #009966 !important; 40 | text-decoration:underline; 41 | background-image:url(../images/secure.gif); 42 | background-repeat:no-repeat; 43 | background-position:right center; 44 | padding-right:15px; 45 | } 46 | div#eprInput { 47 | margin: 0px 0px 0px 0px; 48 | display: block; 49 | } 50 | 51 | div#scriptInput { 52 | margin: 0px 20px 0px 20px; 53 | display: none; 54 | } 55 | 56 | .initE { 57 | border: solid 1px #e8e7e7; 58 | text-align: left; 59 | font-style: italic; 60 | color: #adadad; 61 | } 62 | 63 | .normalE { 64 | border: solid 1px #bfbebe; 65 | text-align: left; 66 | } 67 | .importantArea { 68 | background-color:#DDDDDD; 69 | border:1px solid #949494; 70 | padding:5px; 71 | } 72 | #permissionsDiv h4 { 73 | color:#999999; 74 | font-size:12px !important; 75 | font-weight:bold !important; 76 | } 77 | .perRow td { 78 | background-color:#C6C7C8; 79 | border-right:1px solid #DFDFDF !important; 80 | font-weight:bold; 81 | text-align:center; 82 | } 83 | 84 | .disabled-ahref{ 85 | color: grey !important; 86 | cursor: default !important; 87 | } -------------------------------------------------------------------------------- /service-stubs/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | org.wso2.carbon.messaging 23 | business-messaging 24 | 3.3.39-SNAPSHOT 25 | ../pom.xml 26 | 27 | 28 | 4.0.0 29 | carbon-service-stubs 30 | 3.3.39-SNAPSHOT 31 | pom 32 | WSO2 Carbon - Service Stubs - Aggregator Module 33 | http://wso2.org 34 | 35 | 36 | org.wso2.carbon.andes.mgt.stub 37 | org.wso2.carbon.andes.stub 38 | org.wso2.carbon.andes.mqtt.stub 39 | org.wso2.carbon.andes.event.stub 40 | 41 | 42 | 43 | 44 | 45 | org.codehaus.mojo 46 | build-helper-maven-plugin 47 | 1.7 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes/src/main/resources/META-INF/services.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | https 24 | 25 | 26 | this service is used to exppose the qpid server data as a web service. 27 | 28 | 29 | 31 | 33 | 35 | 36 | 37 | org.wso2.carbon.andes.service.ws.QpidAdminService 38 | 39 | /permission/admin/manage 40 | 41 | 42 | true 43 | true 44 | 45 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt/src/main/resources/META-INF/services.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | https 22 | 23 | 24 | Service for managing andes functionality 25 | 26 | 27 | 29 | 31 | 33 | 34 | org.wso2.carbon.andes.cluster.mgt.ClusterManagerService 35 | 36 | 37 | true 38 | true 39 | /permission/admin/manage/cluster/list,/permission/admin/manage/subscriptions/queue-browse,/permission/admin/manage/subscriptions/topic-browse 40 | 41 | 42 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.cluster.mgt/src/main/java/org/wso2/carbon/andes/cluster/mgt/internal/ClusterManagerServiceComponent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | * WSO2 Inc. licenses this file to you under the Apache License, 5 | * Version 2.0 (the "License"); you may not use this file except 6 | * in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, 12 | * software distributed under the License is distributed on an 13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | * KIND, either express or implied. See the License for the 15 | * specific language governing permissions and limitations 16 | * under the License. 17 | */ 18 | package org.wso2.carbon.andes.cluster.mgt.internal; 19 | 20 | import org.wso2.carbon.andes.service.QpidService; 21 | import org.osgi.service.component.annotations.Activate; 22 | import org.osgi.service.component.annotations.Component; 23 | import org.osgi.service.component.annotations.Deactivate; 24 | import org.osgi.service.component.annotations.Reference; 25 | import org.osgi.service.component.annotations.ReferenceCardinality; 26 | import org.osgi.service.component.annotations.ReferencePolicy; 27 | 28 | @Component( 29 | name = "org.wso2.carbon.andes.cluster.mgt.internal.ClusterManagerServiceComponent", 30 | immediate = true) 31 | public class ClusterManagerServiceComponent { 32 | 33 | @Reference( 34 | name = "qpid.service", 35 | service = org.wso2.carbon.andes.service.QpidService.class, 36 | cardinality = ReferenceCardinality.MANDATORY, 37 | policy = ReferencePolicy.DYNAMIC, 38 | unbind = "unsetQpidService") 39 | public void setQpidService(QpidService service) { 40 | 41 | if (ClusterManagementDataHolder.getClusterManagementDataHolder().getQpidService() == null) { 42 | ClusterManagementDataHolder.getClusterManagementDataHolder().setQpidService(service); 43 | } 44 | } 45 | 46 | public void unsetQpidService(QpidService service) { 47 | 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/queues/update_queue_role_permissions_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %> 2 | <%@ page import="org.wso2.carbon.andes.stub.admin.types.QueueRolePermission" %> 3 | <%@ page import="java.util.ArrayList" %> 4 | <%@ page import="org.wso2.carbon.andes.ui.UIUtils" %> 5 | <%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceBrokerManagerAdminException" %> 6 | <% 7 | AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request); 8 | String message = ""; 9 | 10 | String queue = (String) session.getAttribute("queue"); 11 | String permissions = request.getParameter("permissions"); 12 | String[] permissionParams = new String[0]; 13 | if (permissions != null && !"".equals(permissions)) { 14 | permissionParams = permissions.split(","); 15 | } 16 | 17 | ArrayList queueRolePermissionArrayList = new ArrayList(); 18 | for (int i = 0; i < permissionParams.length; i++) { 19 | String role = permissionParams[i]; 20 | i++; 21 | String allowedCon = permissionParams[i]; 22 | i++; 23 | String allowedPub = permissionParams[i]; 24 | QueueRolePermission queueRolePermission = new QueueRolePermission(); 25 | queueRolePermission.setRoleName(role); 26 | queueRolePermission.setAllowedToConsume(Boolean.parseBoolean(allowedCon)); 27 | queueRolePermission.setAllowedToPublish(Boolean.parseBoolean(allowedPub)); 28 | queueRolePermissionArrayList.add(queueRolePermission); 29 | } 30 | session.removeAttribute("queueRolePermission"); 31 | 32 | QueueRolePermission[] queueRolePermissions = new QueueRolePermission[queueRolePermissionArrayList.size()]; 33 | try { 34 | stub.updatePermission(queue, queueRolePermissionArrayList.toArray(queueRolePermissions)); 35 | session.setAttribute("queueRolePermission", stub.getQueueRolePermission(queue)); 36 | message = "Permissions updated successfully"; 37 | } catch (AndesAdminServiceBrokerManagerAdminException e) { 38 | message = "Error: " + e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(); 39 | } 40 | %><%=message%> 41 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.admin/src/main/java/org/wso2/carbon/andes/event/admin/internal/EventAdminDS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004,2015 The Apache Software Foundation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package org.wso2.carbon.andes.event.admin.internal; 17 | 18 | import org.osgi.service.component.ComponentContext; 19 | import org.wso2.carbon.andes.event.core.EventBroker; 20 | import org.osgi.service.component.annotations.Activate; 21 | import org.osgi.service.component.annotations.Component; 22 | import org.osgi.service.component.annotations.Deactivate; 23 | import org.osgi.service.component.annotations.Reference; 24 | import org.osgi.service.component.annotations.ReferenceCardinality; 25 | import org.osgi.service.component.annotations.ReferencePolicy; 26 | 27 | /** 28 | * Service references initialize by this class. All necessary services references get initialize in bundle 29 | * activation. 30 | */ 31 | @Component( 32 | name = "AndesEventManagerAdmin.component", 33 | immediate = true) 34 | public class EventAdminDS { 35 | 36 | @Activate 37 | protected void activate(ComponentContext context) { 38 | 39 | } 40 | 41 | @Reference( 42 | name = "eventbroker.service", 43 | service = org.wso2.carbon.andes.event.core.EventBroker.class, 44 | cardinality = ReferenceCardinality.MANDATORY, 45 | policy = ReferencePolicy.DYNAMIC, 46 | unbind = "unSetEventBroker") 47 | protected void setEventBroker(EventBroker eventBroker) { 48 | 49 | EventAdminHolder.getInstance().registerEventBroker(eventBroker); 50 | } 51 | 52 | protected void unSetEventBroker(EventBroker eventBroker) { 53 | 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.ui/src/main/resources/web/subscriptions/styles/dsxmleditor.css: -------------------------------------------------------------------------------- 1 | .treeControl div.title { 2 | font-size: 14px; 3 | font-weight: bold; 4 | color: #788cb3; 5 | } 6 | 7 | .topicData { 8 | border: solid 1px #ccc; 9 | padding: 5px; 10 | } 11 | 12 | td.tree-top { 13 | background-image: url(../images/treetop.jpg); 14 | background-repeat: repeat-x; 15 | height: 21px; 16 | } 17 | 18 | td.tree-top h3 { 19 | padding-left: 10px !important; 20 | padding-right: 0px !important; 21 | padding-top: 3px !important; 22 | padding-bottom: 0px !important; 23 | margin: 0px !important; 24 | font-size: 12px !important; 25 | font-weight: bold !important; 26 | color: #414141; 27 | 28 | } 29 | 30 | .leftBox { 31 | border: solid 1px #ccc; 32 | padding: 5px; 33 | } 34 | 35 | .treeControl { 36 | margin-bottom: 10px; 37 | } 38 | 39 | .selected { 40 | background-color: #a0afcd; 41 | color: #fff !important; 42 | padding: 3px; 43 | } 44 | 45 | .secure { 46 | color: #009966 !important; 47 | text-decoration: underline; 48 | background-image: url(../images/secure.gif); 49 | background-repeat: no-repeat; 50 | background-position: right center; 51 | padding-right: 15px; 52 | } 53 | 54 | div#eprInput { 55 | margin: 0px 0px 0px 0px; 56 | display: block; 57 | } 58 | 59 | div#scriptInput { 60 | margin: 0px 20px 0px 20px; 61 | display: none; 62 | } 63 | 64 | .initE { 65 | border: solid 1px #e8e7e7; 66 | text-align: left; 67 | font-style: italic; 68 | color: #adadad; 69 | } 70 | 71 | .normalE { 72 | border: solid 1px #bfbebe; 73 | text-align: left; 74 | } 75 | 76 | .importantArea { 77 | background-color: #DDDDDD; 78 | border: 1px solid #949494; 79 | padding: 5px; 80 | } 81 | 82 | #permissionsDiv h4 { 83 | color: #999999; 84 | font-size: 12px !important; 85 | font-weight: bold !important; 86 | } 87 | 88 | .perRow td { 89 | background-color: #C6C7C8; 90 | border-right: 1px solid #DFDFDF !important; 91 | font-weight: bold; 92 | text-align: center; 93 | } 94 | 95 | .disabled-ahref { 96 | color: grey !important; 97 | cursor: default !important; 98 | } 99 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/try_it_out_invoke_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="org.apache.axis2.client.Options" %> 2 | <%@ page import="org.apache.axis2.client.ServiceClient" %> 3 | <%@ page import="org.apache.axis2.context.ConfigurationContext" %> 4 | <%@ page import="org.wso2.carbon.CarbonConstants" %> 5 | <%@ page import="org.wso2.carbon.andes.event.stub.service.AndesEventAdminServiceStub" %> 6 | <%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %> 7 | <%@ page import="org.wso2.carbon.andes.event.stub.service.AndesEventAdminServiceEventAdminException" %> 8 | <% 9 | 10 | ConfigurationContext configContext = (ConfigurationContext) config.getServletContext() 11 | .getAttribute(CarbonConstants.CONFIGURATION_CONTEXT); 12 | //Server URL which is defined in the server.xml 13 | String serverURL = CarbonUIUtil.getServerURL(config.getServletContext(), 14 | session) + "AndesEventAdminService.AndesEventAdminServiceHttpsSoap12Endpoint"; 15 | AndesEventAdminServiceStub stub = new AndesEventAdminServiceStub(configContext, serverURL); 16 | 17 | String cookie = (String) session.getAttribute(org.wso2.carbon.utils.ServerConstants.ADMIN_SERVICE_COOKIE); 18 | 19 | ServiceClient client = stub._getServiceClient(); 20 | Options option = client.getOptions(); 21 | option.setManageSession(true); 22 | option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); 23 | 24 | String topic = request.getParameter("topic"); 25 | String textMsg = request.getParameter("xmlMessage"); 26 | session.setAttribute("errorTopic", topic); 27 | session.setAttribute("xmlMessage", textMsg); 28 | String messageToBePrinted = null; 29 | try { 30 | 31 | if (textMsg != null && !textMsg.isEmpty()) { 32 | stub.publishToTopic(textMsg, topic); 33 | } else { 34 | messageToBePrinted = "Error: Failed to get document element from message " + textMsg; 35 | } 36 | } catch (AndesEventAdminServiceEventAdminException e) { 37 | messageToBePrinted = e.getFaultMessage().getEventAdminException().getErrorMessage(); 38 | } 39 | 40 | if (messageToBePrinted == null) { 41 | messageToBePrinted = "Successfully published the message to the topic :" + topic; 42 | } 43 | %> 44 | <%=messageToBePrinted%> 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/topics/update_role_permissions_from_session_ajaxprocessor.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="org.apache.axis2.client.Options" %> 2 | <%@ page import="org.apache.axis2.client.ServiceClient" %> 3 | <%@ page import="org.apache.axis2.context.ConfigurationContext" %> 4 | <%@ page import="org.wso2.carbon.CarbonConstants" %> 5 | <%@ page import="org.wso2.carbon.andes.event.stub.core.TopicRolePermission" %> 6 | <%@ page import="org.wso2.carbon.andes.event.stub.service.AndesEventAdminServiceStub" %> 7 | <%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %> 8 | <%@ page import="java.util.ArrayList" %> 9 | <%@ page import="org.wso2.carbon.andes.event.stub.service.AndesEventAdminServiceEventAdminException" %> 10 | <% 11 | ConfigurationContext configContext = (ConfigurationContext) config.getServletContext() 12 | .getAttribute(CarbonConstants.CONFIGURATION_CONTEXT); 13 | //Server URL which is defined in the server.xml 14 | String serverURL = CarbonUIUtil.getServerURL(config.getServletContext(), 15 | session) + "AndesEventAdminService.AndesEventAdminServiceHttpsSoap12Endpoint"; 16 | AndesEventAdminServiceStub stub = new AndesEventAdminServiceStub(configContext, serverURL); 17 | 18 | String cookie = (String) session.getAttribute(org.wso2.carbon.utils.ServerConstants.ADMIN_SERVICE_COOKIE); 19 | 20 | ServiceClient client = stub._getServiceClient(); 21 | Options option = client.getOptions(); 22 | option.setManageSession(true); 23 | option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); 24 | String message = ""; 25 | 26 | String topic = (String) session.getAttribute("topic"); 27 | ArrayList topicRolePermissionArrayList = (ArrayList) session.getAttribute("topicRolePermissions"); 28 | TopicRolePermission[] topicRolePermissions = new TopicRolePermission[topicRolePermissionArrayList.size()]; 29 | 30 | try { 31 | stub.updatePermission(topic, topicRolePermissionArrayList.toArray(topicRolePermissions)); 32 | message = "Topic added successfully"; 33 | } catch (AndesEventAdminServiceEventAdminException e) { 34 | message = "Error: " + e.getFaultMessage().getEventAdminException().getErrorMessage(); 35 | } 36 | 37 | session.removeAttribute("topicRolePermissions"); 38 | %><%=message%> 39 | -------------------------------------------------------------------------------- /components/andes/org.wso2.carbon.andes.event.ui/src/main/resources/web/eventing/js/topics.js: -------------------------------------------------------------------------------- 1 | var Dom = YAHOO.util.Dom; 2 | var Event = YAHOO.util.Event; 3 | var oMenu = null; 4 | function addRightClicks(){ 5 | Event.onAvailable("domChecker", function() { 6 | var topicTree = Dom.get("topicTree"); 7 | var aNodes = topicTree.getElementsByTagName("a"); 8 | for (var i = 0; i < aNodes.length; i++) { 9 | if (Dom.hasClass(aNodes[i], "treeNode")) { 10 | Event.addListener(aNodes[i], 'contextmenu', handleRightClick, false); 11 | Event.addListener(aNodes[i], 'click', selectNode, true); 12 | } 13 | } 14 | }); 15 | } 16 | var leftClickEvent; 17 | function handleRightClick(env) { 18 | var targetObj = Event.getTarget(env, true); 19 | if (oMenu != null) { 20 | oMenu.destroy(); 21 | } 22 | Event.removeListener(targetObj, 'click'); 23 | oMenu = new YAHOO.widget.Menu("basicmenu", { context:[targetObj, "tl", "br"] }); 24 | oMenu.clearContent(); 25 | 26 | if (Dom.hasClass(targetObj,"treeNode")) { //main conf node 27 | var oMenuItems = [ 28 | //{ text: "Add Topic", onclick:{fn:deleteItem,obj:targetObj} }, 29 | { text: "Subscribe to Topic", onclick:{fn:subscribeItem,obj:targetObj} } 30 | 31 | ]; 32 | } 33 | oMenu.addItems(oMenuItems); 34 | oMenu.render(targetObj); 35 | oMenu.show(); 36 | var listeners = YAHOO.util.Event.getListeners(targetObj); 37 | for (var i=0; i getParentPaths() 47 | { 48 | return Arrays.asList(""); 49 | } 50 | }; 51 | 52 | public String[] getElementsProcessed() { 53 | return new String[]{""}; 54 | } 55 | } 56 | --------------------------------------------------------------------------------