Changeset 3496


Ignore:
Timestamp:
08/30/13 13:19:30 (11 years ago)
Author:
andmor
Message:

Access endpoint to retrive full users list.
Generalized schemas endpoint to be able to retrieve the full list of schemas.

Location:
cats/SCHEMAcat/trunk/urn.org.isocat.schemacat.access.data
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • cats/SCHEMAcat/trunk/urn.org.isocat.schemacat.access.data/access/schemas.dpml

    r3487 r3496  
    1515                        <literal type="xml">
    1616                                <query xmlns:sc="http://www.isocat.org/ns/schemacat">
    17                                         <sc:schemas>{ for $schema in //sc:schema[sc:owner/@ref = $userID] return $schema }</sc:schemas>
     17                                        <sc:schemas>{ for $schema in //sc:schema[if (normalize-space($userID)='') then (true()) else (sc:owner/@ref = $userID)] return $schema }</sc:schemas>
    1818                                </query>
    1919                        </literal>
  • cats/SCHEMAcat/trunk/urn.org.isocat.schemacat.access.data/module.xml

    r3487 r3496  
    4646               <grammar>
    4747                  <active>
    48                      <identifier>active:org.isocat.schemacat.access.data.user.schemas</identifier>                     
    49                      <argument name="userID" min="1" max="1"/>
     48                     <identifier>active:org.isocat.schemacat.access.data.users</identifier>                     
     49                  </active>
     50               </grammar>
     51               <request>
     52                  <identifier>active:sloot.dpml</identifier>
     53                  <argument name="operator">res:/access/users.dpml</argument>
     54               </request>
     55            </endpoint>
     56            <endpoint>
     57               <grammar>
     58                  <active>
     59                     <identifier>active:org.isocat.schemacat.access.data.schemas</identifier>                     
     60                     <argument name="userID" min="0" max="1"/>
    5061                  </active>
    5162               </grammar>
Note: See TracChangeset for help on using the changeset viewer.