| 1 | <?xml version="1.0" encoding="UTF-8"?>
|
|---|
| 2 | <service id="data-service"
|
|---|
| 3 | class="flex.data.DataService"
|
|---|
| 4 | messageTypes="flex.data.messages.DataMessage">
|
|---|
| 5 |
|
|---|
| 6 | <adapters>
|
|---|
| 7 | <adapter-definition id="coldfusion-dao" class="coldfusion.flex.CFDataServicesAdapter" default="true"/>
|
|---|
| 8 | <adapter-definition id="actionscript" class="flex.data.adapters.ASObjectAdapter" />
|
|---|
| 9 | <adapter-definition id="java-dao" class="flex.data.adapters.JavaAdapter"/>
|
|---|
| 10 | </adapters>
|
|---|
| 11 |
|
|---|
| 12 | <!-- ======================================== -->
|
|---|
| 13 | <!-- ColdFusion - Contact sample application -->
|
|---|
| 14 | <!-- ======================================== -->
|
|---|
| 15 | <destination id="waypoint">
|
|---|
| 16 | <adapter ref="coldfusion-dao" />
|
|---|
| 17 | <channels>
|
|---|
| 18 | <channel ref="cf-rtmp" />
|
|---|
| 19 | </channels>
|
|---|
| 20 | <properties>
|
|---|
| 21 | <component>WaypointSync.cfc.WaypointAssembler</component>
|
|---|
| 22 | <scope>request</scope>
|
|---|
| 23 | <use-accessors>true</use-accessors>
|
|---|
| 24 | <use-structs>false</use-structs>
|
|---|
| 25 | <access>
|
|---|
| 26 | <method-access-level>remote</method-access-level>
|
|---|
| 27 | </access>
|
|---|
| 28 | <property-case>
|
|---|
| 29 | <force-cfc-lowercase>false</force-cfc-lowercase>
|
|---|
| 30 | <force-query-lowercase>false</force-query-lowercase>
|
|---|
| 31 | <force-struct-lowercase>false</force-struct-lowercase>
|
|---|
| 32 | </property-case>
|
|---|
| 33 | <metadata>
|
|---|
| 34 | <identity property="id"/>
|
|---|
| 35 | <query-row-type>WaypointSync.cfc.Waypoint</query-row-type>
|
|---|
| 36 | </metadata>
|
|---|
| 37 | <network>
|
|---|
| 38 | </network>
|
|---|
| 39 | <server>
|
|---|
| 40 | <fill-method>
|
|---|
| 41 | <use-fill-contains>false</use-fill-contains>
|
|---|
| 42 | <auto-refresh>true</auto-refresh>
|
|---|
| 43 | <ordered>true</ordered>
|
|---|
| 44 | </fill-method>
|
|---|
| 45 | </server>
|
|---|
| 46 | </properties>
|
|---|
| 47 | </destination>
|
|---|
| 48 | <destination id="cfcontact">
|
|---|
| 49 | <!--
|
|---|
| 50 | Use the ColdFusion adapter for any CF specific destinations
|
|---|
| 51 | -->
|
|---|
| 52 | <adapter ref="coldfusion-dao"/>
|
|---|
| 53 |
|
|---|
| 54 | <!--
|
|---|
| 55 | Use the ColdFusion configured channels which have
|
|---|
| 56 | the instantiate-types flag set to false.
|
|---|
| 57 | -->
|
|---|
| 58 | <channels>
|
|---|
| 59 | <channel ref="cf-polling-amf"/>
|
|---|
| 60 | </channels>
|
|---|
| 61 |
|
|---|
| 62 | <properties>
|
|---|
| 63 | <!-- The component name or path on the CF server -->
|
|---|
| 64 | <component>samples.contact.ContactAssembler</component>
|
|---|
| 65 |
|
|---|
| 66 | <!-- Either "application" or "request" -->
|
|---|
| 67 | <scope>request</scope>
|
|---|
| 68 |
|
|---|
| 69 | <!--
|
|---|
| 70 | Should we look for "getFoo" or "setFoo" when translating an
|
|---|
| 71 | ActionScript object to a CFC? If not found, the value is set in the
|
|---|
| 72 | "this" scope. If your CFCs don't have getters and setters,
|
|---|
| 73 | (they use the this scope) set this to false for better performance.
|
|---|
| 74 | Optional, Default is true - look for accessor functions.
|
|---|
| 75 | -->
|
|---|
| 76 | <use-accessors>true</use-accessors>
|
|---|
| 77 |
|
|---|
| 78 | <!--
|
|---|
| 79 | Should we create CFML Structures instead of value objects
|
|---|
| 80 | when translating an ActionScript object with a remote alias?
|
|---|
| 81 | Optional, Default is false (use CFCs)
|
|---|
| 82 | -->
|
|---|
| 83 | <use-structs>false</use-structs>
|
|---|
| 84 |
|
|---|
| 85 |
|
|---|
| 86 | <!--
|
|---|
| 87 | The hostname or IP address of the CF host.
|
|---|
| 88 | If Data Services is installed as part of CF, you omit this.
|
|---|
| 89 | If Data Services runs outside of CF, you must define this.
|
|---|
| 90 |
|
|---|
| 91 | <hostname>localhost</hostname>
|
|---|
| 92 | -->
|
|---|
| 93 |
|
|---|
| 94 | <!--
|
|---|
| 95 | This is the ID of the ColdFusion Data Management service as configured
|
|---|
| 96 | in the ColdFusion Administrator.
|
|---|
| 97 | Only needed if you have more than one instance of CF on a machine
|
|---|
| 98 | and Data Services is not installed as part of CF.
|
|---|
| 99 |
|
|---|
| 100 | <identity>default</identity>
|
|---|
| 101 | -->
|
|---|
| 102 |
|
|---|
| 103 | <!--
|
|---|
| 104 | Credentials to pass to the assembler CFC for all clients
|
|---|
| 105 | Generally better to use setRemoteCredentials() API on client
|
|---|
| 106 |
|
|---|
| 107 | <remote-username></remote-username>
|
|---|
| 108 | <remote-password></remote-password>
|
|---|
| 109 | -->
|
|---|
| 110 |
|
|---|
| 111 | <!-- Define the resolution rules and access level of the cfc being invoked -->
|
|---|
| 112 | <access>
|
|---|
| 113 | <!-- allow "public" (and remote) or just "remote" methods to be invoked -->
|
|---|
| 114 | <method-access-level>remote</method-access-level>
|
|---|
| 115 | </access>
|
|---|
| 116 |
|
|---|
| 117 | <!-- Optional controls for forcing property names to lowercase when converting to ActionScript -->
|
|---|
| 118 | <property-case>
|
|---|
| 119 | <!-- cfc property names -->
|
|---|
| 120 | <force-cfc-lowercase>false</force-cfc-lowercase>
|
|---|
| 121 |
|
|---|
| 122 | <!-- Query column names -->
|
|---|
| 123 | <force-query-lowercase>false</force-query-lowercase>
|
|---|
| 124 |
|
|---|
| 125 | <!-- struct keys -->
|
|---|
| 126 | <force-struct-lowercase>false</force-struct-lowercase>
|
|---|
| 127 | </property-case>
|
|---|
| 128 |
|
|---|
| 129 | <metadata>
|
|---|
| 130 | <identity property="contactId"/>
|
|---|
| 131 | <!--
|
|---|
| 132 | Optional, If the Assembler fill routine returns a query,
|
|---|
| 133 | you must define an Actionscript type for the rows.
|
|---|
| 134 | -->
|
|---|
| 135 | <query-row-type>samples.contact.Contact</query-row-type>
|
|---|
| 136 | </metadata>
|
|---|
| 137 |
|
|---|
| 138 | <network>
|
|---|
| 139 | <!-- Add network elements here -->
|
|---|
| 140 | </network>
|
|---|
| 141 |
|
|---|
| 142 | <server>
|
|---|
| 143 | <!--
|
|---|
| 144 | The method declarations are ignored for CFC Assemblers,
|
|---|
| 145 | with the exception of the fill-method settings.
|
|---|
| 146 | No parameters are defined here, unlike Java.
|
|---|
| 147 | Any arguments provided via the AS call are passed along to the CFC,
|
|---|
| 148 | just use optional arguments when defining the CFC.
|
|---|
| 149 | -->
|
|---|
| 150 | <fill-method>
|
|---|
| 151 | <!--
|
|---|
| 152 | Does the assembler have a "fill-contains" method?
|
|---|
| 153 | This method is used to determine whether to refresh the fill.
|
|---|
| 154 | If the specified method returns true the fill is re-executed
|
|---|
| 155 | after a create or update.
|
|---|
| 156 | Auto-refresh determines if the fill is always refreshed if not specified.
|
|---|
| 157 | May only be used when auto-refresh is true.
|
|---|
| 158 | Optional. Default is false.
|
|---|
| 159 | -->
|
|---|
| 160 | <use-fill-contains>false</use-fill-contains>
|
|---|
| 161 | <!--
|
|---|
| 162 | Determines whether to refresh the fill on updates or creates.
|
|---|
| 163 | Optional. Default value is true.
|
|---|
| 164 | -->
|
|---|
| 165 | <auto-refresh>true</auto-refresh>
|
|---|
| 166 |
|
|---|
| 167 | <!--
|
|---|
| 168 | Determines whether order is important for this filled collection. Allows for
|
|---|
| 169 | performance optimization when order is not important.
|
|---|
| 170 | Optional. Default value is true.
|
|---|
| 171 | -->
|
|---|
| 172 | <ordered>true</ordered>
|
|---|
| 173 | </fill-method>
|
|---|
| 174 | </server>
|
|---|
| 175 | </properties>
|
|---|
| 176 | </destination>
|
|---|
| 177 |
|
|---|
| 178 |
|
|---|
| 179 | </service>
|
|---|