API XML Object Mappings
When using the API, the Class' "id" is used in the transaction item, and the id is then mapped to a class by the service.
See the latest version in Subversion:
http://svn.teamelements.com/iteam/trunk/src/resources/object_map.xml
Example...
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <api> <mappings> <!-- User --> <map class="com.zeroio.controller.User" id="user"> <property alias="guid">id</property> </map> <map class="com.zeroio.controller.UserList" id="userList"/> <!-- Lookup Lists --> <map class="org.aspcfs.utils.web.CustomLookupList" id="lookupProjectRoleList" table="lookup_project_role" uniqueField="code"> <property alias="guid" field="code">id</property> <property field="description">description</property> <property field="default_item">defaultItem</property> <property field="level">level</property> <property field="enabled">enabled</property> <property field="group_id">groupId</property> </map> <!-- Project --> <map class="com.zeroio.iteam.base.Project" id="project"> <property alias="guid">id</property> </map> <map class="com.zeroio.iteam.base.ProjectFeatures" id="projectFeatures" note="updates only" /> <map class="com.zeroio.iteam.base.ProjectList" id="projectList"/> <!-- Permission List --> <map class="com.zeroio.iteam.base.Permission" id="projectPermission"> <property alias="guid">id</property> </map> <map class="com.zeroio.iteam.base.PermissionList" id="projectPermissionList"/> <!-- Team Member --> <map class="com.zeroio.iteam.base.TeamMember" id="teamMember"/> <map class="com.zeroio.iteam.base.TeamMemberList" id="teamMemberList"/> <!-- News Article --> <map class="com.zeroio.iteam.base.NewsArticle" id="newsArticle"> <property alias="guid">id</property> </map> <map class="com.zeroio.iteam.base.NewsArticleList" id="newsArticleList"/> <!-- Wiki --> <map class="com.zeroio.iteam.base.Wiki" id="wiki"> <property alias="guid">id</property> </map> <map class="com.zeroio.iteam.base.WikiList" id="wikiList"/> <!-- HTPasswd --> <map class="com.zeroio.controller.base.HTPasswd" id="htpasswd"/> <map class="com.zeroio.controller.base.HTPasswdList" id="htpasswdList"/> <!-- Services --> <map class="com.zeroio.iteam.services.BackupService" id="backupService" /> </mappings> </api>
Sign in to add your comment.