├── .gitattributes ├── .eslintignore ├── .coveralls.yml ├── generators ├── webscript │ ├── templates │ │ ├── de.properties │ │ ├── en.properties │ │ ├── es.properties │ │ ├── fr.properties │ │ ├── csv.ftl │ │ ├── html.ftl │ │ ├── json.ftl │ │ ├── xml.ftl │ │ ├── webscript-context.xml │ │ ├── controller.js │ │ ├── config.xml │ │ ├── atom.ftl │ │ ├── DeclarativeWebScript.java │ │ └── AbstractWebScript.java │ └── USAGE ├── app │ ├── templates │ │ ├── archetypes │ │ │ ├── 3.0.1 │ │ │ │ └── archetype-resources │ │ │ │ │ ├── __rootArtifactId__-platform-jar │ │ │ │ │ ├── src │ │ │ │ │ │ └── main │ │ │ │ │ │ │ ├── resources │ │ │ │ │ │ │ ├── META-INF │ │ │ │ │ │ │ │ └── resources │ │ │ │ │ │ │ │ │ └── test.html │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ ├── extension │ │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ │ └── webscripts │ │ │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ │ └── tutorials │ │ │ │ │ │ │ │ │ ├── helloworld.get.html.ftl │ │ │ │ │ │ │ │ │ ├── helloworld.get.js │ │ │ │ │ │ │ │ │ └── helloworld.get.desc.xml │ │ │ │ │ │ │ │ └── module │ │ │ │ │ │ │ │ └── __artifactId__ │ │ │ │ │ │ │ │ ├── alfresco-global.properties │ │ │ │ │ │ │ │ ├── messages │ │ │ │ │ │ │ │ └── content-model.properties │ │ │ │ │ │ │ │ ├── workflow │ │ │ │ │ │ │ │ └── sample-process.bpmn20.xml │ │ │ │ │ │ │ │ ├── model │ │ │ │ │ │ │ │ └── workflow-model.xml │ │ │ │ │ │ │ │ └── context │ │ │ │ │ │ │ │ └── webscript-context.xml │ │ │ │ │ │ │ ├── assembly │ │ │ │ │ │ │ ├── file-mapping.properties │ │ │ │ │ │ │ └── web │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ └── java │ │ │ │ │ │ │ └── platformsample │ │ │ │ │ │ │ └── Demo.java │ │ │ │ │ └── pom.xml │ │ │ │ │ ├── __rootArtifactId__-share-jar │ │ │ │ │ ├── src │ │ │ │ │ │ └── main │ │ │ │ │ │ │ ├── resources │ │ │ │ │ │ │ ├── alfresco │ │ │ │ │ │ │ │ └── web-extension │ │ │ │ │ │ │ │ │ ├── site-webscripts │ │ │ │ │ │ │ │ │ ├── com │ │ │ │ │ │ │ │ │ │ └── example │ │ │ │ │ │ │ │ │ │ │ └── pages │ │ │ │ │ │ │ │ │ │ │ ├── simple-page.get.html.ftl │ │ │ │ │ │ │ │ │ │ │ ├── simple-page.get.desc.xml │ │ │ │ │ │ │ │ │ │ │ └── simple-page.get.js │ │ │ │ │ │ │ │ │ └── org │ │ │ │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ │ │ ├── site-data │ │ │ │ │ │ │ │ │ └── extensions │ │ │ │ │ │ │ │ │ │ └── __artifactId__-example-widgets.xml │ │ │ │ │ │ │ │ │ ├── messages │ │ │ │ │ │ │ │ │ └── __artifactId__.properties │ │ │ │ │ │ │ │ │ └── __artifactId__-slingshot-application-context.xml │ │ │ │ │ │ │ └── META-INF │ │ │ │ │ │ │ │ └── resources │ │ │ │ │ │ │ │ └── __rootArtifactId__-share-jar │ │ │ │ │ │ │ │ └── js │ │ │ │ │ │ │ │ └── tutorials │ │ │ │ │ │ │ │ └── widgets │ │ │ │ │ │ │ │ ├── i18n │ │ │ │ │ │ │ │ └── TemplateWidget.properties │ │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ └── TemplateWidget.html │ │ │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ │ └── TemplateWidget.css │ │ │ │ │ │ │ │ └── TemplateWidget.js │ │ │ │ │ │ │ └── assembly │ │ │ │ │ │ │ ├── file-mapping.properties │ │ │ │ │ │ │ └── web │ │ │ │ │ │ │ └── README.md │ │ │ │ │ └── pom.xml │ │ │ │ │ ├── run.sh │ │ │ │ │ ├── debug.sh │ │ │ │ │ ├── src │ │ │ │ │ └── test │ │ │ │ │ │ ├── license │ │ │ │ │ │ └── README.md │ │ │ │ │ │ └── resources │ │ │ │ │ │ └── tomcat │ │ │ │ │ │ └── context-solr.xml │ │ │ │ │ ├── integration-tests │ │ │ │ │ └── src │ │ │ │ │ │ └── test │ │ │ │ │ │ └── resources │ │ │ │ │ │ └── tomcat │ │ │ │ │ │ └── context-solr.xml │ │ │ │ │ ├── run.bat │ │ │ │ │ ├── debug.bat │ │ │ │ │ └── README.md │ │ │ ├── 3.1.0 │ │ │ │ └── archetype-resources │ │ │ │ │ ├── __rootArtifactId__-platform-jar │ │ │ │ │ ├── src │ │ │ │ │ │ └── main │ │ │ │ │ │ │ ├── resources │ │ │ │ │ │ │ ├── META-INF │ │ │ │ │ │ │ │ └── resources │ │ │ │ │ │ │ │ │ └── test.html │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ ├── module │ │ │ │ │ │ │ │ └── __artifactId__ │ │ │ │ │ │ │ │ │ ├── log4j.properties │ │ │ │ │ │ │ │ │ ├── alfresco-global.properties │ │ │ │ │ │ │ │ │ ├── messages │ │ │ │ │ │ │ │ │ └── content-model.properties │ │ │ │ │ │ │ │ │ ├── workflow │ │ │ │ │ │ │ │ │ └── sample-process.bpmn20.xml │ │ │ │ │ │ │ │ │ ├── model │ │ │ │ │ │ │ │ │ └── workflow-model.xml │ │ │ │ │ │ │ │ │ └── context │ │ │ │ │ │ │ │ │ └── webscript-context.xml │ │ │ │ │ │ │ │ └── extension │ │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ └── webscripts │ │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ └── tutorials │ │ │ │ │ │ │ │ ├── helloworld.get.html.ftl │ │ │ │ │ │ │ │ ├── helloworld.get.js │ │ │ │ │ │ │ │ └── helloworld.get.desc.xml │ │ │ │ │ │ │ ├── assembly │ │ │ │ │ │ │ ├── file-mapping.properties │ │ │ │ │ │ │ └── web │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ └── java │ │ │ │ │ │ │ └── platformsample │ │ │ │ │ │ │ └── Demo.java │ │ │ │ │ └── pom.xml │ │ │ │ │ ├── __rootArtifactId__-share-jar │ │ │ │ │ ├── src │ │ │ │ │ │ └── main │ │ │ │ │ │ │ ├── resources │ │ │ │ │ │ │ ├── alfresco │ │ │ │ │ │ │ │ ├── web-extension │ │ │ │ │ │ │ │ │ ├── site-webscripts │ │ │ │ │ │ │ │ │ │ ├── com │ │ │ │ │ │ │ │ │ │ │ └── example │ │ │ │ │ │ │ │ │ │ │ │ └── pages │ │ │ │ │ │ │ │ │ │ │ │ ├── simple-page.get.html.ftl │ │ │ │ │ │ │ │ │ │ │ │ ├── simple-page.get.desc.xml │ │ │ │ │ │ │ │ │ │ │ │ └── simple-page.get.js │ │ │ │ │ │ │ │ │ │ └── org │ │ │ │ │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ │ │ ├── site-data │ │ │ │ │ │ │ │ │ │ └── extensions │ │ │ │ │ │ │ │ │ │ │ └── __artifactId__-example-widgets.xml │ │ │ │ │ │ │ │ │ ├── messages │ │ │ │ │ │ │ │ │ │ └── __artifactId__.properties │ │ │ │ │ │ │ │ │ └── __artifactId__-slingshot-application-context.xml │ │ │ │ │ │ │ │ └── module │ │ │ │ │ │ │ │ │ └── __rootArtifactId__-share-jar │ │ │ │ │ │ │ │ │ └── log4j.properties │ │ │ │ │ │ │ └── META-INF │ │ │ │ │ │ │ │ └── resources │ │ │ │ │ │ │ │ └── __rootArtifactId__-share-jar │ │ │ │ │ │ │ │ └── js │ │ │ │ │ │ │ │ └── tutorials │ │ │ │ │ │ │ │ └── widgets │ │ │ │ │ │ │ │ ├── i18n │ │ │ │ │ │ │ │ └── TemplateWidget.properties │ │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ └── TemplateWidget.html │ │ │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ │ └── TemplateWidget.css │ │ │ │ │ │ │ │ └── TemplateWidget.js │ │ │ │ │ │ │ └── assembly │ │ │ │ │ │ │ ├── file-mapping.properties │ │ │ │ │ │ │ └── web │ │ │ │ │ │ │ └── README.md │ │ │ │ │ └── pom.xml │ │ │ │ │ ├── run.sh │ │ │ │ │ ├── debug.sh │ │ │ │ │ ├── src │ │ │ │ │ └── test │ │ │ │ │ │ ├── license │ │ │ │ │ │ └── README.md │ │ │ │ │ │ └── resources │ │ │ │ │ │ └── tomcat │ │ │ │ │ │ └── context-solr.xml │ │ │ │ │ ├── integration-tests │ │ │ │ │ └── src │ │ │ │ │ │ └── test │ │ │ │ │ │ └── resources │ │ │ │ │ │ └── tomcat │ │ │ │ │ │ └── context-solr.xml │ │ │ │ │ ├── run.bat │ │ │ │ │ ├── debug.bat │ │ │ │ │ └── README.md │ │ │ ├── 2.0.0 │ │ │ │ └── archetype-resources │ │ │ │ │ ├── repo-amp │ │ │ │ │ ├── src │ │ │ │ │ │ ├── main │ │ │ │ │ │ │ ├── amp │ │ │ │ │ │ │ │ ├── config │ │ │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ │ │ ├── extension │ │ │ │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ │ │ │ └── webscripts │ │ │ │ │ │ │ │ │ │ │ ├── webscript.get.html.ftl │ │ │ │ │ │ │ │ │ │ │ ├── webscript.get.js │ │ │ │ │ │ │ │ │ │ │ └── webscript.get.desc.xml │ │ │ │ │ │ │ │ │ │ └── module │ │ │ │ │ │ │ │ │ │ └── __artifactId__ │ │ │ │ │ │ │ │ │ │ └── module-context.xml │ │ │ │ │ │ │ │ └── web │ │ │ │ │ │ │ │ │ ├── licenses │ │ │ │ │ │ │ │ │ └── README-licenses.txt │ │ │ │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ │ │ └── demoamp.css │ │ │ │ │ │ │ │ │ ├── scripts │ │ │ │ │ │ │ │ │ └── demoamp.js │ │ │ │ │ │ │ │ │ └── jsp │ │ │ │ │ │ │ │ │ └── demoamp.jsp │ │ │ │ │ │ │ └── java │ │ │ │ │ │ │ │ └── org │ │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ └── demoamp │ │ │ │ │ │ │ │ └── Demo.java │ │ │ │ │ │ └── test │ │ │ │ │ │ │ └── resources │ │ │ │ │ │ │ └── test-log4j.properties │ │ │ │ │ └── run.sh │ │ │ │ │ ├── share-amp │ │ │ │ │ ├── src │ │ │ │ │ │ └── main │ │ │ │ │ │ │ └── amp │ │ │ │ │ │ │ ├── web │ │ │ │ │ │ │ └── js │ │ │ │ │ │ │ │ └── example │ │ │ │ │ │ │ │ └── widgets │ │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ └── TemplateWidget.html │ │ │ │ │ │ │ │ ├── i18n │ │ │ │ │ │ │ │ └── TemplateWidget.properties │ │ │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ │ └── TemplateWidget.css │ │ │ │ │ │ │ │ └── TemplateWidget.js │ │ │ │ │ │ │ ├── config │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ └── web-extension │ │ │ │ │ │ │ │ ├── site-webscripts │ │ │ │ │ │ │ │ └── com │ │ │ │ │ │ │ │ │ └── example │ │ │ │ │ │ │ │ │ └── pages │ │ │ │ │ │ │ │ │ ├── simple-page.get.html.ftl │ │ │ │ │ │ │ │ │ ├── simple-page.get.desc.xml │ │ │ │ │ │ │ │ │ └── simple-page.get.js │ │ │ │ │ │ │ │ └── site-data │ │ │ │ │ │ │ │ └── extensions │ │ │ │ │ │ │ │ └── example-widgets.xml │ │ │ │ │ │ │ └── file-mapping.properties │ │ │ │ │ └── run.sh │ │ │ │ │ ├── repo │ │ │ │ │ └── src │ │ │ │ │ │ └── main │ │ │ │ │ │ └── resources │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ └── extension │ │ │ │ │ │ └── dev-log4j.properties │ │ │ │ │ ├── share │ │ │ │ │ └── src │ │ │ │ │ │ └── main │ │ │ │ │ │ └── properties │ │ │ │ │ │ └── local │ │ │ │ │ │ └── application.properties │ │ │ │ │ ├── run.sh │ │ │ │ │ ├── solr │ │ │ │ │ └── src │ │ │ │ │ │ ├── assembly │ │ │ │ │ │ └── solr-config-assembly.xml │ │ │ │ │ │ └── main │ │ │ │ │ │ └── solr-properties │ │ │ │ │ │ └── log4j-solr.properties │ │ │ │ │ └── runner │ │ │ │ │ ├── tomcat │ │ │ │ │ ├── context-solr.xml │ │ │ │ │ ├── context-repo.xml │ │ │ │ │ └── context-share.xml │ │ │ │ │ └── src │ │ │ │ │ └── main │ │ │ │ │ └── webapp │ │ │ │ │ └── index.html │ │ │ ├── 2.1.0 │ │ │ │ └── archetype-resources │ │ │ │ │ ├── repo-amp │ │ │ │ │ └── src │ │ │ │ │ │ ├── main │ │ │ │ │ │ ├── amp │ │ │ │ │ │ │ ├── config │ │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ │ ├── extension │ │ │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ │ │ └── webscripts │ │ │ │ │ │ │ │ │ │ ├── helloworld.get.html.ftl │ │ │ │ │ │ │ │ │ │ ├── helloworld.get.js │ │ │ │ │ │ │ │ │ │ └── helloworld.get.desc.xml │ │ │ │ │ │ │ │ │ └── module │ │ │ │ │ │ │ │ │ └── __artifactId__ │ │ │ │ │ │ │ │ │ ├── alfresco-global.properties │ │ │ │ │ │ │ │ │ ├── context │ │ │ │ │ │ │ │ │ ├── bootstrap-context.xml │ │ │ │ │ │ │ │ │ └── webscript-context.xml │ │ │ │ │ │ │ │ │ ├── model │ │ │ │ │ │ │ │ │ ├── content-model.xml │ │ │ │ │ │ │ │ │ └── workflow-model.xml │ │ │ │ │ │ │ │ │ └── module-context.xml │ │ │ │ │ │ │ └── web │ │ │ │ │ │ │ │ ├── licenses │ │ │ │ │ │ │ │ └── README-licenses.txt │ │ │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ │ └── demoamp.css │ │ │ │ │ │ │ │ ├── scripts │ │ │ │ │ │ │ │ └── demoamp.js │ │ │ │ │ │ │ │ └── jsp │ │ │ │ │ │ │ │ └── demoamp.jsp │ │ │ │ │ │ └── java │ │ │ │ │ │ │ └── demoamp │ │ │ │ │ │ │ └── Demo.java │ │ │ │ │ │ └── test │ │ │ │ │ │ └── resources │ │ │ │ │ │ └── test-log4j.properties │ │ │ │ │ ├── share-amp │ │ │ │ │ └── src │ │ │ │ │ │ ├── main │ │ │ │ │ │ ├── amp │ │ │ │ │ │ │ ├── web │ │ │ │ │ │ │ │ └── js │ │ │ │ │ │ │ │ │ └── example │ │ │ │ │ │ │ │ │ └── widgets │ │ │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ │ └── TemplateWidget.html │ │ │ │ │ │ │ │ │ ├── i18n │ │ │ │ │ │ │ │ │ └── TemplateWidget.properties │ │ │ │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ │ │ └── TemplateWidget.css │ │ │ │ │ │ │ │ │ └── TemplateWidget.js │ │ │ │ │ │ │ ├── config │ │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ │ └── web-extension │ │ │ │ │ │ │ │ │ ├── site-webscripts │ │ │ │ │ │ │ │ │ ├── com │ │ │ │ │ │ │ │ │ │ └── example │ │ │ │ │ │ │ │ │ │ │ └── pages │ │ │ │ │ │ │ │ │ │ │ ├── simple-page.get.html.ftl │ │ │ │ │ │ │ │ │ │ │ ├── simple-page.get.desc.xml │ │ │ │ │ │ │ │ │ │ │ └── simple-page.get.js │ │ │ │ │ │ │ │ │ └── org │ │ │ │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ │ │ ├── messages │ │ │ │ │ │ │ │ │ └── custom.properties │ │ │ │ │ │ │ │ │ ├── site-data │ │ │ │ │ │ │ │ │ └── extensions │ │ │ │ │ │ │ │ │ │ └── example-widgets.xml │ │ │ │ │ │ │ │ │ └── custom-slingshot-application-context.xml │ │ │ │ │ │ │ └── file-mapping.properties │ │ │ │ │ │ └── resources │ │ │ │ │ │ │ └── META-INF │ │ │ │ │ │ │ └── share-config-custom.xml.sample │ │ │ │ │ │ └── test │ │ │ │ │ │ └── resources │ │ │ │ │ │ └── testng.xml │ │ │ │ │ ├── repo │ │ │ │ │ └── src │ │ │ │ │ │ └── main │ │ │ │ │ │ └── resources │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ └── extension │ │ │ │ │ │ └── dev-log4j.properties │ │ │ │ │ ├── run.sh │ │ │ │ │ ├── run.bat │ │ │ │ │ └── runner │ │ │ │ │ ├── src │ │ │ │ │ └── main │ │ │ │ │ │ └── webapp │ │ │ │ │ │ └── index.html │ │ │ │ │ └── tomcat │ │ │ │ │ └── context-solr.xml │ │ │ ├── 2.1.1 │ │ │ │ └── archetype-resources │ │ │ │ │ ├── repo-amp │ │ │ │ │ └── src │ │ │ │ │ │ ├── main │ │ │ │ │ │ ├── amp │ │ │ │ │ │ │ ├── config │ │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ │ ├── extension │ │ │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ │ │ └── webscripts │ │ │ │ │ │ │ │ │ │ ├── helloworld.get.html.ftl │ │ │ │ │ │ │ │ │ │ ├── helloworld.get.js │ │ │ │ │ │ │ │ │ │ └── helloworld.get.desc.xml │ │ │ │ │ │ │ │ │ └── module │ │ │ │ │ │ │ │ │ └── __artifactId__ │ │ │ │ │ │ │ │ │ ├── alfresco-global.properties │ │ │ │ │ │ │ │ │ ├── context │ │ │ │ │ │ │ │ │ ├── bootstrap-context.xml │ │ │ │ │ │ │ │ │ └── webscript-context.xml │ │ │ │ │ │ │ │ │ ├── model │ │ │ │ │ │ │ │ │ ├── content-model.xml │ │ │ │ │ │ │ │ │ └── workflow-model.xml │ │ │ │ │ │ │ │ │ └── module-context.xml │ │ │ │ │ │ │ └── web │ │ │ │ │ │ │ │ ├── licenses │ │ │ │ │ │ │ │ └── README-licenses.txt │ │ │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ │ └── demoamp.css │ │ │ │ │ │ │ │ ├── scripts │ │ │ │ │ │ │ │ └── demoamp.js │ │ │ │ │ │ │ │ └── jsp │ │ │ │ │ │ │ │ └── demoamp.jsp │ │ │ │ │ │ └── java │ │ │ │ │ │ │ └── demoamp │ │ │ │ │ │ │ └── Demo.java │ │ │ │ │ │ └── test │ │ │ │ │ │ └── resources │ │ │ │ │ │ └── test-log4j.properties │ │ │ │ │ ├── share-amp │ │ │ │ │ └── src │ │ │ │ │ │ ├── main │ │ │ │ │ │ ├── amp │ │ │ │ │ │ │ ├── web │ │ │ │ │ │ │ │ └── js │ │ │ │ │ │ │ │ │ └── example │ │ │ │ │ │ │ │ │ └── widgets │ │ │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ │ └── TemplateWidget.html │ │ │ │ │ │ │ │ │ ├── i18n │ │ │ │ │ │ │ │ │ └── TemplateWidget.properties │ │ │ │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ │ │ └── TemplateWidget.css │ │ │ │ │ │ │ │ │ └── TemplateWidget.js │ │ │ │ │ │ │ ├── config │ │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ │ └── web-extension │ │ │ │ │ │ │ │ │ ├── site-webscripts │ │ │ │ │ │ │ │ │ ├── com │ │ │ │ │ │ │ │ │ │ └── example │ │ │ │ │ │ │ │ │ │ │ └── pages │ │ │ │ │ │ │ │ │ │ │ ├── simple-page.get.html.ftl │ │ │ │ │ │ │ │ │ │ │ ├── simple-page.get.desc.xml │ │ │ │ │ │ │ │ │ │ │ └── simple-page.get.js │ │ │ │ │ │ │ │ │ └── org │ │ │ │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ │ │ ├── messages │ │ │ │ │ │ │ │ │ └── __artifactId__.properties │ │ │ │ │ │ │ │ │ ├── site-data │ │ │ │ │ │ │ │ │ └── extensions │ │ │ │ │ │ │ │ │ │ └── __artifactId__-example-widgets.xml │ │ │ │ │ │ │ │ │ └── __artifactId__-slingshot-application-context.xml │ │ │ │ │ │ │ └── file-mapping.properties │ │ │ │ │ │ └── resources │ │ │ │ │ │ │ └── META-INF │ │ │ │ │ │ │ └── share-config-custom.xml.sample │ │ │ │ │ │ └── test │ │ │ │ │ │ └── resources │ │ │ │ │ │ └── testng.xml │ │ │ │ │ ├── repo │ │ │ │ │ └── src │ │ │ │ │ │ └── main │ │ │ │ │ │ └── resources │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ └── extension │ │ │ │ │ │ └── dev-log4j.properties │ │ │ │ │ ├── run.sh │ │ │ │ │ ├── run.bat │ │ │ │ │ └── runner │ │ │ │ │ ├── src │ │ │ │ │ └── main │ │ │ │ │ │ └── webapp │ │ │ │ │ │ └── index.html │ │ │ │ │ └── tomcat │ │ │ │ │ └── context-solr.xml │ │ │ └── 2.2.0 │ │ │ │ └── archetype-resources │ │ │ │ ├── __rootArtifactId__-repo-amp │ │ │ │ └── src │ │ │ │ │ ├── main │ │ │ │ │ ├── amp │ │ │ │ │ │ ├── config │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ ├── extension │ │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ │ └── webscripts │ │ │ │ │ │ │ │ │ ├── helloworld.get.html.ftl │ │ │ │ │ │ │ │ │ ├── helloworld.get.js │ │ │ │ │ │ │ │ │ └── helloworld.get.desc.xml │ │ │ │ │ │ │ │ └── module │ │ │ │ │ │ │ │ └── __artifactId__ │ │ │ │ │ │ │ │ ├── alfresco-global.properties │ │ │ │ │ │ │ │ ├── context │ │ │ │ │ │ │ │ ├── bootstrap-context.xml │ │ │ │ │ │ │ │ └── webscript-context.xml │ │ │ │ │ │ │ │ ├── model │ │ │ │ │ │ │ │ ├── content-model.xml │ │ │ │ │ │ │ │ └── workflow-model.xml │ │ │ │ │ │ │ │ └── module-context.xml │ │ │ │ │ │ └── web │ │ │ │ │ │ │ ├── licenses │ │ │ │ │ │ │ └── README-licenses.txt │ │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ └── demoamp.css │ │ │ │ │ │ │ ├── scripts │ │ │ │ │ │ │ └── demoamp.js │ │ │ │ │ │ │ └── jsp │ │ │ │ │ │ │ └── demoamp.jsp │ │ │ │ │ └── java │ │ │ │ │ │ └── demoamp │ │ │ │ │ │ └── Demo.java │ │ │ │ │ └── test │ │ │ │ │ └── resources │ │ │ │ │ └── test-log4j.properties │ │ │ │ ├── __rootArtifactId__-share-amp │ │ │ │ └── src │ │ │ │ │ ├── main │ │ │ │ │ ├── amp │ │ │ │ │ │ ├── web │ │ │ │ │ │ │ └── js │ │ │ │ │ │ │ │ └── example │ │ │ │ │ │ │ │ └── widgets │ │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ └── TemplateWidget.html │ │ │ │ │ │ │ │ ├── i18n │ │ │ │ │ │ │ │ └── TemplateWidget.properties │ │ │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ │ └── TemplateWidget.css │ │ │ │ │ │ │ │ └── TemplateWidget.js │ │ │ │ │ │ ├── config │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ └── web-extension │ │ │ │ │ │ │ │ ├── site-webscripts │ │ │ │ │ │ │ │ ├── com │ │ │ │ │ │ │ │ │ └── example │ │ │ │ │ │ │ │ │ │ └── pages │ │ │ │ │ │ │ │ │ │ ├── simple-page.get.html.ftl │ │ │ │ │ │ │ │ │ │ ├── simple-page.get.desc.xml │ │ │ │ │ │ │ │ │ │ └── simple-page.get.js │ │ │ │ │ │ │ │ └── org │ │ │ │ │ │ │ │ │ └── alfresco │ │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ │ ├── messages │ │ │ │ │ │ │ │ └── __artifactId__.properties │ │ │ │ │ │ │ │ ├── site-data │ │ │ │ │ │ │ │ └── extensions │ │ │ │ │ │ │ │ │ └── __artifactId__-example-widgets.xml │ │ │ │ │ │ │ │ └── __artifactId__-slingshot-application-context.xml │ │ │ │ │ │ └── file-mapping.properties │ │ │ │ │ └── resources │ │ │ │ │ │ └── META-INF │ │ │ │ │ │ └── share-config-custom.xml.sample │ │ │ │ │ └── test │ │ │ │ │ └── resources │ │ │ │ │ └── testng.xml │ │ │ │ ├── run.bat │ │ │ │ ├── run.sh │ │ │ │ ├── repo │ │ │ │ └── src │ │ │ │ │ └── main │ │ │ │ │ └── resources │ │ │ │ │ └── alfresco │ │ │ │ │ └── extension │ │ │ │ │ └── dev-log4j.properties │ │ │ │ └── runner │ │ │ │ ├── src │ │ │ │ └── main │ │ │ │ │ └── webapp │ │ │ │ │ └── index.html │ │ │ │ └── tomcat │ │ │ │ └── context-solr.xml │ │ ├── repo │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── resources │ │ │ │ └── alfresco │ │ │ │ └── extension │ │ │ │ └── license │ │ │ │ └── README.md │ │ ├── scripts │ │ │ ├── find-exploded.sh │ │ │ ├── grep-exploded.sh │ │ │ ├── package-to-exploded.sh │ │ │ └── env.sh │ │ ├── customizations │ │ │ ├── modules │ │ │ │ ├── share │ │ │ │ │ └── README.md │ │ │ │ └── platform │ │ │ │ │ └── README.md │ │ │ ├── amps │ │ │ │ └── README.md │ │ │ ├── amps_share │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ └── pom.xml │ │ ├── gitignore │ │ ├── editorconfig │ │ ├── sdk3-scripts │ │ │ ├── run.sh │ │ │ ├── debug.sh │ │ │ ├── run.bat │ │ │ ├── debug.bat │ │ │ └── explode-alf-sources.sh │ │ ├── generated-README.md │ │ ├── sdk2-scripts │ │ │ ├── run.bat │ │ │ ├── debug.sh │ │ │ ├── run-without-springloaded.sh │ │ │ ├── explode-alf-sources.sh │ │ │ └── run.sh │ │ └── source_templates │ │ │ └── README.md │ └── USAGE ├── action │ └── templates │ │ ├── action.properties │ │ └── action-context.xml ├── amp │ └── USAGE ├── module │ └── USAGE ├── amp-add-local │ └── USAGE ├── amp-add-remote │ └── USAGE ├── amp-add-source │ ├── USAGE │ └── index.js ├── jar-add-local │ └── USAGE ├── module-add-source │ └── USAGE ├── behavior │ └── templates │ │ └── behavior-context.xml ├── jsrootobject │ └── templates │ │ └── jsroot-object-context.xml ├── model │ ├── templates │ │ ├── custom-model-context.xml │ │ └── customModel.properties │ └── model-prompt-filters.js ├── surf-extension │ └── surf-extension-prompt-filters.js └── base-generator.js ├── .gitignore ├── test ├── fixtures │ ├── repo-amp.amp │ ├── empty-amp.amp │ ├── empty-jar.jar │ ├── share-amp.amp │ ├── share-jar.jar │ └── platform-jar.jar ├── test-eslint.js ├── test-app-enterprise-3-0-1.js ├── test-app-enterprise-3-1-0.js ├── test-app-enterprise-2-1-1.js └── test-surf-extensions-prompt-filters.js ├── .bithoundrc ├── .editorconfig ├── .jshintrc ├── .eslintrc.js ├── .travis.yml └── .github ├── PULL_REQUEST_TEMPLATE.md └── ISSUE_TEMPLATE.md /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | **/templates/**/*.js 2 | -------------------------------------------------------------------------------- /.coveralls.yml: -------------------------------------------------------------------------------- 1 | service_name: travis-ci 2 | -------------------------------------------------------------------------------- /generators/webscript/templates/de.properties: -------------------------------------------------------------------------------- 1 | greeting=Hallo 2 | -------------------------------------------------------------------------------- /generators/webscript/templates/en.properties: -------------------------------------------------------------------------------- 1 | greeting=Hello 2 | -------------------------------------------------------------------------------- /generators/webscript/templates/es.properties: -------------------------------------------------------------------------------- 1 | greeting=Hola 2 | -------------------------------------------------------------------------------- /generators/webscript/templates/fr.properties: -------------------------------------------------------------------------------- 1 | greeting=Bonjour 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea 3 | generator-alfresco.iml 4 | npm-debug.log 5 | *~ 6 | coverage/ 7 | node_modules/ 8 | -------------------------------------------------------------------------------- /test/fixtures/repo-amp.amp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/binduwavell/generator-alfresco/HEAD/test/fixtures/repo-amp.amp -------------------------------------------------------------------------------- /test/fixtures/empty-amp.amp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/binduwavell/generator-alfresco/HEAD/test/fixtures/empty-amp.amp -------------------------------------------------------------------------------- /test/fixtures/empty-jar.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/binduwavell/generator-alfresco/HEAD/test/fixtures/empty-jar.jar -------------------------------------------------------------------------------- /test/fixtures/share-amp.amp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/binduwavell/generator-alfresco/HEAD/test/fixtures/share-amp.amp -------------------------------------------------------------------------------- /test/fixtures/share-jar.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/binduwavell/generator-alfresco/HEAD/test/fixtures/share-jar.jar -------------------------------------------------------------------------------- /test/fixtures/platform-jar.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/binduwavell/generator-alfresco/HEAD/test/fixtures/platform-jar.jar -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/META-INF/resources/test.html: -------------------------------------------------------------------------------- 1 | Test 123 -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/META-INF/resources/test.html: -------------------------------------------------------------------------------- 1 | Test 123 -------------------------------------------------------------------------------- /.bithoundrc: -------------------------------------------------------------------------------- 1 | { 2 | "ignore": [ 3 | "**/incomplete-action/**", 4 | "**/node_modules/**" 5 | ], 6 | "test": [ 7 | "test/**" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/repo-amp/src/main/amp/config/alfresco/extension/templates/webscripts/webscript.get.html.ftl: -------------------------------------------------------------------------------- 1 | Message: ${message} -------------------------------------------------------------------------------- /generators/app/templates/repo/src/main/resources/alfresco/extension/license/README.md: -------------------------------------------------------------------------------- 1 | license 2 | ======= 3 | 4 | Place your enterprise license file in this directory. 5 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/repo-amp/src/main/amp/config/alfresco/extension/templates/webscripts/webscript.get.js: -------------------------------------------------------------------------------- 1 | model["message"] = "Hello World!"; -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/share-amp/src/main/amp/web/js/example/widgets/templates/TemplateWidget.html: -------------------------------------------------------------------------------- 1 |
${greeting}
-------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.html.ftl: -------------------------------------------------------------------------------- 1 | Message: ${fromJS} ${fromJava} -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/main/amp/web/js/example/widgets/templates/TemplateWidget.html: -------------------------------------------------------------------------------- 1 |
${greeting}
-------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.html.ftl: -------------------------------------------------------------------------------- 1 | Message: ${fromJS} ${fromJava} -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/main/amp/web/js/example/widgets/templates/TemplateWidget.html: -------------------------------------------------------------------------------- 1 |
${greeting}
-------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/share-amp/src/main/amp/web/js/example/widgets/i18n/TemplateWidget.properties: -------------------------------------------------------------------------------- 1 | hello-label=Hello from i18n! 2 | hello-test=New label! -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.js: -------------------------------------------------------------------------------- 1 | model["fromJS"] = "Hello World from JS!"; -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/main/amp/web/js/example/widgets/i18n/TemplateWidget.properties: -------------------------------------------------------------------------------- 1 | hello-label=Hello from i18n! 2 | hello-test=New label! -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.js: -------------------------------------------------------------------------------- 1 | model["fromJS"] = "Hello World from JS!"; -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/main/amp/web/js/example/widgets/i18n/TemplateWidget.properties: -------------------------------------------------------------------------------- 1 | hello-label=Hello from i18n! 2 | hello-test=New label! -------------------------------------------------------------------------------- /generators/webscript/templates/csv.ftl: -------------------------------------------------------------------------------- 1 | <#escape x as x?replace('"', '""')> 2 | "header-row","field1","field2" 3 | "${data}","${msg("greeting")}","${item!"config not loaded"}" 4 | 5 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.html.ftl: -------------------------------------------------------------------------------- 1 | Message: ${fromJS} ${fromJava} -------------------------------------------------------------------------------- /generators/webscript/templates/html.ftl: -------------------------------------------------------------------------------- 1 | <#escape x as x?html> 2 | 3 |

${data}

4 |

${msg("greeting")}

5 |

${item!"config not loaded"}

7 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.html.ftl: -------------------------------------------------------------------------------- 1 | <@processJsonModel group="share"/> -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.html.ftl: -------------------------------------------------------------------------------- 1 | <@processJsonModel group="share"/> -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.html.ftl: -------------------------------------------------------------------------------- 1 | <@processJsonModel group="share"/> -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.js: -------------------------------------------------------------------------------- 1 | model["fromJS"] = "Hello World from JS!"; -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/main/amp/web/js/example/widgets/templates/TemplateWidget.html: -------------------------------------------------------------------------------- 1 |
${greeting}
-------------------------------------------------------------------------------- /generators/webscript/templates/json.ftl: -------------------------------------------------------------------------------- 1 | <#escape x as x?json_string> 2 | { 3 | "data": "${data}", 4 | "greeting": "${msg("greeting")}", 5 | "item": "${item!"config not loaded"}" 6 | } 7 | 8 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/repo-amp/src/main/amp/web/licenses/README-licenses.txt: -------------------------------------------------------------------------------- 1 | This folder (root in the AMP) gets mapped automagically in WEB-INF/licenses 2 | in the war build -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/amp/web/licenses/README-licenses.txt: -------------------------------------------------------------------------------- 1 | This folder (root in the AMP) gets mapped automagically in WEB-INF/licenses 2 | in the war build -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/amp/web/licenses/README-licenses.txt: -------------------------------------------------------------------------------- 1 | This folder (root in the AMP) gets mapped automagically in WEB-INF/licenses 2 | in the war build -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/main/amp/web/js/example/widgets/i18n/TemplateWidget.properties: -------------------------------------------------------------------------------- 1 | hello-label=Hello from i18n! 2 | hello-test=New label! -------------------------------------------------------------------------------- /generators/app/templates/scripts/find-exploded.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DIR=$( cd "$( dirname "$BASH_SOURCE[0]" )" && pwd ) 4 | 5 | CWD=$( pwd ) 6 | cd "$DIR/../exploded" 7 | find $( pwd ) $@ 8 | cd "$CWD" 9 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.html.ftl: -------------------------------------------------------------------------------- 1 | <@processJsonModel group="share"/> -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.html.ftl: -------------------------------------------------------------------------------- 1 | <@processJsonModel group="share"/> -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/log4j.properties: -------------------------------------------------------------------------------- 1 | # Add here module-specific custom log4j.properties configuration -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.html.ftl: -------------------------------------------------------------------------------- 1 | <@processJsonModel group="share"/> -------------------------------------------------------------------------------- /generators/app/templates/customizations/modules/share/README.md: -------------------------------------------------------------------------------- 1 | share 2 | ===== 3 | Place pre-packaged share jar modules in here and then use: 4 | 5 | yo alfresco:module-add-local 6 | 7 | to install into your project. 8 | -------------------------------------------------------------------------------- /generators/app/templates/gitignore: -------------------------------------------------------------------------------- 1 | .classpath 2 | .externalToolBuilders 3 | .idea 4 | .ipr 5 | *.iml 6 | .project 7 | .settings 8 | /*.log 9 | /*.log* 10 | target/ 11 | alf_data_dev/ 12 | exploded/ 13 | overlays/ 14 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/amp/web/licenses/README-licenses.txt: -------------------------------------------------------------------------------- 1 | This folder (root in the AMP) gets mapped automagically in WEB-INF/licenses 2 | in the war build -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.html.ftl: -------------------------------------------------------------------------------- 1 | Message: '${fromJS}' '${fromJava}' -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.js: -------------------------------------------------------------------------------- 1 | model["fromJS"] = "Hello from JS!"; 2 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.html.ftl: -------------------------------------------------------------------------------- 1 | Message: '${fromJS}' '${fromJava}' -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.js: -------------------------------------------------------------------------------- 1 | model["fromJS"] = "Hello from JS!"; 2 | -------------------------------------------------------------------------------- /generators/app/templates/customizations/amps/README.md: -------------------------------------------------------------------------------- 1 | amps 2 | ==== 3 | Place pre-packaged repo amps in here and then use: 4 | 5 | ```bash 6 | yo alfresco:amp-add-local 7 | ``` 8 | 9 | to install into your project. 10 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/share-amp/src/main/amp/web/js/example/widgets/css/TemplateWidget.css: -------------------------------------------------------------------------------- 1 | .my-template-widget { 2 | border: 1px #000000 solid; 3 | padding: 1em; 4 | width: 100px; 5 | } -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/main/amp/web/js/example/widgets/css/TemplateWidget.css: -------------------------------------------------------------------------------- 1 | .my-template-widget { 2 | border: 1px #000000 solid; 3 | padding: 1em; 4 | width: 100px; 5 | } -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/main/amp/web/js/example/widgets/css/TemplateWidget.css: -------------------------------------------------------------------------------- 1 | .my-template-widget { 2 | border: 1px #000000 solid; 3 | padding: 1em; 4 | width: 100px; 5 | } -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/module/__rootArtifactId__-share-jar/log4j.properties: -------------------------------------------------------------------------------- 1 | # Add here module-specific custom log4j.properties configuration -------------------------------------------------------------------------------- /generators/app/templates/customizations/modules/platform/README.md: -------------------------------------------------------------------------------- 1 | platform 2 | ======== 3 | Place pre-packaged repo jar modules in here and then use: 4 | 5 | yo alfresco:module-add-local 6 | 7 | to install into your project. 8 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/META-INF/resources/__rootArtifactId__-share-jar/js/tutorials/widgets/i18n/TemplateWidget.properties: -------------------------------------------------------------------------------- 1 | hello-label=Hello from i18n 2 | 3 | 4 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/META-INF/resources/__rootArtifactId__-share-jar/js/tutorials/widgets/i18n/TemplateWidget.properties: -------------------------------------------------------------------------------- 1 | hello-label=Hello from i18n 2 | 3 | 4 | -------------------------------------------------------------------------------- /generators/app/templates/customizations/amps_share/README.md: -------------------------------------------------------------------------------- 1 | amps\_share 2 | =========== 3 | Place pre-packaged share amps in here and then use: 4 | 5 | ```bash 6 | yo alfresco:amp-add-local 7 | ``` 8 | 9 | to install into your project. 10 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/main/amp/web/js/example/widgets/css/TemplateWidget.css: -------------------------------------------------------------------------------- 1 | .my-template-widget { 2 | border: 1px #000000 solid; 3 | padding: 1em; 4 | width: 100px; 5 | } -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/META-INF/resources/__rootArtifactId__-share-jar/js/tutorials/widgets/templates/TemplateWidget.html: -------------------------------------------------------------------------------- 1 |
${greeting}
-------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/META-INF/resources/__rootArtifactId__-share-jar/js/tutorials/widgets/templates/TemplateWidget.html: -------------------------------------------------------------------------------- 1 |
${greeting}
-------------------------------------------------------------------------------- /generators/app/templates/scripts/grep-exploded.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DIR=$( cd "$( dirname "$BASH_SOURCE[0]" )" && pwd ) 4 | 5 | grep $@ --line-number --color=always --exclude-dir={.bzr,.cvs,.git,.hg,.svn} --recursive "$DIR/../exploded/" | less -R 6 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | -------------------------------------------------------------------------------- /generators/webscript/templates/xml.ftl: -------------------------------------------------------------------------------- 1 | <#escape x as x?xml> 2 | 3 | 4 | ${data} 5 | ${msg("greeting")} 6 | ${item!"config not loaded"} 7 | 8 | 9 | -------------------------------------------------------------------------------- /generators/app/templates/scripts/package-to-exploded.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DIR=$( cd "$( dirname "$BASH_SOURCE[0]" )" && pwd ) 4 | 5 | CWD=$( pwd ) 6 | cd "$DIR/../exploded" 7 | FILE="$( echo "$1" | sed 's|\.|\/|g' ).java" 8 | echo "$( pwd )/$FILE" 9 | cd "$CWD" 10 | -------------------------------------------------------------------------------- /generators/app/templates/editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | -------------------------------------------------------------------------------- /generators/app/templates/sdk3-scripts/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [[ -z ${MAVEN_OPTS} ]]; then 3 | echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you"; 4 | MAVEN_OPTS="-Xms256m -Xmx2G" 5 | fi 6 | echo "MAVEN_OPTS is set to '$MAVEN_OPTS'"; 7 | mvn clean install alfresco:run $@ 8 | -------------------------------------------------------------------------------- /generators/app/templates/sdk3-scripts/debug.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [[ -z ${MAVEN_OPTS} ]]; then 3 | echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you"; 4 | MAVEN_OPTS="-Xms256m -Xmx2G" 5 | fi 6 | echo "MAVEN_OPTS is set to '$MAVEN_OPTS'"; 7 | mvnDebug clean install alfresco:run $@ 8 | -------------------------------------------------------------------------------- /generators/action/templates/action.properties: -------------------------------------------------------------------------------- 1 | <%- artifactId %>.<%- actionId %>.title=<%- actionTitle %> 2 | <%- artifactId %>.<%- actionId %>.description=<%- actionDescription %> 3 | <%- artifactId %>.<%- actionId %>.one.display-label=First Param 4 | <%- artifactId %>.<%- actionId %>.two.display-label=Second Param 5 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/repo/src/main/resources/alfresco/extension/dev-log4j.properties: -------------------------------------------------------------------------------- 1 | # You can add here custom log4j classes. This will be merged with the main log4j.properties 2 | # See http://wiki.alfresco.com/wiki/Developing_an_Alfresco_Module#Best_Log4j_Configuration_Practices -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo/src/main/resources/alfresco/extension/dev-log4j.properties: -------------------------------------------------------------------------------- 1 | # You can add here custom log4j classes. This will be merged with the main log4j.properties 2 | # See http://wiki.alfresco.com/wiki/Developing_an_Alfresco_Module#Best_Log4j_Configuration_Practices -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [[ -z ${MAVEN_OPTS} ]]; then 3 | echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you"; 4 | MAVEN_OPTS="-Xms256m -Xmx2G" 5 | fi 6 | echo "MAVEN_OPTS is set to '$MAVEN_OPTS'"; 7 | mvn clean install alfresco:run -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [[ -z ${MAVEN_OPTS} ]]; then 3 | echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you"; 4 | MAVEN_OPTS="-Xms256m -Xmx2G" 5 | fi 6 | echo "MAVEN_OPTS is set to '$MAVEN_OPTS'"; 7 | mvn clean install alfresco:run -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/run.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | IF "%MAVEN_OPTS%" == "" ( 4 | ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you 5 | SET MAVEN_OPTS=-Xms256m -Xmx2G -XX:PermSize=300m 6 | ) 7 | ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%' 8 | mvn clean install -Prun -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/debug.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [[ -z ${MAVEN_OPTS} ]]; then 3 | echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you"; 4 | MAVEN_OPTS="-Xms256m -Xmx2G" 5 | fi 6 | echo "MAVEN_OPTS is set to '$MAVEN_OPTS'"; 7 | mvnDebug clean install alfresco:run -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/debug.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [[ -z ${MAVEN_OPTS} ]]; then 3 | echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you"; 4 | MAVEN_OPTS="-Xms256m -Xmx2G" 5 | fi 6 | echo "MAVEN_OPTS is set to '$MAVEN_OPTS'"; 7 | mvnDebug clean install alfresco:run -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [[ -z ${MAVEN_OPTS} ]]; then 3 | echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you"; 4 | MAVEN_OPTS="-Xms256m -Xmx1524m -XX:PermSize=300m" 5 | fi 6 | echo "MAVEN_OPTS is set to '$MAVEN_OPTS'"; 7 | mvn clean install -Prun -------------------------------------------------------------------------------- /generators/webscript/templates/webscript-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/META-INF/resources/__rootArtifactId__-share-jar/js/tutorials/widgets/css/TemplateWidget.css: -------------------------------------------------------------------------------- 1 | .my-template-widget { 2 | border: 1px #000000 solid; 3 | padding: 1em; 4 | width: 100px; 5 | background-color: deepskyblue; 6 | } -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/META-INF/resources/__rootArtifactId__-share-jar/js/tutorials/widgets/css/TemplateWidget.css: -------------------------------------------------------------------------------- 1 | .my-template-widget { 2 | border: 1px #000000 solid; 3 | padding: 1em; 4 | width: 100px; 5 | background-color: deepskyblue; 6 | } -------------------------------------------------------------------------------- /generators/app/templates/generated-README.md: -------------------------------------------------------------------------------- 1 | generated 2 | ========= 3 | 4 | The Alfresco Yeoman generator will place generated bean definitions here. If you 5 | need to modify these beans, it is recommended that you move the bean definition 6 | up one level to context and then add an explicit include for your beans in 7 | module-context as necessary. 8 | -------------------------------------------------------------------------------- /generators/app/templates/sdk2-scripts/run.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | IF "%MAVEN_OPTS%" == "" ( 4 | ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you 5 | SET MAVEN_OPTS=-Xms256m -Xmx2G -XX:PermSize=300m 6 | ) 7 | ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%' 8 | mvn clean install -Prun <%= enterpriseFlag %> %1 %2 %3 %4 %5 %6 %7 %8 %9 -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.desc.xml: -------------------------------------------------------------------------------- 1 | 2 | Simple Page 3 | Simple page definition 4 | Share 5 | /simple-page 6 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.desc.xml: -------------------------------------------------------------------------------- 1 | 2 | Simple Page 3 | Simple page definition 4 | Share 5 | /simple-page 6 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.desc.xml: -------------------------------------------------------------------------------- 1 | 2 | Simple Page 3 | Simple page definition 4 | Share 5 | /simple-page 6 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "node": true, 3 | "esnext": true, 4 | "bitwise": true, 5 | "camelcase": true, 6 | "curly": true, 7 | "eqeqeq": true, 8 | "immed": true, 9 | "indent": 2, 10 | "latedef": true, 11 | "newcap": true, 12 | "noarg": true, 13 | "quotmark": "single", 14 | "undef": true, 15 | "unused": true, 16 | "strict": true 17 | } 18 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.desc.xml: -------------------------------------------------------------------------------- 1 | 2 | Simple Page 3 | Simple page definition 4 | Share 5 | /simple-page 6 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.desc.xml: -------------------------------------------------------------------------------- 1 | 2 | Simple Page 3 | Simple page definition 4 | Share 5 | /simple-page 6 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.desc.xml: -------------------------------------------------------------------------------- 1 | 2 | Simple Page 3 | Simple page definition 4 | Share 5 | /simple-page 6 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/src/test/license/README.md: -------------------------------------------------------------------------------- 1 | # Enterprise License location 2 | 3 | Put the Alfresco Enterprise license file in this directory. 4 | It will then be copied into the Platform WAR in the 5 | WEB-INF/classes/alfresco/extension/license directory. 6 | 7 | And then not be part of any other classpaths. 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/src/test/license/README.md: -------------------------------------------------------------------------------- 1 | # Enterprise License location 2 | 3 | Put the Alfresco Enterprise license file in this directory. 4 | It will then be copied into the Platform WAR in the 5 | WEB-INF/classes/alfresco/extension/license directory. 6 | 7 | And then not be part of any other classpaths. 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /generators/app/templates/sdk2-scripts/debug.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DIR=$( cd "$( dirname "$BASH_SOURCE[0]" )" && pwd ) 4 | 5 | pushd . > /dev/null 6 | cd "$DIR" 7 | CWD=$( basename $DIR ) 8 | if [ "scripts" == "$CWD" ] 9 | then 10 | cd .. 11 | fi 12 | 13 | MAVEN_OPTS="-Xms256m -Xmx2G -XX:PermSize=300m" mvnDebug install -Prun <%= enterpriseFlag %> $@ 14 | 15 | popd > /dev/null 16 | -------------------------------------------------------------------------------- /generators/app/templates/sdk2-scripts/run-without-springloaded.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DIR=$( cd "$( dirname "$BASH_SOURCE[0]" )" && pwd ) 4 | 5 | pushd . > /dev/null 6 | cd "$DIR" 7 | CWD=$( basename $DIR ) 8 | if [ "scripts" == "$CWD" ] 9 | then 10 | cd .. 11 | fi 12 | 13 | MAVEN_OPTS="-Xms256m -Xmx2G -XX:PermSize=300m" mvn install -Prun <%= enterpriseFlag %> $@ 14 | 15 | popd > /dev/null 16 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/share/src/main/properties/local/application.properties: -------------------------------------------------------------------------------- 1 | # SHARE client environment dependent properties (local build) 2 | share.server.scheme=http 3 | share.server.name=localhost 4 | share.server.port=${jetty.port} 5 | alfresco.server.scheme=http 6 | alfresco.server.name=localhost 7 | alfresco.server.port=${jetty.port} 8 | alfresco.webapp.name=alfresco -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/repo-amp/src/main/amp/config/alfresco/extension/templates/webscripts/webscript.get.desc.xml: -------------------------------------------------------------------------------- 1 | 2 | Javascript Sample Webscript 3 | Hands back a greeting 4 | /sample/helloworld 5 | user 6 | 7 | -------------------------------------------------------------------------------- /generators/webscript/USAGE: -------------------------------------------------------------------------------- 1 | Notes: 2 | The module-path option should be specified as a relative path from the root of 3 | your project to the folder that contains the pom.xml file for your module. Say 4 | you used 'yo alfresco:module' to create a repository module called 5 | client-repo-amp directly in the customizations folder. In this case you would 6 | provide the value 'customizations/client-repo-amp'. 7 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.desc.xml: -------------------------------------------------------------------------------- 1 | 2 | Hello World Sample Webscript 3 | Hands back a greeting 4 | /sample/helloworld 5 | user 6 | 7 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.desc.xml: -------------------------------------------------------------------------------- 1 | 2 | Hello World Sample Webscript 3 | Hands back a greeting 4 | /sample/helloworld 5 | user 6 | 7 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/messages/custom.properties: -------------------------------------------------------------------------------- 1 | # This file should contain messages and labels specific to this share extension 2 | # Put here things like: 3 | # Content Model Aspect and Type Labels 4 | # Form field labels 5 | # Doc lib Action labels and messages 6 | # Doc Lib Action Forms labels 7 | # 8 | 9 | 10 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/messages/__artifactId__.properties: -------------------------------------------------------------------------------- 1 | # This file should contain messages and labels specific to this share extension 2 | # Put here things like: 3 | # Content Model Aspect and Type Labels 4 | # Form field labels 5 | # Doc lib Action labels and messages 6 | # Doc Lib Action Forms labels 7 | # 8 | 9 | 10 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/org/alfresco/README.md: -------------------------------------------------------------------------------- 1 | ## If you are overriding out-of-the-box Alfresco web scripts, put these files here 2 | ## in the correct org.alfresco... package. 3 | ## If you are defining a new custom web script, add it under 4 | ## resources/alfresco/web-extension/site-webscripts/{your domain path}. 5 | ## 6 | 7 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/org/alfresco/README.md: -------------------------------------------------------------------------------- 1 | ## If you are overriding out-of-the-box Alfresco web scripts, put these files here 2 | ## in the correct org.alfresco... package. 3 | ## If you are defining a new custom web script, add it under 4 | ## resources/alfresco/web-extension/site-webscripts/{your domain path}. 5 | ## 6 | 7 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.desc.xml: -------------------------------------------------------------------------------- 1 | 2 | Hello World Sample Webscript 3 | Hands back a greeting 4 | /sample/helloworld 5 | user 6 | 7 | -------------------------------------------------------------------------------- /generators/webscript/templates/controller.js: -------------------------------------------------------------------------------- 1 | // See http://docs.alfresco.com/5.1/references/dev-extension-points-webscripts.html 2 | model.data = 'Facts and statistics collected together for reference or analysis.'.toLocaleLowerCase(); 3 | 4 | // See http://docs.alfresco.com/5.1/references/api-ws-obj-config.html 5 | // for details on the config root scoped object 6 | var cfg = new XML(config.script); 7 | model.item = cfg.item[0].toString(); 8 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | /* eslint-env node */ 2 | module.exports = { 3 | "env": { 4 | "node": true 5 | }, 6 | "extends": "standard", 7 | "plugins": [ 8 | "standard" 9 | ], 10 | "rules": { 11 | "comma-dangle": ["error", "always-multiline"], 12 | "no-template-curly-in-string": ["off"], 13 | "operator-linebreak": ["error", "before"], 14 | "semi": ["error", "always", { "omitLastInOneLineBlock": true}], 15 | } 16 | }; 17 | -------------------------------------------------------------------------------- /generators/amp/USAGE: -------------------------------------------------------------------------------- 1 | Note: 2 | There is currently a bug in yeoman if you pass numbers as arguments; 3 | as is often the case for the version option. Versions such as #.0 4 | are treated as simply # (1.0 become 1). As as a short-term workaround 5 | for this issue, you may prefix versions with "VERSION-", no quotes, 6 | upper-case and the dash is required. We'll strip this prefix for you. 7 | We apologise for the inconvenience -- The Mgmt 8 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/main/amp/config/alfresco/web-extension/messages/__artifactId__.properties: -------------------------------------------------------------------------------- 1 | # This file should contain messages and labels specific to this share extension 2 | # Put here things like: 3 | # Content Model Aspect and Type Labels 4 | # Form field labels 5 | # Doc lib Action labels and messages 6 | # Doc Lib Action Forms labels 7 | # 8 | 9 | 10 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/site-webscripts/org/alfresco/README.md: -------------------------------------------------------------------------------- 1 | ## If you are overriding out-of-the-box Alfresco web scripts, put these files here 2 | ## in the correct org.alfresco... package. 3 | ## If you are defining a new custom web script, add it under 4 | ## resources/alfresco/web-extension/site-webscripts/{your domain path}. 5 | ## 6 | 7 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/site-webscripts/org/alfresco/README.md: -------------------------------------------------------------------------------- 1 | ## If you are overriding out-of-the-box Alfresco web scripts, put these files here 2 | ## in the correct org.alfresco... package. 3 | ## If you are defining a new custom web script, add it under 4 | ## resources/alfresco/web-extension/site-webscripts/{your domain path}. 5 | ## 6 | 7 | -------------------------------------------------------------------------------- /generators/app/templates/source_templates/README.md: -------------------------------------------------------------------------------- 1 | source\_templates 2 | ================ 3 | 4 | When the `yo alfresco` generator created this project, it copied the default source 5 | modules (likely repo-amp and share-amp or platform-jar and share-jar) folder 6 | hierarchies created by maven here. The `yo alfresco:amp-add-source` and 7 | `yo alfresco:module-add-source` sub-generators utilizes these copies as the basis 8 | for new source modules. 9 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/org/alfresco/README.md: -------------------------------------------------------------------------------- 1 | ## If you are overriding out-of-the-box Alfresco web scripts, put these files here 2 | ## in the correct org.alfresco... package. 3 | ## If you are defining a new custom web script, add it under 4 | ## resources/alfresco/web-extension/site-webscripts/{your domain path}. 5 | ## 6 | 7 | -------------------------------------------------------------------------------- /generators/module/USAGE: -------------------------------------------------------------------------------- 1 | Note: 2 | There is currently a bug in yeoman if you pass numbers as arguments; 3 | as is often the case for the version option. Versions such as #.0 4 | are treated as simply # (1.0 become 1). As as a short-term workaround 5 | for this issue, you may prefix versions with "VERSION-", no quotes, 6 | upper-case and the dash is required. We'll strip this prefix for you. 7 | We apologise for the inconvenience -- The Mgmt 8 | -------------------------------------------------------------------------------- /generators/amp-add-local/USAGE: -------------------------------------------------------------------------------- 1 | Note: 2 | There is currently a bug in yeoman if you pass numbers as arguments; 3 | as is often the case for the version option. Versions such as #.0 4 | are treated as simply # (1.0 become 1). As as a short-term workaround 5 | for this issue, you may prefix versions with "VERSION-", no quotes, 6 | upper-case and the dash is required. We'll strip this prefix for you. 7 | We apologise for the inconvenience -- The Mgmt 8 | -------------------------------------------------------------------------------- /generators/amp-add-remote/USAGE: -------------------------------------------------------------------------------- 1 | Note: 2 | There is currently a bug in yeoman if you pass numbers as arguments; 3 | as is often the case for the version option. Versions such as #.0 4 | are treated as simply # (1.0 become 1). As as a short-term workaround 5 | for this issue, you may prefix versions with "VERSION-", no quotes, 6 | upper-case and the dash is required. We'll strip this prefix for you. 7 | We apologise for the inconvenience -- The Mgmt 8 | -------------------------------------------------------------------------------- /generators/amp-add-source/USAGE: -------------------------------------------------------------------------------- 1 | Note: 2 | There is currently a bug in yeoman if you pass numbers as arguments; 3 | as is often the case for the version option. Versions such as #.0 4 | are treated as simply # (1.0 become 1). As as a short-term workaround 5 | for this issue, you may prefix versions with "VERSION-", no quotes, 6 | upper-case and the dash is required. We'll strip this prefix for you. 7 | We apologise for the inconvenience -- The Mgmt 8 | -------------------------------------------------------------------------------- /generators/jar-add-local/USAGE: -------------------------------------------------------------------------------- 1 | Note: 2 | There is currently a bug in yeoman if you pass numbers as arguments; 3 | as is often the case for the version option. Versions such as #.0 4 | are treated as simply # (1.0 become 1). As as a short-term workaround 5 | for this issue, you may prefix versions with "VERSION-", no quotes, 6 | upper-case and the dash is required. We'll strip this prefix for you. 7 | We apologise for the inconvenience -- The Mgmt 8 | -------------------------------------------------------------------------------- /generators/module-add-source/USAGE: -------------------------------------------------------------------------------- 1 | Note: 2 | There is currently a bug in yeoman if you pass numbers as arguments; 3 | as is often the case for the version option. Versions such as #.0 4 | are treated as simply # (1.0 become 1). As as a short-term workaround 5 | for this issue, you may prefix versions with "VERSION-", no quotes, 6 | upper-case and the dash is required. We'll strip this prefix for you. 7 | We apologise for the inconvenience -- The Mgmt 8 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/share-amp/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Downloads the spring-loaded lib if not existing and runs the share AMP 3 | springloadedfile=~/.m2/repository/org/springframework/springloaded/${springloaded.version}/springloaded-${springloaded.version}.jar 4 | 5 | if [ ! -f $springloadedfile ]; then 6 | mvn validate -Psetup 7 | fi 8 | 9 | MAVEN_OPTS="-javaagent:$springloadedfile -noverify" mvn integration-test -Pamp-to-war -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/amp/config/alfresco/module/__artifactId__/alfresco-global.properties: -------------------------------------------------------------------------------- 1 | ## This Alfresco Repo Configuration file should be used for custom properties that are introduced by this module. 2 | ## Define default values for all properties here. 3 | ## System Administrators can override these values in environment specific configurations in 4 | ## alfresco/tomcat/shared/classes/alfresco-global.properties. 5 | ## -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/amp/config/alfresco/module/__artifactId__/alfresco-global.properties: -------------------------------------------------------------------------------- 1 | ## This Alfresco Repo Configuration file should be used for custom properties that are introduced by this module. 2 | ## Define default values for all properties here. 3 | ## System Administrators can override these values in environment specific configurations in 4 | ## alfresco/tomcat/shared/classes/alfresco-global.properties. 5 | ## -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/repo-amp/src/main/java/org/alfresco/demoamp/Demo.java: -------------------------------------------------------------------------------- 1 | package org.alfresco.demoamp; 2 | 3 | /** 4 | * This class does nothing except dump some output to system.out. 5 | * This is a sample taken from Maven Alfresco SDK 6 | * 7 | * @author Derek Hulley 8 | */ 9 | public class Demo 10 | { 11 | public void init() 12 | { 13 | System.out.println("SDK Demo AMP class has been loaded"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo/src/main/resources/alfresco/extension/dev-log4j.properties: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | # You can add here custom log4j classes. This will be merged with the main log4j.properties 5 | # See http://wiki.alfresco.com/wiki/Developing_an_Alfresco_Module#Best_Log4j_Configuration_Practices 6 | log4j.logger.${package}.demoamp.DemoComponent=${app.log.root.level} -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/repo/src/main/resources/alfresco/extension/dev-log4j.properties: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | # You can add here custom log4j classes. This will be merged with the main log4j.properties 5 | # See http://wiki.alfresco.com/wiki/Developing_an_Alfresco_Module#Best_Log4j_Configuration_Practices 6 | log4j.logger.${package}.demoamp.DemoComponent=${app.log.root.level} -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Downloads the spring-loaded lib if not existing and runs the full all-in-one 3 | # (Alfresco + Share + Solr) using the runner project 4 | springloadedfile=~/.m2/repository/org/springframework/springloaded/1.2.3.RELEASE/springloaded-1.2.3.RELEASE.jar 5 | 6 | if [ ! -f $springloadedfile ]; then 7 | mvn validate -Psetup 8 | fi 9 | MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G" mvn install -Prun -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/repo-amp/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Downloads the spring-loaded lib if not existing and runs the repository AMP 3 | springloadedfile=~/.m2/repository/org/springframework/springloaded/${springloaded.version}/springloaded-${springloaded.version}.jar 4 | 5 | if [ ! -f $springloadedfile ]; then 6 | mvn validate -Psetup 7 | fi 8 | 9 | MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G -XX:PermSize=300m" mvn integration-test -Prun -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Downloads the spring-loaded lib if not existing and runs the full all-in-one 3 | # (Alfresco + Share + Solr) using the runner project 4 | springloadedfile=~/.m2/repository/org/springframework/springloaded/1.2.3.RELEASE/springloaded-1.2.3.RELEASE.jar 5 | 6 | if [ ! -f $springloadedfile ]; then 7 | mvn validate -Psetup 8 | fi 9 | MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G" mvn clean install -Prun -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/amp/config/alfresco/module/__artifactId__/alfresco-global.properties: -------------------------------------------------------------------------------- 1 | ## This Alfresco Repo Configuration file should be used for custom properties that are introduced by this module. 2 | ## Define default values for all properties here. 3 | ## System Administrators can override these values in environment specific configurations in 4 | ## alfresco/tomcat/shared/classes/alfresco-global.properties. 5 | ## -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.desc.xml: -------------------------------------------------------------------------------- 1 | 2 | Hello World Sample Webscript 3 | Hands back a greeting 4 | /sample/helloworld 5 | user 6 | 7 | sample 8 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.desc.xml: -------------------------------------------------------------------------------- 1 | 2 | Hello World Sample Webscript 3 | Hands back a greeting 4 | /sample/helloworld 5 | user 6 | 7 | sample 8 | -------------------------------------------------------------------------------- /generators/webscript/templates/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | Webscript .config.xml files can contain arbitrary xml 8 | Do not specify an xml declaration in this file 9 | Do not put comments outside of the root element 10 | 11 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/alfresco-global.properties: -------------------------------------------------------------------------------- 1 | ## This Alfresco Platform Configuration file should be used for custom properties that are introduced by this module. 2 | ## Define default values for all properties here. 3 | ## System Administrators can override these values in environment specific configurations in 4 | ## alfresco/tomcat/shared/classes/alfresco-global.properties. 5 | ## 6 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/alfresco-global.properties: -------------------------------------------------------------------------------- 1 | ## This Alfresco Platform Configuration file should be used for custom properties that are introduced by this module. 2 | ## Define default values for all properties here. 3 | ## System Administrators can override these values in environment specific configurations in 4 | ## alfresco/tomcat/shared/classes/alfresco-global.properties. 5 | ## 6 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Downloads the spring-loaded lib if not existing and runs the full all-in-one 3 | # (Alfresco + Share + Solr) using the runner project 4 | springloadedfile=~/.m2/repository/org/springframework/springloaded/1.2.0.RELEASE/springloaded-1.2.0.RELEASE.jar 5 | 6 | if [ ! -f $springloadedfile ]; then 7 | mvn validate -Psetup 8 | fi 9 | MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G -XX:PermSize=300m" mvn install -Prun -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/messages/content-model.properties: -------------------------------------------------------------------------------- 1 | # This file should contain content model labels 2 | 3 | acme_contentModel.type.acme_document.title=ACME Document 4 | acme_contentModel.aspect.acme_securityClassified.title=ACME Security Classified 5 | acme_contentModel.property.acme_documentId.title=Document Id 6 | acme_contentModel.property.acme_securityClassification.title=Security Classification 7 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/src/test/resources/tomcat/context-solr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/messages/content-model.properties: -------------------------------------------------------------------------------- 1 | # This file should contain content model labels 2 | 3 | acme_contentModel.type.acme_document.title=ACME Document 4 | acme_contentModel.aspect.acme_securityClassified.title=ACME Security Classified 5 | acme_contentModel.property.acme_documentId.title=Document Id 6 | acme_contentModel.property.acme_securityClassification.title=Security Classification 7 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/src/test/resources/tomcat/context-solr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /generators/app/templates/sdk3-scripts/run.bat: -------------------------------------------------------------------------------- 1 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 2 | :: Dev environment startup script for Alfresco Community :: 3 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 4 | @ECHO OFF 5 | 6 | IF "%MAVEN_OPTS%" == "" ( 7 | ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you 8 | SET MAVEN_OPTS=-Xms256m -Xmx2G 9 | ) 10 | ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%' 11 | 12 | mvn clean install alfresco:run %* 13 | -------------------------------------------------------------------------------- /generators/behavior/templates/behavior-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/test/resources/testng.xml: -------------------------------------------------------------------------------- 1 | #set($symbol_pound='#') 2 | #set($symbol_dollar='$') 3 | #set($symbol_escape='\' ) 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/test/resources/testng.xml: -------------------------------------------------------------------------------- 1 | #set($symbol_pound='#') 2 | #set($symbol_dollar='$') 3 | #set($symbol_escape='\' ) 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /generators/app/templates/sdk3-scripts/debug.bat: -------------------------------------------------------------------------------- 1 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 2 | :: Dev environment startup script for Alfresco Community :: 3 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 4 | @ECHO OFF 5 | 6 | IF "%MAVEN_OPTS%" == "" ( 7 | ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you 8 | SET MAVEN_OPTS=-Xms256m -Xmx2G 9 | ) 10 | ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%' 11 | 12 | mvnDebug clean install alfresco:run %* 13 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/integration-tests/src/test/resources/tomcat/context-solr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/integration-tests/src/test/resources/tomcat/context-solr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/run.bat: -------------------------------------------------------------------------------- 1 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 2 | :: Dev environment startup script for Alfresco Community :: 3 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 4 | @ECHO OFF 5 | 6 | IF "%MAVEN_OPTS%" == "" ( 7 | ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you 8 | SET MAVEN_OPTS=-Xms256m -Xmx2G 9 | ) 10 | ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%' 11 | 12 | mvn clean install alfresco:run -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/run.bat: -------------------------------------------------------------------------------- 1 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 2 | :: Dev environment startup script for Alfresco Community :: 3 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 4 | @ECHO OFF 5 | 6 | IF "%MAVEN_OPTS%" == "" ( 7 | ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you 8 | SET MAVEN_OPTS=-Xms256m -Xmx2G 9 | ) 10 | ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%' 11 | 12 | mvn clean install alfresco:run -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/debug.bat: -------------------------------------------------------------------------------- 1 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 2 | :: Dev environment startup script for Alfresco Community :: 3 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 4 | @ECHO OFF 5 | 6 | IF "%MAVEN_OPTS%" == "" ( 7 | ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you 8 | SET MAVEN_OPTS=-Xms256m -Xmx2G 9 | ) 10 | ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%' 11 | 12 | mvnDebug clean install alfresco:run -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/debug.bat: -------------------------------------------------------------------------------- 1 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 2 | :: Dev environment startup script for Alfresco Community :: 3 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 4 | @ECHO OFF 5 | 6 | IF "%MAVEN_OPTS%" == "" ( 7 | ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you 8 | SET MAVEN_OPTS=-Xms256m -Xmx2G 9 | ) 10 | ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%' 11 | 12 | mvnDebug clean install alfresco:run -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/test/resources/testng.xml: -------------------------------------------------------------------------------- 1 | #set($symbol_pound='#') 2 | #set($symbol_dollar='$') 3 | #set($symbol_escape='\' ) 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /generators/app/templates/sdk3-scripts/explode-alf-sources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DIR=$( cd "$( dirname "$BASH_SOURCE[0]" )" && pwd ) 4 | 5 | CWD=$( pwd ) 6 | cd "$DIR" 7 | 8 | cd ../source_templates/<%= sdkVersionPrefix %>platform-jar 9 | mvn dependency:unpack-dependencies -Dclassifier=sources -DoutputDirectory=../../exploded 10 | rm -rf target 11 | 12 | cd ../source_templates/<%= sdkVersionPrefix %>share-jar 13 | mvn dependency:unpack-dependencies -Dclassifier=sources -DoutputDirectory=../../exploded 14 | rm -rf target 15 | 16 | cd "$CWD" 17 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/java/demoamp/Demo.java: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | package ${package}.demoamp; 5 | 6 | /** 7 | * This class does nothing except dump some output to system.out. 8 | * This is a sample taken from Maven Alfresco SDK 9 | * 10 | * @author Derek Hulley 11 | */ 12 | public class Demo 13 | { 14 | public void init() 15 | { 16 | System.out.println("SDK Demo AMP class has been loaded"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/java/demoamp/Demo.java: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | package ${package}.demoamp; 5 | 6 | /** 7 | * This class does nothing except dump some output to system.out. 8 | * This is a sample taken from Maven Alfresco SDK 9 | * 10 | * @author Derek Hulley 11 | */ 12 | public class Demo 13 | { 14 | public void init() 15 | { 16 | System.out.println("SDK Demo AMP class has been loaded"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/share-amp/src/main/amp/file-mapping.properties: -------------------------------------------------------------------------------- 1 | # Custom AMP to WAR location mappings 2 | 3 | # 4 | # The following property can be used to include the standard set of mappings. 5 | # The contents of this file will override any defaults. The default is 6 | # 'true', i.e. the default mappings will be augmented or modified by values in 7 | # this file. 8 | # 9 | include.default=true 10 | 11 | # 12 | # Custom mappings. If 'include.default' is false, then this is the complete set. 13 | # 14 | /web=/ 15 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/main/amp/file-mapping.properties: -------------------------------------------------------------------------------- 1 | # Custom AMP to WAR location mappings 2 | 3 | # 4 | # The following property can be used to include the standard set of mappings. 5 | # The contents of this file will override any defaults. The default is 6 | # 'true', i.e. the default mappings will be augmented or modified by values in 7 | # this file. 8 | # 9 | include.default=true 10 | 11 | # 12 | # Custom mappings. If 'include.default' is false, then this is the complete set. 13 | # 14 | /web=/ 15 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/main/amp/file-mapping.properties: -------------------------------------------------------------------------------- 1 | # Custom AMP to WAR location mappings 2 | 3 | # 4 | # The following property can be used to include the standard set of mappings. 5 | # The contents of this file will override any defaults. The default is 6 | # 'true', i.e. the default mappings will be augmented or modified by values in 7 | # this file. 8 | # 9 | include.default=true 10 | 11 | # 12 | # Custom mappings. If 'include.default' is false, then this is the complete set. 13 | # 14 | /web=/ 15 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/java/demoamp/Demo.java: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | package ${package}.demoamp; 5 | 6 | /** 7 | * This class does nothing except dump some output to system.out. 8 | * This is a sample taken from Maven Alfresco SDK 9 | * 10 | * @author Derek Hulley 11 | */ 12 | public class Demo 13 | { 14 | public void init() 15 | { 16 | System.out.println("SDK Demo AMP class has been loaded"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/main/amp/file-mapping.properties: -------------------------------------------------------------------------------- 1 | # Custom AMP to WAR location mappings 2 | 3 | # 4 | # The following property can be used to include the standard set of mappings. 5 | # The contents of this file will override any defaults. The default is 6 | # 'true', i.e. the default mappings will be augmented or modified by values in 7 | # this file. 8 | # 9 | include.default=true 10 | 11 | # 12 | # Custom mappings. If 'include.default' is false, then this is the complete set. 13 | # 14 | /web=/ 15 | -------------------------------------------------------------------------------- /generators/app/templates/sdk2-scripts/explode-alf-sources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DIR=$( cd "$( dirname "$BASH_SOURCE[0]" )" && pwd ) 4 | 5 | CWD=$( pwd ) 6 | cd "$DIR" 7 | 8 | cd ../source_templates/<%= sdkVersionPrefix %>repo-amp 9 | mvn dependency:unpack-dependencies <%= enterpriseFlag %> -Dclassifier=sources -DoutputDirectory=../../exploded 10 | rm -rf target 11 | 12 | cd ../source_templates/<%= sdkVersionPrefix %>share-amp 13 | mvn dependency:unpack-dependencies <%= enterpriseFlag %> -Dclassifier=sources -DoutputDirectory=../../exploded 14 | rm -rf target 15 | 16 | cd "$CWD" 17 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/run.bat: -------------------------------------------------------------------------------- 1 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 2 | :: Dev environment startup script for Alfresco Community :: 3 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 4 | @echo off 5 | 6 | set springloadedfile=%HOME%\.m2\repository\org\springframework\springloaded\1.2.3.RELEASE\springloaded-1.2.3.RELEASE.jar 7 | 8 | if not exist %springloadedfile% ( 9 | mvn validate -Psetup 10 | ) 11 | 12 | set MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify -Xms256m -Xmx2G 13 | 14 | mvn install -Prun -nsu 15 | :: mvn install -Prun 16 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/run.bat: -------------------------------------------------------------------------------- 1 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 2 | :: Dev environment startup script for Alfresco Community :: 3 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 4 | @echo off 5 | 6 | set springloadedfile=%HOME%\.m2\repository\org\springframework\springloaded\1.2.3.RELEASE\springloaded-1.2.3.RELEASE.jar 7 | 8 | if not exist %springloadedfile% ( 9 | mvn validate -Psetup 10 | ) 11 | 12 | set MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify -Xms256m -Xmx2G 13 | 14 | mvn clean install -Prun -nsu 15 | :: mvn install -Prun 16 | -------------------------------------------------------------------------------- /generators/jsrootobject/templates/jsroot-object-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /generators/app/templates/customizations/README.md: -------------------------------------------------------------------------------- 1 | customizations 2 | ============== 3 | 4 | As this folder exists, we will store the source for amps and modules you 5 | are coding under this folder. This organization is particularly useful 6 | for complex projects that have lots of AMPs and JARs. 7 | 8 | There are also folders here for including pre-packaged amps and jars. 9 | These use the same naming convention as the Alfresco installer. They are 10 | `amps` and `amps_share`. 11 | 12 | The `modules` folder structure is included as a place to place 13 | pre-packaged jar customizations. The features for linking 14 | these into projects have not been implemented yet. 15 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/main/resources/META-INF/share-config-custom.xml.sample: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/main/resources/META-INF/share-config-custom.xml.sample: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/main/resources/META-INF/share-config-custom.xml.sample: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /generators/app/templates/customizations/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 4.0.0 7 | org.alfresco.maven 8 | customizations 9 | 1.0.0-SNAPSHOT 10 | pom 11 | 12 | <%- projectGroupId %> 13 | <%- projectArtifactId %> 14 | <%- projectVersion %> 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /generators/app/templates/sdk2-scripts/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DIR=$( cd "$( dirname "$BASH_SOURCE[0]" )" && pwd ) 4 | 5 | pushd . > /dev/null 6 | cd "$DIR" 7 | CWD=$( basename $DIR ) 8 | if [ "scripts" == "$CWD" ] 9 | then 10 | cd .. 11 | fi 12 | 13 | # Downloads the spring-loaded lib if not existing and runs the full all-in-one 14 | # (Alfresco + Share + Solr) using the runner project 15 | springloadedfile=~/.m2/repository/org/springframework/springloaded/1.2.3.RELEASE/springloaded-1.2.3.RELEASE.jar 16 | 17 | if [ ! -f $springloadedfile ]; then 18 | mvn validate -Psetup 19 | fi 20 | 21 | MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G -XX:PermSize=300m" mvn install -Prun <%= enterpriseFlag %> $@ 22 | 23 | popd > /dev/null 24 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-data/extensions/example-widgets.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Example Aikau Widgets 5 | 1.0 6 | true 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-data/extensions/example-widgets.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Example Aikau Widgets 5 | 1.0 6 | true 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /generators/webscript/templates/atom.ftl: -------------------------------------------------------------------------------- 1 | <#escape x as x?xml> 2 | 3 | 4 | 5 | Example Feed 6 | 7 | 2003-12-13T18:30:02Z 8 | 9 | John Doe 10 | 11 | urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6 12 | 13 | 14 | Atom-Powered Robots Run Amok 15 | 16 | urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a 17 | 2003-12-13T18:30:02Z 18 | ${msg("greeting")} - ${data} - ${item!"config not loaded"} 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/solr/src/assembly/solr-config-assembly.xml: -------------------------------------------------------------------------------- 1 | 4 | config 5 | 6 | zip 7 | 8 | false 9 | 10 | 11 | ${project.basedir}/solr_home 12 | 13 | 14 | archive/** 15 | workspace/** 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /generators/model/templates/custom-model-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | alfresco/module/${project.artifactId}/model/generated/<%-modelName%>Model.xml 11 | 12 | 13 | 14 | 15 | alfresco/module/${project.artifactId}/messages/generated/<%-modelName%>Model 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/runner/tomcat/context-solr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /generators/action/templates/action-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | alfresco/module/${project.artifactId}/messages/<%- artifactId %>-<%- actionId %>-action 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-data/extensions/__artifactId__-example-widgets.xml: -------------------------------------------------------------------------------- 1 | #set($symbol_pound='#') 2 | #set($symbol_dollar='$') 3 | #set($symbol_escape='\' ) 4 | 5 | 6 | 7 | ${artifactId} - Example Aikau Widgets 8 | 1.0 9 | true 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /generators/app/templates/scripts/env.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # This script should be sourced, the following block of magic is an attempt 4 | # to detect if the script is being run rather than sourced. In which case 5 | # we print an appropriate message. Notice the #! above means that if this 6 | # is executed we will be in a bash context. If it is sourced we may be in 7 | # a bash context or in whatever the users shell is (zsh for example.) In 8 | # any this logic only makes sense if the current shell is bash, otherwise 9 | # all bets are off. 10 | if [[ "$BASH_SOURCE[0]" = "$0" ]]; then 11 | export _MYSHELL=$( basename $( ps -hp $$ | awk '{print $5}' ) ) 12 | if [[ "bash" = "$_MYSHELL" ]]; then 13 | echo "In order for this to affect your environment it must be sourced" 14 | fi 15 | fi 16 | 17 | export MAVEN_OPTS="-Xms256m -Xmx2G -XX:PermSize=300m" 18 | export PATH="$PATH:$PWD/scripts" 19 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-platform-jar/src/main/assembly/file-mapping.properties: -------------------------------------------------------------------------------- 1 | # Custom AMP to WAR location mappings 2 | 3 | # 4 | # The following property can be used to include the standard set of mappings. 5 | # The contents of this file will override any defaults. The default is 6 | # 'true', i.e. the default mappings will be augmented or modified by values in 7 | # this file. 8 | # 9 | # Default mappings are: 10 | # 11 | # /config=/WEB-INF/classes 12 | # /lib=/WEB-INF/lib 13 | # /licenses=/WEB-INF/licenses 14 | # /web/jsp=/jsp 15 | # /web/css=/css 16 | # /web/images=/images 17 | # /web/scripts=/scripts 18 | # /web/php=/php 19 | # 20 | include.default=true 21 | 22 | # 23 | # Custom mappings. If 'include.default' is false, then this is the complete set. 24 | # Map /web to / in AMP so we can override things like favicon.ico 25 | # 26 | /web=/ 27 | 28 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/src/main/assembly/file-mapping.properties: -------------------------------------------------------------------------------- 1 | # Custom AMP to WAR location mappings 2 | 3 | # 4 | # The following property can be used to include the standard set of mappings. 5 | # The contents of this file will override any defaults. The default is 6 | # 'true', i.e. the default mappings will be augmented or modified by values in 7 | # this file. 8 | # 9 | # Default mappings are: 10 | # 11 | # /config=/WEB-INF/classes 12 | # /lib=/WEB-INF/lib 13 | # /licenses=/WEB-INF/licenses 14 | # /web/jsp=/jsp 15 | # /web/css=/css 16 | # /web/images=/images 17 | # /web/scripts=/scripts 18 | # /web/php=/php 19 | # 20 | include.default=true 21 | 22 | # 23 | # Custom mappings. If 'include.default' is false, then this is the complete set. 24 | # Map /web to / in AMP so we can override things like favicon.ico 25 | # 26 | /web=/ 27 | 28 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/src/main/assembly/file-mapping.properties: -------------------------------------------------------------------------------- 1 | # Custom AMP to WAR location mappings 2 | 3 | # 4 | # The following property can be used to include the standard set of mappings. 5 | # The contents of this file will override any defaults. The default is 6 | # 'true', i.e. the default mappings will be augmented or modified by values in 7 | # this file. 8 | # 9 | # Default mappings are: 10 | # 11 | # /config=/WEB-INF/classes 12 | # /lib=/WEB-INF/lib 13 | # /licenses=/WEB-INF/licenses 14 | # /web/jsp=/jsp 15 | # /web/css=/css 16 | # /web/images=/images 17 | # /web/scripts=/scripts 18 | # /web/php=/php 19 | # 20 | include.default=true 21 | 22 | # 23 | # Custom mappings. If 'include.default' is false, then this is the complete set. 24 | # Map /web to / in AMP so we can override things like favicon.ico 25 | # 26 | /web=/ 27 | 28 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/assembly/file-mapping.properties: -------------------------------------------------------------------------------- 1 | # Custom AMP to WAR location mappings 2 | 3 | # 4 | # The following property can be used to include the standard set of mappings. 5 | # The contents of this file will override any defaults. The default is 6 | # 'true', i.e. the default mappings will be augmented or modified by values in 7 | # this file. 8 | # 9 | # Default mappings are: 10 | # 11 | # /config=/WEB-INF/classes 12 | # /lib=/WEB-INF/lib 13 | # /licenses=/WEB-INF/licenses 14 | # /web/jsp=/jsp 15 | # /web/css=/css 16 | # /web/images=/images 17 | # /web/scripts=/scripts 18 | # /web/php=/php 19 | # 20 | include.default=true 21 | 22 | # 23 | # Custom mappings. If 'include.default' is false, then this is the complete set. 24 | # Map /web to / in AMP so we can override things like favicon.ico 25 | # 26 | /web=/ 27 | 28 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/share-amp/src/main/amp/web/js/example/widgets/TemplateWidget.js: -------------------------------------------------------------------------------- 1 | define(["dojo/_base/declare", 2 | "dijit/_WidgetBase", 3 | "alfresco/core/Core", 4 | "dijit/_TemplatedMixin", 5 | "dojo/text!./templates/TemplateWidget.html" 6 | ], 7 | function(declare, _Widget, Core, _Templated, template) { 8 | return declare([_Widget, Core, _Templated], { 9 | templateString: template, 10 | i18nRequirements: [ {i18nFile: "./i18n/TemplateWidget.properties"} ], 11 | cssRequirements: [{cssFile:"./css/TemplateWidget.css"}], 12 | 13 | buildRendering: function example_widgets_TemplateWidget__buildRendering() { 14 | this.greeting = this.message('hello-label'); 15 | 16 | this.inherited(arguments); 17 | 18 | } 19 | }); 20 | }); -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/main/amp/web/js/example/widgets/TemplateWidget.js: -------------------------------------------------------------------------------- 1 | define(["dojo/_base/declare", 2 | "dijit/_WidgetBase", 3 | "alfresco/core/Core", 4 | "dijit/_TemplatedMixin", 5 | "dojo/text!./templates/TemplateWidget.html" 6 | ], 7 | function(declare, _Widget, Core, _Templated, template) { 8 | return declare([_Widget, Core, _Templated], { 9 | templateString: template, 10 | i18nRequirements: [ {i18nFile: "./i18n/TemplateWidget.properties"} ], 11 | cssRequirements: [{cssFile:"./css/TemplateWidget.css"}], 12 | 13 | buildRendering: function example_widgets_TemplateWidget__buildRendering() { 14 | this.greeting = this.message('hello-label'); 15 | 16 | this.inherited(arguments); 17 | 18 | } 19 | }); 20 | }); -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/main/amp/web/js/example/widgets/TemplateWidget.js: -------------------------------------------------------------------------------- 1 | define(["dojo/_base/declare", 2 | "dijit/_WidgetBase", 3 | "alfresco/core/Core", 4 | "dijit/_TemplatedMixin", 5 | "dojo/text!./templates/TemplateWidget.html" 6 | ], 7 | function(declare, _Widget, Core, _Templated, template) { 8 | return declare([_Widget, Core, _Templated], { 9 | templateString: template, 10 | i18nRequirements: [ {i18nFile: "./i18n/TemplateWidget.properties"} ], 11 | cssRequirements: [{cssFile:"./css/TemplateWidget.css"}], 12 | 13 | buildRendering: function example_widgets_TemplateWidget__buildRendering() { 14 | this.greeting = this.message('hello-label'); 15 | 16 | this.inherited(arguments); 17 | 18 | } 19 | }); 20 | }); -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/main/amp/config/alfresco/web-extension/site-data/extensions/__artifactId__-example-widgets.xml: -------------------------------------------------------------------------------- 1 | #set($symbol_pound='#') 2 | #set($symbol_dollar='$') 3 | #set($symbol_escape='\' ) 4 | 5 | 6 | 7 | ${artifactId} - Example Aikau Widgets 8 | 1.0 9 | true 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/solr/src/main/solr-properties/log4j-solr.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to error 2 | log4j.rootLogger=${app.log.root.level}, Console, File 3 | 4 | ###### Console appender definition ####### 5 | 6 | # All outputs currently set to be a ConsoleAppender. 7 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 8 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 9 | 10 | log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n 11 | 12 | ###### File appender definition ####### 13 | log4j.appender.File=org.apache.log4j.DailyRollingFileAppender 14 | log4j.appender.File.File=${app.log.dir}solr.log 15 | log4j.appender.File.Append=true 16 | log4j.appender.File.DatePattern='.'yyyy-MM-dd 17 | log4j.appender.File.layout=org.apache.log4j.PatternLayout 18 | log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | 3 | jdk: 4 | - oraclejdk8 5 | 6 | dist: trusty 7 | sudo: false 8 | 9 | env: 10 | - NODE_VERSION=v10 11 | - NODE_VERSION=v8 12 | - NODE_VERSION=v6 13 | 14 | cache: 15 | directories: 16 | - $HOME/.m2 17 | 18 | # Not caching node_modules due to issue with node_modules/npm/node_modules/dezalgo 19 | # ENOENT for syscall rename... 20 | # - node_modules 21 | 22 | install: 23 | - nvm install $NODE_VERSION 24 | - npm install 25 | 26 | script: 27 | - if [[ "${NODE_VERSION}" == 'v8' ]]; then npm run codecov; else npm run test; fi 28 | 29 | notifications: 30 | webhooks: 31 | urls: 32 | - https://webhooks.gitter.im/e/caa35ceb4dd217d50b26 33 | on_success: change # options: [always|never|change] default: always 34 | on_failure: always # options: [always|never|change] default: always 35 | on_start: never # options: [always|never|change] default: always 36 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/repo-amp/src/main/amp/web/css/demoamp.css: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one or more 3 | contributor license agreements. See the NOTICE file distributed with 4 | this work for additional information regarding copyright ownership. 5 | The ASF licenses this file to You under the Apache License, Version 2.0 6 | (the "License"); you may not use this file except in compliance with 7 | the License. You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | */ -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/amp/web/css/demoamp.css: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one or more 3 | contributor license agreements. See the NOTICE file distributed with 4 | this work for additional information regarding copyright ownership. 5 | The ASF licenses this file to You under the Apache License, Version 2.0 6 | (the "License"); you may not use this file except in compliance with 7 | the License. You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | */ -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/amp/web/css/demoamp.css: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one or more 3 | contributor license agreements. See the NOTICE file distributed with 4 | this work for additional information regarding copyright ownership. 5 | The ASF licenses this file to You under the Apache License, Version 2.0 6 | (the "License"); you may not use this file except in compliance with 7 | the License. You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | */ -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/repo-amp/src/main/amp/web/scripts/demoamp.js: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one or more 3 | contributor license agreements. See the NOTICE file distributed with 4 | this work for additional information regarding copyright ownership. 5 | The ASF licenses this file to You under the Apache License, Version 2.0 6 | (the "License"); you may not use this file except in compliance with 7 | the License. You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | */ -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/amp/web/scripts/demoamp.js: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one or more 3 | contributor license agreements. See the NOTICE file distributed with 4 | this work for additional information regarding copyright ownership. 5 | The ASF licenses this file to You under the Apache License, Version 2.0 6 | (the "License"); you may not use this file except in compliance with 7 | the License. You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | */ -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/amp/web/scripts/demoamp.js: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one or more 3 | contributor license agreements. See the NOTICE file distributed with 4 | this work for additional information regarding copyright ownership. 5 | The ASF licenses this file to You under the Apache License, Version 2.0 6 | (the "License"); you may not use this file except in compliance with 7 | the License. You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | */ -------------------------------------------------------------------------------- /test/test-eslint.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | /* eslint-env node, mocha */ 3 | const semver = require('semver'); 4 | const versions = process.versions; 5 | 6 | if (semver.lt(versions.node, '4.4.0')) { 7 | console.warn('Not running eslint because ' + versions.node + ' is not supported by eslint, min node version is 4.4.0'); 8 | } else { 9 | runESLint(); 10 | } 11 | 12 | function runESLint () { 13 | const lint = require('mocha-eslint'); 14 | 15 | const paths = [ 16 | 'generators/*.js', 17 | 'generators/*/*.js', 18 | 'test/*.js', 19 | ]; 20 | 21 | const options = { 22 | // Specify style of output 23 | formatter: 'compact', 24 | // Only display warnings if a test is failing 25 | alwaysWarn: false, 26 | // Increase the timeout of the test if linting takes to long 27 | timeout: 5000, 28 | }; 29 | 30 | // Run the tests if node is new enough to run eslint 31 | lint(paths, options); 32 | } 33 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/main/amp/web/js/example/widgets/TemplateWidget.js: -------------------------------------------------------------------------------- 1 | define(["dojo/_base/declare", 2 | "dijit/_WidgetBase", 3 | "alfresco/core/Core", 4 | "dijit/_TemplatedMixin", 5 | "dojo/text!./templates/TemplateWidget.html" 6 | ], 7 | function(declare, _Widget, Core, _Templated, template) { 8 | return declare([_Widget, Core, _Templated], { 9 | templateString: template, 10 | i18nRequirements: [ {i18nFile: "./i18n/TemplateWidget.properties"} ], 11 | cssRequirements: [{cssFile:"./css/TemplateWidget.css"}], 12 | 13 | buildRendering: function example_widgets_TemplateWidget__buildRendering() { 14 | this.greeting = this.message('hello-label'); 15 | 16 | this.inherited(arguments); 17 | 18 | } 19 | }); 20 | }); -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/site-data/extensions/__artifactId__-example-widgets.xml: -------------------------------------------------------------------------------- 1 | #set($symbol_pound='#') 2 | #set($symbol_dollar='$') 3 | #set($symbol_escape='\' ) 4 | 5 | 6 | 7 | ${artifactId} - Example Aikau Widgets 8 | 1.0 9 | true 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/site-data/extensions/__artifactId__-example-widgets.xml: -------------------------------------------------------------------------------- 1 | #set($symbol_pound='#') 2 | #set($symbol_dollar='$') 3 | #set($symbol_escape='\' ) 4 | 5 | 6 | 7 | ${artifactId} - Example Aikau Widgets 8 | 1.0 9 | true 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/amp/web/css/demoamp.css: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one or more 3 | contributor license agreements. See the NOTICE file distributed with 4 | this work for additional information regarding copyright ownership. 5 | The ASF licenses this file to You under the Apache License, Version 2.0 6 | (the "License"); you may not use this file except in compliance with 7 | the License. You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | */ -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.js: -------------------------------------------------------------------------------- 1 | model.jsonModel = { 2 | widgets: [{ 3 | id: "SET_PAGE_TITLE", 4 | name: "alfresco/header/SetTitle", 5 | config: { 6 | title: "This is a simple page" 7 | } 8 | }, 9 | { 10 | id: "MY_HORIZONTAL_WIDGET_LAYOUT", 11 | name: "alfresco/layout/HorizontalWidgets", 12 | config: { 13 | widgetWidth: 50, 14 | widgets: [ 15 | { 16 | name: "alfresco/logo/Logo", 17 | config: { 18 | logoClasses: "alfresco-logo-only" 19 | } 20 | }, 21 | { 22 | name: "example/widgets/TemplateWidget" 23 | } 24 | ] 25 | } 26 | }] 27 | }; -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/amp/web/scripts/demoamp.js: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one or more 3 | contributor license agreements. See the NOTICE file distributed with 4 | this work for additional information regarding copyright ownership. 5 | The ASF licenses this file to You under the Apache License, Version 2.0 6 | (the "License"); you may not use this file except in compliance with 7 | the License. You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | */ -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/repo-amp/src/main/amp/web/jsp/demoamp.jsp: -------------------------------------------------------------------------------- 1 | 17 | Test jsp. Change me! -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/amp/web/jsp/demoamp.jsp: -------------------------------------------------------------------------------- 1 | 17 | Test jsp. Change me! -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/amp/web/jsp/demoamp.jsp: -------------------------------------------------------------------------------- 1 | 17 | Test jsp. Change me! -------------------------------------------------------------------------------- /generators/surf-extension/surf-extension-prompt-filters.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const _ = require('lodash'); 3 | 4 | module.exports = { 5 | 6 | requiredRegexFilter: (input, regex) => { 7 | if (_.isNumber(input)) { 8 | input = '' + input; 9 | } 10 | if (!_.isString(input) || _.isEmpty(input)) return undefined; 11 | const re = new RegExp(regex); 12 | const valid = re.test(input); 13 | return (valid ? input : undefined); 14 | }, 15 | 16 | versionNumberFilter: input => { 17 | if (_.isNumber(input)) { 18 | input = '' + input; 19 | if (input.indexOf('.') === -1) { 20 | input += '.0'; 21 | } 22 | } 23 | return module.exports.requiredRegexFilter(input, '^\\d+\\.\\d+$'); 24 | }, 25 | 26 | autoDeployFilter: input => { 27 | return module.exports.requiredRegexFilter(input, '^true|false$'); 28 | }, 29 | 30 | }; 31 | 32 | // vim: autoindent expandtab tabstop=2 shiftwidth=2 softtabstop=2 33 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/amp/web/jsp/demoamp.jsp: -------------------------------------------------------------------------------- 1 | 17 | Test jsp. Change me! -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-platform-jar/src/main/assembly/web/README.md: -------------------------------------------------------------------------------- 1 | # Web resources that should override out-of-the-box files 2 | 3 | Put here any web resources that should override out-of-the-box 4 | web resources, such as favicon.ico. They will then end up in the 5 | */web* directory in the AMP, and applied to the WAR, and override 6 | any existing web resources in the Alfresco.WAR. 7 | 8 | **Note**. Module dependency needs to be set to amp for the web resources to be applied by MMT: 9 | 10 | ` 11 | 12 | ${project.groupId} 13 | some-platform-jar 14 | ${project.version} 15 | amp 16 | 17 | ` 18 | 19 | **Important**. New web resources should not be located here, but instead 20 | in the usual place in the *src/main/resources/META-INF/resources* directory. 21 | 22 | 23 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/src/main/assembly/web/README.md: -------------------------------------------------------------------------------- 1 | # Web resources that should override out-of-the-box files 2 | 3 | Put here any web resources that should override out-of-the-box 4 | web resources, such as favicon.ico. They will then end up in the 5 | */web* directory in the AMP, and applied to the WAR, and override 6 | any existing web resources in the Alfresco.WAR. 7 | 8 | **Note**. Module dependency needs to be set to amp for the web resources to be applied by MMT: 9 | 10 | ` 11 | 12 | ${project.groupId} 13 | some-platform-jar 14 | ${project.version} 15 | amp 16 | 17 | ` 18 | 19 | **Important**. New web resources should not be located here, but instead 20 | in the usual place in the *src/main/resources/META-INF/resources* directory. 21 | 22 | 23 | -------------------------------------------------------------------------------- /generators/model/templates/customModel.properties: -------------------------------------------------------------------------------- 1 | # 2 | # README : https://docs.alfresco.com/community/references/dev-extension-points-content-model-define-and-deploy.html 3 | # The naming convention pattern is: 4 | # {content model namespace}_{content model local name}.[type|aspect|property|association|child-association].{content model namespace}_{local name}.[title|description] 5 | # 6 | 7 | #<%-namespacePrefix%>_<%-modelName%>.type.<%-namespacePrefix%>_doc.title=Root Document Overrided Value 8 | #<%-namespacePrefix%>_<%-modelName%>.property.<%-namespacePrefix%>_overridableProp.title=Root Overrided Value 9 | #<%-namespacePrefix%>_<%-modelName%>.aspect.<%-namespacePrefix%>_publishedToSite.title=Published to Site Overrided Value 10 | #<%-namespacePrefix%>_<%-modelName%>.property.<%-namespacePrefix%>_isActive.title=Is Active Overrided Value 11 | #<%-namespacePrefix%>_<%-modelName%>.child-association.<%-namespacePrefix%>_relatedDocuments.title=Related Documents Overrided Value 12 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/runner/tomcat/context-repo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/src/main/assembly/web/README.md: -------------------------------------------------------------------------------- 1 | # Web resources that should override out-of-the-box files 2 | 3 | Put here any web resources that should override out-of-the-box 4 | web resources, such as favicon.ico. They will then end up in the 5 | */web* directory in the AMP, and applied to the WAR, and override 6 | any existing web resources in the Share.WAR. 7 | 8 | **Note**. Module dependency needs to be set to amp for the web resources to be applied by MMT: 9 | 10 | ` 11 | 12 | ${project.groupId} 13 | some-share-jar 14 | ${project.version} 15 | amp 16 | 17 | ` 18 | 19 | **Important**. New web resources should not be located here, but instead 20 | in the usual place in the *src/main/resources/META-INF/resources//* directory. 21 | 22 | 23 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/META-INF/resources/__rootArtifactId__-share-jar/js/tutorials/widgets/TemplateWidget.js: -------------------------------------------------------------------------------- 1 | define(["dojo/_base/declare", 2 | "dijit/_WidgetBase", 3 | "alfresco/core/Core", 4 | "dijit/_TemplatedMixin", 5 | "dojo/text!./templates/TemplateWidget.html" 6 | ], 7 | function(declare, _Widget, Core, _Templated, template) { 8 | return declare([_Widget, Core, _Templated], { 9 | templateString: template, 10 | i18nRequirements: [ {i18nFile: "./i18n/TemplateWidget.properties"} ], 11 | cssRequirements: [{cssFile:"./css/TemplateWidget.css"}], 12 | 13 | buildRendering: function example_widgets_TemplateWidget__buildRendering() { 14 | this.greeting = this.message('hello-label'); 15 | 16 | this.inherited(arguments); 17 | 18 | } 19 | }); 20 | }); -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/assembly/web/README.md: -------------------------------------------------------------------------------- 1 | # Web resources that should override out-of-the-box files 2 | 3 | Put here any web resources that should override out-of-the-box 4 | web resources, such as favicon.ico. They will then end up in the 5 | */web* directory in the AMP, and applied to the WAR, and override 6 | any existing web resources in the Share.WAR. 7 | 8 | **Note**. Module dependency needs to be set to amp for the web resources to be applied by MMT: 9 | 10 | ` 11 | 12 | ${project.groupId} 13 | some-share-jar 14 | ${project.version} 15 | amp 16 | 17 | ` 18 | 19 | **Important**. New web resources should not be located here, but instead 20 | in the usual place in the *src/main/resources/META-INF/resources//* directory. 21 | 22 | 23 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/META-INF/resources/__rootArtifactId__-share-jar/js/tutorials/widgets/TemplateWidget.js: -------------------------------------------------------------------------------- 1 | define(["dojo/_base/declare", 2 | "dijit/_WidgetBase", 3 | "alfresco/core/Core", 4 | "dijit/_TemplatedMixin", 5 | "dojo/text!./templates/TemplateWidget.html" 6 | ], 7 | function(declare, _Widget, Core, _Templated, template) { 8 | return declare([_Widget, Core, _Templated], { 9 | templateString: template, 10 | i18nRequirements: [ {i18nFile: "./i18n/TemplateWidget.properties"} ], 11 | cssRequirements: [{cssFile:"./css/TemplateWidget.css"}], 12 | 13 | buildRendering: function example_widgets_TemplateWidget__buildRendering() { 14 | this.greeting = this.message('hello-label'); 15 | 16 | this.inherited(arguments); 17 | 18 | } 19 | }); 20 | }); -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/runner/tomcat/context-share.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/messages/__artifactId__.properties: -------------------------------------------------------------------------------- 1 | # This file should contain messages and labels specific to this share extension 2 | # Put here things like: 3 | # Content Model Aspect and Type Labels 4 | # Form field labels 5 | # Doc lib Action labels and messages 6 | # Doc Lib Action Forms labels 7 | # 8 | 9 | # Labels for custom types and aspects 10 | # Used in "Manage Aspects" and "Change Type" dialogs 11 | # 12 | type.acme_document=ACME Document 13 | aspect.acme_securityClassified=Security Classified 14 | 15 | # View,Edit,Search,Create Form labels for types and aspects 16 | # 17 | form.set.label.acme.document= ACME Document Information 18 | form.field.label.acme.documentId=ACME Document Id 19 | form.field.label.acme.securityClassification=Security Classification 20 | 21 | # Advanced Search Form labels (only for types) 22 | # 23 | form.label.advancedsearch.acmeDocument=ACME Documents 24 | form.description.advancedsearch.acmeDocument=Search for any ACME Documents 25 | 26 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/messages/__artifactId__.properties: -------------------------------------------------------------------------------- 1 | # This file should contain messages and labels specific to this share extension 2 | # Put here things like: 3 | # Content Model Aspect and Type Labels 4 | # Form field labels 5 | # Doc lib Action labels and messages 6 | # Doc Lib Action Forms labels 7 | # 8 | 9 | # Labels for custom types and aspects 10 | # Used in "Manage Aspects" and "Change Type" dialogs 11 | # 12 | type.acme_document=ACME Document 13 | aspect.acme_securityClassified=Security Classified 14 | 15 | # View,Edit,Search,Create Form labels for types and aspects 16 | # 17 | form.set.label.acme.document= ACME Document Information 18 | form.field.label.acme.documentId=ACME Document Id 19 | form.field.label.acme.securityClassification=Security Classification 20 | 21 | # Advanced Search Form labels (only for types) 22 | # 23 | form.label.advancedsearch.acmeDocument=ACME Documents 24 | form.description.advancedsearch.acmeDocument=Search for any ACME Documents 25 | 26 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/workflow/sample-process.bpmn20.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/workflow/sample-process.bpmn20.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /generators/app/USAGE: -------------------------------------------------------------------------------- 1 | Use the main generator to scaffold a new Alfresco all-in-one project you can use for configuring and customizing Alfresco. 2 | 3 | Sub-generators: 4 | yo alfresco:module -- scaffolds modules into your project 5 | yo alfresco:module-add-source -- scaffolds source modules into your project 6 | yo alfresco:amp-add-local -- integrates existing amp into the project 7 | yo alfresco:jar-add-local -- integrates existing jar into the project 8 | yo alfresco:amp-add-remote -- integrates existing amp from public maven repo into the project 9 | yo alfresco:amp-add-common -- integrates common 3rd party amps into the project 10 | 11 | yo alfresco:action -- scaffolds a repository action into an existing source module 12 | yo alfresco:behavior -- scaffolds a class for behaviors into an existing source module 13 | yo alfresco:jsrootobject -- scaffolds a Javascript root object into an existing source module 14 | yo alfresco:model -- scaffolds a model XML file into an existing source module 15 | yo alfresco:webscript -- scaffolds webscripts into an existing source module 16 | -------------------------------------------------------------------------------- /generators/webscript/templates/DeclarativeWebScript.java: -------------------------------------------------------------------------------- 1 | package <%- classPackage %>; 2 | 3 | import org.springframework.extensions.webscripts.Cache; 4 | import org.springframework.extensions.webscripts.DeclarativeWebScript; 5 | import org.springframework.extensions.webscripts.Status; 6 | import org.springframework.extensions.webscripts.WebScriptRequest; 7 | import org.apache.commons.logging.Log; 8 | import org.apache.commons.logging.LogFactory; 9 | 10 | import java.util.HashMap; 11 | import java.util.Map; 12 | 13 | // See http://docs.alfresco.com/5.1/references/dev-extension-points-webscripts.html 14 | public class <%- className %> extends DeclarativeWebScript { 15 | private static Log logger = LogFactory.getLog(<%- className %>.class); 16 | 17 | @Override 18 | protected Map executeImpl(WebScriptRequest req, Status status, Cache cache) { 19 | logger.info("<%- className %> executing impl"); 20 | Map model = new HashMap(); 21 | model.put("data", "Facts and statistics collected together for reference or analysis."); 22 | return model; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.js: -------------------------------------------------------------------------------- 1 | model.jsonModel = { 2 | widgets: [{ 3 | id: "SET_PAGE_TITLE", 4 | name: "alfresco/header/SetTitle", 5 | config: { 6 | title: "This is a simple page" 7 | } 8 | }, 9 | { 10 | id: "MY_HORIZONTAL_WIDGET_LAYOUT", 11 | name: "alfresco/layout/HorizontalWidgets", 12 | config: { 13 | widgetWidth: 50, 14 | widgets: [ 15 | { 16 | id: "DEMO_SIMPLE_LOGO", 17 | name: "alfresco/logo/Logo", 18 | config: { 19 | logoClasses: "alfresco-logo-only" 20 | } 21 | }, 22 | { 23 | id: "DEMO_SIMPLE_MSG", 24 | name: "example/widgets/TemplateWidget" 25 | } 26 | ] 27 | } 28 | }] 29 | }; -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.js: -------------------------------------------------------------------------------- 1 | model.jsonModel = { 2 | widgets: [{ 3 | id: "SET_PAGE_TITLE", 4 | name: "alfresco/header/SetTitle", 5 | config: { 6 | title: "This is a simple page" 7 | } 8 | }, 9 | { 10 | id: "MY_HORIZONTAL_WIDGET_LAYOUT", 11 | name: "alfresco/layout/HorizontalWidgets", 12 | config: { 13 | widgetWidth: 50, 14 | widgets: [ 15 | { 16 | id: "DEMO_SIMPLE_LOGO", 17 | name: "alfresco/logo/Logo", 18 | config: { 19 | logoClasses: "alfresco-logo-only" 20 | } 21 | }, 22 | { 23 | id: "DEMO_SIMPLE_MSG", 24 | name: "example/widgets/TemplateWidget" 25 | } 26 | ] 27 | } 28 | }] 29 | }; -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.js: -------------------------------------------------------------------------------- 1 | model.jsonModel = { 2 | widgets: [{ 3 | id: "SET_PAGE_TITLE", 4 | name: "alfresco/header/SetTitle", 5 | config: { 6 | title: "This is a simple page" 7 | } 8 | }, 9 | { 10 | id: "MY_HORIZONTAL_WIDGET_LAYOUT", 11 | name: "alfresco/layout/HorizontalWidgets", 12 | config: { 13 | widgetWidth: 50, 14 | widgets: [ 15 | { 16 | id: "DEMO_SIMPLE_LOGO", 17 | name: "alfresco/logo/Logo", 18 | config: { 19 | logoClasses: "alfresco-logo-only" 20 | } 21 | }, 22 | { 23 | id: "DEMO_SIMPLE_MSG", 24 | name: "example/widgets/TemplateWidget" 25 | } 26 | ] 27 | } 28 | }] 29 | }; -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.js: -------------------------------------------------------------------------------- 1 | model.jsonModel = { 2 | widgets: [{ 3 | id: "SET_PAGE_TITLE", 4 | name: "alfresco/header/SetTitle", 5 | config: { 6 | title: "This is a sample HELLO page" 7 | } 8 | }, 9 | { 10 | id: "MY_HORIZONTAL_WIDGET_LAYOUT", 11 | name: "alfresco/layout/HorizontalWidgets", 12 | config: { 13 | widgetWidth: 50, 14 | widgets: [ 15 | { 16 | id: "DEMO_SIMPLE_LOGO", 17 | name: "alfresco/logo/Logo", 18 | config: { 19 | logoClasses: "alfresco-logo-only" 20 | } 21 | }, 22 | { 23 | id: "DEMO_SIMPLE_MSG", 24 | name: "tutorials/widgets/TemplateWidget" 25 | } 26 | ] 27 | } 28 | }] 29 | }; -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.js: -------------------------------------------------------------------------------- 1 | model.jsonModel = { 2 | widgets: [{ 3 | id: "SET_PAGE_TITLE", 4 | name: "alfresco/header/SetTitle", 5 | config: { 6 | title: "This is a sample HELLO page" 7 | } 8 | }, 9 | { 10 | id: "MY_HORIZONTAL_WIDGET_LAYOUT", 11 | name: "alfresco/layout/HorizontalWidgets", 12 | config: { 13 | widgetWidth: 50, 14 | widgets: [ 15 | { 16 | id: "DEMO_SIMPLE_LOGO", 17 | name: "alfresco/logo/Logo", 18 | config: { 19 | logoClasses: "alfresco-logo-only" 20 | } 21 | }, 22 | { 23 | id: "DEMO_SIMPLE_MSG", 24 | name: "tutorials/widgets/TemplateWidget" 25 | } 26 | ] 27 | } 28 | }] 29 | }; -------------------------------------------------------------------------------- /generators/amp-add-source/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const chalk = require('chalk'); 3 | const debug = require('debug')('generator-alfresco:amp-add-source'); 4 | const Generator = require('yeoman-generator'); 5 | 6 | const DELEGATED_NAMESPACE = 'alfresco:module-add-source'; 7 | 8 | class AmpAddSourceSubGenerator extends Generator { 9 | constructor (args, opts) { 10 | super(args, opts); 11 | this.out = require('generator-alfresco-common').generator_output(this); 12 | } 13 | 14 | help () { 15 | const subgen = this.env.create(DELEGATED_NAMESPACE); 16 | return Generator.prototype.help.apply(subgen); 17 | } 18 | 19 | prompting () { 20 | this.out.warn(`This sub-generator is deprecated, delegating to ${chalk.yellow('yo alfresco:module-add-source')} instead`); 21 | 22 | return this.prompt([]).then(() => { 23 | debug(`Delegating to the ${DELEGATED_NAMESPACE} generator`); 24 | this.composeWith(DELEGATED_NAMESPACE, this.options); 25 | }).then(() => { 26 | debug('Prompting finished'); 27 | }); 28 | } 29 | } 30 | 31 | module.exports = AmpAddSourceSubGenerator; 32 | 33 | // vim: autoindent expandtab tabstop=2 shiftwidth=2 softtabstop=2 34 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/repo-amp/src/test/resources/test-log4j.properties: -------------------------------------------------------------------------------- 1 | # Overrides only log4j locations and add the test logging properties 2 | # This gets merged with the main file 3 | 4 | # Set root logger level to error 5 | log4j.rootLogger=${app.log.root.level}, Console, File 6 | 7 | ###### Console appender definition ####### 8 | 9 | # All outputs currently set to be a ConsoleAppender. 10 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 11 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 12 | 13 | # use log4j NDC to replace %x with tenant domain / username 14 | log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n 15 | #log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n 16 | 17 | ###### File appender definition ####### 18 | log4j.appender.File=org.apache.log4j.DailyRollingFileAppender 19 | log4j.appender.File.File=${app.log.dir}alfresco.log 20 | log4j.appender.File.Append=true 21 | log4j.appender.File.DatePattern='.'yyyy-MM-dd 22 | log4j.appender.File.layout=org.apache.log4j.PatternLayout 23 | log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/test/resources/test-log4j.properties: -------------------------------------------------------------------------------- 1 | # Overrides only log4j locations and add the test logging properties 2 | # This gets merged with the main file 3 | 4 | # Set root logger level to error 5 | log4j.rootLogger=${app.log.root.level}, Console, File 6 | 7 | ###### Console appender definition ####### 8 | 9 | # All outputs currently set to be a ConsoleAppender. 10 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 11 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 12 | 13 | # use log4j NDC to replace %x with tenant domain / username 14 | log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n 15 | #log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n 16 | 17 | ###### File appender definition ####### 18 | log4j.appender.File=org.apache.log4j.DailyRollingFileAppender 19 | log4j.appender.File.File=${app.log.dir}alfresco.log 20 | log4j.appender.File.Append=true 21 | log4j.appender.File.DatePattern='.'yyyy-MM-dd 22 | log4j.appender.File.layout=org.apache.log4j.PatternLayout 23 | log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/test/resources/test-log4j.properties: -------------------------------------------------------------------------------- 1 | # Overrides only log4j locations and add the test logging properties 2 | # This gets merged with the main file 3 | 4 | # Set root logger level to error 5 | log4j.rootLogger=${app.log.root.level}, Console, File 6 | 7 | ###### Console appender definition ####### 8 | 9 | # All outputs currently set to be a ConsoleAppender. 10 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 11 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 12 | 13 | # use log4j NDC to replace %x with tenant domain / username 14 | log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n 15 | #log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n 16 | 17 | ###### File appender definition ####### 18 | log4j.appender.File=org.apache.log4j.DailyRollingFileAppender 19 | log4j.appender.File.File=${app.log.dir}alfresco.log 20 | log4j.appender.File.Append=true 21 | log4j.appender.File.DatePattern='.'yyyy-MM-dd 22 | log4j.appender.File.layout=org.apache.log4j.PatternLayout 23 | log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/test/resources/test-log4j.properties: -------------------------------------------------------------------------------- 1 | # Overrides only log4j locations and add the test logging properties 2 | # This gets merged with the main file 3 | 4 | # Set root logger level to error 5 | log4j.rootLogger=${app.log.root.level}, Console, File 6 | 7 | ###### Console appender definition ####### 8 | 9 | # All outputs currently set to be a ConsoleAppender. 10 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 11 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 12 | 13 | # use log4j NDC to replace %x with tenant domain / username 14 | log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n 15 | #log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n 16 | 17 | ###### File appender definition ####### 18 | log4j.appender.File=org.apache.log4j.DailyRollingFileAppender 19 | log4j.appender.File.File=${app.log.dir}alfresco.log 20 | log4j.appender.File.Append=true 21 | log4j.appender.File.DatePattern='.'yyyy-MM-dd 22 | log4j.appender.File.layout=org.apache.log4j.PatternLayout 23 | log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-platform-jar/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | ${artifactId} 5 | Alfresco Platform/Repository JAR Module 6 | Platform/Repo JAR Module (to be included in the alfresco.war) - part of AIO - SDK 3 7 | 8 | jar 9 | 10 | 11 | ${groupId} 12 | ${rootArtifactId} 13 | ${version} 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | org.apache.maven.plugins 26 | maven-assembly-plugin 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | ${artifactId} 5 | Alfresco Platform/Repository JAR Module 6 | Platform/Repo JAR Module (to be included in the alfresco.war) - part of AIO - SDK 3 7 | 8 | jar 9 | 10 | 11 | ${groupId} 12 | ${rootArtifactId} 13 | ${version} 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | org.apache.maven.plugins 26 | maven-assembly-plugin 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/amp/config/alfresco/module/__artifactId__/context/bootstrap-context.xml: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | 5 | 9 | 10 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | alfresco/module/${project.artifactId}/model/content-model.xml 19 | alfresco/module/${project.artifactId}/model/workflow-model.xml 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/amp/config/alfresco/module/__artifactId__/context/bootstrap-context.xml: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | 5 | 9 | 10 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | alfresco/module/${project.artifactId}/model/content-model.xml 19 | alfresco/module/${project.artifactId}/model/workflow-model.xml 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/amp/config/alfresco/module/__artifactId__/context/bootstrap-context.xml: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | 5 | 9 | 10 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | alfresco/module/${project.artifactId}/model/content-model.xml 19 | alfresco/module/${project.artifactId}/model/workflow-model.xml 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/repo-amp/src/main/amp/config/alfresco/module/__artifactId__/module-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /test/test-app-enterprise-3-0-1.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | /* eslint-env node, mocha */ 3 | const path = require('path'); 4 | const assert = require('yeoman-assert'); 5 | const helpers = require('yeoman-test'); 6 | const os = require('os'); 7 | 8 | describe('generator-alfresco:app-enterprise-3-0-1', function () { 9 | this.timeout(60000); 10 | 11 | before(function () { 12 | return helpers.run(path.join(__dirname, '../generators/app')) 13 | .inDir(path.join(os.tmpdir(), './temp-test')) 14 | .withOptions({ 'skip-install': true }) 15 | .withPrompts({ 16 | sdkVersion: '3.0.1', 17 | projectStructure: 'basic', 18 | communityOrEnterprise: 'Enterprise', 19 | removeDefaultSourceAmps: false, 20 | removeDefaultSourceSamples: false, 21 | }) 22 | .toPromise(); 23 | }); 24 | 25 | it('edition is enterprise', function () { 26 | assert.fileContent( 27 | 'pom.xml', 28 | /enterprise<\/maven.alfresco.edition>/ 29 | ); 30 | }); 31 | 32 | it('does not set edition to community', function () { 33 | assert.noFileContent( 34 | 'pom.xml', 35 | /community<\/maven.alfresco.edition>/ 36 | ); 37 | }); 38 | }); 39 | 40 | // vim: autoindent expandtab tabstop=2 shiftwidth=2 softtabstop=2 41 | -------------------------------------------------------------------------------- /test/test-app-enterprise-3-1-0.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | /* eslint-env node, mocha */ 3 | const path = require('path'); 4 | const assert = require('yeoman-assert'); 5 | const helpers = require('yeoman-test'); 6 | const os = require('os'); 7 | 8 | describe('generator-alfresco:app-enterprise-3-1-0', function () { 9 | this.timeout(60000); 10 | 11 | before(function () { 12 | return helpers.run(path.join(__dirname, '../generators/app')) 13 | .inDir(path.join(os.tmpdir(), './temp-test')) 14 | .withOptions({ 'skip-install': true }) 15 | .withPrompts({ 16 | sdkVersion: '3.1.0', 17 | projectStructure: 'basic', 18 | communityOrEnterprise: 'Enterprise', 19 | removeDefaultSourceAmps: false, 20 | removeDefaultSourceSamples: false, 21 | }) 22 | .toPromise(); 23 | }); 24 | 25 | it('edition is enterprise', function () { 26 | assert.fileContent( 27 | 'pom.xml', 28 | /enterprise<\/maven.alfresco.edition>/ 29 | ); 30 | }); 31 | 32 | it('does not set edition to community', function () { 33 | assert.noFileContent( 34 | 'pom.xml', 35 | /community<\/maven.alfresco.edition>/ 36 | ); 37 | }); 38 | }); 39 | 40 | // vim: autoindent expandtab tabstop=2 shiftwidth=2 softtabstop=2 41 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/amp/config/alfresco/module/__artifactId__/model/content-model.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Document Model for Repo Extension X 6 | My Name 7 | 1.0 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 26 | 27 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/amp/config/alfresco/module/__artifactId__/model/content-model.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Document Model for Repo Extension X 6 | My Name 7 | 1.0 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 26 | 27 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/amp/config/alfresco/module/__artifactId__/model/workflow-model.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Workflow Model for Repo Extension X 5 | My Name 6 | 1.0 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/amp/config/alfresco/module/__artifactId__/model/workflow-model.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Workflow Model for Repo Extension X 5 | My Name 6 | 1.0 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /generators/webscript/templates/AbstractWebScript.java: -------------------------------------------------------------------------------- 1 | package <%- classPackage %>; 2 | 3 | import org.json.JSONException; 4 | import org.json.JSONObject; 5 | import org.springframework.extensions.webscripts.AbstractWebScript; 6 | import org.springframework.extensions.webscripts.WebScriptException; 7 | import org.springframework.extensions.webscripts.WebScriptRequest; 8 | import org.springframework.extensions.webscripts.WebScriptResponse; 9 | import org.apache.commons.logging.Log; 10 | import org.apache.commons.logging.LogFactory; 11 | 12 | import java.io.IOException; 13 | 14 | // See http://docs.alfresco.com/5.1/references/dev-extension-points-webscripts.html 15 | public class <%- className %> extends AbstractWebScript { 16 | private static Log logger = LogFactory.getLog(<%- className %>.class); 17 | 18 | @Override 19 | public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException { 20 | try { 21 | logger.info("<%- className %> executing"); 22 | JSONObject obj = new JSONObject(); 23 | obj.put("data", "Facts and statistics collected together for reference or analysis."); 24 | String jsonString = obj.toString(); 25 | res.getWriter().write(jsonString); 26 | } catch (JSONException e) { 27 | throw new WebScriptException("Unable to serialize JSON"); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-platform-jar/src/main/java/platformsample/Demo.java: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | /** 5 | * Copyright (C) 2017 Alfresco Software Limited. 6 | *

7 | * This file is part of the Alfresco SDK project. 8 | *

9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | *

13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | *

15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | package ${package}.platformsample; 22 | 23 | /** 24 | * This class does nothing except dump some output to system.out. 25 | * This is a sample taken from Maven Alfresco SDK 26 | * 27 | * @author Derek Hulley 28 | */ 29 | public class Demo 30 | { 31 | public void init() 32 | { 33 | System.out.println("Platform JAR Module class has been loaded"); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/model/workflow-model.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Sample Workflow Model 5 | My Name 6 | 1.0 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/src/main/java/platformsample/Demo.java: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | /** 5 | * Copyright (C) 2017 Alfresco Software Limited. 6 | *

7 | * This file is part of the Alfresco SDK project. 8 | *

9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | *

13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | *

15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | package ${package}.platformsample; 22 | 23 | /** 24 | * This class does nothing except dump some output to system.out. 25 | * This is a sample taken from Maven Alfresco SDK 26 | * 27 | * @author Derek Hulley 28 | */ 29 | public class Demo 30 | { 31 | public void init() 32 | { 33 | System.out.println("Platform JAR Module class has been loaded"); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/model/workflow-model.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Sample Workflow Model 5 | My Name 6 | 1.0 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/amp/config/alfresco/module/__artifactId__/model/content-model.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Document Model for Repo Extension X 6 | My Name 7 | 1.0 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 26 | 27 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/amp/config/alfresco/module/__artifactId__/model/workflow-model.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Workflow Model for Repo Extension X 5 | My Name 6 | 1.0 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/amp/config/alfresco/module/__artifactId__/context/webscript-context.xml: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | 5 | 6 | 22 | 23 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/amp/config/alfresco/module/__artifactId__/context/webscript-context.xml: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | 5 | 6 | 22 | 23 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ### CHECKLIST 2 | 3 | We will not consider a PR untill all of the following items are checked off--thank you! 4 | 5 | - [ ] There aren't existing pull requests attempting to address the issue mentioned here 6 | - [ ] Submission developed in a feature branch--not master 7 | - [ ] Confirmed there are no outstanding `npm run eslint` issues 8 | - [ ] Added/updated tests for new/changed code 9 | * TIP: You can watch/run a specific test during developemnt with `npm run test:watchone test/TEST-FILE-NAME` 10 | - [ ] Appropriate coverage validated with `npm run cover:local` 11 | - [ ] All `npm test` passes without any issues 12 | 13 | ### CONVINCING DESCRIPTION 14 | ### RELATED INFORMATION 15 | 16 | # BE WARNED 17 | 18 | - If any of the checklist items are missed, incomplete or invalid we will not accept the PR 19 | - If you are not responsive to feedback on your PR we will not accept the PR 20 | - If we do not accept your PR we will provide feedback on the PR indicating why 21 | - After some time, we will close PRs that have not been accepted 22 | 23 | When we decline or close your PR. You are encouraged to address the concernes outlined in the PR and then re-submit it. We want contributions. We also need for them to be of high quality and high value and to not take undue resources away from the features and enhancements the core team is working on. Thanks for understanding! 24 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/custom-slingshot-application-context.xml: -------------------------------------------------------------------------------- 1 | #set($symbol_pound='#') 2 | #set($symbol_dollar='$') 3 | #set($symbol_escape='\' ) 4 | 5 | 9 | 10 | 18 | 19 | 20 | 22 | 23 | 24 | alfresco.web-extension.messages.custom 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/amp/config/alfresco/module/__artifactId__/context/webscript-context.xml: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | 5 | 6 | 22 | 23 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/share-amp/src/main/amp/config/alfresco/web-extension/__artifactId__-slingshot-application-context.xml: -------------------------------------------------------------------------------- 1 | #set($symbol_pound='#') 2 | #set($symbol_dollar='$') 3 | #set($symbol_escape='\' ) 4 | 5 | 9 | 10 | 18 | 19 | 20 | 22 | 23 | 24 | alfresco.web-extension.messages.${artifactId} 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /generators/base-generator.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const CLIGenerator = require('generator-alfresco-common').cli_generator; 3 | 4 | /** 5 | * Base class for a yeoman generator in the generator-alfresco project. This 6 | * class provides some common things like our output handling module, 7 | * the SDK version for the main project and the module registry and manager. 8 | * 9 | * Lots of info in cli-generator.js code! 10 | */ 11 | class BaseGenerator extends CLIGenerator { 12 | constructor (args, opts) { 13 | super(args, opts); 14 | 15 | this.out = require('generator-alfresco-common').generator_output(this); 16 | this.sdkVersions = require('./common/sdk-versions.js'); 17 | this.sdk = this.sdkVersions[this.config.get('sdkVersion')]; 18 | this.sdkMajorVersion = (this.sdk ? this.sdk.sdkMajorVersion.call(this) : undefined); 19 | this.usingEnhancedAlfrescoMavenPlugin = (this.sdk ? this.sdk.usesEnhancedAlfrescoMavenPlugin.call(this) : undefined); 20 | this.moduleRegistry = this.options._moduleRegistry || require('generator-alfresco-common').alfresco_module_registry(this); 21 | this.modules = this.options._modules || this.moduleRegistry.getNamedModules(); 22 | this.moduleManager = this.options._moduleManager || require('./common/alfresco-module-manager.js')(this); 23 | } 24 | }; 25 | 26 | module.exports = BaseGenerator; 27 | 28 | // vim: autoindent expandtab tabstop=2 shiftwidth=2 softtabstop=2 29 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-share-amp/src/main/amp/config/alfresco/web-extension/__artifactId__-slingshot-application-context.xml: -------------------------------------------------------------------------------- 1 | #set($symbol_pound='#') 2 | #set($symbol_dollar='$') 3 | #set($symbol_escape='\' ) 4 | 5 | 9 | 10 | 18 | 19 | 20 | 22 | 23 | 24 | alfresco.web-extension.messages.${artifactId} 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/__artifactId__-slingshot-application-context.xml: -------------------------------------------------------------------------------- 1 | #set($symbol_pound='#') 2 | #set($symbol_dollar='$') 3 | #set($symbol_escape='\' ) 4 | 5 | 9 | 10 | 18 | 19 | 20 | 22 | 23 | 24 | alfresco.web-extension.messages.${artifactId} 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/src/main/resources/alfresco/web-extension/__artifactId__-slingshot-application-context.xml: -------------------------------------------------------------------------------- 1 | #set($symbol_pound='#') 2 | #set($symbol_dollar='$') 3 | #set($symbol_escape='\' ) 4 | 5 | 9 | 10 | 18 | 19 | 20 | 22 | 23 | 24 | alfresco.web-extension.messages.${artifactId} 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/README.md: -------------------------------------------------------------------------------- 1 | # Alfresco AIO Project - SDK 3 2 | 3 | This is an All-In-One (AIO) project for Alfresco SDK 3.0. 4 | 5 | Run with `mvn clean install -DskipTests=true alfresco:run` or `./run.sh` and verify that it 6 | 7 | * Runs the embedded Tomcat + H2 DB 8 | * Runs Alfresco Platform (Repository) 9 | * Runs Alfresco Solr4 10 | * Runs Alfresco Share 11 | * Packages both as JAR and AMP assembly for modules 12 | 13 | # Few things to notice 14 | 15 | * No parent pom 16 | * No WAR projects, all handled by the Alfresco Maven Plugin 17 | * No runner project - it's all in the Alfresco Maven Plugin 18 | * Standard JAR packaging and layout 19 | * Works seamlessly with Eclipse and IntelliJ IDEA 20 | * JRebel for hot reloading, JRebel maven plugin for generating rebel.xml, agent usage: `MAVEN_OPTS=-Xms256m -Xmx1G -agentpath:/home/martin/apps/jrebel/lib/libjrebel64.so` 21 | * AMP as an assembly 22 | * [Configurable Run mojo](https://github.com/Alfresco/alfresco-sdk/blob/sdk-3.0/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java) in the `alfresco-maven-plugin` 23 | * No unit testing/functional tests just yet 24 | * Resources loaded from META-INF 25 | * Web Fragment (this includes a sample servlet configured via web fragment) 26 | 27 | # TODO 28 | 29 | * Abstract assembly into a dependency so we don't have to ship the assembly in the archetype 30 | * Purge 31 | * Functional/remote unit tests 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/README.md: -------------------------------------------------------------------------------- 1 | # Alfresco AIO Project - SDK 3 2 | 3 | This is an All-In-One (AIO) project for Alfresco SDK 3.0. 4 | 5 | Run with `mvn clean install -DskipTests=true alfresco:run` or `./run.sh` and verify that it 6 | 7 | * Runs the embedded Tomcat + H2 DB 8 | * Runs Alfresco Platform (Repository) 9 | * Runs Alfresco Solr4 10 | * Runs Alfresco Share 11 | * Packages both as JAR and AMP assembly for modules 12 | 13 | # Few things to notice 14 | 15 | * No parent pom 16 | * No WAR projects, all handled by the Alfresco Maven Plugin 17 | * No runner project - it's all in the Alfresco Maven Plugin 18 | * Standard JAR packaging and layout 19 | * Works seamlessly with Eclipse and IntelliJ IDEA 20 | * JRebel for hot reloading, JRebel maven plugin for generating rebel.xml, agent usage: `MAVEN_OPTS=-Xms256m -Xmx1G -agentpath:/home/martin/apps/jrebel/lib/libjrebel64.so` 21 | * AMP as an assembly 22 | * [Configurable Run mojo](https://github.com/Alfresco/alfresco-sdk/blob/sdk-3.0/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java) in the `alfresco-maven-plugin` 23 | * No unit testing/functional tests just yet 24 | * Resources loaded from META-INF 25 | * Web Fragment (this includes a sample servlet configured via web fragment) 26 | 27 | # TODO 28 | 29 | * Abstract assembly into a dependency so we don't have to ship the assembly in the archetype 30 | * Purge 31 | * Functional/remote unit tests 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/repo-amp/src/main/amp/config/alfresco/module/__artifactId__/module-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/repo-amp/src/main/amp/config/alfresco/module/__artifactId__/module-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/context/webscript-context.xml: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | 5 | 21 | 25 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/context/webscript-context.xml: -------------------------------------------------------------------------------- 1 | #set( $symbol_pound = '#' ) 2 | #set( $symbol_dollar = '$' ) 3 | #set( $symbol_escape = '\' ) 4 | 5 | 21 | 25 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /test/test-app-enterprise-2-1-1.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | /* eslint-env node, mocha */ 3 | const path = require('path'); 4 | const assert = require('yeoman-assert'); 5 | const helpers = require('yeoman-test'); 6 | const os = require('os'); 7 | 8 | describe('generator-alfresco:app-enterprise-2-1-1', function () { 9 | this.timeout(60000); 10 | 11 | before(function () { 12 | return helpers.run(path.join(__dirname, '../generators/app')) 13 | .inDir(path.join(os.tmpdir(), './temp-test')) 14 | .withOptions({ 'skip-install': true }) 15 | .withPrompts({ 16 | sdkVersion: '2.1.1', 17 | projectStructure: 'basic', 18 | communityOrEnterprise: 'Enterprise', 19 | removeDefaultSourceAmps: false, 20 | removeDefaultSourceSamples: false, 21 | }) 22 | .toPromise(); 23 | }); 24 | 25 | it('creates files', function () { 26 | assert.file([ 27 | 'repo/src/main/resources/alfresco/extension/license/README.md', 28 | ]); 29 | }); 30 | 31 | it('updates run.sh and debug.sh with -Penterprise flag', function () { 32 | assert.fileContent([ 33 | ['debug.sh', /-Penterprise/], 34 | ['run.sh', /-Penterprise/], 35 | ['run.bat', /-Penterprise/], 36 | ['run-without-springloaded.sh', /-Penterprise/], 37 | ['scripts/debug.sh', /-Penterprise/], 38 | ['scripts/run.sh', /-Penterprise/], 39 | ['scripts/run.bat', /-Penterprise/], 40 | ['scripts/run-without-springloaded.sh', /-Penterprise/], 41 | ]); 42 | }); 43 | }); 44 | 45 | // vim: autoindent expandtab tabstop=2 shiftwidth=2 softtabstop=2 46 | -------------------------------------------------------------------------------- /test/test-surf-extensions-prompt-filters.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | /* eslint-env node, mocha */ 3 | const assert = require('assert'); 4 | const surfExtensionFilters = require('../generators/surf-extension/surf-extension-prompt-filters.js'); 5 | 6 | describe('generator-alfresco:surf-extension-prompt-filters', function () { 7 | describe('.requiredRegexFilter()', function () { 8 | it('check regex filter handling of numeric input', function () { 9 | const one = surfExtensionFilters.requiredRegexFilter(1, '1'); 10 | assert.equal('1', one); 11 | }); 12 | }); 13 | 14 | describe('.versionNumberFilter()', function () { 15 | it('check version number filter handling of numeric decimal input', function () { 16 | const verNum = surfExtensionFilters.versionNumberFilter(1.1); 17 | assert.equal('1.1', verNum); 18 | }); 19 | it('check version number filter handling of numeric integer input', function () { 20 | const verNum = surfExtensionFilters.versionNumberFilter(1); 21 | assert.equal('1.0', verNum); 22 | }); 23 | }); 24 | 25 | describe('.autoDeployFilter()', function () { 26 | it('check auto deploy filter handling of true/false', function () { 27 | const autoDeploy = surfExtensionFilters.autoDeployFilter('true'); 28 | assert.equal('true', autoDeploy); 29 | }); 30 | it('check auto deploy filter handling of true/false', function () { 31 | const autoDeploy = surfExtensionFilters.autoDeployFilter('test'); 32 | assert.equal(null, autoDeploy); 33 | }); 34 | }); 35 | }); 36 | 37 | // vim: autoindent expandtab tabstop=2 shiftwidth=2 softtabstop=2 38 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | BEFORE ALL 2 | ---------- 3 | 4 | In order for us to help you, please check that you've completed the following: 5 | 6 | * Made sure you're have the latest versions `npm update -g yo && npm update -g binduwavell/generator-alfresco` 7 | * Used the search feature to ensure that the bug hasn't been reported before 8 | * Completed the following items for a bug or feature / enhancement 9 | 10 | BUG 11 | --- 12 | 13 | ### Steps to reproduce the problem 14 | ### Expected behavior 15 | ### Actual behavior 16 | ### Additional details (analysis so far, command output, references, etc.) 17 | ### Tell us about your environment by at least providing output from the following commands: 18 | ``` 19 | node -e 'console.log(process.env.PATH);console.log(process.env.NODE_PATH)' 20 | node -e 'console.log(process.platform, process.versions)' 21 | npm --version 22 | yo --version 23 | java -version 24 | mvn -version 25 | ``` 26 | 27 | FEATURE / ENHANCEMENT 28 | --------------------- 29 | 30 | If you are requesting a feature or enhancement, please provide as much information as 31 | possible and let us know how you will be able to contribute to resolving the request. 32 | 33 | If you write code and can code up the solution, we welcome PRs. If you can do this but 34 | would like guidance from the core team let us know. 35 | 36 | Are you willing/able to test any work we do towards your request? 37 | 38 | If you plan to contribute to the project and you are not familiar with out current 39 | contribution policy, please make sure you have read that document (HINT: there is 40 | a link at the top of the page when you are creating an issue.) 41 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.0.0/archetype-resources/runner/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Alfresco SDK 2.0.0 - Running Alfresco ${alfresco.version} 4 | 5 | 6 | Maven Alfresco SDK 7 |

Congratulations, you are successfully running the All in One project from the Alfresco SDK 2.0.0, powered by Apache Maven! 8 |
9 | You can access the Alfresco components running embedded below:

10 | 15 |

Resources:

16 | 23 | 24 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/runner/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Alfresco SDK 2.1.0 - Running Alfresco ${alfresco.version} 4 | 5 | 6 | Maven Alfresco SDK 7 |

Congratulations, you are successfully running the All in One project from the Alfresco SDK 2.1.0, powered by Apache Maven! 8 |
9 | You can access the Alfresco components running embedded below:

10 | 15 |

Resources:

16 | 23 | 24 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/runner/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Alfresco SDK 2.1.1 - Running Alfresco ${alfresco.version} 4 | 5 | 6 | Maven Alfresco SDK 7 |

Congratulations, you are successfully running the All in One project from the Alfresco SDK 2.1.1, powered by Apache Maven! 8 |
9 | You can access the Alfresco components running embedded below:

10 | 15 |

Resources:

16 | 23 | 24 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/runner/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Alfresco SDK 2.2.0 - Running Alfresco ${alfresco.version} 4 | 5 | 6 | Maven Alfresco SDK 7 |

Congratulations, you are successfully running the All in One project from the Alfresco SDK 2.2.0, powered by Apache Maven! 8 |
9 | You can access the Alfresco components running embedded below:

10 | 16 |

Resources:

17 | 24 | 25 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.1/archetype-resources/runner/tomcat/context-solr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 12 | 13 | 14 | 15 | 20 | 21 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/runner/tomcat/context-solr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 12 | 13 | 14 | 15 | 20 | 21 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.2.0/archetype-resources/__rootArtifactId__-repo-amp/src/main/amp/config/alfresco/module/__artifactId__/module-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.0.1/archetype-resources/__rootArtifactId__-share-jar/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | ${artifactId} 6 | Alfresco Share JAR Module 7 | jar 8 | Sample Share JAR Module (to be included in the share.war) - part of AIO - SDK 3 9 | 10 | 11 | ${groupId} 12 | ${rootArtifactId} 13 | ${version} 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | ${alfresco.groupId} 25 | share 26 | classes 27 | 28 | 29 | 30 | org.alfresco.surf 31 | spring-surf-api 32 | 33 | 34 | 35 | 36 | 37 | 38 | org.apache.maven.plugins 39 | maven-assembly-plugin 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/3.1.0/archetype-resources/__rootArtifactId__-share-jar/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | ${artifactId} 6 | Alfresco Share JAR Module 7 | jar 8 | Sample Share JAR Module (to be included in the share.war) - part of AIO - SDK 3 9 | 10 | 11 | ${groupId} 12 | ${rootArtifactId} 13 | ${version} 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | ${alfresco.groupId} 25 | share 26 | classes 27 | 28 | 29 | 30 | org.alfresco.surf 31 | spring-surf-api 32 | 33 | 34 | 35 | 36 | 37 | 38 | org.apache.maven.plugins 39 | maven-assembly-plugin 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /generators/model/model-prompt-filters.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const _ = require('lodash'); 3 | 4 | module.exports = { 5 | 6 | alphaLowerCaseFilter: name => { 7 | if (!_.isString(name) || _.isEmpty(name)) return undefined; 8 | let retv; 9 | retv = name.replace(/[^A-Za-z]/g, ''); 10 | if (retv === '') return undefined; 11 | return _.toLower(retv); 12 | }, 13 | 14 | alphaCamelCaseFilter: name => { 15 | if (!_.isString(name) || _.isEmpty(name)) return undefined; 16 | name = _.camelCase(name); 17 | let retv; 18 | retv = name.replace(/[^A-Za-z]/g, ''); 19 | if (retv === '') return undefined; 20 | return retv; 21 | }, 22 | 23 | modelNameFilter: name => { 24 | let retv = module.exports.alphaCamelCaseFilter(name); 25 | if (undefined === retv) return undefined; 26 | // If the name ends with model, remove it 27 | if (retv.match(/.model$/i)) { 28 | retv = retv.replace(/model$/i, ''); 29 | } 30 | return retv; 31 | }, 32 | 33 | requiredRegexFilter: (input, regex) => { 34 | if (_.isNumber(input)) { 35 | input = '' + input; 36 | } 37 | if (!_.isString(input) || _.isEmpty(input)) return undefined; 38 | const re = new RegExp(regex); 39 | const valid = re.test(input); 40 | return (valid ? input : undefined); 41 | }, 42 | 43 | requiredRegexFilterFactory: regex => { 44 | return input => { 45 | return module.exports.requiredRegexFilter(input, regex); 46 | }; 47 | }, 48 | 49 | versionNumberFilter: input => { 50 | if (_.isNumber(input)) { 51 | input = '' + input; 52 | if (input.indexOf('.') === -1) { 53 | input += '.0'; 54 | } 55 | } 56 | return module.exports.requiredRegexFilter(input, '^\\d+\\.\\d+$'); 57 | }, 58 | 59 | }; 60 | 61 | // vim: autoindent expandtab tabstop=2 shiftwidth=2 softtabstop=2 62 | -------------------------------------------------------------------------------- /generators/app/templates/archetypes/2.1.0/archetype-resources/runner/tomcat/context-solr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 12 | 13 | 14 | 15 | 20 | 21 | 24 | 25 | 26 | 27 | 28 | --------------------------------------------------------------------------------