{
    "key": "com.communardo.confluence.metadata",
    "name": "Metadata for Confluence",
    "description": "Structure your wiki content with Metadata for Confluence, add consistent Metadata to pages and configure personalized overviews.",
    "baseUrl": "https://metadata-communardo.azurewebsites.net",
    "version": "1.37.0-64da7d18",
    "vendor": {
        "name": "Communardo Software GmbH",
        "url": "https://www.communardo.de"
    },
    "links": {
        "documentation": "https://communardo-products.atlassian.net/wiki/spaces/METADCLOUD/overview"
    },
    "authentication": {
        "type": "jwt"
    },
    "scopes": [
        "read", "write", "delete"
    ],
    "enableLicensing": true,
    "apiMigrations": {
        "gdpr": true,
        "context-qsh": true,
        "signed-install": true
    },
    "lifecycle": {
        "installed": "/installed",
        "uninstalled": "/uninstalled"
    },
    "cloudAppMigration": {
        "migrationWebhookPath": "/metadata-migration-registration"
    },
    "modules": {
        "contentBylineItems": [
            {
                "key": "communardo-metadata-cloud-metadata-content-byline-edit-permission",
                "cacheable": true,
                "name": {
                    "value": "Edit Metadata"
                },
                "icon": {
                    "url": "/static/rev_64da7d18/images/pluginIcon.svg",
                    "width": 16,
                    "height": 16
                },
                "url": "/static/rev_64da7d18/frontend/contentcategory/content-byline-item/metadata-byline-inline-dialog.html?pageEdit=true",
                "target": {
                    "type": "inlinedialog"
                },
                "conditions": [
                    {
                        "condition": "has_page_permission",
                        "params": {
                            "permission": "EDIT"
                        }
                    },
                    {
                        "condition": "has_page"
                    }
                ]
            },
            {
                "key": "communardo-metadata-cloud-metadata-content-byline-no-edit-permission",
                "cacheable": true,
                "name": {
                    "value": "Edit Metadata"
                },
                "icon": {
                    "url": "/static/rev_64da7d18/images/pluginIcon.svg",
                    "width": 16,
                    "height": 16
                },
                "url": "/static/rev_64da7d18/frontend/contentcategory/content-byline-item/metadata-byline-inline-dialog.html?pageEdit=false",
                "target": {
                    "type": "inlinedialog"
                },
                "conditions": [
                    {
                        "condition": "has_page_permission",
                        "params": {
                            "permission": "EDIT"
                        },
                        "invert": true
                    },
                    {
                        "condition": "has_page"
                    }
                ]
            }
        ],
        "dynamicContentMacros": [
            {
                "key": "communardo-metadata-cloud-metadata-report-macro",
                "cacheable": true,
                "categories": [
                    "reporting"
                ],
                "description": {
                    "value": "Show pages of a certain Content Category and their assigned Metadata."
                },
                "editor": {
                    "url": "/static/rev_64da7d18/frontend/contentcategory/macro/reporting/edit/metadata-report-macro-edit.html",
                    "cacheable": true,
                    "editTitle": {
                        "value": "Edit Metadata Report"
                    },
                    "insertTitle": {
                        "value": "Insert Metadata Report"
                    },
                    "width": "100%",
                    "height": "100%"
                },
                "icon": {
                    "url": "/static/rev_64da7d18/images/pluginLogo.png"
                },
                "name": {
                    "value": "Metadata Report"
                },
                "parameters": [
                    {
                        "identifier": "contentCategories",
                        "name": {
                            "value": "Content Category"
                        },
                        "type": "enum"
                    }
                ],
                "url": "/static/rev_64da7d18/frontend/contentcategory/macro/reporting/view/metadata-report-macro-view.html"
            },
            {
                "key": "communardo-metadata-cloud-metadata-display-macro",
                "cacheable": true,
                "categories": [
                    "reporting"
                ],
                "description": {
                    "value": "Display Metadata fields and their assigned values."
                },
                "editor": {
                    "url": "/static/rev_64da7d18/frontend/contentcategory/macro/display/edit/metadata-display-macro-edit.html",
                    "cacheable": true,
                    "editTitle": {
                        "value": "Edit 'Display Metadata' Macro"
                    },
                    "insertTitle": {
                        "value": "Display Metadata"
                    },
                    "width": "100%",
                    "height": "100%"
                },
                "icon": {
                    "url": "/static/rev_64da7d18/images/pluginLogo.png"
                },
                "name": {
                    "value": "Display Metadata"
                },
                "parameters":[
                    {
                        "identifier": "content",
                        "name": {
                            "value": "Page"
                        },
                        "type": "confluence-content"
                    },
                    {
                        "identifier": "fields",
                        "name": {
                            "value": "Metadata fields"
                        },
                        "type": "string"
                    }
                ],
                "url": "/static/rev_64da7d18/frontend/contentcategory/macro/display/render/metadata-display-macro-render.html"
            },
            {
                "key": "communardo-metadata-cloud-display-metadata-value-macro",
                "outputType" : "block",
                "height": "50px",
                "width": "100%",
                "cacheable": true,
                "categories": [
                    "reporting"
                ],
                "description": {
                    "value": "Display assigned value for a chosen Metadata field."
                },
                "editor": {
                    "url": "/static/rev_64da7d18/frontend/contentcategory/macro/display-value/edit/metadata-display-value-macro-edit.html",
                    "cacheable": true,
                    "editTitle": {
                        "value": "Edit 'Display Metadata Value' Macro"
                    },
                    "insertTitle": {
                        "value": "Display Metadata Value"
                    },
                    "width": "100%",
                    "height": "100%"
                },
                "icon": {
                    "url": "/static/rev_64da7d18/images/pluginLogo.png"
                },
                "name": {
                    "value": "Display Metadata Value"
                },
                "parameters": [
                    {
                        "identifier": "metadataFieldId",
                        "name": {
                            "value": "Metadata field"
                        },
                        "type": "string"
                    }
                ],
                "url": "/static/rev_64da7d18/frontend/contentcategory/macro/display-value/view/metadata-display-value-macro-render.html"
            }
        ],
        "dialogs": [
            {
                "url": "/static/rev_64da7d18/frontend/common/confirm-dialog/simple-confirm-dialog/simple-confirm-dialog.html",
                "cacheable": true,
                "options": {
                    "chrome": false
                },
                "key": "confirmation-dialog"
            },
            {
                "url": "/static/rev_64da7d18/frontend/contentcategory/admin/delete-content-category-confirm-dialog/delete-content-category-confirm-dialog.html",
                "cacheable": true,
                "options": {
                    "height": "365px",
                    "width": "450px",
                    "chrome": false
                },
                "key": "delete-content-category-confirmation-dialog"
            },
            {
                "url": "/static/rev_64da7d18/frontend/contentcategory/metadata-values-dialog/assign-and-edit-dialog/assign-and-edit-metadata-values-dialog.html",
                "cacheable": true,
                "options": {
                    "height": "100%",
                    "width": "100%",
                    "chrome": false
                },
                "key": "metadataEditValuesDialog"
            },
            {
                "url": "/static/rev_64da7d18/frontend/contentcategory/assign-content-category-dialog/assign-content-category-dialog.html",
                "cacheable": true,
                "options": {
                    "height": "100%",
                    "width": "100%",
                    "chrome": false
                },
                "key": "metadataAssignContentCategoryDialog"
            },
            {
                "url": "/static/rev_64da7d18/frontend/contentcategory/unassign-content-category-dialog/unassign-content-category-dialog.html",
                "cacheable": true,
                "options": {
                    "height": "350px",
                    "width": "450px",
                    "chrome": false
                },
                "key": "metadataUnassignContentCategoryDialog"
            },
            {
                "url": "/static/rev_64da7d18/frontend/survey/survey-dialog/survey-dialog.html",
                "cacheable": true,
                "options": {
                    "height": "340px",
                    "width": "550px",
                    "chrome": false
                },
                "key": "metadataUserSurveyDialog"
            },
            {
                "url": "/static/rev_64da7d18/frontend/contentcategory/required-fields-feature-notification/required-fields-feature-notification-dialog.html",
                "cacheable": true,
                "options": {
                    "chrome": false
                },
                "key": "metadataRequiredFieldsDialog"
            }
        ],
        "webSections": [
            {
                "location": "system.admin",
                "weight": 250,
                "key": "communardo-metadata-admin-section",
                "name":
                {
                    "value": "Metadata for Confluence"
                }
            }
        ],
        "webItems": [
            {
                "location": "system.editor.precursor.buttons",
                "weight": 200,
                "styleClasses": [
                    "webitem",
                    "system-present-webitem"
                ],
                "target": {
                    "type": "dialogmodule",
                    "options": {
                        "key": "metadataEditValuesDialog",
                        "header": "Edit Content Category",
                        "submitText": "Save",
                        "cancelText": "Cancel",
                        "hint": "Edit Metadata"
                    }
                },
                "conditions": [
                    {
                        "condition": "content_property_exists",
                        "params": {
                            "entity": "content",
                            "propertyKey": "communardo_metadata"
                        }
                    }
                ],
                "tooltip": {
                    "value": "Edit Metadata"
                },
                "icon": {
                    "width": 30,
                    "height": 30,
                    "url": "/static/rev_64da7d18/images/pluginWebitem.png"
                },
                "name": {
                    "value": "Edit Metadata"
                },
                "key": "web-item-metadata-edit-values"
            },
            {
                "location": "system.content.action/modify",
                "target": {
                    "type": "dialogmodule",
                    "options": {
                        "key": "metadataAssignContentCategoryDialog",
                        "header": "Edit Content Category"
                    }
                },
                "conditions": [
                    {
                        "condition": "has_page_permission",
                        "params": {
                            "permission": "EDIT"
                        }
                    },
                    {
                        "condition": "has_page"
                    },
                    {
                        "condition": "content_property_exists",
                        "params": {
                            "entity": "content",
                            "propertyKey": "communardo_metadata"
                        },
                        "invert": true
                    }
                ],
                "tooltip": {
                    "value": "Assign Content Category"
                },
                "name": {
                    "value": "Assign Content Category"
                },
                "key": "web-item-metadata-assign-content-category"
            },

            {
                "location": "system.content.action/modify",
                "target": {
                    "type": "dialogmodule",
                    "options": {
                        "key": "metadataUnassignContentCategoryDialog",
                        "header": "Remove Content Category"
                    }
                },
                "conditions": [
                    {
                        "condition": "has_page_permission",
                        "params": {
                            "permission": "EDIT"
                        }
                    },
                    {
                        "condition": "has_page"
                    },
                    {
                        "condition": "content_property_exists",
                        "params": {
                            "entity": "content",
                            "propertyKey": "communardo_metadata"
                        }
                    }
                ],
                "tooltip": {
                    "value": "Remove Content Category"
                },
                "name": {
                    "value": "Remove Content Category"
                },
                "key": "web-item-metadata-unassign-content-category"
            }

        ],
        "webPanels": [
            {
                "url": "/static/rev_64da7d18/frontend/contentcategory/admin/template-edit/content-category-template-connection-hint.html",
                "cacheable": true,
                "location": "atl.editor.savebar",
                "layout": {
                    "width": "0",
                    "height":"0"
                },
                "name": {
                    "value": "Template Content Category connection hint panel"
                },
                "key": "template-hint-panel",
                "conditions": [
                    {
                        "condition": "user_is_admin"
                    },
                    {
                        "condition": "tiny_url_supported",
                        "invert": true
                    }
                ]
            },
            {
                "url": "/static/rev_64da7d18/frontend/contentcategory/page-editor-integration/page-editor-content-category-assignment-panel.html",
                "location": "atl.general",
                "cacheable": true,
                "layout": {
                    "width": "100%",
                    "height": "0"
                },
                "weight": 1,
                "name": {
                    "value": "Trigger Content Category value Editor - Hidden Panel"
                },
                "key": "page-editor-content-category-assignment-panel",
                "conditions": [
                    {
                        "condition": "viewing_content"
                    },
                    {
                        "condition": "tiny_url_supported"
                    }
                ]
            },
            {
                "url": "/static/rev_64da7d18/frontend/contentcategory/background-service/content-background-service-panel.html",
                "location": "atl.footer",
                "cacheable": true,
                "layout": {
                    "width": "0",
                    "height": "0"
                },
                "name": {
                    "value": "Background service panel while viewing or editing content"
                },
                "key": "content-background-service-panel",
                "conditions": [
                    {
                        "condition": "has_page_permission",
                        "params": {
                            "permission": "EDIT"
                        }
                    }
                ]
            }
        ],
        "adminPages":
        [
            {
                "url": "/static/rev_64da7d18/frontend/contentcategory/admin/admin-page/content-categories-admin-page.html",
                "location": "system.admin/communardo-metadata-admin-section",
                "key": "content-categories-administration",
                "name": {
                    "value": "Content Categories"
                },
                "cacheable": true,
                "fullPage": true
            },
            {
                "url": "/static/rev_64da7d18/frontend/app-settings/metadata-cloud-app-settings.html",
                "location": "system.admin/communardo-metadata-admin-section",
                "key": "metadata-cloud-app-settings-administration",
                "name": {
                    "value": "Data Privacy"
                },
                "cacheable": true,
                "fullPage": true
            },
            {
                "url": "/static/rev_64da7d18/frontend/metadata-cloud-migration/metadata-cloud-migration.html",
                "location": "system.admin/communardo-metadata-admin-section",
                "key": "metadata-cloud-migrations-administration",
                "name": {
                    "value": "Metadata Cloud Migrations"
                },
                "cacheable": true,
                "fullPage": true
            }
        ],
        "configurePage": {
            "url": "/static/rev_64da7d18/frontend/contentcategory/admin/get-started/get-started-view.html",
            "name": {
                "value": "Metadata Configuration"
            },
            "key": "metadata-config-page",
            "cacheable": true
        },
        "postInstallPage": {
            "key": "get-started",
            "url": "/static/rev_64da7d18/frontend/contentcategory/admin/get-started/get-started-view.html",
            "name": {
                "value": "Metadata Configuration"
            },
            "cacheable": true
        },
        "confluenceContentProperties": [
            {
                "key": "communardo-metadata-content-category",
                "keyConfigurations": [
                    {
                        "propertyKey": "communardo_metadata",
                        "extractions": [
                            {
                                "objectName": "id",
                                "type": "string",
                                "alias": "communardoMetadataContentCategoryId"
                            }
                        ]
                    }
                ],
                "name": {
                    "value": "ContentCategory marker property"
                }
            }
        ]
    }
}
