[Wsf-general] data services and resources

sumedha rubasinghe sumedha at wso2.com
Tue Mar 13 23:15:05 PDT 2007


1. IMHO we also need to consider content filtering based on given 
parameters / logged in user credentials.

eg. A customer should only see orders placed by himself only.


2. Just my 2 cents on following statement.
"The database administrator will create a configuration file [xml] with 
the needed details for exposing the required data in the database."

<databases>
 <database name="xs:NMTOKEN">
  <resource type="TABLE | VIEW | STORED-PROCEDURE | FUNCTION" 
name="xs:NMTOKEN">
    <operation name="SELECT | UPDATE | DELETE | UPDATE">
       <allowed>
          <role></role>+
       <allowed>
    </operation>
  <resource>
 <database>
</databases>


*Example.....*

<databases>
 <database name="orderdb">
  <resource type="TABLE" name="customers">
    <operation="select">
    <allowed>
        <role>admin</role>
        <role>guest</role>
        <role>general</role>
    </allowed>
    </operation>
  <resource>
 <database>
</databases>


/sumedha




Sanjiva Weerawarana wrote:
> FYI I've kept on tweaking and editing it .. sorry if u read it already.
>
> Sanjiva.
>
> Sanjiva Weerawarana wrote:
>> Hi .. last week I spent some time with the data services guys and 
>> discussed ways of fixing and finalizing the data services descriptor. 
>> I've thought thru this more and believe we now have enough to handle 
>> all the scenarios James brought up and more. I need to do some 
>> examples (and to complete the resource part and deal with UPDATE etc. 
>> queries) but please take a look and comment.
>>
>> See: http://www.wso2.org/wiki/display/wsf/Data+Services+and+Resources
>>
>> I've borrowed quite a bit from WADL etc. but there's ways to go yet. 
>> Everyone please review.
>>
>> I'd *really* like to get a first cut of the data services stuff done 
>> (with this lang cleaned up) by the end of the month!
>>
>> Sanjiva.
>





More information about the Wsf-general mailing list