# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # # The LFS homepage [feature name=lfs-dataentry version=0.7.0] [configurations runModes=forms,permissions_open] org.apache.sling.jcr.repoinit.RepositoryInitializer-forms_open scripts=["\ create path (lfs:QuestionnairesHomepage) /Questionnaires \ create path (lfs:FormsHomepage) /Forms \ create path (lfs:SubjectsHomepage) /Subjects \ create path (lfs:SubjectTypesHomepage) /SubjectTypes \ \ set ACL on /Forms,/Subjects \ allow jcr:all for everyone \ end \ \ set ACL on /Questionnaires,/SubjectTypes \ allow jcr:read for everyone \ end \ "] [configurations runModes=forms,permissions_ownership] org.apache.sling.jcr.repoinit.RepositoryInitializer-forms_open scripts=["\ create path (lfs:QuestionnairesHomepage) /Questionnaires \ create path (lfs:FormsHomepage) /Forms \ create path (lfs:SubjectsHomepage) /Subjects \ create path (lfs:SubjectTypesHomepage) /SubjectTypes \ \ set ACL on /Forms,/Subjects \ allow jcr:all for everyone restriction(lfs:owner) \ end \ \ set ACL on /Questionnaires,/SubjectTypes \ allow jcr:read for everyone \ end \ "] [configurations runModes=forms,permissions_trusted] org.apache.sling.jcr.repoinit.RepositoryInitializer-forms_trusted scripts=["\ create path (lfs:QuestionnairesHomepage) /Questionnaires \ create path (lfs:FormsHomepage) /Forms \ create path (lfs:SubjectsHomepage) /Subjects \ create path (lfs:SubjectTypesHomepage) /SubjectTypes \ \ create group TrustedUsers \ \ set ACL on /Forms,/Subjects \ allow jcr:all for TrustedUsers \ end \ \ set ACL on /Questionnaires,/SubjectTypes \ allow jcr:read for TrustedUsers \ end \ "] [artifacts startLevel=10 runModes=forms] ca.sickkids.ccm.lfs/lfs-dataentry/0.7 ca.sickkids.ccm.lfs/lfs-permissions/0.7 javax.jcr/jcr/2.0 javax.json/javax.json-api/1.1.4 javax.servlet/javax.servlet-api/3.1.0 org.apache.commons/commons-csv/1.6 org.apache.sling/org.apache.sling.api/2.18.4 org.apache.sling/org.apache.sling.scripting.sightly.runtime/1.1.0-1.4.0 org.apache.sling/org.apache.sling.scripting.sightly/1.1.2-1.4.0 [configurations runModes=forms] org.apache.sling.jcr.repoinit.RepositoryInitializer-forms scripts=["\ create path (lfs:dataQuery) /query \ \ # Allow all users to query; the actual results will obey their access rights \ set ACL for everyone \ allow jcr:read on /query \ end \ "]