.content.xml 15.8 KB
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    jcr:primaryType="cq:Page">
    <jcr:content
        jcr:mixinTypes="[sling:VanityPath]"
        jcr:primaryType="nt:unstructured"
        jcr:title="AEM Screens | Schedule Dashboard"
        sling:redirect="{Boolean}false"
        sling:resourceType="screens/dcc/components/dashboard/page"
        sling:vanityOrder="{Long}1200"
        sling:vanityPath="/screens/dashboard/schedule"
        contentPath="${requestPathInfo.suffix}"
        omnisearchLocationPath="/libs/granite/omnisearch/content/metadata/screens"
        pageURITemplate="/screens/dashboard/schedule.html{+id}">
        <redirector
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/admin/contentchecker"
            allowed="^(/content/launches/.*)?(/content/screens|/content/screens/(.*))$"
            path="${requestPathInfo.suffix}"
            redirectWhenEmpty="/screens.html/content/screens"/>
        <head jcr:primaryType="nt:unstructured">
            <clientlibs
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/coral/foundation/includeclientlibs"
                categories="[granite.ui.coral.foundation,cq.screens.dcc,cq.screens.dcc.dashboard]"/>
        </head>
        <breadcrumbs
            jcr:primaryType="nt:unstructured"
            sling:resourceType="screens/dcc/components/datasources/breadcrumbs"
            parentPage="${granite:url(&quot;/screens.html&quot;)}"
            path="${requestPathInfo.suffix}"/>
        <actions jcr:primaryType="nt:unstructured">
            <primary jcr:primaryType="nt:unstructured"/>
            <secondary jcr:primaryType="nt:unstructured">
                <close
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                    action="foundation.link"
                    target=".screens-Schedule"
                    text="Close"
                    variant="quiet">
                    <data
                        jcr:primaryType="nt:unstructured"
                        href.uritemplate="${granite:concat(&quot;/screens.html&quot;, granite:encodeURIPath(granite:relativeParent(requestPathInfo.suffix, 1)))}"/>
                </close>
            </secondary>
        </actions>
        <content
            granite:class="screens-Dashboard screens-ScheduleDashboard"
            jcr:primaryType="nt:unstructured"
            sling:resourceType="screens/dcc/components/granite/dashboard">
            <items jcr:primaryType="nt:unstructured">
                <scheduleinfo
                    granite:class="screens-dashboard-Tile screens-dashboard-ScheduleInfoTile foundation-collection"
                    granite:rel="screens-Schedule"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/granite/dashboard/tile"
                    title="Schedule Information">
                    <actions jcr:primaryType="nt:unstructured">
                        <default jcr:primaryType="nt:unstructured">
                            <viewproperties
                                granite:rel="screens-dcc-actions-properties-activator screens-dcc-actions-Schedule-properties-activator"
                                granite:title="View schedule properties"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                                action="foundation.link"
                                icon="infoCircle"
                                target=".screens-Schedule"
                                text="Properties"
                                variant="actionBar">
                                <data
                                    jcr:primaryType="nt:unstructured"
                                    href.uritemplate="/screens/properties.html?item=${requestPathInfo.suffix}&amp;returnPage=/screens/dashboard/schedule.html${requestPathInfo.suffix}"/>
                            </viewproperties>
                        </default>
                    </actions>
                    <content
                        granite:class="screens-dashboard-Tile-content--spaced"
                        jcr:primaryType="nt:unstructured">
                        <scheduleinfo
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="screens/dcc/components/dashboard/scheduleinfo"/>
                    </content>
                </scheduleinfo>
                <channels
                    granite:class="screens-dashboard-Tile screens-dashboard-ScheduleChannelsTile"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/granite/dashboard/tile"
                    modeGroup="screens-dcc-collection-channels"
                    target=".screens-ChannelCollection"
                    title="Assigned Channels">
                    <actions jcr:primaryType="nt:unstructured">
                        <default jcr:primaryType="nt:unstructured">
                            <assignchanneltoggle
                                granite:rel="screens-dcc-actions-ChannelLink-create-activator"
                                granite:title="Assign a channel to the schedule"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                                action="foundation.dialog"
                                icon="add"
                                target=".screens-ChannelCollection"
                                text="Assign Channel"
                                variant="actionBar">
                                <data
                                    jcr:primaryType="nt:unstructured"
                                    nesting="hide"
                                    src.uritemplate="/mnt/overlay/screens/dcc/content/assignchanneldialog.html?item=${requestPathInfo.suffix}&amp;appendTo=/_jcr_content/"/>
                                <granite:rendercondition
                                    jcr:primaryType="nt:unstructured"
                                    sling:resourceType="granite/ui/components/coral/foundation/renderconditions/privilege"
                                    path="${requestPathInfo.suffix}"
                                    privileges="jcr:addChildNodes"/>
                            </assignchanneltoggle>
                        </default>
                        <selection jcr:primaryType="nt:unstructured">
                            <editChannel
                                granite:rel="screens-dcc-actions-edit-activator"
                                granite:title="Edit assigned channel"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                                action="cq.screens.dcc.openLink"
                                icon="edit"
                                target=".screens-ChannelCollection"
                                text="Edit Channel"
                                variant="actionBar">
                                <data
                                    jcr:primaryType="nt:unstructured"
                                    cookiePath.url="/"
                                    href.uritemplate="/bin/wcmcommand?cmd=open&amp;_charset_=utf-8&amp;path={item}"/>
                            </editChannel>
                            <edit
                                granite:rel="screens-dcc-actions-ChannelLink-edit-activator"
                                granite:title="Edit channel assignment"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                                action="foundation.dialog"
                                activeSelectionCount="single"
                                icon="infoCircle"
                                target=".screens-ChannelCollection"
                                text="Edit Assignment"
                                variant="actionBar">
                                <data
                                    jcr:primaryType="nt:unstructured"
                                    src.uritemplate="/mnt/overlay/screens/dcc/content/assignchanneldialog.html{+item}?item=${requestPathInfo.suffix}"/>
                            </edit>
                            <delete
                                granite:rel="screens-dcc-actions-delete-activator"
                                granite:title="Remove channel assignment"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                                action="cq.screens.dcc.delete"
                                icon="delete"
                                target=".screens-ChannelCollection"
                                text="Remove Assignment"
                                variant="actionBar">
                                <data
                                    jcr:primaryType="nt:unstructured"
                                    touchContainingPages="{Boolean}true"/>
                            </delete>
                        </selection>
                    </actions>
                    <content
                        granite:class="screens-dashboard-Tile-content--spaced"
                        jcr:primaryType="nt:unstructured">
                        <list
                            granite:rel="screens-ChannelCollection"
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/table"
                            layoutId="list"
                            limit="{Long}10"
                            modeGroup="screens-dcc-collection-channels"
                            path="${requestPathInfo.suffix}"
                            selectionMode="row"
                            size="${empty requestPathInfo.selectors[1] ? &quot;10&quot; : requestPathInfo.selectors[1]}"
                            sortMode="remote"
                            src="/mnt/overlay/screens/dcc/content/dashboard/schedule/jcr:content/content/items/channels/content/list{.offset,limit}.html{+id}{?sortName,sortDir}">
                            <columns jcr:primaryType="nt:unstructured">
                                <select
                                    jcr:primaryType="nt:unstructured"
                                    configurable="{Boolean}false"
                                    default="{Boolean}true"
                                    select="{Boolean}true"/>
                                <channel
                                    jcr:primaryType="nt:unstructured"
                                    jcr:title="Channel"
                                    sortable="{Boolean}true"/>
                                <role
                                    jcr:primaryType="nt:unstructured"
                                    jcr:title="Role"
                                    sortable="{Boolean}true"/>
                                <priority
                                    jcr:primaryType="nt:unstructured"
                                    jcr:title="Priority"
                                    sortable="{Boolean}true"/>
                                <schedule
                                    jcr:primaryType="nt:unstructured"
                                    jcr:title="Schedule"/>
                            </columns>
                            <datasource
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="screens/dcc/components/datasources/channels"
                                itemResourceType="screens/dcc/components/dashboard/assignmentlistrow"
                                limit="${empty requestPathInfo.selectors[1] ? &quot;11&quot; : requestPathInfo.selectors[1] + 1}"
                                offset="${empty requestPathInfo.selectors[0] ? &quot;0&quot; : requestPathInfo.selectors[0]}"
                                path="${requestPathInfo.suffix}"/>
                        </list>
                    </content>
                </channels>
                <displays
                    granite:class="screens-dashboard-Tile screens-dashboard-ScheduleDisplaysTile"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/granite/dashboard/tile"
                    modeGroup="screens-dcc-collection-displays"
                    target=".screens-DisplayCollection"
                    title="Assigned Displays">
                    <actions jcr:primaryType="nt:unstructured">
                        <default jcr:primaryType="nt:unstructured"/>
                    </actions>
                    <content
                        granite:class="screens-dashboard-Tile-content--spaced"
                        jcr:primaryType="nt:unstructured">
                        <list
                            granite:rel="screens-DisplayCollection"
                            jcr:primaryType="nt:unstructured"
                            jcr:title="List View"
                            sling:resourceType="granite/ui/components/coral/foundation/table"
                            layoutId="list"
                            limit="{Long}10"
                            modeGroup="screens-dcc-collection-displays"
                            path="${requestPathInfo.suffix}"
                            selectionMode="row"
                            size="${empty requestPathInfo.selectors[1] ? &quot;10&quot; : requestPathInfo.selectors[1]}"
                            sortMode="remote"
                            src="/mnt/overlay/screens/dcc/content/dashboard/schedule/jcr:content/content/items/displays/content/list{.offset,limit}.html{+id}{?sortName,sortDir}">
                            <columns jcr:primaryType="nt:unstructured">
                                <thumbnail jcr:primaryType="nt:unstructured"/>
                                <display
                                    jcr:primaryType="nt:unstructured"
                                    jcr:title="Display"
                                    sortable="{Boolean}true"/>
                                <role
                                    jcr:primaryType="nt:unstructured"
                                    jcr:title="Resolution"
                                    sortable="{Boolean}true"/>
                                <actions jcr:primaryType="nt:unstructured"/>
                            </columns>
                            <datasource
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="screens/dcc/components/datasources/displays"
                                itemResourceType="screens/dcc/components/dashboard/displaylistrow"
                                limit="${empty requestPathInfo.selectors[1] ? &quot;11&quot; : requestPathInfo.selectors[1] + 1}"
                                offset="${empty requestPathInfo.selectors[0] ? &quot;0&quot; : requestPathInfo.selectors[0]}"
                                path="${requestPathInfo.suffix}"/>
                        </list>
                    </content>
                </displays>
            </items>
        </content>
    </jcr:content>
</jcr:root>