Return-Path: Delivered-To: apmail-ws-hermes-dev-archive@www.apache.org Received: (qmail 93506 invoked from network); 3 Jun 2005 16:10:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jun 2005 16:10:27 -0000 Received: (qmail 65559 invoked by uid 500); 3 Jun 2005 16:10:26 -0000 Delivered-To: apmail-ws-hermes-dev-archive@ws.apache.org Received: (qmail 65472 invoked by uid 500); 3 Jun 2005 16:10:25 -0000 Mailing-List: contact hermes-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: hermes-dev@ws.apache.org List-Id: Delivered-To: mailing list hermes-dev@ws.apache.org Received: (qmail 65448 invoked by uid 500); 3 Jun 2005 16:10:25 -0000 Delivered-To: apmail-incubator-hermes-cvs@incubator.apache.org Received: (qmail 65445 invoked by uid 99); 3 Jun 2005 16:10:25 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 03 Jun 2005 09:10:24 -0700 Received: (qmail 93433 invoked by uid 65534); 3 Jun 2005 16:10:00 -0000 Message-ID: <20050603161000.93429.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: svn commit: r179824 - in /incubator/hermes/trunk/src/java/org/apache/ws/notification/topics: Topic.java impl/TopicImpl.java util/TopicUtils.java Date: Fri, 03 Jun 2005 16:09:59 -0000 To: hermes-cvs@incubator.apache.org From: scamp@apache.org X-Mailer: svnmailer-1.0.0-dev X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: scamp Date: Fri Jun 3 09:09:58 2005 New Revision: 179824 URL: http://svn.apache.org/viewcvs?rev=3D179824&view=3Drev Log: update to provide a way to hide topics Modified: incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/Topic= .java incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/impl/= TopicImpl.java incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/util/= TopicUtils.java Modified: incubator/hermes/trunk/src/java/org/apache/ws/notification/topics= /Topic.java URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apac= he/ws/notification/topics/Topic.java?rev=3D179824&r1=3D179823&r2=3D179824&v= iew=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/Topic= .java (original) +++ incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/Topic= .java Fri Jun 3 09:09:58 2005 @@ -102,4 +102,5 @@ */ TopicSpace getTopicSpace(); =20 + boolean isVisible(); } Modified: incubator/hermes/trunk/src/java/org/apache/ws/notification/topics= /impl/TopicImpl.java URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apac= he/ws/notification/topics/impl/TopicImpl.java?rev=3D179824&r1=3D179823&r2= =3D179824&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/impl/= TopicImpl.java (original) +++ incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/impl/= TopicImpl.java Fri Jun 3 09:09:58 2005 @@ -47,6 +47,7 @@ private Topic m_parent; =20 private static final Log LOG =3D LogFactory.getLog( TopicImpl.class.ge= tName() ); + protected boolean m_isVisible =3D true; =20 // TODO: throw more specific exceptions public Topic addTopic( Topic topic ) throws Exception @@ -261,6 +262,11 @@ =20 public TopicSpace getTopicSpace() { return m_topicSpace; + } + + public boolean isVisible() + { + return m_isVisible; } =20 } Modified: incubator/hermes/trunk/src/java/org/apache/ws/notification/topics= /util/TopicUtils.java URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apac= he/ws/notification/topics/util/TopicUtils.java?rev=3D179824&r1=3D179823&r2= =3D179824&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/util/= TopicUtils.java (original) +++ incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/util/= TopicUtils.java Fri Jun 3 09:09:58 2005 @@ -48,7 +48,7 @@ { =20 /** - * Adds the topic for ResoruceTermination....there should be only one = of these! + * Adds the topic for ResourceTermination....there should be only one = of these! * * @param topicSpaceSet * @return @@ -167,7 +167,12 @@ Topic topic =3D (Topic)iterator.next(); String topicName =3D topic.getName(); QName rootTopicQName =3D new QName(targetNamespace, topicN= ame); - addSimpleTopic(rootTopicQName, resourceProperty); + + if (topic.isVisible()) + { + addSimpleTopic(rootTopicQName, resourceProperty); + } + Iterator subTopics =3D topic.topicIterator(); while (subTopics.hasNext()) { @@ -211,10 +216,13 @@ TopicDocument topicDocument =3D TopicDocument.Factory.newInstance(= ); String topicName =3D subTopic.getName(); QName concreteTopicName =3D new QName(rootTopicQName.getNamespaceU= RI(), rootTopicQName.getLocalPart() + "/" + topicName); - TopicExpressionType topicExpressionType =3D topicDocument.addNewTo= pic(); - topicExpressionType.setDialect(TopicsConstants.TOPIC_EXPR_DIALECT_= CONCRETE); - XmlBeanUtils.setValueAsQName(topicExpressionType, concreteTopicNam= e); - resourceProp.add(topicDocument); + if (subTopic.isVisible()) + { + TopicExpressionType topicExpressionType =3D topicDocument.addN= ewTopic(); + topicExpressionType.setDialect(TopicsConstants.TOPIC_EXPR_DIAL= ECT_CONCRETE); + XmlBeanUtils.setValueAsQName(topicExpressionType, concreteTopi= cName); + resourceProp.add(topicDocument); + } Iterator iterator =3D subTopic.topicIterator(); while (iterator.hasNext()) { --------------------------------------------------------------------- To unsubscribe, e-mail: hermes-dev-unsubscribe@ws.apache.org For additional commands, e-mail: hermes-dev-help@ws.apache.org