Author: chris.laprun(a)jboss.com
Date: 2008-07-14 16:42:55 -0400 (Mon, 14 Jul 2008)
New Revision: 11442
Modified:
branches/JBoss_Portal_Branch_2_6/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_6/wsrp/src/main/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/wsrp/src/main/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2008-07-14
20:32:11 UTC (rev 11441)
+++
branches/JBoss_Portal_Branch_2_6/wsrp/src/main/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2008-07-14
20:42:55 UTC (rev 11442)
@@ -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