Author: sanka
Date: Wed Sep 20 05:00:49 2006
New Revision: 448180

URL: http://svn.apache.org/viewvc?view=rev&rev=448180
Log:
Removing the old policy processors

Added:
    webservices/sandesha/trunk/java/src/META-INF/
    webservices/sandesha/trunk/java/src/META-INF/services/
    
webservices/sandesha/trunk/java/src/META-INF/services/org.apache.neethi.builders.AssertionBuilder
Removed:
    
webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/PolicyEngineData.java
    
webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicy.java
    
webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicyBean.java
    
webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicyProcessor.java
    
webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicyToken.java
    webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/processors/
Modified:
    
webservices/sandesha/trunk/java/src/org/apache/sandesha2/Sandesha2Constants.java
    webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java
    
webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/PropertyManager.java
    
webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/SandeshaPropertyBean.java

Added: 
webservices/sandesha/trunk/java/src/META-INF/services/org.apache.neethi.builders.AssertionBuilder
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/src/META-INF/services/org.apache.neethi.builders.AssertionBuilder?view=auto&rev=448180
==============================================================================
--- 
webservices/sandesha/trunk/java/src/META-INF/services/org.apache.neethi.builders.AssertionBuilder
 (added)
+++ 
webservices/sandesha/trunk/java/src/META-INF/services/org.apache.neethi.builders.AssertionBuilder
 Wed Sep 20 05:00:49 2006
@@ -0,0 +1 @@
+org.apache.sandesha2.policy.builders.RMAssertionBuilder
\ No newline at end of file

Modified: 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/Sandesha2Constants.java
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/src/org/apache/sandesha2/Sandesha2Constants.java?view=diff&rev=448180&r1=448179&r2=448180
==============================================================================
--- 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/Sandesha2Constants.java
 (original)
+++ 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/Sandesha2Constants.java
 Wed Sep 20 05:00:49 2006
@@ -17,6 +17,8 @@
 

 package org.apache.sandesha2;

 

+import javax.xml.namespace.QName;

+

 /**

  * Contains all the Sandesha2Constants of Sandesha2.

  * Please see sub-interfaces to see grouped data.

@@ -536,4 +538,31 @@
                String SEQUENCE_ID = "WSRMSequenceId";

                String MESSAGE_NUMBER = "WSRMMessageNumber";

        }

+    

+    public interface Assertions {

+        public static final String URI_RM_POLICY_NS = 
"http://ws.apache.org/sandesha2/policy";;

+        

+        public static final String ELEM_ACK_INTERVAL = 
"AcknowledgementInterval";

+        public static final String ELEM_RETRANS_INTERVAL = 
"RetransmissionInterval";

+        public static final String ELEM_MAX_RETRANS_COUNT = 
"MaximumRetransmissionCount";

+        public static final String ELEM_EXP_BACKOFF = "ExponentialBackoff";

+        public static final String ELEM_INACTIVITY_TIMEOUT = 
"InactivityTimeout";

+        public static final String ELEM_INACTIVITY_TIMEOUT_MEASURES = 
"InactivityTimeoutMeasure";

+        public static final String ELEM_INVOKE_INORDER = "InvokeInOrder";

+        public static final String ELEM_MSG_TYPES_TO_DROP = 
"MessageTypesToDrop";

+        public static final String ELEM_STORAGE_MGR = "StorageManagers";

+        public static final String ELEM_SEC_MGR = "SecurityManager";

+        

+        public static final QName Q_ELEM__RMBEAN = new QName(URI_RM_POLICY_NS, 
"RMBean");

+        public static final QName Q_ELEM_ACK_INTERVAL = new 
QName(URI_RM_POLICY_NS, ELEM_ACK_INTERVAL);

+        public static final QName Q_ELEM_RETRANS_INTERVAL = new 
QName(URI_RM_POLICY_NS, ELEM_RETRANS_INTERVAL);

+        public static final QName Q_ELEM_MAX_RETRANS_COUNT = new 
QName(URI_RM_POLICY_NS, ELEM_MAX_RETRANS_COUNT);

+        public static final QName Q_ELEM_EXP_BACKOFF = new 
QName(URI_RM_POLICY_NS, ELEM_EXP_BACKOFF);

+        public static final QName Q_ELEM_INACTIVITY_TIMEOUT = new 
QName(URI_RM_POLICY_NS, ELEM_INACTIVITY_TIMEOUT);

+        public static final QName Q_ELEM_INACTIVITY_TIMEOUT_MEASURES = new 
QName(URI_RM_POLICY_NS, ELEM_INACTIVITY_TIMEOUT_MEASURES);

+        public static final QName Q_ELEM_INVOKE_INORDER = new 
QName(URI_RM_POLICY_NS, ELEM_INVOKE_INORDER);

+        public static final QName Q_ELEM_MSG_TYPES_TO_DROP = new 
QName(URI_RM_POLICY_NS, ELEM_MSG_TYPES_TO_DROP);

+        public static final QName Q_ELEM_STORAGE_MGR =new 
QName(URI_RM_POLICY_NS, ELEM_STORAGE_MGR);

+        public static final QName Q_ELEM_SEC_MGR = new QName(URI_RM_POLICY_NS, 
ELEM_SEC_MGR);

+    }

 }


Modified: 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java?view=diff&rev=448180&r1=448179&r2=448180
==============================================================================
--- 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java 
(original)
+++ 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java 
Wed Sep 20 05:00:49 2006
@@ -27,9 +27,11 @@
 import org.apache.axis2.modules.PolicyExtension;

 import org.apache.commons.logging.Log;

 import org.apache.commons.logging.LogFactory;

+import org.apache.neethi.Assertion;

+import org.apache.neethi.Policy;

 import org.apache.sandesha2.i18n.SandeshaMessageHelper;

 import org.apache.sandesha2.i18n.SandeshaMessageKeys;

-import org.apache.sandesha2.policy.RMPolicyExtension;

+import org.apache.sandesha2.policy1.RMPolicyExtension;

 import org.apache.sandesha2.security.SecurityManager;

 import org.apache.sandesha2.storage.SandeshaStorageException;

 import org.apache.sandesha2.storage.StorageManager;

@@ -160,5 +162,17 @@
                // cleaning sequence properties

 

        }

+

+    public void applyPolicy(Policy policy, AxisDescription axisDescription) 
throws AxisFault {

+        // TODO 

+        

+    }

+

+    public boolean canSupportAssertion(Assertion assertion) {

+        // TODO 

+        return true;

+    }

+    

+    

 

 }


Modified: 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/PropertyManager.java
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/PropertyManager.java?view=diff&rev=448180&r1=448179&r2=448180
==============================================================================
--- 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/PropertyManager.java
 (original)
+++ 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/PropertyManager.java
 Wed Sep 20 05:00:49 2006
@@ -21,6 +21,7 @@
 import java.io.InputStream;

 import java.util.ArrayList;

 import java.util.Iterator;

+import java.util.List;

 import java.util.Properties;

 

 import org.apache.axis2.description.AxisDescription;

@@ -28,14 +29,12 @@
 import org.apache.axis2.description.Parameter;

 import org.apache.commons.logging.Log;

 import org.apache.commons.logging.LogFactory;

+import org.apache.neethi.Assertion;

+import org.apache.neethi.Policy;

 import org.apache.sandesha2.Sandesha2Constants;

 import org.apache.sandesha2.SandeshaException;

 import org.apache.sandesha2.i18n.SandeshaMessageHelper;

 import org.apache.sandesha2.i18n.SandeshaMessageKeys;

-import org.apache.sandesha2.policy.PolicyEngineData;

-import org.apache.sandesha2.policy.RMPolicyProcessor;

-import org.apache.sandesha2.policy.RMProcessorContext;

-import org.apache.ws.policy.Policy;

 

 /**

  * Loads properties from sandesha2.properties file (from Sandesha2Constants if

@@ -180,156 +179,211 @@
 

        public static SandeshaPropertyBean 
loadPropertiesFromModuleDescPolicy(AxisModule desc,

                        SandeshaPropertyBean parentPropertyBean) throws 
SandeshaException {

-               SandeshaPropertyBean propertyBean = new SandeshaPropertyBean();

+               

+        SandeshaPropertyBean propertyBean = new SandeshaPropertyBean();

 

                Policy policy = desc.getPolicyInclude().getEffectivePolicy();

 

                if (policy == null) {

                        return null; // no pilicy is available in the module 
description

                }

-

-               RMPolicyProcessor processor = new RMPolicyProcessor();

-

-               try {

-                       processor.setup();

-               } catch (NoSuchMethodException e) {

-                       throw new SandeshaException(e);

-               }

-

-               processor.processPolicy(policy);

-

-               RMProcessorContext ctx = processor.getContext();

-               PolicyEngineData data = ctx.readCurrentPolicyEngineData();

-

-               if (data.isAcknowledgementIntervalSet())

-                       
propertyBean.setAcknowledgementInterval(data.getAcknowledgementInterval());

-               else

-                       
propertyBean.setAcknowledgementInterval(parentPropertyBean.getAcknowledgementInterval());

-

-               if (data.isExponentialBackoffSet())

-                       
propertyBean.setExponentialBackoff(data.isExponentialBackoff());

-               else

-                       
propertyBean.setExponentialBackoff(parentPropertyBean.isExponentialBackoff());

-

-               // Inactivity timeout given in the policy will affect only if 
it gives

-               // both the measure and the value.

-               // Otherwise value will be taken from the parent.

-               if (data.isInactivityTimeoutSet() && 
data.isInactivityTimeoutMeassureSet())

-                       
propertyBean.setInactiveTimeoutInterval(data.getInactivityTimeout(), 
data.getInactivityTimeoutMeassure());

-               else

-                       
propertyBean.setInactiveTimeoutInterval(parentPropertyBean.getInactiveTimeoutInterval());

-

-               if (data.isInvokeInOrderSet())

-                       propertyBean.setInOrder(data.isInvokeInOrder());

-               else

-                       propertyBean.setInOrder(parentPropertyBean.isInOrder());

-

-               if (data.isMaximumRetransmissionCountSet())

-                       
propertyBean.setMaximumRetransmissionCount(data.getMaximumRetransmissionCount());

-               else

-                       
propertyBean.setMaximumRetransmissionCount(parentPropertyBean.getMaximumRetransmissionCount());

-

-               if (data.isRetransmissionIntervalSet())

-                       
propertyBean.setRetransmissionInterval(data.getRetransmissionInterval());

-               else

-                       
propertyBean.setRetransmissionInterval(parentPropertyBean.getRetransmissionInterval());

-

-               if (data.isInMemoryStorageManagerSet())

-                       
propertyBean.setInMemoryStorageManagerClass(data.getInMemoryStorageManager());

-               else

-                       
propertyBean.setInMemoryStorageManagerClass(data.getInMemoryStorageManager());

-

-               if (data.isPermanentStorageManagerSet())

-                       
propertyBean.setPermanentStorageManagerClass(data.getPermanentStorageManager());

-               else

-                       
propertyBean.setPermanentStorageManagerClass(data.getPermanentStorageManager());

-

-               if (data.isMessageTypesToDropSet())

-                       loadMessageTypesToDrop(data.getMessageTypesToDrop(), 
propertyBean);

-               else

-                       
propertyBean.setMsgTypesToDrop(parentPropertyBean.getMsgTypesToDrop());

-

-               propertyBean.setSecurityManagerClass(data.getSecurityManager());

+        

+        Iterator iterator = policy.getAlternatives();

+        if (! iterator.hasNext()) {

+            throw new SandeshaException("No Policy Alternative found");

+        }

+

+        List assertionList = (List) iterator.next();

+        Assertion assertion = null;

+        

+        boolean found = false;

+        

+        for (Iterator assertions = assertionList.iterator(); 
iterator.hasNext();) {

+            assertion = (Assertion) assertions.next();

+            

+            if (assertion instanceof SandeshaPropertyBean) {

+                found = true;

+                break;

+            }

+        }

+        

+        if (! found) {

+            // no RMAssertion found

+            return null;

+        }

+        

+        propertyBean = (SandeshaPropertyBean) assertion;

+        

+//             RMPolicyProcessor processor = new RMPolicyProcessor();

+//

+//             try {

+//                     processor.setup();

+//             } catch (NoSuchMethodException e) {

+//                     throw new SandeshaException(e);

+//             }

+//

+//             processor.processPolicy(policy);

+//

+//             RMProcessorContext ctx = processor.getContext();

+//             PolicyEngineData data = ctx.readCurrentPolicyEngineData();

+//

+//             if (data.isAcknowledgementIntervalSet())

+//                     
propertyBean.setAcknowledgementInterval(data.getAcknowledgementInterval());

+//             else

+//                     
propertyBean.setAcknowledgementInterval(parentPropertyBean.getAcknowledgementInterval());

+//

+//             if (data.isExponentialBackoffSet())

+//                     
propertyBean.setExponentialBackoff(data.isExponentialBackoff());

+//             else

+//                     
propertyBean.setExponentialBackoff(parentPropertyBean.isExponentialBackoff());

+//

+//             // Inactivity timeout given in the policy will affect only if 
it gives

+//             // both the measure and the value.

+//             // Otherwise value will be taken from the parent.

+//             if (data.isInactivityTimeoutSet() && 
data.isInactivityTimeoutMeassureSet())

+//                     
propertyBean.setInactiveTimeoutInterval(data.getInactivityTimeout(), 
data.getInactivityTimeoutMeassure());

+//             else

+//                     
propertyBean.setInactiveTimeoutInterval(parentPropertyBean.getInactiveTimeoutInterval());

+//

+//             if (data.isInvokeInOrderSet())

+//                     propertyBean.setInOrder(data.isInvokeInOrder());

+//             else

+//                     propertyBean.setInOrder(parentPropertyBean.isInOrder());

+//

+//             if (data.isMaximumRetransmissionCountSet())

+//                     
propertyBean.setMaximumRetransmissionCount(data.getMaximumRetransmissionCount());

+//             else

+//                     
propertyBean.setMaximumRetransmissionCount(parentPropertyBean.getMaximumRetransmissionCount());

+//

+//             if (data.isRetransmissionIntervalSet())

+//                     
propertyBean.setRetransmissionInterval(data.getRetransmissionInterval());

+//             else

+//                     
propertyBean.setRetransmissionInterval(parentPropertyBean.getRetransmissionInterval());

+//

+//             if (data.isInMemoryStorageManagerSet())

+//                     
propertyBean.setInMemoryStorageManagerClass(data.getInMemoryStorageManager());

+//             else

+//                     
propertyBean.setInMemoryStorageManagerClass(data.getInMemoryStorageManager());

+//

+//             if (data.isPermanentStorageManagerSet())

+//                     
propertyBean.setPermanentStorageManagerClass(data.getPermanentStorageManager());

+//             else

+//                     
propertyBean.setPermanentStorageManagerClass(data.getPermanentStorageManager());

+//

+//             if (data.isMessageTypesToDropSet())

+//                     loadMessageTypesToDrop(data.getMessageTypesToDrop(), 
propertyBean);

+//             else

+//                     
propertyBean.setMsgTypesToDrop(parentPropertyBean.getMsgTypesToDrop());

+//

+//             propertyBean.setSecurityManagerClass(data.getSecurityManager());

 

                return propertyBean;

        }

 

        public static SandeshaPropertyBean 
loadPropertiesFromAxisDescription(AxisDescription desc,

                        SandeshaPropertyBean parentPropertyBean) throws 
SandeshaException {

-               SandeshaPropertyBean propertyBean = new SandeshaPropertyBean();

-               Policy policy = desc.getPolicyInclude().getEffectivePolicy();

-

-               if (policy == null) {

-                       return null; // no policy is available in this axis 
description

-               }

-

-               RMPolicyProcessor processor = new RMPolicyProcessor();

-

-               try {

-                       processor.setup();

-               } catch (NoSuchMethodException e) {

-                       throw new SandeshaException(e.getMessage());

-               }

-

-               processor.processPolicy(policy);

-

-               RMProcessorContext ctx = processor.getContext();

-               PolicyEngineData data = ctx.readCurrentPolicyEngineData();

+               

+        SandeshaPropertyBean propertyBean = new SandeshaPropertyBean();

 

-               if (data.isAcknowledgementIntervalSet())

-                       
propertyBean.setAcknowledgementInterval(data.getAcknowledgementInterval());

-               else

-                       
propertyBean.setAcknowledgementInterval(parentPropertyBean.getAcknowledgementInterval());

-

-               if (data.isExponentialBackoffSet())

-                       
propertyBean.setExponentialBackoff(data.isExponentialBackoff());

-               else

-                       
propertyBean.setExponentialBackoff(parentPropertyBean.isExponentialBackoff());

-

-               // Inactivity timeout given in the policy will affect only if 
it gives

-               // both the measure and the value.

-               // Otherwise value will be taken from the parent.

-               if (data.isInactivityTimeoutSet() && 
data.isInactivityTimeoutMeassureSet())

-                       
propertyBean.setInactiveTimeoutInterval(data.getInactivityTimeout(), 
data.getInactivityTimeoutMeassure());

-               else

-                       
propertyBean.setInactiveTimeoutInterval(parentPropertyBean.getInactiveTimeoutInterval());

-

-               if (data.isInvokeInOrderSet())

-                       propertyBean.setInOrder(data.isInvokeInOrder());

-               else

-                       propertyBean.setInOrder(parentPropertyBean.isInOrder());

-

-               if (data.isMaximumRetransmissionCountSet())

-                       
propertyBean.setMaximumRetransmissionCount(data.getMaximumRetransmissionCount());

-               else

-                       
propertyBean.setMaximumRetransmissionCount(parentPropertyBean.getMaximumRetransmissionCount());

-

-               if (data.isRetransmissionIntervalSet())

-                       
propertyBean.setRetransmissionInterval(data.getRetransmissionInterval());

-               else

-                       
propertyBean.setRetransmissionInterval(parentPropertyBean.getRetransmissionInterval());

-

-               // if (data.isStorageManagerSet())

-               // 
propertyBean.setStorageManagerClass(data.getStorageManager());

-               // else

-               // 
propertyBean.setStorageManagerClass(data.getStorageManager());

-

-               if (data.isInMemoryStorageManagerSet())

-                       
propertyBean.setInMemoryStorageManagerClass(data.getInMemoryStorageManager());

-               else

-                       
propertyBean.setInMemoryStorageManagerClass(data.getInMemoryStorageManager());

-

-               if (data.isPermanentStorageManagerSet())

-                       
propertyBean.setPermanentStorageManagerClass(data.getPermanentStorageManager());

-               else

-                       
propertyBean.setPermanentStorageManagerClass(data.getPermanentStorageManager());

-

-               if (data.isMessageTypesToDropSet())

-                       loadMessageTypesToDrop(data.getMessageTypesToDrop(), 
propertyBean);

-               else

-                       
propertyBean.setMsgTypesToDrop(parentPropertyBean.getMsgTypesToDrop());

+        Policy policy = desc.getPolicyInclude().getEffectivePolicy();

 

-               propertyBean.setSecurityManagerClass(data.getSecurityManager());

+        if (policy == null) {

+            return null; // no pilicy is available in the module description

+        }

+        

+        Iterator iterator = policy.getAlternatives();

+        if (! iterator.hasNext()) {

+            throw new SandeshaException("No Policy Alternative found");

+        }

+

+        List assertionList = (List) iterator.next();

+        Assertion assertion = null;

+        

+        boolean found = false;

+        

+        for (Iterator assertions = assertionList.iterator(); 
iterator.hasNext();) {

+            assertion = (Assertion) assertions.next();

+            

+            if (assertion instanceof SandeshaPropertyBean) {

+                found = true;

+                break;

+            }

+        }

+        

+        if (! found) {

+            // no RMAssertion found

+            return null;

+        }

+        

+        propertyBean = (SandeshaPropertyBean) assertion;

+//

+//             RMPolicyProcessor processor = new RMPolicyProcessor();

+//

+//             try {

+//                     processor.setup();

+//             } catch (NoSuchMethodException e) {

+//                     throw new SandeshaException(e.getMessage());

+//             }

+//

+//             processor.processPolicy(policy);

+//

+//             RMProcessorContext ctx = processor.getContext();

+//             PolicyEngineData data = ctx.readCurrentPolicyEngineData();

+//

+//             if (data.isAcknowledgementIntervalSet())

+//                     
propertyBean.setAcknowledgementInterval(data.getAcknowledgementInterval());

+//             else

+//                     
propertyBean.setAcknowledgementInterval(parentPropertyBean.getAcknowledgementInterval());

+//

+//             if (data.isExponentialBackoffSet())

+//                     
propertyBean.setExponentialBackoff(data.isExponentialBackoff());

+//             else

+//                     
propertyBean.setExponentialBackoff(parentPropertyBean.isExponentialBackoff());

+//

+//             // Inactivity timeout given in the policy will affect only if 
it gives

+//             // both the measure and the value.

+//             // Otherwise value will be taken from the parent.

+//             if (data.isInactivityTimeoutSet() && 
data.isInactivityTimeoutMeassureSet())

+//                     
propertyBean.setInactiveTimeoutInterval(data.getInactivityTimeout(), 
data.getInactivityTimeoutMeassure());

+//             else

+//                     
propertyBean.setInactiveTimeoutInterval(parentPropertyBean.getInactiveTimeoutInterval());

+//

+//             if (data.isInvokeInOrderSet())

+//                     propertyBean.setInOrder(data.isInvokeInOrder());

+//             else

+//                     propertyBean.setInOrder(parentPropertyBean.isInOrder());

+//

+//             if (data.isMaximumRetransmissionCountSet())

+//                     
propertyBean.setMaximumRetransmissionCount(data.getMaximumRetransmissionCount());

+//             else

+//                     
propertyBean.setMaximumRetransmissionCount(parentPropertyBean.getMaximumRetransmissionCount());

+//

+//             if (data.isRetransmissionIntervalSet())

+//                     
propertyBean.setRetransmissionInterval(data.getRetransmissionInterval());

+//             else

+//                     
propertyBean.setRetransmissionInterval(parentPropertyBean.getRetransmissionInterval());

+//

+//             // if (data.isStorageManagerSet())

+//             // 
propertyBean.setStorageManagerClass(data.getStorageManager());

+//             // else

+//             // 
propertyBean.setStorageManagerClass(data.getStorageManager());

+//

+//             if (data.isInMemoryStorageManagerSet())

+//                     
propertyBean.setInMemoryStorageManagerClass(data.getInMemoryStorageManager());

+//             else

+//                     
propertyBean.setInMemoryStorageManagerClass(data.getInMemoryStorageManager());

+//

+//             if (data.isPermanentStorageManagerSet())

+//                     
propertyBean.setPermanentStorageManagerClass(data.getPermanentStorageManager());

+//             else

+//                     
propertyBean.setPermanentStorageManagerClass(data.getPermanentStorageManager());

+//

+//             if (data.isMessageTypesToDropSet())

+//                     loadMessageTypesToDrop(data.getMessageTypesToDrop(), 
propertyBean);

+//             else

+//                     
propertyBean.setMsgTypesToDrop(parentPropertyBean.getMsgTypesToDrop());

+//

+//             propertyBean.setSecurityManagerClass(data.getSecurityManager());

                

                return propertyBean;

        }


Modified: 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/SandeshaPropertyBean.java
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/SandeshaPropertyBean.java?view=diff&rev=448180&r1=448179&r2=448180
==============================================================================
--- 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/SandeshaPropertyBean.java
 (original)
+++ 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/SandeshaPropertyBean.java
 Wed Sep 20 05:00:49 2006
@@ -19,14 +19,22 @@
 

 import java.util.ArrayList;

 

-import org.apache.sandesha2.policy.RMPolicyBean;

+import javax.xml.namespace.QName;

+import javax.xml.stream.XMLStreamException;

+import javax.xml.stream.XMLStreamWriter;

+

+import org.apache.neethi.Assertion;

+import org.apache.neethi.Constants;

+import org.apache.neethi.PolicyComponent;

+import org.apache.sandesha2.Sandesha2Constants;

+import org.apache.sandesha2.policy1.RMPolicyBean;

 

 /**

  * Used to hold peoperties loaded from sandesha2.properties file or

  * Sandesha2Constants.

  */

 

-public class SandeshaPropertyBean {

+public class SandeshaPropertyBean implements Assertion {

 

        RMPolicyBean policyBean = new RMPolicyBean();

 

@@ -162,4 +170,28 @@
        public void setSecurityManagerClass(String className) {

                this.securityManagerClass = className;

        }

+

+    public QName getName() {

+        return Sandesha2Constants.Assertions.Q_ELEM__RMBEAN;

+    }

+

+    public boolean isOptional() {

+        return false;

+    }

+

+    public PolicyComponent normalize() {

+        throw new UnsupportedOperationException("TODO");

+    }

+

+    public void serialize(XMLStreamWriter writer) throws XMLStreamException {

+        throw new UnsupportedOperationException("TODO");

+    }

+

+    public boolean equal(PolicyComponent policyComponent) {

+        throw new UnsupportedOperationException("TODO");

+    }

+

+    public short getType() {

+        return Constants.TYPE_ASSERTION;

+    }

 }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to