<?xml version="1.0" encoding="UTF-8" ?>
    <prefix>
      <prefix>roster</prefix>
      <describeURL>/direct/roster/describe</describeURL>
      <summary>Represents roster of a site.</summary>
      <customActions>
        <customAction>
          <action>site</action>
          <url>/direct/roster/site</url>
          <method>GET</method>
          <viewKey>list</viewKey>
          <description>Retrieve list of members for a site. The request url pattern: /direct/roster/site/{siteId}.{format} You can choose to retrieve the official image for user by setting officialImages=true in the request URL.</description>
        </customAction>
      </customActions>
      <customActions>
        <customAction>
          <action>group</action>
          <url>/direct/roster/group</url>
          <method>GET</method>
          <viewKey>list</viewKey>
          <description>Retrieve list of members for a group. The request url pattern: /direct/roster/group/{siteId}/{groupId/groupName}.{format} You can choose to retrieve the official image for user by setting officialImages=true in the request URL.</description>
        </customAction>
      </customActions>
      <outputFormats>
        <format>xml</format>
        <format>json</format>
       </outputFormats>
      <inputFormats>
       </inputFormats>
      <entityClass>
        <class>org.sakaiproject.profile2.tool.entityprovider.RosterEntityProvider$RosterItem</class>
        <type>bean</type>
        <fields>
          <field>
            <name>displayName</name>
            <type>java.lang.String</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
          <field>
            <name>imageUrl</name>
            <type>java.lang.String</type>
            <readable>true</readable>
            <writeable>true</writeable>
          </field>
        </fields>
      </entityClass>
      <redirects>
        <redirect>
          <template>/{prefix}/user/{id}</template>
          <methodName>redirectUserAccount</methodName>
          <description>Gets a user's profile via the /profile/ entity provider</description>
          <controllable>false</controllable>
          <order>0</order>
        </redirect>
      </redirects>
      <capabilities>
        <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>AutoRegisterEntityProvider</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.AutoRegisterEntityProvider</type>
        </capability>
        <capability>
          <name>Describeable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Describeable</type>
        </capability>
        <capability>
          <name>Outputable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Outputable</type>
        </capability>
        <capability>
          <name>Redirectable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Redirectable</type>
        </capability>
        <capability>
          <name>Sampleable</name>
          <type>org.sakaiproject.entitybroker.entityprovider.capabilities.Sampleable</type>
        </capability>
      </capabilities>
    </prefix>
