You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2009/11/01 18:16:12 UTC
svn commit: r831711 - in /webservices/axis2/trunk/c/neethi:
include/axis2_rm_assertion.h include/axis2_rm_assertion_builder.h
src/rmpolicy/rm_assertion.c src/rmpolicy/rm_assertion_builder.c
Author: damitha
Date: Sun Nov 1 17:16:11 2009
New Revision: 831711
URL: http://svn.apache.org/viewvc?rev=831711&view=rev
Log:
Adding version infomation into the policy property bean
Modified:
webservices/axis2/trunk/c/neethi/include/axis2_rm_assertion.h
webservices/axis2/trunk/c/neethi/include/axis2_rm_assertion_builder.h
webservices/axis2/trunk/c/neethi/src/rmpolicy/rm_assertion.c
webservices/axis2/trunk/c/neethi/src/rmpolicy/rm_assertion_builder.c
Modified: webservices/axis2/trunk/c/neethi/include/axis2_rm_assertion.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/include/axis2_rm_assertion.h?rev=831711&r1=831710&r2=831711&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/include/axis2_rm_assertion.h (original)
+++ webservices/axis2/trunk/c/neethi/include/axis2_rm_assertion.h Sun Nov 1 17:16:11 2009
@@ -243,6 +243,17 @@
const axutil_env_t * env,
axis2_char_t* sandesha2_db);
+ AXIS2_EXTERN axis2_char_t* AXIS2_CALL
+ axis2_rm_assertion_get_spec_version(
+ axis2_rm_assertion_t *rm_assertion,
+ const axutil_env_t * env);
+
+ AXIS2_EXTERN axis2_status_t AXIS2_CALL
+ axis2_rm_assertion_set_spec_version(
+ axis2_rm_assertion_t *rm_assertion,
+ const axutil_env_t * env,
+ axis2_char_t* spec_version);
+
AXIS2_EXTERN axis2_rm_assertion_t* AXIS2_CALL
axis2_rm_assertion_get_from_policy(
const axutil_env_t *env,
Modified: webservices/axis2/trunk/c/neethi/include/axis2_rm_assertion_builder.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/include/axis2_rm_assertion_builder.h?rev=831711&r1=831710&r2=831711&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/include/axis2_rm_assertion_builder.h (original)
+++ webservices/axis2/trunk/c/neethi/include/axis2_rm_assertion_builder.h Sun Nov 1 17:16:11 2009
@@ -32,6 +32,8 @@
extern "C"
{
#endif
+ #define RM_SPEC_VERSION_1_0 "Spec_2005_02"
+ #define RM_SPEC_VERSION_1_1 "Spec_2007_02"
AXIS2_EXTERN neethi_assertion_t *AXIS2_CALL
axis2_rm_assertion_builder_build(
Modified: webservices/axis2/trunk/c/neethi/src/rmpolicy/rm_assertion.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/src/rmpolicy/rm_assertion.c?rev=831711&r1=831710&r2=831711&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/src/rmpolicy/rm_assertion.c (original)
+++ webservices/axis2/trunk/c/neethi/src/rmpolicy/rm_assertion.c Sun Nov 1 17:16:11 2009
@@ -44,6 +44,7 @@
axis2_char_t *polling_wait_time;
axis2_char_t *terminate_delay;
axis2_char_t *sandesha2_db;
+ axis2_char_t *spec_version;
};
AXIS2_EXTERN axis2_rm_assertion_t *AXIS2_CALL
@@ -83,6 +84,7 @@
rm_assertion->polling_wait_time = NULL;
rm_assertion->terminate_delay = NULL;
rm_assertion->sandesha2_db = NULL;
+ rm_assertion->spec_version = NULL;
return rm_assertion;
}
@@ -447,6 +449,25 @@
return AXIS2_SUCCESS;
}
+AXIS2_EXTERN axis2_char_t* AXIS2_CALL
+axis2_rm_assertion_get_spec_version(
+ axis2_rm_assertion_t *rm_assertion,
+ const axutil_env_t * env)
+{
+ return rm_assertion->spec_version;
+}
+
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+axis2_rm_assertion_set_spec_version(
+ axis2_rm_assertion_t *rm_assertion,
+ const axutil_env_t * env,
+ axis2_char_t* spec_version)
+{
+ rm_assertion->spec_version = spec_version;
+
+ return AXIS2_SUCCESS;
+}
+
AXIS2_EXTERN axis2_rm_assertion_t* AXIS2_CALL
axis2_rm_assertion_get_from_policy(
const axutil_env_t *env,
Modified: webservices/axis2/trunk/c/neethi/src/rmpolicy/rm_assertion_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/src/rmpolicy/rm_assertion_builder.c?rev=831711&r1=831710&r2=831711&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/src/rmpolicy/rm_assertion_builder.c (original)
+++ webservices/axis2/trunk/c/neethi/src/rmpolicy/rm_assertion_builder.c Sun Nov 1 17:16:11 2009
@@ -172,6 +172,8 @@
/* In rm 1.0 it is just child elements which inside
* rm_assertion contains all the properties. */
+
+ status = axis2_rm_assertion_set_spec_version(rm_assertion, env, RM_SPEC_VERSION_1_0);
children_iter = axiom_element_get_children(rm_assertion_element, env, rm_assertion_node);
if(children_iter)
@@ -301,6 +303,8 @@
axis2_status_t status = AXIS2_FAILURE;
axiom_node_t *child_node = NULL;
axiom_element_t *child_element = NULL;
+
+ status = axis2_rm_assertion_set_spec_version(rm_assertion, env, RM_SPEC_VERSION_1_1);
child_node = axiom_node_get_first_element(rm_assertion_node, env);
if(child_node)