Author: chris.laprun(a)jboss.com
Date: 2008-07-14 16:44:27 -0400 (Mon, 14 Jul 2008)
New Revision: 11443
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
Log:
- JBPORTAL-2073: Properly reset the registration properties.
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2008-07-14
20:42:55 UTC (rev 11442)
+++
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2008-07-14
20:44:27 UTC (rev 11443)
@@ -81,6 +81,12 @@
public void setRegistrationRequired(boolean requiresRegistration)
{
+ // if we switch from requiring registration to no registration, erase registration
properties
+ if (this.requiresRegistration && !requiresRegistration)
+ {
+ clearRegistrationProperties();
+ }
+
this.requiresRegistration = requiresRegistration;
}
Show replies by date