.content.xml 18.7 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 | Devices"
        sling:redirect="{Boolean}false"
        sling:resourceType="granite/ui/components/shell/collectionpage"
        sling:vanityOrder="{Long}1200"
        sling:vanityPath="/screens/devices"
        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/devices.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="[cq.common.wcm,cq.listview.coral.columns.personalization,screens.dcc.devices]"/>
        </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;"
                selectionCount="single"
                selectionMode="row"
                size="${empty requestPathInfo.selectors[1] ? &quot;40&quot; : requestPathInfo.selectors[1]}"
                sortMode="remote"
                src="/mnt/overlay/screens/dcc/content/devices/jcr:content/views/list{.offset,limit}.html{+id}{?sortName,sortDir}"
                stateId="shell.devicespage">
                <availablecolumns jcr:primaryType="nt:unstructured">
                    <select
                        jcr:primaryType="nt:unstructured"
                        configurable="{Boolean}false"
                        select="{Boolean}true"/>
                    <title
                        jcr:primaryType="nt:unstructured"
                        jcr:title="Title"
                        columnGroup="General"
                        default="{Boolean}true"
                        sortable="{Boolean}true"/>
                    <assigned
                        jcr:primaryType="nt:unstructured"
                        jcr:title="Assigned"
                        columnGroup="Status"
                        default="{Boolean}true"
                        sortable="{Boolean}true"/>
                    <model
                        jcr:primaryType="nt:unstructured"
                        jcr:title="Model"
                        columnGroup="Properties"
                        default="{Boolean}true"
                        sortable="{Boolean}true"/>
                    <platform
                        jcr:primaryType="nt:unstructured"
                        jcr:title="Device OS"
                        columnGroup="Properties"
                        default="{Boolean}true"
                        sortable="{Boolean}true"/>
                    <version
                        jcr:primaryType="nt:unstructured"
                        jcr:title="Device OS Version"
                        columnGroup="Properties"
                        default="{Boolean}true"
                        sortable="{Boolean}true"/>
                    <connection
                        jcr:primaryType="nt:unstructured"
                        jcr:title="Connection"
                        columnGroup="Status"
                        default="{Boolean}true"
                        sortable="{Boolean}true"/>
                    <ping
                        jcr:primaryType="nt:unstructured"
                        jcr:title="Last Ping"
                        columnGroup="Status"
                        default="{Boolean}true"
                        sortable="{Boolean}true"
                        sortType="date"/>
                </availablecolumns>
                <columnsdatasource
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="cq/gui/components/siteadmin/admin/listview/coral/columns/datasources/columnsdatasource"
                    availableColumns="/mnt/overlay/screens/dcc/content/devices/jcr:content/views/list/availablecolumns"
                    stateId="aem.screens.devices.listview.columns"/>
                <datasource
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/datasources/devices"
                    assigned="${param.assigned}"
                    exclude="/home/users/(?!screens)(/.*)*"
                    itemResourceType="screens/dcc/components/listrow/devices"
                    limit="${empty requestPathInfo.selectors[1] ? &quot;41&quot; : requestPathInfo.selectors[1] + 1}"
                    offset="${requestPathInfo.selectors[0]}"/>
                <configurecolumndialog
                    granite:class="aem-configure-columns-dialog"
                    jcr:primaryType="nt:unstructured"
                    jcr:title="Configure Columns"
                    sling:resourceType="granite/ui/components/coral/foundation/dialog">
                    <items jcr:primaryType="nt:unstructured">
                        <form
                            granite:id="aem-configure-columns"
                            jcr:primaryType="nt:unstructured"
                            jcr:title="Configure Columns"
                            sling:resourceType="granite/ui/components/coral/foundation/form"
                            action="${requestPathInfo.suffix}"
                            style="vertical">
                            <items jcr:primaryType="nt:unstructured">
                                <chooseColumns
                                    jcr:primaryType="nt:unstructured"
                                    sling:resourceType="cq/gui/components/siteadmin/admin/listview/columns/columnchooser"
                                    allow-remove-groups="[analytics-administrators,administrators]"
                                    availableColumns="/mnt/overlay/screens/dcc/content/devices/jcr:content/views/list/availablecolumns">
                                    <datasource
                                        jcr:primaryType="nt:unstructured"
                                        sling:resourceType="cq/gui/components/siteadmin/admin/listview/columns/datasources/availablecolumnsdatasource"/>
                                </chooseColumns>
                                <charset
                                    jcr:primaryType="nt:unstructured"
                                    sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
                                    name="_charset_"
                                    value="utf-8"/>
                            </items>
                        </form>
                    </items>
                    <footer jcr:primaryType="nt:unstructured">
                        <cancel
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/button"
                            text="Cancel">
                            <parentConfig
                                jcr:primaryType="nt:unstructured"
                                close="{Boolean}true"/>
                        </cancel>
                        <submit
                            granite:class="aem-configure-columns-confirm"
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/button"
                            disabled="{Boolean}true"
                            formId="aem-configure-columns"
                            text="Update"
                            type="submit"
                            variant="primary">
                            <parentConfig
                                jcr:primaryType="nt:unstructured"
                                close="{Boolean}true"/>
                        </submit>
                    </footer>
                </configurecolumndialog>
                <granite:data
                    jcr:primaryType="nt:unstructured"
                    columns-state-id="aem.screens.devices.listview.columns"
                    configure-columns-dialog-uri-template="/mnt/overlay/screens/dcc/content/devices/jcr:content/views/list/configurecolumndialog.html{+id}"/>
            </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/devices/jcr:content/views/card{.offset,limit}.html{+id}"
                stateId="shell.devicespage">
                <datasource
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/datasources/devices"
                    assigned="${param.assigned}"
                    exclude="/home/users/(?!screens)(/.*)*"
                    itemResourceType="screens/dcc/components/card"
                    limit="${empty requestPathInfo.selectors[1] ? &quot;21&quot; : requestPathInfo.selectors[1] + 1}"
                    offset="${requestPathInfo.selectors[0]}"/>
            </card>
        </views>
        <breadcrumbs
            jcr:primaryType="nt:unstructured"
            sling:resourceType="screens/dcc/components/datasources/breadcrumbs"
            pageId="screens-Devices"
            parentPage="${granite:url(&quot;/screens.html&quot;)}"
            path="${requestPathInfo.suffix}"/>
        <actions jcr:primaryType="nt:unstructured">
            <primary jcr:primaryType="nt:unstructured">
                <filterpulldown
                    granite:class="screens-dcc-actions-filter-activator"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/cyclebutton">
                    <items jcr:primaryType="nt:unstructured">
                        <all
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/collection/actionlink"
                            action="foundation.link"
                            icon="filter"
                            target=".screens-dcc-collection-resources"
                            text="All"/>
                        <assigned
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/collection/actionlink"
                            action="foundation.link"
                            target=".screens-dcc-collection-resources"
                            text="Assigned"
                            text_commentI18n="Plural string">
                            <granite:data
                                jcr:primaryType="nt:unstructured"
                                assigned="true"/>
                        </assigned>
                        <unassigned
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/collection/actionlink"
                            action="foundation.link"
                            target=".screens-dcc-collection-resources"
                            text="Unassigned"
                            text_commentI18n="Plural string">
                            <granite:data
                                jcr:primaryType="nt:unstructured"
                                assigned="false"/>
                        </unassigned>
                    </items>
                </filterpulldown>
            </primary>
            <secondary jcr:primaryType="nt:unstructured">
                <device-registration
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                    action="foundation.link"
                    icon="icon-gears"
                    target=".screens-dcc-collection-resources"
                    text="Device Registration"
                    title="Device Registration"
                    variant="primary">
                    <data
                        jcr:primaryType="nt:unstructured"
                        cookiePath.url="/"
                        href.uritemplate="/screens/pendingdevices.html${granite:encodeURIPath(requestPathInfo.suffix)}"/>
                    <granite:rendercondition
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/renderconditions/privilege"
                        path="/libs/screens/dcc/content/pendingdevices"
                        privileges="jcr:read"/>
                </device-registration>
            </secondary>
            <selection jcr:primaryType="nt:unstructured">
                <assigndevice
                    granite:rel="screens-dcc-actions-assigndevice-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="Assign Device"
                    variant="actionBar">
                    <data
                        jcr:primaryType="nt:unstructured"
                        href.uritemplate="/screens/assign-device-wizard.html${requestPathInfo.suffix}?device={item}"/>
                    <granite:rendercondition
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/renderconditions/privilege"
                        path.uritemplate="\{item}}"
                        privileges="jcr:modifyProperties"/>
                </assigndevice>
                <devicedashboard
                    granite:rel="screens-dcc-actions-deviceDashboard-activator"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                    action="foundation.link"
                    activeSelectionCount="single"
                    icon="viewGrid"
                    target=".screens-dcc-collection-resources"
                    text="Dashboard"
                    variant="actionBar">
                    <data
                        jcr:primaryType="nt:unstructured"
                        href.uritemplate="/screens/dashboard/device.html{+item}"/>
                    <granite:rendercondition
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/renderconditions/privilege"
                        path="/libs/screens/dcc/content/dashboard/device"
                        privileges="jcr:read"/>
                </devicedashboard>
                <deletedevice
                    granite:rel="screens-dcc-actions-Device-delete-activator"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                    action="cq.screens.dcc.device.delete"
                    activeSelectionCount="single"
                    icon="delete"
                    target=".screens-dcc-collection-resources"
                    text="Delete"
                    variant="actionBar">
                    <granite:rendercondition
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/renderconditions/privilege"
                        path.uritemplate="\{item}}"
                        privileges="jcr:removeNode"/>
                </deletedevice>
                <overridedevice
                    granite:rel="screens-dcc-actions-assigndevice-activator"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                    action="foundation.link"
                    activeSelectionCount="multiple"
                    icon="gearsAdd"
                    target=".screens-dcc-collection-resources"
                    text="Override Device"
                    variant="actionBar">
                    <data
                        jcr:primaryType="nt:unstructured"
                        href.uritemplate="/screens/assign-device-wizard.html${requestPathInfo.suffix}?device={item}"/>
                    <granite:rendercondition
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/renderconditions/privilege"
                        path.uritemplate="\{item}}"
                        privileges="jcr:modifyProperties"/>
                </overridedevice>
            </selection>
        </actions>
    </jcr:content>
</jcr:root>