<?xml version="1.0" encoding="UTF-8"?>

<page-set
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_2 http://www.gatein.org/xml/ns/gatein_objects_1_2"
    xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_2">

    <page>
      <name>search-addon</name>
      <title>Market Place</title>
      <access-permissions>*:/platform/users</access-permissions>
      <edit-permission>*:/platform/administrators</edit-permission>
      <show-max-window>false</show-max-window>
      <portlet-application>
         <portlet>
            <application-ref>marketplace-extension-webapp</application-ref>
            <portlet-ref>AddonSearchPortlet</portlet-ref>
         </portlet>
         <access-permissions>Everyone</access-permissions>
         <show-info-bar>false</show-info-bar>
      </portlet-application>
    </page>

    <page>
      <name>create-addon</name>
      <title>Share Add-on</title>
      <access-permissions>*:/platform/users</access-permissions>
      <edit-permission>*:/platform/administrators</edit-permission>
      <show-max-window>false</show-max-window>
      <portlet-application>
         <portlet>
            <application-ref>marketplace-extension-webapp</application-ref>
            <portlet-ref>AddOnPortlet</portlet-ref>
         </portlet>
         <access-permissions>Everyone</access-permissions>
         <show-info-bar>false</show-info-bar>
      </portlet-application>
    </page>    

    <page>
		  <name>addon-detail</name>
		  <title>Add-on Detail</title>
		  <access-permissions>*:/platform/users</access-permissions>
		  <edit-permission>*:/platform/administrators</edit-permission>
		  <portlet-application>
          <portlet>
            <application-ref>presentation</application-ref>
            <portlet-ref>SingleContentViewer</portlet-ref>
            <preferences>
              <preference>
                <name>ContextEnable</name>
                <value>true</value>
                <read-only>false</read-only>
              </preference>
              <preference>
                <name>ShowTitle</name>
                <value>false</value>
                <read-only>false</read-only>
              </preference>              
            </preferences>
          </portlet>
          <title>Add-on Detail</title>
          <access-permissions>*:/platform/users</access-permissions>
          <show-info-bar>false</show-info-bar>
          <show-application-state>false</show-application-state>
          <show-application-mode>false</show-application-mode>
        </portlet-application>
	  </page>
    <page>
        <name>manage-categories</name>
        <title>Manage Categories</title>
        <access-permissions>manager:/platform/administrators</access-permissions>
        <edit-permission>*:/platform/administrators</edit-permission>
        <show-max-window>false</show-max-window>
        <portlet-application>
            <portlet>
                <application-ref>marketplace-extension-webapp</application-ref>
                <portlet-ref>CategoryManagementApplication</portlet-ref>
            </portlet>
            <access-permissions>manager:/platform/administrators</access-permissions>
            <show-info-bar>false</show-info-bar>
            <show-application-state>false</show-application-state>
            <show-application-mode>false</show-application-mode>
        </portlet-application>
    </page>
</page-set>
