.content.xml 7.19 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:mixinTypes="[granite:InternalArea]"
    jcr:primaryType="cq:Page">
    <jcr:content
        jcr:mixinTypes="[sling:VanityPath]"
        jcr:primaryType="nt:unstructured"
        jcr:title="AEM Screens | Pending Devices"
        sling:redirect="{Boolean}false"
        sling:resourceType="granite/ui/components/shell/collectionpage"
        sling:vanityOrder="{Long}1200"
        sling:vanityPath="/screens/pendingdevices"
        contentPath="${requestPathInfo.suffix}"
        currentView="${state[&quot;shell.devicespage.layoutId&quot;].string}"
        modeGroup="screens-dcc-collection-resources"
        omnisearchLocationPath="/libs/granite/omnisearch/content/metadata/screens"
        pageURITemplate="/screens/pendingdevices.html{+id}"
        targetCollection=".screens-dcc-collection-resources">
        <redirector
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/admin/contentchecker"
            allowed="^(/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]"/>
        </head>
        <views jcr:primaryType="nt:unstructured">
            <list
                granite:rel="screens-dcc-collection-resources"
                jcr:primaryType="nt:unstructured"
                jcr:title="List View"
                sling:resourceType="granite/ui/components/coral/foundation/table"
                icon="viewList"
                layoutId="list"
                limit="{Long}40"
                metaResourceType="cq/gui/components/coral/admin/page/meta"
                modeGroup="screens-dcc-collection-resources"
                path="${requestPathInfo.suffix}"
                rowReorderAction="/bin/wcmcommand?cmd=movePage&amp;srcPath={item}&amp;destPath={item}&amp;before={before}&amp;_charset_=utf-8&amp;"
                selectionMode="row"
                size="${empty requestPathInfo.selectors[1] ? &quot;40&quot; : requestPathInfo.selectors[1]}"
                sortMode="remote"
                src="/mnt/overlay/screens/dcc/content/pendingdevices/jcr:content/views/list{.offset,limit}.html{+id}{?sortName,sortDir}"
                stateId="shell.devicespage">
                <columns jcr:primaryType="nt:unstructured">
                    <select
                        jcr:primaryType="nt:unstructured"
                        select="{Boolean}true"/>
                    <title
                        jcr:primaryType="nt:unstructured"
                        jcr:title="Title"
                        sortable="{Boolean}true"/>
                    <uuid
                        jcr:primaryType="nt:unstructured"
                        jcr:title="UUID"
                        sortable="{Boolean}true"/>
                    <model
                        jcr:primaryType="nt:unstructured"
                        jcr:title="Model"
                        sortable="{Boolean}true"/>
                    <platform
                        jcr:primaryType="nt:unstructured"
                        jcr:title="Device OS"
                        sortable="{Boolean}true"/>
                    <version
                        jcr:primaryType="nt:unstructured"
                        jcr:title="Device OS Version"
                        sortable="{Boolean}true"/>
                </columns>
                <datasource
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/datasources/pendingdevices"
                    exclude="/content/(?!screens)(/.*)*"
                    itemResourceType="screens/dcc/components/listrow/pendingdevice"
                    limit="${empty requestPathInfo.selectors[1] ? &quot;41&quot; : requestPathInfo.selectors[1] + 1}"
                    offset="${requestPathInfo.selectors[0]}"
                    path="${requestPathInfo.suffix}"/>
            </list>
            <card
                granite:rel="screens-dcc-collection-resources"
                jcr:primaryType="nt:unstructured"
                jcr:title="Card View"
                sling:resourceType="granite/ui/components/coral/foundation/masonry"
                icon="viewCard"
                layoutId="card"
                limit="{Long}20"
                metaResourceType="cq/gui/components/coral/admin/page/meta"
                modeGroup="screens-dcc-collection-resources"
                path="${requestPathInfo.suffix}"
                selectionMode="${state[&quot;shell.devicespage.selectionMode&quot;].boolean}"
                size="${empty requestPathInfo.selectors[1] ? &quot;20&quot; : requestPathInfo.selectors[1]}"
                src="/mnt/overlay/screens/dcc/content/pendingdevices/jcr:content/views/card{.offset,limit}.html{+id}"
                stateId="shell.devicespage">
                <datasource
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/datasources/pendingdevices"
                    exclude="/content/(?!screens)(/.*)*"
                    itemResourceType="screens/dcc/components/card/pendingdevice"
                    limit="${empty requestPathInfo.selectors[1] ? &quot;21&quot; : requestPathInfo.selectors[1] + 1}"
                    offset="${requestPathInfo.selectors[0]}"
                    path="${requestPathInfo.suffix}"/>
            </card>
        </views>
        <breadcrumbs
            jcr:primaryType="nt:unstructured"
            sling:resourceType="screens/dcc/components/datasources/breadcrumbs"
            pageId="screens-PendingDevices"
            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"/>
            <selection jcr:primaryType="nt:unstructured">
                <registerdevice
                    granite:rel="screens-dcc-actions-register-activator"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                    action="foundation.link"
                    activeSelectionCount="single"
                    icon="gearsAdd"
                    target=".screens-dcc-collection-resources"
                    text="Register Device"
                    variant="actionBar">
                    <data
                        jcr:primaryType="nt:unstructured"
                        href.uritemplate="/screens/register-device-wizard.html${requestPathInfo.suffix}{?item}"/>
                </registerdevice>
            </selection>
        </actions>
    </jcr:content>
</jcr:root>