<?xml version="1.0" encoding="UTF-8" ?>
    <prefix>
      <prefix>poll</prefix>
      <describeURL>/direct/poll/describe</describeURL>
      <summary><b>Deprecated. Use polls entity provider.</b> Represents a poll (single item survey) and optionally the votes (responses) to the poll and options (choices)</summary>
      <collectionURL>/poll</collectionURL>
      <collectionDescription><b>Deprecated. Use polls entity provider.</b> Gets all the polls that the current user can take in all sites, limit to a specific site using 'siteId' or 'siteReference', switch to the polls a user can control (administrate) using 'admin' (boolean) set to true</collectionDescription>
      <createURL>/poll/new</createURL>
      <createDescription><b>Deprecated. Use polls entity provider.</b></createDescription>
      <showURL>/poll/:ID:</showURL>
      <showDescription><b>Deprecated. Use polls entity provider.</b> Gets a single poll by the pollId (the long, not the UUID string), returns only the poll itself by default, add in the options using 'includeOptions' (boolean), add in the votes using 'includeVotes' (boolean)</showDescription>
      <updateURL>/poll/:ID:/edit</updateURL>
      <updateDescription><b>Deprecated. Use polls entity provider.</b></updateDescription>
      <deleteURL>/poll/:ID:/delete</deleteURL>
      <deleteDescription><b>Deprecated. Use polls entity provider.</b></deleteDescription>
      <outputFormats>
        <format>xml</format>
        <format>json</format>
       </outputFormats>
      <inputFormats>
        <format>xml</format>
        <format>json</format>
        <format>html</format>
       </inputFormats>
      <entityClass>
        <class>org.sakaiproject.poll.model.Poll</class>
        <type>bean</type>
        <fields>
          <field>
            <name>creationDate</name>
            <type>java.util.Date</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>currentUserVoted</name>
            <type>boolean</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>description</name>
            <type>java.lang.String</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>details</name>
            <type>java.lang.String</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>displayResult</name>
            <type>java.lang.String</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>id</name>
            <type>java.lang.String</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>isPublic</name>
            <type>java.lang.Boolean</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>limitVoting</name>
            <type>java.lang.Boolean</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>maxOptions</name>
            <type>int</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>minOptions</name>
            <type>int</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>options</name>
            <type>java.util.List</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>owner</name>
            <type>java.lang.String</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>pollId</name>
            <type>java.lang.Long</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>properties</name>
            <type>org.sakaiproject.entity.api.ResourceProperties</type>
            <readable>true</readable>
            <writeable>false</writeable>
          </field>
          <field>
            <name>reference</name>
            <type>java.lang.String</type>
            <readable>true</readable>
            <writeable>false</writeable>
          </field>
          <field>
            <name>siteId</name>
            <type>java.lang.String</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>text</name>
            <type>java.lang.String</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>url</name>
            <type>java.lang.String</type>
            <readable>true</readable>
            <writeable>false</writeable>
          </field>
          <field>
            <name>voteClose</name>
            <type>java.util.Date</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>voteCloseStr</name>
            <type>java.lang.String</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>voteOpen</name>
            <type>java.util.Date</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>voteOpenStr</name>
            <type>java.lang.String</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>votes</name>
            <type>java.util.List</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
        </fields>
      </entityClass>
      <redirects>
        <redirect>
          <template>/{prefix}/{pollId}/vote</template>
          <outgoingTemplate>/direct/poll-vote{dot-extension}</outgoingTemplate>
          <description><b>Deprecated. Use polls entity provider.</b> Gets all the votes for a specific poll</description>
          <controllable>false</controllable>
          <order>0</order>
        </redirect>
        <redirect>
          <template>/{prefix}/{pollId}/option</template>
          <outgoingTemplate>/direct/poll-option{dot-extension}</outgoingTemplate>
          <description><b>Deprecated. Use polls entity provider.</b> Gets all the options for a specific poll</description>
          <controllable>false</controllable>
          <order>1</order>
        </redirect>
        <redirect>
          <template>/{prefix}/site/{siteId}</template>
          <outgoingTemplate>/direct/{prefix}{dot-extension}</outgoingTemplate>
          <description><b>Deprecated. Use polls entity provider.</b> Gets all the polls the current user can take in the given site</description>
          <controllable>false</controllable>
          <order>2</order>
        </redirect>
      </redirects>
      <capabilities>
        <capability>
          <name>CoreEntityProvider</name>
          <type>org.sakaiproject.entitybroker.entityprovider.CoreEntityProvider</type>
        </capability>
        <capability>
          <name>EntityProvider</name>
          <type>org.sakaiproject.entitybroker.entityprovider.EntityProvider</type>
        </capability>
        <capability>
          <name>ActionsExecutable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.ActionsExecutable</type>
        </capability>
        <capability>
          <name>CRUDable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.CRUDable</type>
        </capability>
        <capability>
          <name>CollectionResolvable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.CollectionResolvable</type>
        </capability>
        <capability>
          <name>Createable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Createable</type>
        </capability>
        <capability>
          <name>Deleteable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Deleteable</type>
        </capability>
        <capability>
          <name>Describeable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Describeable</type>
        </capability>
        <capability>
          <name>Inputable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Inputable</type>
        </capability>
        <capability>
          <name>Outputable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Outputable</type>
        </capability>
        <capability>
          <name>RESTful</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.RESTful</type>
        </capability>
        <capability>
          <name>RedirectDefinable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.RedirectDefinable</type>
        </capability>
        <capability>
          <name>Redirectable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Redirectable</type>
        </capability>
        <capability>
          <name>RequestStorable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.RequestStorable</type>
        </capability>
        <capability>
          <name>Resolvable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Resolvable</type>
        </capability>
        <capability>
          <name>Sampleable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Sampleable</type>
        </capability>
        <capability>
          <name>Saveable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Saveable</type>
        </capability>
        <capability>
          <name>Updateable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Updateable</type>
        </capability>
      </capabilities>
    </prefix>
