OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

provision message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Relationship Examples from the F2F


Here are the relationship examples we kicked around at the F2F. Keep in mind that these are intended to be illustrative and not exact:

 

Create an account with memberOf and owner references

 

 

 

<addRequest>

            <container...

            <parameters><email>joebob@pigstickers.com</email></parameters>

            <reference name="memberOf">

                        <identifier ID="operators">

                        <parameter><operator admin="false"></parameter>

            </reference>

            <reference name="owner">

                        <identifier ID="joebob">

            </reference>

 

</addRequest>

 

<addResponse>

            <identifier ID = "account1">

</addRequest>

 

 

Remove the specified owner

 

<modifyRequest>

            <identifier ID = "account1">

            <modification modificationType = delete>

                        <reference name="owner">

                                    <identifier ID = "joebob">

                        </reference>

            </modification>

</modifyRequest>

 

Remove the all owners

 

<modifyRequest>

            <identifier ID = "account1">

            <modification modificationType = delete>

                        <reference name="owner" /> 

            </modification>

</modifyRequest>

 

Change owner to billybob (cardinality > 1)

 

<modifyRequest>

            <identifier ID = "account1">

            <modification modificationType = add>

                        <reference name="owner">

                                    <identifier ID = "billybob">

                        </reference>

            </modification>

            <modification modificationType = delete>

                        <reference name="owner">

                                    <identifier ID = "joebob">

                        </reference>

            </modification>

</modifyRequest>

 

 

Change owner to billybob (cardinality = 1)

 

<modifyRequest>

            <identifier ID = "account1">

            <modification modificationType = replace>

                        <reference name="owner">

                                    <identifier ID = "joebob">

                        </reference>

            </modification>

</modifyRequest>

 

 

 

Method where PSOs are used to represent reference attributes

 

Change the billybob to admin rights

 

<modifyRequest>

            <identifier ID = "account1-memberOf-operators">

            <modification modificationType = replace>

                        <parameter><operator admin="true"></parameter>

            </modification>

</modifyRequest>

 

 

 

Set the expiration date to the member of

 

 

<modifyRequest>

            <identifier ID = "account1-memberOf-operators">

            <modification modificationType = replace>

                        <<parameter><expiration>20041021</expiration></parameter>

            </modification>

</modifyRequest>

 

 

 

Method where PSOs are not used to represent reference attributes

 

 

 

 

 

Change the billybob to admin rights on where

 

<modifyRequest>

            <identifier ID = "account1">

            <modification modificationType = replace>

                        <reference name="memberOf">

                                    <identifier ID = "operators">

                                    <parameter><operator admin="true"></parameter>

                        </reference>

            </modification>

</modifyRequest>

 

Set the expiration date to the member of

 

<modifyRequest>

            <identifier ID = "account1">

            <modification modificationType = replace>

                        <reference name="memberOf">

                                    <identifier ID = "operators">

                                    <parameter><expiration>20041021</expiration></parameter>

                        </reference>

                        <parameter...

            </modification>

</modifyRequest>

 

 

 

 

Deference the owner

 

<lookupRequest>

            <identifier ID = "account1">

</lookupRequest>

 

<lookupResponse>

            <pso>

                        <identifier ID = "account1">

                        <email>joebob@pigstickers.com</email>

                        <reference name="memberOf">

                                    <identifier ID="operators">

                                    <parameter><operator admin="false"></parameter>

                        </reference>

                        <reference name="owner">

                                    <identifier ID="joebob">

                        </reference>

            </pso>

</lookupResponse>

 

 

Search for the owner and get the email and memberOf info

 

<searchRequest scope="object">

            <base>

                        <identifier ID = "account1">

            </base>

            <query>

                        <select path="...">

                        </select>         

            </query>

           

            <reference name="memberOf">

 

</searchRequest>

 

<searchResponse>

            <pso>

                        <identifier ID = "account1">

                        <email>joebob@pigstickers.com</email>

                        <reference name="memberOf">

                                    <identifier ID="operators">

                                    <parameter><operator admin="false"></parameter>

                        </reference>

            </pso>

 

</searchResponse>

 

Select all accounts that are members of operators and have an email address in pigstickers.com

 

 

<searchRequest scope="object">

            <base>

                        <identifier ID = "account1">

            </base>

            <query>

                        <and>

                                    <select path="..."/> <-- XPath for email -->

                                    <selectreference>

                                                <reference name="memberOf">

                                                            <identifier ID="operators">

                                                </reference>

                                    </selectreference>

                        </and> 

            </query>

           

            <reference name="memberOf">

            <reference name="owner">

 

</searchRequest>

 

 

 

 

Jeff Bohren

Product Architect

OpenNetwork Technologies, Inc

 

Try the industry's only 100% .NET-enabled identity management software. Download your free copy of Universal IdP Standard Edition today. Go to www.opennetwork.com/eval.

 

 

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]