.content.xml 14.4 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 | Device Dashboard"
        sling:redirect="{Boolean}false"
        sling:resourceType="screens/dcc/components/dashboard/page"
        sling:vanityOrder="{Long}1200"
        sling:vanityPath="/screens/dashboard/device"
        contentPath="${requestPathInfo.suffix}"
        omnisearchLocationPath="/libs/granite/omnisearch/content/metadata/screens"
        pageURITemplate="/screens/dashboard/device.html{+id}">
        <redirector
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/admin/contentchecker"
            allowed="^(/home/users/screens|/home/users/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-Device"
                    text="Close"
                    variant="quiet">
                    <data
                        jcr:primaryType="nt:unstructured"
                        href.uritemplate="${empty param.returnPage ? (empty header.Referer ? &quot;/screens.html&quot; : header.Referer) : param.returnPage}"/>
                </close>
            </secondary>
        </actions>
        <content
            granite:class="screens-Dashboard screens-DeviceDashboard screens-Device"
            jcr:primaryType="nt:unstructured"
            sling:resourceType="screens/dcc/components/granite/dashboard">
            <granite:data
                jcr:primaryType="nt:unstructured"
                device-path="${requestPathInfo.suffix}"/>
            <items jcr:primaryType="nt:unstructured">
                <alert
                    granite:id="ReferrerFilterAlert"
                    jcr:primaryType="nt:unstructured"
                    jcr:title="Your security settings may prevent some features from working."
                    sling:resourceType="granite/ui/components/coral/foundation/alert"
                    text="Please allow empty referrer in the OSGi configuration manager."
                    variant="warning">
                    <granite:rendercondition
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="screens/dcc/components/renderconditions/hasProperty"
                        componentPID="org.apache.sling.security.impl.ReferrerFilter"
                        propertyName="allow.empty"/>
                </alert>
                <deviceinfo
                    granite:class="screens-dashboard-Tile screens-dashboard-DeviceInfoTile"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/granite/dashboard/tile"
                    title="Device Information">
                    <actions jcr:primaryType="nt:unstructured">
                        <default jcr:primaryType="nt:unstructured">
                            <devicepropertiestoggle
                                granite:rel="screens-dcc-actions-Device-properties-activator"
                                granite:title="View device properties"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                                action="foundation.dialog"
                                icon="infoCircle"
                                target=".screens-Device"
                                text="Properties"
                                variant="actionBar">
                                <data
                                    jcr:primaryType="nt:unstructured"
                                    nesting="hide"
                                    src.uritemplate="/mnt/overlay/screens/dcc/content/devicepropertiesdialog.html${requestPathInfo.suffix}"/>
                                <granite:rendercondition
                                    jcr:primaryType="nt:unstructured"
                                    sling:resourceType="granite/ui/components/coral/foundation/renderconditions/privilege"
                                    path="${requestPathInfo.suffix}/profile_screens"
                                    privileges="jcr:read"/>
                            </devicepropertiestoggle>
                            <update
                                granite:rel="screens-dcc-actions-Device-pushconfig-activator"
                                granite:title="Update the config and content of the device"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/button"
                                icon="publish"
                                text="Update Device"
                                variant="actionBar"/>
                        </default>
                    </actions>
                    <content
                        granite:class="screens-dashboard-Tile-content--spaced"
                        jcr:primaryType="nt:unstructured">
                        <deviceinfo
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="screens/dcc/components/dashboard/deviceinfo"/>
                    </content>
                </deviceinfo>
                <devicescreenshot
                    granite:class="screens-dashboard-Tile screens-dashboard-DeviceScreenshotTile"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/granite/dashboard/tile"
                    title="Player Screenshot">
                    <actions jcr:primaryType="nt:unstructured">
                        <default jcr:primaryType="nt:unstructured">
                            <refresh
                                granite:rel="screens-dcc-actions-Device-screenshot-activator"
                                granite:title="Fetch a new screenshot from the device"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/button"
                                icon="cameraRefresh"
                                text="Refresh Screenshot"
                                variant="actionBar"/>
                            <fullscreen
                                granite:rel="screens-dcc-actions-Device-fullscreen-activator"
                                granite:title="View device screenshot in fullscreen"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                                action="foundation.dialog"
                                icon="fullScreen"
                                target=".screens-Device"
                                text="Fullscreen"
                                variant="actionBar">
                                <data
                                    jcr:primaryType="nt:unstructured"
                                    nesting="hide"
                                    src.uritemplate="/mnt/overlay/screens/dcc/content/screenshotdialog.html${requestPathInfo.suffix}"/>
                            </fullscreen>
                        </default>
                    </actions>
                    <content
                        granite:class="screens-dashboard-Tile-content--spaced"
                        jcr:primaryType="nt:unstructured">
                        <devicescreenshot
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="screens/dcc/components/dashboard/devicescreenshot"/>
                    </content>
                </devicescreenshot>
                <activity
                    granite:class="screens-dashboard-Tile screens-dashboard-DeviceActivityTile"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/granite/dashboard/tile"
                    title="Activity">
                    <actions jcr:primaryType="nt:unstructured">
                        <default jcr:primaryType="nt:unstructured">
                            <logs
                                granite:rel="screens-dcc-actions-Device-logs-activator"
                                granite:title="Collect logs from the device"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/button"
                                icon="printPreview"
                                text="Collect Logs"
                                variant="actionBar"/>
                        </default>
                    </actions>
                    <content
                        granite:class="screens-dashboard-Tile-content--spaced"
                        jcr:primaryType="nt:unstructured">
                        <deviceactivity
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="screens/dcc/components/dashboard/deviceactivity"/>
                    </content>
                </activity>
                <preferences
                    granite:class="screens-dashboard-Tile screens-dashboard-DevicePreferencesTile"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/granite/dashboard/tile"
                    title="Preferences">
                    <actions jcr:primaryType="nt:unstructured">
                        <default jcr:primaryType="nt:unstructured">
                            <devicepreferencestoggle
                                granite:rel="screens-dcc-actions-Device-preferences-activator"
                                granite:title="View the device preferences"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                                action="foundation.dialog"
                                icon="gear"
                                target=".screens-Device"
                                text="Settings"
                                variant="actionBar">
                                <data
                                    jcr:primaryType="nt:unstructured"
                                    nesting="hide"
                                    src.uritemplate="/mnt/overlay/screens/dcc/content/devicepreferencesdialog.html${requestPathInfo.suffix}"/>
                            </devicepreferencestoggle>
                        </default>
                    </actions>
                    <content
                        granite:class="screens-dashboard-Tile-content--spaced"
                        jcr:primaryType="nt:unstructured">
                        <devicepreferences
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="screens/dcc/components/dashboard/devicepreferences"/>
                    </content>
                </preferences>
                <devicedetails
                    granite:class="screens-dashboard-Tile screens-dashboard-DeviceStatusTile"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/granite/dashboard/tile"
                    colspan="2"
                    title="Device Details">
                    <actions jcr:primaryType="nt:unstructured">
                        <default jcr:primaryType="nt:unstructured">
                            <restart
                                granite:rel="screens-dcc-actions-Device-restart-activator"
                                granite:title="Restart the player application"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/button"
                                icon="devicePhoneRefresh"
                                text="Restart Player"
                                variant="actionBar"/>
                            <refresh
                                granite:rel="screens-dcc-actions-Device-status-activator"
                                granite:title="Fetch latest device status information"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/button"
                                icon="dataRefresh"
                                text="Refresh Status"
                                variant="actionBar"/>
                        </default>
                    </actions>
                    <content
                        granite:class="screens-dashboard-Tile-content--spaced"
                        jcr:primaryType="nt:unstructured">
                        <devicedetails
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="screens/dcc/components/dashboard/devicedetails"/>
                    </content>
                </devicedetails>
            </items>
        </content>
    </jcr:content>
</jcr:root>