<#ftl output_format="JSON"> <#-- newApplication: The macro for generating view and template metadata for a new Application --> <#macro newApplication request groupUuids defaultGroups adminGroups="" readerGroups="" contentUuids="" pmFolderUuids=""> { <#-- recipe section --> "objectStatus": "NEW", "replaceable": false, "recipeObjectId": "APPLICATION-0", "templateForCreate": "createApplication.ftlx", <#-- bindings section --> "uuid": "${request.application.uuid}", "versionUuids": ["${request.generateUuid("APPLICATION_VERSION")}"], <#if adminGroups?has_content> "administratorGroups": ${adminGroups}, <#if readerGroups?has_content> "readerGroups": ${readerGroups}, <#if contentUuids?has_content> "contentUuids": ${contentUuids}, <#if groupUuids?has_content> "groupUuids": [ <#list groupUuids as groupUuid> "${groupUuid}" <#if groupUuid?has_next> , ], "defaultObjects": [ <#list defaultGroups as defaultGroupsKey, defaultGroupsUuid> { "objectKey": "${defaultGroupsKey}", "objectType": "group", "objectUuid": "${defaultGroupsUuid}" } <#if defaultGroupsKey?has_next> , ], <#if pmFolderUuids?has_content> "pmFolderUuids": ${pmFolderUuids}, <#-- i18n section --> "name": "${request.application.name?json_string}", "prefix": "${request.application.prefix}", "url": "${request.application.url?json_string}", "description": "${request.application.description?json_string}" }