├── .gitignore
├── Jenkinsfile
├── README.md
├── commerce
├── .gitignore
└── .product
├── functions.sh
├── other
└── .gitignore
├── portal
├── .product
├── 7.1
│ ├── .product.version
│ ├── README.md
│ ├── java11
│ │ ├── .gitignore
│ │ └── .java.version
│ └── java8
│ │ ├── .java.version
│ │ ├── README.md
│ │ ├── build.gradle
│ │ ├── build.sh
│ │ ├── check.sh
│ │ ├── code
│ │ ├── .codebase
│ │ ├── modules
│ │ │ └── applications
│ │ │ │ └── portlets
│ │ │ │ ├── action-command-ds
│ │ │ │ ├── .sample
│ │ │ │ ├── README.md
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── liferay
│ │ │ │ │ │ └── code
│ │ │ │ │ │ └── samples
│ │ │ │ │ │ └── portal
│ │ │ │ │ │ └── modules
│ │ │ │ │ │ └── applications
│ │ │ │ │ │ └── portlets
│ │ │ │ │ │ └── action_command_ds
│ │ │ │ │ │ ├── command
│ │ │ │ │ │ ├── ForgetCommand.java
│ │ │ │ │ │ └── GreetCommand.java
│ │ │ │ │ │ └── portlet
│ │ │ │ │ │ └── ActionCommandPortlet.java
│ │ │ │ │ └── resources
│ │ │ │ │ ├── META-INF
│ │ │ │ │ └── resources
│ │ │ │ │ │ ├── css
│ │ │ │ │ │ └── main.scss
│ │ │ │ │ │ ├── init.jsp
│ │ │ │ │ │ └── view.jsp
│ │ │ │ │ └── content
│ │ │ │ │ └── Language.properties
│ │ │ │ ├── generic-ds-plain
│ │ │ │ ├── .sample
│ │ │ │ ├── README.md
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── liferay
│ │ │ │ │ │ └── code
│ │ │ │ │ │ └── samples
│ │ │ │ │ │ └── portal
│ │ │ │ │ │ └── modules
│ │ │ │ │ │ └── applications
│ │ │ │ │ │ └── portlets
│ │ │ │ │ │ └── generic_ds_plain
│ │ │ │ │ │ └── DSPortlet.java
│ │ │ │ │ └── resources
│ │ │ │ │ └── .keepme
│ │ │ │ ├── mvc-ds-freemarker
│ │ │ │ ├── .sample
│ │ │ │ ├── README.md
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── liferay
│ │ │ │ │ │ └── code
│ │ │ │ │ │ └── samples
│ │ │ │ │ │ └── portal
│ │ │ │ │ │ └── modules
│ │ │ │ │ │ └── applications
│ │ │ │ │ │ └── portlets
│ │ │ │ │ │ └── mvc_ds_freemarker
│ │ │ │ │ │ └── BlankFreemarkerPortlet.java
│ │ │ │ │ └── resources
│ │ │ │ │ ├── META-INF
│ │ │ │ │ └── resources
│ │ │ │ │ │ └── css
│ │ │ │ │ │ └── main.scss
│ │ │ │ │ ├── content
│ │ │ │ │ └── Language.properties
│ │ │ │ │ └── templates
│ │ │ │ │ ├── init.ftl
│ │ │ │ │ └── view.ftl
│ │ │ │ ├── mvc-ds-jsp
│ │ │ │ ├── .sample
│ │ │ │ ├── README.md
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── liferay
│ │ │ │ │ │ └── code
│ │ │ │ │ │ └── samples
│ │ │ │ │ │ └── portal
│ │ │ │ │ │ └── modules
│ │ │ │ │ │ └── applications
│ │ │ │ │ │ └── portlets
│ │ │ │ │ │ └── mvc_ds_jsp
│ │ │ │ │ │ └── JSPPortlet.java
│ │ │ │ │ └── resources
│ │ │ │ │ ├── META-INF
│ │ │ │ │ └── resources
│ │ │ │ │ │ ├── css
│ │ │ │ │ │ ├── .sass-cache
│ │ │ │ │ │ │ ├── main.css
│ │ │ │ │ │ │ └── main_rtl.css
│ │ │ │ │ │ └── main.scss
│ │ │ │ │ │ ├── init.jsp
│ │ │ │ │ │ └── view.jsp
│ │ │ │ │ └── content
│ │ │ │ │ └── Language.properties
│ │ │ │ ├── render-filter-portlet
│ │ │ │ ├── .sample
│ │ │ │ ├── README.md
│ │ │ │ ├── TUTORIAL.md
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── liferay
│ │ │ │ │ │ └── code
│ │ │ │ │ │ └── samples
│ │ │ │ │ │ └── portal
│ │ │ │ │ │ └── modules
│ │ │ │ │ │ └── applications
│ │ │ │ │ │ └── portlets
│ │ │ │ │ │ └── render_filter
│ │ │ │ │ │ ├── filter
│ │ │ │ │ │ ├── EncodingPersonEmailsRenderFilter.java
│ │ │ │ │ │ └── MembersListStatsRenderFilter.java
│ │ │ │ │ │ ├── model
│ │ │ │ │ │ └── Person.java
│ │ │ │ │ │ └── portlet
│ │ │ │ │ │ └── MembersListPortlet.java
│ │ │ │ │ └── resources
│ │ │ │ │ ├── META-INF
│ │ │ │ │ └── resources
│ │ │ │ │ │ ├── css
│ │ │ │ │ │ └── main.scss
│ │ │ │ │ │ ├── init.jsp
│ │ │ │ │ │ └── view.jsp
│ │ │ │ │ └── content
│ │ │ │ │ └── Language.properties
│ │ │ │ └── resource-command-portlet
│ │ │ │ ├── .sample
│ │ │ │ ├── README.md
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ └── main
│ │ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── liferay
│ │ │ │ │ └── code
│ │ │ │ │ └── samples
│ │ │ │ │ └── portal
│ │ │ │ │ └── modules
│ │ │ │ │ └── applications
│ │ │ │ │ └── portlets
│ │ │ │ │ └── resource_command
│ │ │ │ │ ├── command
│ │ │ │ │ └── XLSTaskListResourceCommand.java
│ │ │ │ │ ├── model
│ │ │ │ │ └── PersonalTask.java
│ │ │ │ │ ├── portlet
│ │ │ │ │ └── TaskListPortlet.java
│ │ │ │ │ └── service
│ │ │ │ │ ├── TaskListMockService.java
│ │ │ │ │ └── TaskListService.java
│ │ │ │ └── resources
│ │ │ │ ├── META-INF
│ │ │ │ └── resources
│ │ │ │ │ ├── css
│ │ │ │ │ └── main.scss
│ │ │ │ │ ├── init.jsp
│ │ │ │ │ └── view.jsp
│ │ │ │ └── content
│ │ │ │ └── Language.properties
│ │ ├── themes
│ │ │ └── .keepme
│ │ └── wars
│ │ │ └── .keepme
│ │ ├── gradlew
│ │ ├── gradlew.bat
│ │ ├── moveSample.sh
│ │ ├── standalone-gradle
│ │ ├── .build
│ │ └── modules
│ │ │ └── applications
│ │ │ └── portlets
│ │ │ ├── action-command-ds
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── build.gradle
│ │ │ ├── common.bnd
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ └── src
│ │ │ ├── generic-ds-plain
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── build.gradle
│ │ │ ├── common.bnd
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ └── src
│ │ │ ├── mvc-ds-freemarker
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── build.gradle
│ │ │ ├── common.bnd
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ └── src
│ │ │ ├── mvc-ds-jsp
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── build.gradle
│ │ │ ├── common.bnd
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ └── src
│ │ │ ├── render-filter-portlet
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── build.gradle
│ │ │ ├── common.bnd
│ │ │ ├── gradle
│ │ │ │ └── wrapper
│ │ │ │ │ └── gradle-wrapper.properties
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ └── src
│ │ │ └── resource-command-portlet
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── build.gradle
│ │ │ ├── common.bnd
│ │ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ └── gradle-wrapper.properties
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ └── src
│ │ ├── standalone-maven
│ │ ├── .build
│ │ └── modules
│ │ │ └── applications
│ │ │ └── portlets
│ │ │ ├── action-command-ds
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── common.bnd
│ │ │ ├── mvnw
│ │ │ ├── mvnw.cmd
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ ├── generic-ds-plain
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── common.bnd
│ │ │ ├── mvnw
│ │ │ ├── mvnw.cmd
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ ├── mvc-ds-freemarker
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── common.bnd
│ │ │ ├── mvnw
│ │ │ ├── mvnw.cmd
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ ├── mvc-ds-jsp
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── common.bnd
│ │ │ ├── mvnw
│ │ │ ├── mvnw.cmd
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ ├── render-filter-portlet
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── common.bnd
│ │ │ ├── mvnw
│ │ │ ├── mvnw.cmd
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ └── resource-command-portlet
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── common.bnd
│ │ │ ├── mvnw
│ │ │ ├── mvnw.cmd
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ ├── updateLinks.sh
│ │ ├── workspace-gradle
│ │ ├── .build
│ │ ├── .gitignore
│ │ ├── build.gradle
│ │ ├── configs
│ │ │ ├── common
│ │ │ │ └── .keepme
│ │ │ ├── dev
│ │ │ │ └── portal-ext.properties
│ │ │ ├── local
│ │ │ │ └── portal-ext.properties
│ │ │ ├── prod
│ │ │ │ ├── osgi
│ │ │ │ │ └── configs
│ │ │ │ │ │ └── com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg
│ │ │ │ └── portal-ext.properties
│ │ │ └── uat
│ │ │ │ ├── osgi
│ │ │ │ └── configs
│ │ │ │ │ └── com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg
│ │ │ │ └── portal-ext.properties
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ └── gradle-wrapper.properties
│ │ ├── gradlew
│ │ ├── gradlew.bat
│ │ ├── modules
│ │ │ └── applications
│ │ │ │ └── portlets
│ │ │ │ ├── action-command-ds
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── build.gradle
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ ├── generic-ds-plain
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── build.gradle
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ ├── mvc-ds-freemarker
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── build.gradle
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ ├── mvc-ds-jsp
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── build.gradle
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ ├── render-filter-portlet
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── build.gradle
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ └── resource-command-portlet
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── build.gradle
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ ├── settings.gradle
│ │ ├── themes
│ │ │ └── .keepme
│ │ └── wars
│ │ │ └── .keepme
│ │ └── workspace-maven
│ │ ├── .blade.properties
│ │ ├── .build
│ │ ├── .gitignore
│ │ ├── configs
│ │ ├── common
│ │ │ └── .keepme
│ │ ├── dev
│ │ │ └── portal-ext.properties
│ │ ├── local
│ │ │ └── portal-ext.properties
│ │ ├── prod
│ │ │ ├── osgi
│ │ │ │ └── configs
│ │ │ │ │ └── com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg
│ │ │ └── portal-ext.properties
│ │ └── uat
│ │ │ ├── osgi
│ │ │ └── configs
│ │ │ │ └── com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg
│ │ │ └── portal-ext.properties
│ │ ├── modules
│ │ ├── applications
│ │ │ ├── pom.xml
│ │ │ └── portlets
│ │ │ │ ├── action-command-ds
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── common.bnd
│ │ │ │ ├── pom.xml
│ │ │ │ └── src
│ │ │ │ ├── generic-ds-plain
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── common.bnd
│ │ │ │ ├── pom.xml
│ │ │ │ └── src
│ │ │ │ ├── mvc-ds-freemarker
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── common.bnd
│ │ │ │ ├── pom.xml
│ │ │ │ └── src
│ │ │ │ ├── mvc-ds-jsp
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── common.bnd
│ │ │ │ ├── pom.xml
│ │ │ │ └── src
│ │ │ │ ├── pom.xml
│ │ │ │ ├── render-filter-portlet
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── common.bnd
│ │ │ │ ├── pom.xml
│ │ │ │ └── src
│ │ │ │ └── resource-command-portlet
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── common.bnd
│ │ │ │ ├── pom.xml
│ │ │ │ └── src
│ │ └── pom.xml
│ │ ├── mvnw
│ │ ├── mvnw.cmd
│ │ ├── pom.xml
│ │ ├── themes
│ │ └── pom.xml
│ │ └── wars
│ │ └── pom.xml
├── 7.2
│ ├── .product.version
│ ├── README.md
│ ├── java11
│ │ └── .java.version
│ └── java8
│ │ ├── .java.version
│ │ ├── README.md
│ │ ├── build.gradle
│ │ ├── build.sh
│ │ ├── check.sh
│ │ ├── code
│ │ ├── .codebase
│ │ ├── modules
│ │ │ └── applications
│ │ │ │ └── portlets
│ │ │ │ ├── action-command-ds
│ │ │ │ ├── .sample
│ │ │ │ ├── README.md
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── liferay
│ │ │ │ │ │ └── code
│ │ │ │ │ │ └── samples
│ │ │ │ │ │ └── portal
│ │ │ │ │ │ └── modules
│ │ │ │ │ │ └── applications
│ │ │ │ │ │ └── portlets
│ │ │ │ │ │ └── action_command_ds
│ │ │ │ │ │ ├── command
│ │ │ │ │ │ ├── ForgetCommand.java
│ │ │ │ │ │ └── GreetCommand.java
│ │ │ │ │ │ └── portlet
│ │ │ │ │ │ └── ActionCommandPortlet.java
│ │ │ │ │ └── resources
│ │ │ │ │ ├── META-INF
│ │ │ │ │ └── resources
│ │ │ │ │ │ ├── css
│ │ │ │ │ │ └── main.scss
│ │ │ │ │ │ ├── init.jsp
│ │ │ │ │ │ └── view.jsp
│ │ │ │ │ └── content
│ │ │ │ │ └── Language.properties
│ │ │ │ ├── generic-ds-plain
│ │ │ │ ├── .sample
│ │ │ │ ├── README.md
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── liferay
│ │ │ │ │ │ └── code
│ │ │ │ │ │ └── samples
│ │ │ │ │ │ └── portal
│ │ │ │ │ │ └── modules
│ │ │ │ │ │ └── applications
│ │ │ │ │ │ └── portlets
│ │ │ │ │ │ └── generic_ds_plain
│ │ │ │ │ │ └── DSPortlet.java
│ │ │ │ │ └── resources
│ │ │ │ │ └── .keepme
│ │ │ │ ├── mvc-ds-freemarker
│ │ │ │ ├── .sample
│ │ │ │ ├── README.md
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── liferay
│ │ │ │ │ │ └── code
│ │ │ │ │ │ └── samples
│ │ │ │ │ │ └── portal
│ │ │ │ │ │ └── modules
│ │ │ │ │ │ └── applications
│ │ │ │ │ │ └── portlets
│ │ │ │ │ │ └── mvc_ds_freemarker
│ │ │ │ │ │ └── BlankFreemarkerPortlet.java
│ │ │ │ │ └── resources
│ │ │ │ │ ├── META-INF
│ │ │ │ │ └── resources
│ │ │ │ │ │ └── css
│ │ │ │ │ │ └── main.scss
│ │ │ │ │ ├── content
│ │ │ │ │ └── Language.properties
│ │ │ │ │ └── templates
│ │ │ │ │ ├── init.ftl
│ │ │ │ │ └── view.ftl
│ │ │ │ ├── mvc-ds-jsp
│ │ │ │ ├── .sample
│ │ │ │ ├── README.md
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── liferay
│ │ │ │ │ │ └── code
│ │ │ │ │ │ └── samples
│ │ │ │ │ │ └── portal
│ │ │ │ │ │ └── modules
│ │ │ │ │ │ └── applications
│ │ │ │ │ │ └── portlets
│ │ │ │ │ │ └── mvc_ds_jsp
│ │ │ │ │ │ └── JSPPortlet.java
│ │ │ │ │ └── resources
│ │ │ │ │ ├── META-INF
│ │ │ │ │ └── resources
│ │ │ │ │ │ ├── css
│ │ │ │ │ │ ├── .sass-cache
│ │ │ │ │ │ │ ├── main.css
│ │ │ │ │ │ │ └── main_rtl.css
│ │ │ │ │ │ └── main.scss
│ │ │ │ │ │ ├── init.jsp
│ │ │ │ │ │ └── view.jsp
│ │ │ │ │ └── content
│ │ │ │ │ └── Language.properties
│ │ │ │ ├── render-filter-portlet
│ │ │ │ ├── .sample
│ │ │ │ ├── README.md
│ │ │ │ ├── TUTORIAL.md
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── liferay
│ │ │ │ │ │ └── code
│ │ │ │ │ │ └── samples
│ │ │ │ │ │ └── portal
│ │ │ │ │ │ └── modules
│ │ │ │ │ │ └── applications
│ │ │ │ │ │ └── portlets
│ │ │ │ │ │ └── render_filter
│ │ │ │ │ │ ├── filter
│ │ │ │ │ │ ├── EncodingPersonEmailsRenderFilter.java
│ │ │ │ │ │ └── MembersListStatsRenderFilter.java
│ │ │ │ │ │ ├── model
│ │ │ │ │ │ └── Person.java
│ │ │ │ │ │ └── portlet
│ │ │ │ │ │ └── MembersListPortlet.java
│ │ │ │ │ └── resources
│ │ │ │ │ ├── META-INF
│ │ │ │ │ └── resources
│ │ │ │ │ │ ├── css
│ │ │ │ │ │ └── main.scss
│ │ │ │ │ │ ├── init.jsp
│ │ │ │ │ │ └── view.jsp
│ │ │ │ │ └── content
│ │ │ │ │ └── Language.properties
│ │ │ │ └── resource-command-portlet
│ │ │ │ ├── .sample
│ │ │ │ ├── README.md
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ └── main
│ │ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── liferay
│ │ │ │ │ └── code
│ │ │ │ │ └── samples
│ │ │ │ │ └── portal
│ │ │ │ │ └── modules
│ │ │ │ │ └── applications
│ │ │ │ │ └── portlets
│ │ │ │ │ └── resource_command
│ │ │ │ │ ├── command
│ │ │ │ │ └── XLSTaskListResourceCommand.java
│ │ │ │ │ ├── model
│ │ │ │ │ └── PersonalTask.java
│ │ │ │ │ ├── portlet
│ │ │ │ │ └── TaskListPortlet.java
│ │ │ │ │ └── service
│ │ │ │ │ ├── TaskListMockService.java
│ │ │ │ │ └── TaskListService.java
│ │ │ │ └── resources
│ │ │ │ ├── META-INF
│ │ │ │ └── resources
│ │ │ │ │ ├── css
│ │ │ │ │ └── main.scss
│ │ │ │ │ ├── init.jsp
│ │ │ │ │ └── view.jsp
│ │ │ │ └── content
│ │ │ │ └── Language.properties
│ │ ├── themes
│ │ │ └── .keepme
│ │ └── wars
│ │ │ └── .keepme
│ │ ├── gradlew
│ │ ├── gradlew.bat
│ │ ├── moveSample.sh
│ │ ├── standalone-gradle
│ │ ├── .build
│ │ └── modules
│ │ │ └── applications
│ │ │ └── portlets
│ │ │ ├── action-command-ds
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── build.gradle
│ │ │ ├── common.bnd
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ └── src
│ │ │ ├── generic-ds-plain
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── build.gradle
│ │ │ ├── common.bnd
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ └── src
│ │ │ ├── mvc-ds-freemarker
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── build.gradle
│ │ │ ├── common.bnd
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ └── src
│ │ │ ├── mvc-ds-jsp
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── build.gradle
│ │ │ ├── common.bnd
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ └── src
│ │ │ ├── render-filter-portlet
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── build.gradle
│ │ │ ├── common.bnd
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ └── src
│ │ │ └── resource-command-portlet
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── build.gradle
│ │ │ ├── common.bnd
│ │ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ └── gradle-wrapper.properties
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ └── src
│ │ ├── standalone-maven
│ │ ├── .build
│ │ └── modules
│ │ │ └── applications
│ │ │ └── portlets
│ │ │ ├── action-command-ds
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── common.bnd
│ │ │ ├── mvnw
│ │ │ ├── mvnw.cmd
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ ├── generic-ds-plain
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── common.bnd
│ │ │ ├── mvnw
│ │ │ ├── mvnw.cmd
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ ├── mvc-ds-freemarker
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── common.bnd
│ │ │ ├── mvnw
│ │ │ ├── mvnw.cmd
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ ├── mvc-ds-jsp
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── common.bnd
│ │ │ ├── mvnw
│ │ │ ├── mvnw.cmd
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ ├── render-filter-portlet
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── common.bnd
│ │ │ ├── mvnw
│ │ │ ├── mvnw.cmd
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ │ └── resource-command-portlet
│ │ │ ├── README.md
│ │ │ ├── bnd.bnd
│ │ │ ├── common.bnd
│ │ │ ├── mvnw
│ │ │ ├── mvnw.cmd
│ │ │ ├── pom.xml
│ │ │ └── src
│ │ ├── updateLinks.sh
│ │ ├── workspace-gradle
│ │ ├── .build
│ │ ├── .gitignore
│ │ ├── build.gradle
│ │ ├── configs
│ │ │ ├── common
│ │ │ │ └── .keepme
│ │ │ ├── dev
│ │ │ │ └── portal-ext.properties
│ │ │ ├── local
│ │ │ │ └── portal-ext.properties
│ │ │ ├── prod
│ │ │ │ ├── osgi
│ │ │ │ │ └── configs
│ │ │ │ │ │ └── com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg
│ │ │ │ └── portal-ext.properties
│ │ │ └── uat
│ │ │ │ ├── osgi
│ │ │ │ └── configs
│ │ │ │ │ └── com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg
│ │ │ │ └── portal-ext.properties
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ └── gradle-wrapper.properties
│ │ ├── gradlew
│ │ ├── gradlew.bat
│ │ ├── modules
│ │ │ └── applications
│ │ │ │ └── portlets
│ │ │ │ ├── action-command-ds
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── build.gradle
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ ├── generic-ds-plain
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── build.gradle
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ ├── mvc-ds-freemarker
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── build.gradle
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ ├── mvc-ds-jsp
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── build.gradle
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ ├── render-filter-portlet
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── build.gradle
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ │ │ └── resource-command-portlet
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── build.gradle
│ │ │ │ ├── common.bnd
│ │ │ │ └── src
│ │ ├── settings.gradle
│ │ ├── themes
│ │ │ └── .keepme
│ │ └── wars
│ │ │ └── .keepme
│ │ └── workspace-maven
│ │ ├── .blade.properties
│ │ ├── .build
│ │ ├── .gitignore
│ │ ├── configs
│ │ ├── common
│ │ │ └── .keepme
│ │ ├── dev
│ │ │ └── portal-ext.properties
│ │ ├── local
│ │ │ └── portal-ext.properties
│ │ ├── prod
│ │ │ ├── osgi
│ │ │ │ └── configs
│ │ │ │ │ └── com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg
│ │ │ └── portal-ext.properties
│ │ └── uat
│ │ │ ├── osgi
│ │ │ └── configs
│ │ │ │ └── com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg
│ │ │ └── portal-ext.properties
│ │ ├── modules
│ │ ├── applications
│ │ │ ├── pom.xml
│ │ │ └── portlets
│ │ │ │ ├── action-command-ds
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── common.bnd
│ │ │ │ ├── pom.xml
│ │ │ │ └── src
│ │ │ │ ├── generic-ds-plain
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── common.bnd
│ │ │ │ ├── pom.xml
│ │ │ │ └── src
│ │ │ │ ├── mvc-ds-freemarker
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── common.bnd
│ │ │ │ ├── pom.xml
│ │ │ │ └── src
│ │ │ │ ├── mvc-ds-jsp
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── common.bnd
│ │ │ │ ├── pom.xml
│ │ │ │ └── src
│ │ │ │ ├── pom.xml
│ │ │ │ ├── render-filter-portlet
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── common.bnd
│ │ │ │ ├── pom.xml
│ │ │ │ └── src
│ │ │ │ └── resource-command-portlet
│ │ │ │ ├── README.md
│ │ │ │ ├── bnd.bnd
│ │ │ │ ├── common.bnd
│ │ │ │ ├── pom.xml
│ │ │ │ └── src
│ │ └── pom.xml
│ │ ├── mvnw
│ │ ├── mvnw.cmd
│ │ ├── pom.xml
│ │ ├── themes
│ │ └── pom.xml
│ │ └── wars
│ │ └── pom.xml
└── README.md
└── variables.sh
/.gitignore:
--------------------------------------------------------------------------------
1 | **/.gradle
2 | **/build
3 | **/target
4 | **/.blade
5 | **/.mvn
6 | **/.project
7 | **/.settings
8 | **/.vscode
9 | **/.classpath
10 | **/.sass-cache
11 |
--------------------------------------------------------------------------------
/Jenkinsfile:
--------------------------------------------------------------------------------
1 | pipeline {
2 | agent any
3 | stages {
4 | stage('Check env') {
5 | steps {
6 | isUnix()
7 | sh '''env
8 | gradle -version
9 | mvn --version'''
10 | }
11 | }
12 | stage('Build') {
13 | parallel {
14 | stage('Build 7.1') {
15 | steps {
16 | sh '''cd portal/7.1/java8
17 | ./build.sh'''
18 | }
19 | }
20 | stage('Build 7.2') {
21 | steps {
22 | sh '''cd portal/7.2/java8
23 | ./build.sh'''
24 | }
25 | }
26 | }
27 | }
28 | stage('Refresh') {
29 | steps {
30 | writeFile(file: '.refresh', text: 'refresh')
31 | }
32 | }
33 | }
34 | environment {
35 | JENKINS_NODE_COOKIE = 'dontKillMe'
36 | }
37 | }
--------------------------------------------------------------------------------
/commerce/.gitignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/commerce/.gitignore
--------------------------------------------------------------------------------
/commerce/.product:
--------------------------------------------------------------------------------
1 | name: Liferay Commerce code samples
2 | description: >
3 | These code samples demonstrate how to build extensions for Liferay Commerce!
4 | welcomeFile: README.md
--------------------------------------------------------------------------------
/other/.gitignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/other/.gitignore
--------------------------------------------------------------------------------
/portal/.product:
--------------------------------------------------------------------------------
1 | name: Liferay Portal CE code samples
2 | description: >
3 | These code samples demonstrate how to build various applications and extensions for Liferay Portal CE.
4 | Many of the samples here can be used as bootstrap project so that your Liferay Portal development can start quickly and easily.
5 | These samples can be copied freely and contributions are welcome.
6 | welcomeFile: README.md
7 | defaultVersion: 7.1
8 | defaultJavaVersion: 8
9 | defaultBuildEnv: workspace-gradle
10 | publicRepositoryRoot: https://github.com/liferay/liferay-code-samples/tree/master/portal
--------------------------------------------------------------------------------
/portal/7.1/.product.version:
--------------------------------------------------------------------------------
1 | 7.1
--------------------------------------------------------------------------------
/portal/7.1/README.md:
--------------------------------------------------------------------------------
1 | # Liferay Code Samples for [Liferay Portal](https://portal.liferay.dev) version 7.1
2 |
3 | Here you'll find the code samples for [Liferay Portal](https://portal.liferay.dev) version 7.1. They are separated by Java version:
4 |
5 | - [Java 8](java8) - samples for Java 8
6 | - [Java 11](java11) - samples for Java 11
7 |
8 | _For more information about how this repository is organized please see the [project's README file](../../README.md)._
9 |
--------------------------------------------------------------------------------
/portal/7.1/java11/.gitignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java11/.gitignore
--------------------------------------------------------------------------------
/portal/7.1/java11/.java.version:
--------------------------------------------------------------------------------
1 | 11
--------------------------------------------------------------------------------
/portal/7.1/java8/.java.version:
--------------------------------------------------------------------------------
1 | 8
--------------------------------------------------------------------------------
/portal/7.1/java8/README.md:
--------------------------------------------------------------------------------
1 | # Liferay Code Samples for [Liferay Portal](https://portal.liferay.dev) version 7.1 and Java 8
2 |
3 | Here you'll find the code samples for [Liferay Portal](https://portal.liferay.dev) version 7.1 and Java 8.
4 |
5 | The actual samples are under [code](code) folder. They can be build in 4 different ways:
6 |
7 | - [standalone Gradle](standalone-gradle) - demonstrates how to build an individual project using Gradle as build system.
8 | - [standalone Maven](standalone-maven) - demonstrates how to build an individual project using Maven as build system.
9 | - [Gradle workspace](workspace-gradle) - demonstrates how to build multiple projects using Gradle as build system.
10 | - [Maven workspace](workspace-maven) - demonstrates how to build multiple projects using Maven as build system.
11 |
12 | _For more information about how this repository is organized please see the [project's README file](../../../README.md)._
13 |
--------------------------------------------------------------------------------
/portal/7.1/java8/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # exit the script as soon as a build fails
4 | set -e
5 |
6 | # check if samples are in all 4 build scenarios
7 | . ./check.sh
8 |
9 | cd $CODE_FOLDER
10 |
11 | # build standalone projects
12 |
13 | for PROJECT_PATH in ${SAMPLES}
14 | do
15 | banner $COLOR_GREEN_BG "Building standalone $PROJECT_PATH with Gradle"
16 | cd $STANDALONE_GRADLE/$PROJECT_PATH
17 | rm -rf .gradle
18 | ./gradlew clean assemble
19 |
20 | banner $COLOR_BLUE_BG "Building standalone $PROJECT_PATH with Maven"
21 | cd $STANDALONE_MAVEN/$PROJECT_PATH
22 | mvn clean package
23 | done;
24 |
25 |
26 | # build workspaces
27 |
28 | banner $COLOR_GREEN_BG "Building the whole Gradle workspace"
29 | cd $WORKSPACE_GRADLE
30 | rm -rf .gradle
31 | ./gradlew clean assemble
32 |
33 | banner $COLOR_BLUE_BG "Building the whole Maven workspace"
34 | echo
35 | cd $WORKSPACE_MAVEN
36 | mvn clean package
37 |
38 | cd ${SCRIPT_FOLDER}
39 |
40 | ./gradlew check
41 |
42 | cd $CURRENT_FOLDER
--------------------------------------------------------------------------------
/portal/7.1/java8/code/.codebase:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java8/code/.codebase
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/action-command-ds/.sample:
--------------------------------------------------------------------------------
1 | name: "MVC Portlet with DS using an ActionCommand"
2 | description: Demonstrates how to use an ActionCommand to separate Portlet's actions into own classes.
3 | displayFiles:
4 | - name: Documentation
5 | highlighting: markdown
6 | path: README.md
7 | - name: Portlet
8 | highlighting: java
9 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/action_command_ds/portlet/ActionCommandPortlet.java
10 | - name: Greet command
11 | highlighting: java
12 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/action_command_ds/command/GreetCommand.java
13 | - name: Forget command
14 | highlighting: java
15 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/action_command_ds/command/ForgetCommand.java
16 | - name: The JSP view
17 | highlighting: java
18 | path: src/main/resources/META-INF/resources/view.jsp
19 | - name: Bnd configuration
20 | highlighting: properies
21 | path: bnd.bnd
22 | - name: Maven POM
23 | highlighting: xml
24 | path: pom.xml
25 | - name: Gradle build
26 | highlighting: groovy
27 | path: build.gradle
28 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/action-command-ds/common.bnd:
--------------------------------------------------------------------------------
1 | Bundle-Name: Liferay Portal Samples :: MVC Portlet + ActionCommand + DS + JSP
2 | Bundle-SymbolicName: com.liferay.code.samples.portal.modules.applications.portlets.action_command_ds
3 | Bundle-Version: 1.0.0
4 |
5 | # Include source code in the bundle
6 | -sources: true
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/action-command-ds/src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/action_command_ds/command/ForgetCommand.java:
--------------------------------------------------------------------------------
1 | package com.liferay.code.samples.portal.modules.applications.portlets.action_command_ds.command;
2 |
3 | import javax.portlet.ActionRequest;
4 | import javax.portlet.ActionResponse;
5 | import javax.portlet.PortletException;
6 |
7 | import org.osgi.service.component.annotations.Component;
8 |
9 | import com.liferay.code.samples.portal.modules.applications.portlets.action_command_ds.portlet.ActionCommandPortlet;
10 | import com.liferay.portal.kernel.portlet.bridges.mvc.MVCActionCommand;
11 |
12 | @Component(
13 | immediate = true,
14 | property = {
15 | "javax.portlet.name=" + ActionCommandPortlet.NAME, // which portlet this command is attached to
16 | "mvc.command.name=forget" // the name of the command
17 | },
18 | service = MVCActionCommand.class
19 | )
20 | public class ForgetCommand implements MVCActionCommand {
21 |
22 | @Override
23 | public boolean processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException {
24 |
25 | actionRequest.getPortletSession().removeAttribute("GREETER_MESSAGE");
26 |
27 | return true;
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/action-command-ds/src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/action_command_ds/command/GreetCommand.java:
--------------------------------------------------------------------------------
1 | package com.liferay.code.samples.portal.modules.applications.portlets.action_command_ds.command;
2 |
3 | import javax.portlet.ActionRequest;
4 | import javax.portlet.ActionResponse;
5 | import javax.portlet.PortletException;
6 |
7 | import org.osgi.service.component.annotations.Component;
8 |
9 | import com.liferay.code.samples.portal.modules.applications.portlets.action_command_ds.portlet.ActionCommandPortlet;
10 | import com.liferay.portal.kernel.log.Log;
11 | import com.liferay.portal.kernel.log.LogFactoryUtil;
12 | import com.liferay.portal.kernel.portlet.bridges.mvc.MVCActionCommand;
13 | import com.liferay.portal.kernel.util.ParamUtil;
14 |
15 | @Component(
16 | immediate = true,
17 | property = {
18 | "javax.portlet.name=" + ActionCommandPortlet.NAME, // which portlet this command is attached to
19 | "mvc.command.name=greet" // the name of the command
20 | },
21 | service = MVCActionCommand.class
22 | )
23 | public class GreetCommand implements MVCActionCommand {
24 |
25 | @Override
26 | public boolean processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException {
27 |
28 | String name = ParamUtil.get(actionRequest, "name", "guest");
29 |
30 | if (_log.isInfoEnabled()) {
31 | _log.info("Hello " + name);
32 | }
33 |
34 | String greetingMessage = "Hello " + name + "!";
35 |
36 | actionRequest.getPortletSession().setAttribute("GREETER_MESSAGE", greetingMessage);
37 |
38 | return true;
39 | }
40 |
41 | private static final Log _log = LogFactoryUtil.getLog(GreetCommand.class);
42 | }
43 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/action-command-ds/src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/action_command_ds/portlet/ActionCommandPortlet.java:
--------------------------------------------------------------------------------
1 | package com.liferay.code.samples.portal.modules.applications.portlets.action_command_ds.portlet;
2 |
3 | import com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet;
4 |
5 | import javax.portlet.Portlet;
6 |
7 | import org.osgi.service.component.annotations.Component;
8 |
9 | /**
10 | * @author davidgomez
11 | */
12 | @Component(
13 | immediate = true,
14 | property = {
15 | "com.liferay.portlet.display-category=category.sample",
16 | "com.liferay.portlet.header-portlet-css=/css/main.css",
17 | "com.liferay.portlet.instanceable=true",
18 | "javax.portlet.display-name=ActionCommand",
19 | "javax.portlet.init-param.template-path=/",
20 | "javax.portlet.init-param.view-template=/view.jsp",
21 | "javax.portlet.name=" + ActionCommandPortlet.NAME,
22 | "javax.portlet.resource-bundle=content.Language",
23 | "javax.portlet.security-role-ref=power-user,user"
24 | },
25 | service = Portlet.class
26 | )
27 | public class ActionCommandPortlet extends MVCPortlet {
28 | public static final String NAME = "mvc_action_command_ds_jsp_portlet";
29 | }
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/action-command-ds/src/main/resources/META-INF/resources/css/main.scss:
--------------------------------------------------------------------------------
1 | .action-command-ds {
2 | }
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/action-command-ds/src/main/resources/META-INF/resources/init.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
2 |
3 | <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
4 |
5 | <%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %><%@
6 | taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %><%@
7 | taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@
8 | taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/action-command-ds/src/main/resources/META-INF/resources/view.jsp:
--------------------------------------------------------------------------------
1 | <%@ include file="/init.jsp" %>
2 |
3 | <%
4 | String greeting = (String)renderRequest.getPortletSession().getAttribute("GREETER_MESSAGE");
5 | %>
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | Hello stranger! Please tell me your name.
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | <%=greeting %>
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/action-command-ds/src/main/resources/content/Language.properties:
--------------------------------------------------------------------------------
1 | javax.portlet.title.mvc_action_command_ds_jsp_portlet=Liferay MVC Portlet using ActionCommand, DS and JSP
2 | javax.portlet.display-name.mvc_action_command_ds_jsp_portlet=Liferay MVC Portlet using ActionCommand, DS and JSP
3 | javax.portlet.short-title.mvc_action_command_ds_jsp_portlet=Liferay MVC Portlet using ActionCommand, DS and JSP
4 | javax.portlet.keywords.mvc_action_command_ds_jsp_portlet=MVC, ActionCommand, DS, JSP
5 |
6 | mvc_action_command_ds_jsp_portlet.caption=Liferay MVC Portlet using ActionCommand, DS and JSP
7 | mvc_action_command_ds_jsp_portlet.forget-me=Please forget my name.
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/generic-ds-plain/.sample:
--------------------------------------------------------------------------------
1 | name: "GenericPortlet with DS"
2 | description: Demonstrates how to use the DS (Declarative Services) framework to register a GenericPortlet.
3 | displayFiles:
4 | - name: Documentation
5 | highlighting: markdown
6 | path: README.md
7 | - name: Portlet
8 | highlighting: java
9 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/generic_ds_plain/DSPortlet.java
10 | - name: Bnd configuration
11 | highlighting: properies
12 | path: bnd.bnd
13 | - name: Maven POM
14 | highlighting: xml
15 | path: pom.xml
16 | - name: Gradle build
17 | highlighting: groovy
18 | path: build.gradle
19 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/generic-ds-plain/README.md:
--------------------------------------------------------------------------------
1 | # Application demonstrating now build `GenericPortlet` and register it with OSGi Declarative Services
2 |
3 | ## Overview
4 |
5 | This simple greeting application demonstrates how to build a standard (JSR286) compatible portlet's and register it with OSGi Declarative Services **annotations instead of writng `portlet.xml`**
6 |
7 | ## What it does
8 |
9 | The application has one very simple, standards compliant `GenericPortlet` that prints "Hello world". Its only purpose is to demonstrate how DS annotations can simplify portlet development.
10 |
11 | ## Other frameworks and libraries used in this sample
12 |
13 | - `OSGi Declrative Services` - to register portlet filters as OSGi components
14 |
15 | ## How to build it
16 |
17 | The [How to build a code sample](https://github.com/liferay/liferay-code-samples/blob/master/portal/README.md#liferay-code-samples-for-liferay-portal) section of the Liferay's Portal samples `README` has detailed instructions how to build a sample using your favorite build tool.
18 |
19 | ## How to deploy it
20 |
21 | This sample can be deployed by simply coping the resulting module `jar` file found :
22 |
23 | - For `Gradle` builds in `path/to/sample/build/libs` folder
24 | - For `Maven` builds in `path/to/sample/target` folder
25 |
26 | to Liferay Portal's `deploy` folder.
27 |
28 | It is also possible to configure both `Gradle` and `Maven` to directly deploy to a specific Liferay Portal instance.
29 |
30 | ## How to configure it
31 |
32 | There is no configuration needed. Use the applications menu to add the sample to a page and experiment with it.
33 |
34 | ## Related documentation
35 |
36 | - [Declarative Services](https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/osgi-services-and-dependency-injection-with-declarative-services)
37 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/generic-ds-plain/common.bnd:
--------------------------------------------------------------------------------
1 | Bundle-SymbolicName: com.liferay.code.samples.portal.modules.applications.portlets.generic-ds-plain
2 | Bundle-Name: Liferay Portal Samples :: Generic Portlet + DS wireing + no view
3 | Bundle-Version: 1.0.0
4 |
5 | # Include source code in the bundle
6 | -sources: true
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/generic-ds-plain/src/main/resources/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java8/code/modules/applications/portlets/generic-ds-plain/src/main/resources/.keepme
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/mvc-ds-freemarker/.sample:
--------------------------------------------------------------------------------
1 | name: "MVC Portlet with DS and FreeMarker"
2 | description: |
3 | Demonstrates how to use `FreeMarker` instead of `JSP` as view layer framework.
4 | displayFiles:
5 | - name: Documentation
6 | highlighting: markdown
7 | path: README.md
8 | - name: Portlet
9 | highlighting: java
10 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/mvc_ds_freemarker/BlankFreemarkerPortlet.java
11 | - name: Freemarker init template
12 | highlighting: markup
13 | path: src/main/resources/templates/init.ftl
14 | - name: Freemarker view template
15 | highlighting: markup
16 | path: src/main/resources/templates/view.ftl
17 | - name: Bnd configuration
18 | highlighting: yaml
19 | path: bnd.bnd
20 | - name: Maven POM
21 | highlighting: xml
22 | path: pom.xml
23 | - name: Gradle build
24 | highlighting: groovy
25 | path: build.gradle
26 |
27 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/mvc-ds-freemarker/common.bnd:
--------------------------------------------------------------------------------
1 | Bundle-SymbolicName: com.liferay.code.samples.portal.modules.applications.portlets.mvc-ds-freemarker
2 | Bundle-Name: Liferay Portal Samples :: MVC Portlet + DS wireing + Freemarker view
3 | Bundle-Version: 1.0.0
4 |
5 | # Include source code in the bundle
6 | -sources: true
7 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/mvc-ds-freemarker/src/main/resources/META-INF/resources/css/main.scss:
--------------------------------------------------------------------------------
1 | .portlet-freemarker {
2 | .redBackground {
3 | background-color: red;
4 | }
5 | }
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/mvc-ds-freemarker/src/main/resources/content/Language.properties:
--------------------------------------------------------------------------------
1 | javax.portlet.title.mvc_ds_freemarker_portlet=Liferay MVC Portlet using DS and Freemarker
2 | javax.portlet.display-name.mvc_ds_freemarker_portlet=Liferay MVC Portlet using DS and Freemarker
3 | javax.portlet.short-title.mvc_ds_freemarker_portlet=Liferay MVC Portlet using DS and Freemarker
4 | javax.portlet.keywords.mvc_ds_freemarker_portlet=MVC, DS, Freemarker
5 |
6 | mvc_ds_freemarker_portlet.caption=Hello from Liferay MVC Portlet using DS and Freemarker!
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/mvc-ds-freemarker/src/main/resources/templates/view.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | /**
3 | * Copyright 2000-present Liferay, Inc.
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * 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 | */
17 | -->
18 |
19 | <#include "init.ftl">
20 |
21 |
22 | <@liferay_ui["message"] key="mvc_ds_freemarker_portlet.caption" />
23 |
24 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/mvc-ds-jsp/.sample:
--------------------------------------------------------------------------------
1 | name: "MVC Portlet with DS and JSP"
2 | description: Demonstrates how to build a portlet with Liferay MVC framework using JSPs for the view
3 | displayFiles:
4 | - name: Documentation
5 | highlighting: markdown
6 | path: README.md
7 | - name: Portlet
8 | highlighting: java
9 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/mvc_ds_jsp/JSPPortlet.java
10 | - name: The JSP view
11 | highlighting: java
12 | path: src/main/resources/META-INF/resources/view.jsp
13 | - name: Bnd configuration
14 | highlighting: yaml
15 | path: bnd.bnd
16 | - name: Maven POM
17 | highlighting: xml
18 | path: pom.xml
19 | - name: Gradle build
20 | highlighting: groovy
21 | path: build.gradle
22 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/mvc-ds-jsp/common.bnd:
--------------------------------------------------------------------------------
1 | Bundle-SymbolicName: com.liferay.code.samples.portal.modules.applications.portlets.mvc-ds-jsp
2 | Bundle-Name: Liferay Portal Samples :: MVC Portlet + DS wireing + JSP view
3 | Bundle-Version: 1.0.0
4 |
5 | # Include source code in the bundle
6 | -sources: true
7 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/mvc-ds-jsp/src/main/resources/META-INF/resources/css/.sass-cache/main.css:
--------------------------------------------------------------------------------
1 | .portlet-jsp .redBackground {
2 | background-color: red; }
3 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/mvc-ds-jsp/src/main/resources/META-INF/resources/css/.sass-cache/main_rtl.css:
--------------------------------------------------------------------------------
1 | .portlet-jsp .redBackground{background-color:red}
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/mvc-ds-jsp/src/main/resources/META-INF/resources/css/main.scss:
--------------------------------------------------------------------------------
1 | .portlet-jsp {
2 | .redBackground {
3 | background-color: red;
4 | }
5 | }
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/mvc-ds-jsp/src/main/resources/META-INF/resources/init.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | /**
3 | * Copyright 2000-present Liferay, Inc.
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * 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 | */
17 | --%>
18 |
19 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
20 |
21 | <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
22 |
23 | <%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %><%@
24 | taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %><%@
25 | taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@
26 | taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/mvc-ds-jsp/src/main/resources/META-INF/resources/view.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | /**
3 | * Copyright 2000-present Liferay, Inc.
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * 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 | */
17 | --%>
18 |
19 | <%@ include file="/init.jsp" %>
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/mvc-ds-jsp/src/main/resources/content/Language.properties:
--------------------------------------------------------------------------------
1 | javax.portlet.title.mvc_ds_jsp_portlet=Liferay MVC Portlet using DS and JSP
2 | javax.portlet.display-name.mvc_ds_jsp_portlet=Liferay MVC Portlet using DS and JSP
3 | javax.portlet.short-title.mvc_ds_jsp_portlet=Liferay MVC Portlet using DS and JSP
4 | javax.portlet.keywords.mvc_ds_jsp_portlet=MVC, DS, JSP
5 |
6 | mvc_ds_jsp_portlet.caption=Hello from Liferay MVC Portlet using DS and JSP!
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/render-filter-portlet/.sample:
--------------------------------------------------------------------------------
1 | name: "Render Filter for Portlet"
2 | description: Demonstrates to use a Render Filter to alter any information before being rendered or to measure time spent rendering. See README.md for detailes info
3 | displayFiles:
4 | - name: Documentation
5 | highlighting: markdown
6 | path: README.md
7 | - name: Portlet
8 | highlighting: java
9 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/render_filter/portlet/MembersListPortlet.java
10 | - name: Obfuscating filter
11 | highlighting: java
12 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/render_filter/filter/EncodingPersonEmailsRenderFilter.java
13 | - name: Stats filter
14 | highlighting: java
15 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/render_filter/filter/MembersListStatsRenderFilter.java
16 | - name: Bnd configuration
17 | highlighting: properies
18 | path: bnd.bnd
19 | - name: Maven POM
20 | highlighting: xml
21 | path: pom.xml
22 | - name: Gradle build
23 | highlighting: groovy
24 | path: build.gradle
25 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/render-filter-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | Bundle-Name: Liferay Portal Samples :: Portlet Render Filter
2 | Bundle-SymbolicName: com.liferay.code.samples.portal.modules.applications.portlets.render_filter
3 | Bundle-Version: 1.0.0
4 |
5 | # Include source code in the bundle
6 | -sources: true
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/render-filter-portlet/src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/render_filter/model/Person.java:
--------------------------------------------------------------------------------
1 | package com.liferay.code.samples.portal.modules.applications.portlets.render_filter.model;
2 |
3 | /**
4 | * Simple model class for a Person, containing a Name and an email.
5 | */
6 | public class Person {
7 |
8 | private final String name;
9 | private final String email;
10 |
11 | public Person(String name, String email) {
12 | this.name = name;
13 | this.email = email;
14 | }
15 |
16 | public String getName() {
17 | return name;
18 | }
19 |
20 | public String getEmail() {
21 | return email;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/render-filter-portlet/src/main/resources/META-INF/resources/css/main.scss:
--------------------------------------------------------------------------------
1 | .render-filter-portlet {
2 | }
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/render-filter-portlet/src/main/resources/META-INF/resources/init.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
2 |
3 | <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
4 |
5 | <%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %><%@
6 | taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %><%@
7 | taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@
8 | taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
9 |
10 |
11 | <%@ page import="java.util.stream.Collectors" %>
12 | <%@ page import="com.liferay.code.samples.portal.modules.applications.portlets.render_filter.portlet.MembersListPortlet" %>
13 | <%@ page import="com.liferay.code.samples.portal.modules.applications.portlets.render_filter.model.Person" %>
14 | <%@ page import="java.util.List" %>
15 |
16 |
17 |
18 |
19 |
20 |
21 | <%
22 | String iconsPath = themeDisplay.getPathThemeImages() + "/lexicon/icons.svg";
23 | %>
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/render-filter-portlet/src/main/resources/META-INF/resources/view.jsp:
--------------------------------------------------------------------------------
1 | <%@ include file="/init.jsp" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | -
19 |
20 |
21 |
22 |
25 |
26 |
27 |
28 |
32 |
33 |
34 |
35 |
36 |
37 |
41 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/render-filter-portlet/src/main/resources/content/Language.properties:
--------------------------------------------------------------------------------
1 | javax.portlet.title.member_list_portlet=Portlet with RenderFilter
2 | javax.portlet.display-name.member_list_portlet=Portlet using two Render Filters, Declarative Services and JSP
3 | javax.portlet.short-title.member_list_portlet=Portlet with RenderFilter
4 | javax.portlet.keywords.member_list_portlet=MVC, RenderFilter, DS, JSP
5 |
6 | render_filter_portlet.button.load_users=Load Users
7 | render_filter_portlet.caption=Portlet with RenderFilter
8 | render_filter_portlet.members.title=These are the members of your team!
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/resource-command-portlet/.sample:
--------------------------------------------------------------------------------
1 | name: "Resource Command for Portlet"
2 | description: Demonstrates to use a Resource Command to handle resources or binary responses. In this example, the ResourceCommand is used to export the information presented in the view as an XLS file. See README.md for detailed info.
3 | displayFiles:
4 | - name: Documentation
5 | highlighting: markdown
6 | path: README.md
7 | - name: Portlet
8 | highlighting: java
9 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/resource_command/portlet/TaskListPortlet.java
10 | - name: Export as XLS ResourceCommand
11 | highlighting: java
12 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/resource_command/command/XLSTaskListResourceCommand.java
13 | - name: The JSP view
14 | highlighting: java
15 | path: src/main/resources/META-INF/resources/view.jsp
16 | - name: Bnd configuration
17 | highlighting: properies
18 | path: bnd.bnd
19 | - name: Maven POM
20 | highlighting: xml
21 | path: pom.xml
22 | - name: Gradle build
23 | highlighting: groovy
24 | path: build.gradle
25 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/resource-command-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | Bundle-Name: Liferay Portal Samples :: MVC Portlet + Resource Command
2 | Bundle-SymbolicName: com.liferay.code.samples.portal.modules.applications.portlets.resource_command
3 | Bundle-Version: 1.0.0
4 |
5 | Import-Package: \
6 | !org.apache.poi.xssf.*,\
7 | !com.github.luben.zstd.*,\
8 | !com.microsoft.*,\
9 | !com.sun.javadoc.*,\
10 | !com.sun.tools.*,\
11 | !net.sf.saxon.*,\
12 | !org.apache.batik.*,\
13 | !org.apache.jcp.xml.dsig.internal.dom.*,\
14 | !org.bouncycastle.*,\
15 | !org.brotli.dec.*,\
16 | !org.etsi.uri.*,\
17 | !org.openxmlformats.schemas.*,\
18 | !org.tukaani.xz.*,\
19 | *
20 |
21 | # Include source code in the bundle
22 | -sources: true
23 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/resource-command-portlet/src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/resource_command/model/PersonalTask.java:
--------------------------------------------------------------------------------
1 | package com.liferay.code.samples.portal.modules.applications.portlets.resource_command.model;
2 |
3 | import java.time.LocalDate;
4 |
5 | /**
6 | * Simple class to represent a PersonalTask, identified by a title, a due date and a priority.
7 | */
8 | public class PersonalTask {
9 |
10 | public PersonalTask(String title) {
11 | this.createdAt = LocalDate.now();
12 | this.title = title;
13 | }
14 |
15 | public PersonalTask(String title, Priority priority, LocalDate dueDate) {
16 | this(title);
17 | this.dueDate = dueDate;
18 | this.priority = priority;
19 | }
20 |
21 | public String getTitle() {
22 | return title;
23 | }
24 |
25 |
26 | public LocalDate getCreatedAt() {
27 | return createdAt;
28 | }
29 |
30 | public LocalDate getDueDate() {
31 | return dueDate;
32 | }
33 |
34 | public void setDueDate(LocalDate dueDate) {
35 | this.dueDate = dueDate;
36 | }
37 |
38 | public Priority getPriority() {
39 | return priority;
40 | }
41 |
42 | public void setPriority(Priority priority) {
43 | this.priority = priority;
44 | }
45 |
46 | private final String title;
47 | private final LocalDate createdAt;
48 | private LocalDate dueDate;
49 | private Priority priority;
50 |
51 | public enum Priority {
52 | HIGH,
53 | MEDIUM,
54 | LOW
55 | }
56 | }
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/resource-command-portlet/src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/resource_command/service/TaskListService.java:
--------------------------------------------------------------------------------
1 | package com.liferay.code.samples.portal.modules.applications.portlets.resource_command.service;
2 |
3 | import com.liferay.code.samples.portal.modules.applications.portlets.resource_command.model.PersonalTask;
4 |
5 | import java.util.Collection;
6 |
7 | public interface TaskListService {
8 |
9 | public Collection loadPersonalTasks();
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/resource-command-portlet/src/main/resources/META-INF/resources/css/main.scss:
--------------------------------------------------------------------------------
1 | .resource-command-portlet {
2 | }
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/resource-command-portlet/src/main/resources/META-INF/resources/init.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
2 |
3 | <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
4 |
5 | <%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %><%@
6 | taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %><%@
7 | taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@
8 | taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
9 |
10 |
11 |
12 |
13 |
14 | <%
15 | String iconsPath = themeDisplay.getPathThemeImages() + "/lexicon/icons.svg";
16 | %>
--------------------------------------------------------------------------------
/portal/7.1/java8/code/modules/applications/portlets/resource-command-portlet/src/main/resources/content/Language.properties:
--------------------------------------------------------------------------------
1 | javax.portlet.title.task-list-portlet=TaskList Portlet (ResourceCommand)
2 | task-list-portlet.caption=Task List
3 | task-list-portlet.title=These are your personal tasks !
4 | task-list-portlet.button.export-as-xls=Export as XLS
5 |
--------------------------------------------------------------------------------
/portal/7.1/java8/code/themes/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java8/code/themes/.keepme
--------------------------------------------------------------------------------
/portal/7.1/java8/code/wars/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java8/code/wars/.keepme
--------------------------------------------------------------------------------
/portal/7.1/java8/gradlew:
--------------------------------------------------------------------------------
1 | workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.1/java8/gradlew.bat:
--------------------------------------------------------------------------------
1 | workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.1/java8/moveSample.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | . ../../../variables.sh
4 | . ../../../functions.sh
5 |
6 | moveSample $1 $2
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/.build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java8/standalone-gradle/.build
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/action-command-ds/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/action-command-ds/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/action-command-ds/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/action-command-ds/gradlew:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/action-command-ds/gradlew.bat:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/action-command-ds/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/src
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/generic-ds-plain/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/generic-ds-plain/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/generic-ds-plain/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/generic-ds-plain/gradlew:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/generic-ds-plain/gradlew.bat:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/generic-ds-plain/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/src
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/mvc-ds-freemarker/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/mvc-ds-freemarker/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/mvc-ds-freemarker/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/mvc-ds-freemarker/gradlew:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/mvc-ds-freemarker/gradlew.bat:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/mvc-ds-freemarker/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/src
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/mvc-ds-jsp/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/mvc-ds-jsp/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/mvc-ds-jsp/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/mvc-ds-jsp/gradlew:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/mvc-ds-jsp/gradlew.bat:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/mvc-ds-jsp/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/src
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/render-filter-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/render-filter-portlet/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/render-filter-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/render-filter-portlet/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/render-filter-portlet/gradlew:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/render-filter-portlet/gradlew.bat:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/render-filter-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/src
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Because `compileInclude` is used to define the dependency to poi-ooxml.jar in `build.gradle`
5 | # and we are using the Liferay's plugin in gradle, we do not need to add the -includeresource
6 | # attribute, and the poi-ooxml.jar and any other depedencies are automatically included in the
7 | # resulting jar. (see Option 4 explained in https://liferay.dev/blogs/-/blogs/osgi-module-dependencies)
8 | # Also see https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/adding-third-party-libraries-to-a-module#embedding-libraries-in-a-module
9 | # to learn how external dependencies can be included in your bundle
10 |
11 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
12 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
13 | # - Add a plugin to analyze the JSPs
14 | # - Add a plugin to analyze i18n resource bundles
15 | # - Add a plugin to analyze SASS/CSS files
16 |
17 |
18 |
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/gradlew:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/gradlew.bat:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/src/
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/.build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java8/standalone-maven/.build
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/action-command-ds/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/action-command-ds/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
7 | # Add a plugin to analyze the JSPs
8 | -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
9 | # Tell the JSP plugin where to find JSP files
10 | -jsp: *.jsp,*.jspf
11 |
12 | # Add a plugin to analyze i18n resource bundles
13 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
14 |
15 | # Add a plugin to analyze SASS/CSS files
16 | -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
17 | -sass: *
18 |
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/action-command-ds/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/action-command-ds/mvnw:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/action-command-ds/mvnw.cmd:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw.cmd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/action-command-ds/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/src
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/generic-ds-plain/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/generic-ds-plain/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/generic-ds-plain/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/generic-ds-plain/mvnw:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/generic-ds-plain/mvnw.cmd:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw.cmd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/generic-ds-plain/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/src
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/mvc-ds-freemarker/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/mvc-ds-freemarker/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
7 | # Add a plugin to analyze i18n resource bundles
8 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
9 |
10 |
11 |
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/mvc-ds-freemarker/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/mvc-ds-freemarker/mvnw:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/mvc-ds-freemarker/mvnw.cmd:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw.cmd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/mvc-ds-freemarker/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/src
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/mvc-ds-jsp/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/mvc-ds-jsp/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
7 | # Add a plugin to analyze the JSPs
8 | -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
9 | # Tell the JSP plugin where to find JSP files
10 | -jsp: *.jsp,*.jspf
11 |
12 | # Add a plugin to analyze i18n resource bundles
13 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
14 |
15 | # Add a plugin to analyze SASS/CSS files
16 | -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
17 | -sass: *
18 |
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/mvc-ds-jsp/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/mvc-ds-jsp/mvnw:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/mvc-ds-jsp/mvnw.cmd:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw.cmd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/mvc-ds-jsp/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/src
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/render-filter-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/render-filter-portlet/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
7 | # Add a plugin to analyze the JSPs
8 | -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
9 | # Tell the JSP plugin where to find JSP files
10 | -jsp: *.jsp,*.jspf
11 |
12 | # Add a plugin to analyze i18n resource bundles
13 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
14 |
15 | # Add a plugin to analyze SASS/CSS files
16 | -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
17 | -sass: *
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/render-filter-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/render-filter-portlet/mvnw:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/render-filter-portlet/mvnw.cmd:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw.cmd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/render-filter-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/src
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/resource-command-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/resource-command-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/resource-command-portlet/mvnw:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/resource-command-portlet/mvnw.cmd:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw.cmd
--------------------------------------------------------------------------------
/portal/7.1/java8/standalone-maven/modules/applications/portlets/resource-command-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/src
--------------------------------------------------------------------------------
/portal/7.1/java8/updateLinks.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | . ../../../variables.sh
4 | . ../../../functions.sh
5 |
6 | updateLinks $1 $2
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/.build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java8/workspace-gradle/.build
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/.gitignore:
--------------------------------------------------------------------------------
1 | **/*.iml
2 | **/.ivy
3 | **/.classpath
4 | **/.project
5 | **/.sass-cache
6 | **/.settings
7 | **/bin
8 | **/build
9 | **/build_gradle
10 | **/node_modules
11 | **/test-coverage
12 | **/tmp
13 | **/.web_bundle_build
14 | .gradle
15 | .idea
16 | /bundles
17 | /gradle-*.properties
18 | /plugins-sdk/**/classes
19 | /plugins-sdk/**/ivy.xml.MD5
20 | /plugins-sdk/**/liferay-hook.xml.processed
21 | /plugins-sdk/build.*.properties
22 | /plugins-sdk/dependencies/**/*.jar
23 | /plugins-sdk/dist
24 | /plugins-sdk/lib
25 | test-results
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext {
3 | bndVersion = '4.2.0'
4 | dependencyManagementVersion = '1.0.8.RELEASE'
5 | liferayGradlePluginVersion = '4.2.0'
6 | liferayWorkspaceVersion = '2.1.4'
7 | portalVersion = '7.1.3'
8 | portletApiVersion = '3.0.0'
9 | serviceComponentAnnotationsVersion = '1.3.0'
10 | servletApiVersion = '3.0.1'
11 | }
12 |
13 | dependencies {
14 | classpath "io.spring.gradle:dependency-management-plugin:${dependencyManagementVersion}"
15 | }
16 |
17 | repositories {
18 | maven {
19 | url "https://plugins.gradle.org/m2/"
20 | }
21 | }
22 | }
23 |
24 | subprojects {
25 | /*
26 | * Spring's dependency plugin is needed to provide `dependencyManagement` functionality
27 | * used to configure Liferay Portal's BOM (Biil Of Material)
28 | */
29 | apply plugin: "io.spring.dependency-management"
30 |
31 | /*
32 | * Use the BOM provided for given Liferay Portal version
33 | * This allows to automatically set proper versions for dependencies
34 | */
35 | dependencyManagement {
36 | imports {
37 | mavenBom("com.liferay.portal:release.portal.bom:${portalVersion}")
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/configs/common/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java8/workspace-gradle/configs/common/.keepme
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/configs/dev/portal-ext.properties:
--------------------------------------------------------------------------------
1 | include-and-override=portal-developer.properties
2 |
3 | #
4 | # MySQL
5 | #
6 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
7 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
8 | #jdbc.default.username=root
9 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/configs/local/portal-ext.properties:
--------------------------------------------------------------------------------
1 | include-and-override=portal-developer.properties
2 |
3 | #
4 | # MySQL
5 | #
6 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
7 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
8 | #jdbc.default.username=root
9 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/configs/prod/osgi/configs/com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg:
--------------------------------------------------------------------------------
1 | operationMode=REMOTE
2 | transportAddresses=127.0.0.1:9300
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/configs/prod/portal-ext.properties:
--------------------------------------------------------------------------------
1 | #
2 | # MySQL
3 | #
4 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
5 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
6 | #jdbc.default.username=root
7 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/configs/uat/osgi/configs/com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg:
--------------------------------------------------------------------------------
1 | operationMode=REMOTE
2 | transportAddresses=127.0.0.1:9300
3 | logExceptionsOnly=false
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/configs/uat/portal-ext.properties:
--------------------------------------------------------------------------------
1 | #
2 | # MySQL
3 | #
4 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
5 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
6 | #jdbc.default.username=root
7 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java8/workspace-gradle/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/action-command-ds/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/action-command-ds/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's gradle workspace, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
10 |
11 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/action-command-ds/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Project depenedencies
3 | */
4 | dependencies {
5 | compileOnly "com.liferay.portal:com.liferay.portal.kernel" // version will be taken from BOM
6 | compileOnly "com.liferay.portal:com.liferay.util.taglib" // version will be taken from BOM
7 | compileOnly "javax.portlet:portlet-api:${portletApiVersion}"
8 | compileOnly "javax.servlet:javax.servlet-api:${servletApiVersion}"
9 | compileOnly "org.osgi:org.osgi.service.component.annotations:${serviceComponentAnnotationsVersion}"
10 | }
11 |
12 | /*
13 | * Set the jar name to ensure it's the same accross all builds
14 | */
15 | jar.baseName = 'com.liferay.code.samples.portal.modules.applications.portlets.action-command-ds'
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/action-command-ds/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/action-command-ds/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/src
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/generic-ds-plain/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/generic-ds-plain/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's gradle workspace, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/generic-ds-plain/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Project depenedencies
3 | */
4 | dependencies {
5 | compileOnly "javax.portlet:portlet-api:${portletApiVersion}"
6 | compileOnly "org.osgi:org.osgi.service.component.annotations:${serviceComponentAnnotationsVersion}"
7 | }
8 |
9 | /*
10 | * Set the jar name to ensure it's the same accross all builds
11 | */
12 | jar.baseName = 'com.liferay.code.samples.portal.modules.applications.portlets.generic-ds-plain'
13 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/generic-ds-plain/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/generic-ds-plain/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/src
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/mvc-ds-freemarker/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/mvc-ds-freemarker/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
10 |
11 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/mvc-ds-freemarker/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Project depenedencies
3 | */
4 | dependencies {
5 | compileOnly "com.liferay.portal:com.liferay.portal.kernel" // version will be taken from BOM
6 | compileOnly "com.liferay.portal:com.liferay.util.bridges" // version will be taken from BOM
7 | compileOnly "com.liferay.portal:com.liferay.util.taglib" // version will be taken from BOM
8 | compileOnly "javax.portlet:portlet-api:${portletApiVersion}"
9 | compileOnly "org.osgi:org.osgi.service.component.annotations:${serviceComponentAnnotationsVersion}"
10 | }
11 |
12 | /*
13 | * Set the jar name to ensure it's the same accross all builds
14 | */
15 | jar.baseName = 'com.liferay.code.samples.portal.modules.applications.portlets.mvc-ds-freemarker'
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/mvc-ds-freemarker/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/mvc-ds-freemarker/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/src
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/mvc-ds-jsp/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/mvc-ds-jsp/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
10 |
11 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/mvc-ds-jsp/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Project depenedencies
3 | */
4 | dependencies {
5 | compileOnly "com.liferay.portal:com.liferay.portal.kernel" // version will be taken from BOM
6 | compileOnly "javax.portlet:portlet-api:${portletApiVersion}"
7 | compileOnly "org.osgi:org.osgi.service.component.annotations:${serviceComponentAnnotationsVersion}"
8 | }
9 |
10 | /*
11 | * Set the jar name to ensure it's the same accross all builds
12 | */
13 | jar.baseName = 'com.liferay.code.samples.portal.modules.applications.portlets.mvc-ds-jsp'
14 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/mvc-ds-jsp/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/mvc-ds-jsp/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/src
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/render-filter-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/render-filter-portlet/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's gradle workspace, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
10 |
11 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/render-filter-portlet/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Project depenedencies
3 | */
4 | dependencies {
5 | compileOnly "com.liferay.portal:com.liferay.portal.kernel" // version will be taken from BOM
6 | compileOnly "com.liferay.portal:com.liferay.util.taglib" // version will be taken from BOM
7 | compileOnly "javax.portlet:portlet-api:${portletApiVersion}"
8 | compileOnly "javax.servlet:javax.servlet-api:${servletApiVersion}"
9 | compileOnly "org.osgi:org.osgi.service.component.annotations:${serviceComponentAnnotationsVersion}"
10 | }
11 |
12 | /*
13 | * Set the jar name to ensure it's the same accross all builds
14 | */
15 | jar.baseName = 'com.liferay.code.samples.portal.modules.applications.portlets.render-filter-portlet'
16 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/render-filter-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/render-filter-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/src
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/resource-command-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/resource-command-portlet/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Because `compileInclude` is used to define the dependency to poi-ooxml.jar in `build.gradle`
5 | # and we are using the Liferay's plugin in gradle, we do not need to add the -includeresource
6 | # attribute, and the poi-ooxml.jar and any other depedencies are automatically included in the
7 | # resulting jar. (see Option 4 explained in https://liferay.dev/blogs/-/blogs/osgi-module-dependencies)
8 | # Also see https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/adding-third-party-libraries-to-a-module#embedding-libraries-in-a-module
9 | # to learn how external dependencies can be included in your bundle
10 |
11 | # Since we are using Liferay's gradle workspace, the following is automatically taken care of
12 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
13 | # - Add a plugin to analyze the JSPs
14 | # - Add a plugin to analyze i18n resource bundles
15 | # - Add a plugin to analyze SASS/CSS files
16 |
17 |
18 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/resource-command-portlet/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Project dependencies
3 | */
4 | dependencies {
5 | compileOnly "com.liferay.portal:com.liferay.portal.kernel" // version will be taken from BOM
6 | compileOnly "com.liferay.portal:com.liferay.util.taglib" // version will be taken from BOM
7 | compileOnly "javax.portlet:portlet-api:${portletApiVersion}"
8 | compileOnly "javax.servlet:javax.servlet-api:${servletApiVersion}"
9 | compileOnly "org.osgi:org.osgi.service.component.annotations:${serviceComponentAnnotationsVersion}"
10 |
11 | // Include the apache-poi-ooxml dependency in the resulting artifact.
12 | // With compileInclude, Liferay's gradle plugin will take care of embeding all the
13 | // transitive dependencies inside a lib folder within the final jar.
14 | // See https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/adding-third-party-libraries-to-a-module#embedding-libraries-in-a-module
15 | compileInclude "org.apache.poi:poi-ooxml:4.1.0"
16 | }
17 |
18 | /*
19 | * Set the jar name to ensure it's the same across all builds
20 | */
21 | jar.baseName = 'com.liferay.code.samples.portal.modules.applications.portlets.resource-command-portlet'
22 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/resource-command-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/modules/applications/portlets/resource-command-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/src
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/settings.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext {
3 | bndVersion = '4.2.0'
4 | dependencyManagementVersion = '1.0.8.RELEASE'
5 | liferayGradlePluginVersion = '4.2.0'
6 | liferayWorkspaceVersion = '2.1.4'
7 | portalVersion = '7.1.3'
8 | portletApiVersion = '3.0.0'
9 | serviceComponentAnnotationsVersion = '1.3.0'
10 | servletApiVersion = '3.0.1'
11 | }
12 | dependencies {
13 | classpath group: "com.liferay", name: "com.liferay.gradle.plugins", version: "${liferayGradlePluginVersion}"
14 | classpath group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "${liferayWorkspaceVersion}"
15 | classpath group: "net.saliman", name: "gradle-properties-plugin", version: "1.4.6"
16 | }
17 |
18 | repositories {
19 | maven {
20 | url "https://repository-cdn.liferay.com/nexus/content/groups/public"
21 | }
22 | }
23 | }
24 |
25 | apply plugin: "net.saliman.properties"
26 |
27 | apply plugin: "com.liferay.workspace"
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/themes/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java8/workspace-gradle/themes/.keepme
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-gradle/wars/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java8/workspace-gradle/wars/.keepme
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/.blade.properties:
--------------------------------------------------------------------------------
1 | #Tue Jul 16 17:03:40 CEST 2019
2 | profile.name=maven
3 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/.build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java8/workspace-maven/.build
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/.gitignore:
--------------------------------------------------------------------------------
1 | **/*.iml
2 | **/.ivy
3 | **/.classpath
4 | **/.project
5 | **/.sass-cache
6 | **/.settings
7 | **/bin
8 | **/build
9 | **/build_gradle
10 | **/node_modules
11 | **/test-coverage
12 | **/tmp
13 | **/.web_bundle_build
14 | .gradle
15 | .idea
16 | /bundles
17 | /gradle-*.properties
18 | /plugins-sdk/**/classes
19 | /plugins-sdk/**/ivy.xml.MD5
20 | /plugins-sdk/**/liferay-hook.xml.processed
21 | /plugins-sdk/build.*.properties
22 | /plugins-sdk/dependencies/**/*.jar
23 | /plugins-sdk/dist
24 | /plugins-sdk/lib
25 | test-results
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/configs/common/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.1/java8/workspace-maven/configs/common/.keepme
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/configs/dev/portal-ext.properties:
--------------------------------------------------------------------------------
1 | include-and-override=portal-developer.properties
2 |
3 | #
4 | # MySQL
5 | #
6 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
7 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
8 | #jdbc.default.username=root
9 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/configs/local/portal-ext.properties:
--------------------------------------------------------------------------------
1 | include-and-override=portal-developer.properties
2 |
3 | #
4 | # MySQL
5 | #
6 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
7 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
8 | #jdbc.default.username=root
9 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/configs/prod/osgi/configs/com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg:
--------------------------------------------------------------------------------
1 | operationMode=REMOTE
2 | transportAddresses=127.0.0.1:9300
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/configs/prod/portal-ext.properties:
--------------------------------------------------------------------------------
1 | #
2 | # MySQL
3 | #
4 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
5 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
6 | #jdbc.default.username=root
7 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/configs/uat/osgi/configs/com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg:
--------------------------------------------------------------------------------
1 | operationMode=REMOTE
2 | transportAddresses=127.0.0.1:9300
3 | logExceptionsOnly=false
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/configs/uat/portal-ext.properties:
--------------------------------------------------------------------------------
1 | #
2 | # MySQL
3 | #
4 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
5 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
6 | #jdbc.default.username=root
7 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 | workspace.maven
10 | modules
11 | 1.0.0
12 | ../pom.xml
13 |
14 |
15 | 4.0.0
16 | modules.applications
17 | Modules :: Applications
18 | pom
19 |
20 |
21 | portlets
22 |
23 |
24 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/action-command-ds/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/action-command-ds/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
7 | # Add a plugin to analyze the JSPs
8 | -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
9 | # Tell the JSP plugin where to find JSP files
10 | -jsp: *.jsp,*.jspf
11 |
12 | # Add a plugin to analyze i18n resource bundles
13 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
14 |
15 | # Add a plugin to analyze SASS/CSS files
16 | -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
17 | -sass: *
18 |
19 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/action-command-ds/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/action-command-ds/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/src
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/generic-ds-plain/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/generic-ds-plain/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/generic-ds-plain/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/generic-ds-plain/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 | 4.0.0
10 | com.liferay.code.samples.portal.modules.applications.portlets
11 | com.liferay.code.samples.portal.modules.applications.portlets.generic-ds-plain
12 | 1.0.0
13 |
14 | Portlet :: Generic + DS + plain output
15 |
16 |
17 | workspace.maven
18 | modules.applications.portlets
19 | 1.0.0
20 | ../pom.xml
21 |
22 |
23 |
24 |
25 |
26 | org.osgi
27 | org.osgi.service.component.annotations
28 |
29 |
30 |
31 |
32 |
33 | com.liferay.code.samples.portal.modules.applications.portlets.generic-ds-plain
34 |
35 |
36 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/generic-ds-plain/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/src
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/mvc-ds-freemarker/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/mvc-ds-freemarker/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
7 | # Add a plugin to analyze i18n resource bundles
8 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
9 |
10 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/mvc-ds-freemarker/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/mvc-ds-freemarker/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/src
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/mvc-ds-jsp/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/mvc-ds-jsp/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
7 | # Add a plugin to analyze the JSPs
8 | -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
9 | # Tell the JSP plugin where to find JSP files
10 | -jsp: *.jsp,*.jspf
11 |
12 | # Add a plugin to analyze i18n resource bundles
13 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
14 |
15 | # Add a plugin to analyze SASS/CSS files
16 | -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
17 | -sass: *
18 |
19 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/mvc-ds-jsp/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/mvc-ds-jsp/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 | 4.0.0
10 | com.liferay.code.samples.portal.modules.applications.portlets
11 | com.liferay.code.samples.portal.modules.applications.portlets.mvc-ds-jsp
12 | 1.0.0
13 |
14 | Portlet :: MVC + DS + JSP
15 |
16 |
17 | workspace.maven
18 | modules.applications.portlets
19 | 1.0.0
20 | ../pom.xml
21 |
22 |
23 |
24 |
25 |
26 | com.liferay.portal
27 | com.liferay.portal.kernel
28 |
29 |
30 |
31 |
32 | org.osgi
33 | org.osgi.service.component.annotations
34 |
35 |
36 |
37 |
38 |
39 | com.liferay.code.samples.portal.modules.applications.portlets.mvc-ds-jsp
40 |
41 |
42 |
43 | com.liferay
44 | com.liferay.css.builder
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/mvc-ds-jsp/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/src
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | workspace.maven
5 | modules.applications
6 | 1.0.0
7 | ../pom.xml
8 |
9 |
10 | 4.0.0
11 | modules.applications.portlets
12 | Modules :: Applications :: Portlets
13 | pom
14 |
15 |
16 |
17 | javax.portlet
18 | portlet-api
19 |
20 |
21 |
22 |
23 |
24 | action-command-ds
25 | generic-ds-plain
26 | mvc-ds-freemarker
27 | mvc-ds-jsp
28 | render-filter-portlet
29 | resource-command-portlet
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/render-filter-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/render-filter-portlet/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
7 | # Add a plugin to analyze the JSPs
8 | -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
9 | # Tell the JSP plugin where to find JSP files
10 | -jsp: *.jsp,*.jspf
11 |
12 | # Add a plugin to analyze i18n resource bundles
13 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
14 |
15 | # Add a plugin to analyze SASS/CSS files
16 | -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
17 | -sass: *
18 |
19 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/render-filter-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/render-filter-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/src
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/resource-command-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/resource-command-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/modules/applications/portlets/resource-command-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/src
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/themes/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 | workspace.maven
10 | workspace.maven
11 | 1.0.0
12 | ../pom.xml
13 |
14 |
15 | 4.0.0
16 | themes
17 | Themes
18 | pom
19 |
--------------------------------------------------------------------------------
/portal/7.1/java8/workspace-maven/wars/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 | workspace.maven
10 | workspace.maven
11 | 1.0.0
12 | ../pom.xml
13 |
14 |
15 | 4.0.0
16 | wars
17 | Wars
18 | pom
19 |
20 |
--------------------------------------------------------------------------------
/portal/7.2/.product.version:
--------------------------------------------------------------------------------
1 | 7.2
--------------------------------------------------------------------------------
/portal/7.2/README.md:
--------------------------------------------------------------------------------
1 | # Liferay Code Samples for [Liferay Portal](https://portal.liferay.dev) version 7.2
2 |
3 | Here you'll find the code samples for [Liferay Portal](https://portal.liferay.dev) version 7.2. They are separated by Java version:
4 |
5 | - [Java 8](java8) - samples for Java 8
6 | - [Java 11](java11) - samples for Java 11
7 |
8 | _For more information about how this repository is organized please see the [project's README file](../../README.md)._
9 |
--------------------------------------------------------------------------------
/portal/7.2/java11/.java.version:
--------------------------------------------------------------------------------
1 | 11
--------------------------------------------------------------------------------
/portal/7.2/java8/.java.version:
--------------------------------------------------------------------------------
1 | 8
--------------------------------------------------------------------------------
/portal/7.2/java8/README.md:
--------------------------------------------------------------------------------
1 | # Liferay Code Samples for [Liferay Portal](https://portal.liferay.dev) version 7.2 and Java 8
2 |
3 | Here you'll find the code samples for [Liferay Portal](https://portal.liferay.dev) version 7.2 and Java 8.
4 |
5 | The actual samples are under [code](code) folder. They can be build in 4 different ways:
6 |
7 | - [standalone Gradle](standalone-gradle) - demonstrates how to build an individual project using Gradle as build system.
8 | - [standalone Maven](standalone-maven) - demonstrates how to build an individual project using Maven as build system.
9 | - [Gradle workspace](workspace-gradle) - demonstrates how to build multiple projects using Gradle as build system.
10 | - [Maven workspace](workspace-maven) - demonstrates how to build multiple projects using Maven as build system.
11 |
12 | _For more information about how this repository is organized please see the [project's README file](../../../README.md)._
13 |
--------------------------------------------------------------------------------
/portal/7.2/java8/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # exit the script as soon as a build fails
4 | set -e
5 |
6 | # check if samples are in all 4 build scenarios
7 | . ./check.sh
8 |
9 | cd $CODE_FOLDER
10 |
11 | # build standalone projects
12 |
13 | for PROJECT_PATH in ${SAMPLES}
14 | do
15 | banner $COLOR_GREEN_BG "Building standalone $PROJECT_PATH with Gradle"
16 | cd $STANDALONE_GRADLE/$PROJECT_PATH
17 | rm -rf .gradle
18 | ./gradlew clean assemble
19 |
20 | banner $COLOR_BLUE_BG "Building standalone $PROJECT_PATH with Maven"
21 | cd $STANDALONE_MAVEN/$PROJECT_PATH
22 | mvn clean package
23 | done;
24 |
25 |
26 | # build workspaces
27 |
28 | banner $COLOR_GREEN_BG "Building the whole Gradle workspace"
29 | cd $WORKSPACE_GRADLE
30 | rm -rf .gradle
31 | ./gradlew clean assemble
32 |
33 | banner $COLOR_BLUE_BG "Building the whole Maven workspace"
34 | echo
35 | cd $WORKSPACE_MAVEN
36 | mvn clean package
37 |
38 | cd ${SCRIPT_FOLDER}
39 |
40 | ./gradlew check
41 |
42 | cd $CURRENT_FOLDER
--------------------------------------------------------------------------------
/portal/7.2/java8/code/.codebase:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.2/java8/code/.codebase
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/action-command-ds/.sample:
--------------------------------------------------------------------------------
1 | name: "MVC Portlet with DS using an ActionCommand"
2 | description: Demonstrates how to use an ActionCommand to separate Portlet's actions into own classes.
3 | displayFiles:
4 | - name: Documentation
5 | highlighting: markdown
6 | path: README.md
7 | - name: Portlet
8 | highlighting: java
9 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/action_command_ds/portlet/ActionCommandPortlet.java
10 | - name: Greet command
11 | highlighting: java
12 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/action_command_ds/command/GreetCommand.java
13 | - name: Forget command
14 | highlighting: java
15 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/action_command_ds/command/ForgetCommand.java
16 | - name: The JSP view
17 | highlighting: java
18 | path: src/main/resources/META-INF/resources/view.jsp
19 | - name: Bnd configuration
20 | highlighting: properies
21 | path: bnd.bnd
22 | - name: Maven POM
23 | highlighting: xml
24 | path: pom.xml
25 | - name: Gradle build
26 | highlighting: groovy
27 | path: build.gradle
28 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/action-command-ds/common.bnd:
--------------------------------------------------------------------------------
1 | Bundle-Name: Liferay Portal Samples :: MVC Portlet + ActionCommand + DS + JSP
2 | Bundle-SymbolicName: com.liferay.code.samples.portal.modules.applications.portlets.action_command_ds
3 | Bundle-Version: 1.0.0
4 |
5 | # Include source code in the bundle
6 | -sources: true
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/action-command-ds/src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/action_command_ds/command/ForgetCommand.java:
--------------------------------------------------------------------------------
1 | package com.liferay.code.samples.portal.modules.applications.portlets.action_command_ds.command;
2 |
3 | import javax.portlet.ActionRequest;
4 | import javax.portlet.ActionResponse;
5 | import javax.portlet.PortletException;
6 |
7 | import org.osgi.service.component.annotations.Component;
8 |
9 | import com.liferay.code.samples.portal.modules.applications.portlets.action_command_ds.portlet.ActionCommandPortlet;
10 | import com.liferay.portal.kernel.portlet.bridges.mvc.MVCActionCommand;
11 |
12 | @Component(
13 | immediate = true,
14 | property = {
15 | "javax.portlet.name=" + ActionCommandPortlet.NAME, // which portlet this command is attached to
16 | "mvc.command.name=forget" // the name of the command
17 | },
18 | service = MVCActionCommand.class
19 | )
20 | public class ForgetCommand implements MVCActionCommand {
21 |
22 | @Override
23 | public boolean processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException {
24 |
25 | actionRequest.getPortletSession().removeAttribute("GREETER_MESSAGE");
26 |
27 | return true;
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/action-command-ds/src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/action_command_ds/command/GreetCommand.java:
--------------------------------------------------------------------------------
1 | package com.liferay.code.samples.portal.modules.applications.portlets.action_command_ds.command;
2 |
3 | import javax.portlet.ActionRequest;
4 | import javax.portlet.ActionResponse;
5 | import javax.portlet.PortletException;
6 |
7 | import org.osgi.service.component.annotations.Component;
8 |
9 | import com.liferay.code.samples.portal.modules.applications.portlets.action_command_ds.portlet.ActionCommandPortlet;
10 | import com.liferay.portal.kernel.log.Log;
11 | import com.liferay.portal.kernel.log.LogFactoryUtil;
12 | import com.liferay.portal.kernel.portlet.bridges.mvc.MVCActionCommand;
13 | import com.liferay.portal.kernel.util.ParamUtil;
14 |
15 | @Component(
16 | immediate = true,
17 | property = {
18 | "javax.portlet.name=" + ActionCommandPortlet.NAME, // which portlet this command is attached to
19 | "mvc.command.name=greet" // the name of the command
20 | },
21 | service = MVCActionCommand.class
22 | )
23 | public class GreetCommand implements MVCActionCommand {
24 |
25 | @Override
26 | public boolean processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException {
27 |
28 | String name = ParamUtil.get(actionRequest, "name", "guest");
29 |
30 | if (_log.isInfoEnabled()) {
31 | _log.info("Hello " + name);
32 | }
33 |
34 | String greetingMessage = "Hello " + name + "!";
35 |
36 | actionRequest.getPortletSession().setAttribute("GREETER_MESSAGE", greetingMessage);
37 |
38 | return true;
39 | }
40 |
41 | private static final Log _log = LogFactoryUtil.getLog(GreetCommand.class);
42 | }
43 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/action-command-ds/src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/action_command_ds/portlet/ActionCommandPortlet.java:
--------------------------------------------------------------------------------
1 | package com.liferay.code.samples.portal.modules.applications.portlets.action_command_ds.portlet;
2 |
3 | import com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet;
4 |
5 | import javax.portlet.Portlet;
6 |
7 | import org.osgi.service.component.annotations.Component;
8 |
9 | /**
10 | * @author davidgomez
11 | */
12 | @Component(
13 | immediate = true,
14 | property = {
15 | "com.liferay.portlet.display-category=category.sample",
16 | "com.liferay.portlet.header-portlet-css=/css/main.css",
17 | "com.liferay.portlet.instanceable=true",
18 | "javax.portlet.display-name=ActionCommand",
19 | "javax.portlet.init-param.template-path=/",
20 | "javax.portlet.init-param.view-template=/view.jsp",
21 | "javax.portlet.name=" + ActionCommandPortlet.NAME,
22 | "javax.portlet.resource-bundle=content.Language",
23 | "javax.portlet.security-role-ref=power-user,user"
24 | },
25 | service = Portlet.class
26 | )
27 | public class ActionCommandPortlet extends MVCPortlet {
28 | public static final String NAME = "mvc_action_command_ds_jsp_portlet";
29 | }
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/action-command-ds/src/main/resources/META-INF/resources/css/main.scss:
--------------------------------------------------------------------------------
1 | .action-command-ds {
2 | }
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/action-command-ds/src/main/resources/META-INF/resources/init.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
2 |
3 | <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
4 |
5 | <%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %><%@
6 | taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %><%@
7 | taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@
8 | taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/action-command-ds/src/main/resources/META-INF/resources/view.jsp:
--------------------------------------------------------------------------------
1 | <%@ include file="/init.jsp" %>
2 |
3 | <%
4 | String greeting = (String)renderRequest.getPortletSession().getAttribute("GREETER_MESSAGE");
5 | %>
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | Hello stranger! Please tell me your name.
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | <%=greeting %>
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/action-command-ds/src/main/resources/content/Language.properties:
--------------------------------------------------------------------------------
1 | javax.portlet.title.mvc_action_command_ds_jsp_portlet=Liferay MVC Portlet using ActionCommand, DS and JSP
2 | javax.portlet.display-name.mvc_action_command_ds_jsp_portlet=Liferay MVC Portlet using ActionCommand, DS and JSP
3 | javax.portlet.short-title.mvc_action_command_ds_jsp_portlet=Liferay MVC Portlet using ActionCommand, DS and JSP
4 | javax.portlet.keywords.mvc_action_command_ds_jsp_portlet=MVC, ActionCommand, DS, JSP
5 |
6 | mvc_action_command_ds_jsp_portlet.caption=Liferay MVC Portlet using ActionCommand, DS and JSP
7 | mvc_action_command_ds_jsp_portlet.forget-me=Please forget my name.
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/generic-ds-plain/.sample:
--------------------------------------------------------------------------------
1 | name: "GenericPortlet with DS"
2 | description: Demonstrates how to use the DS (Declarative Services) framework to register a GenericPortlet.
3 | displayFiles:
4 | - name: Documentation
5 | highlighting: markdown
6 | path: README.md
7 | - name: Portlet
8 | highlighting: java
9 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/generic_ds_plain/DSPortlet.java
10 | - name: Bnd configuration
11 | highlighting: properies
12 | path: bnd.bnd
13 | - name: Maven POM
14 | highlighting: xml
15 | path: pom.xml
16 | - name: Gradle build
17 | highlighting: groovy
18 | path: build.gradle
19 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/generic-ds-plain/README.md:
--------------------------------------------------------------------------------
1 | # Application demonstrating now build `GenericPortlet` and register it with OSGi Declarative Services
2 |
3 | ## Overview
4 |
5 | This simple greeting application demonstrates how to build a standard (JSR286) compatible portlet's and register it with OSGi Declarative Services **annotations instead of writng `portlet.xml`**
6 |
7 | ## What it does
8 |
9 | The application has one very simple, standards compliant `GenericPortlet` that prints "Hello world". Its only purpose is to demonstrate how DS annotations can simplify portlet development.
10 |
11 | ## Other frameworks and libraries used in this sample
12 |
13 | - `OSGi Declrative Services` - to register portlet filters as OSGi components
14 |
15 | ## How to build it
16 |
17 | The [How to build a code sample](https://github.com/liferay/liferay-code-samples/blob/master/portal/README.md#liferay-code-samples-for-liferay-portal) section of the Liferay's Portal samples `README` has detailed instructions how to build a sample using your favorite build tool.
18 |
19 | ## How to deploy it
20 |
21 | This sample can be deployed by simply coping the resulting module `jar` file found :
22 |
23 | - For `Gradle` builds in `path/to/sample/build/libs` folder
24 | - For `Maven` builds in `path/to/sample/target` folder
25 |
26 | to Liferay Portal's `deploy` folder.
27 |
28 | It is also possible to configure both `Gradle` and `Maven` to directly deploy to a specific Liferay Portal instance.
29 |
30 | ## How to configure it
31 |
32 | There is no configuration needed. Use the applications menu to add the sample to a page and experiment with it.
33 |
34 | ## Related documentation
35 |
36 | - [Declarative Services](https://portal.liferay.dev/docs/7-2/frameworks/-/knowledge_base/f/declarative-services)
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/generic-ds-plain/common.bnd:
--------------------------------------------------------------------------------
1 | Bundle-SymbolicName: com.liferay.code.samples.portal.modules.applications.portlets.generic-ds-plain
2 | Bundle-Name: Liferay Portal Samples :: Generic Portlet + DS wireing + no view
3 | Bundle-Version: 1.0.0
4 |
5 | # Include source code in the bundle
6 | -sources: true
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/generic-ds-plain/src/main/resources/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.2/java8/code/modules/applications/portlets/generic-ds-plain/src/main/resources/.keepme
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/mvc-ds-freemarker/.sample:
--------------------------------------------------------------------------------
1 | name: "MVC Portlet with DS and FreeMarker"
2 | description: |
3 | Demonstrates how to use `FreeMarker` instead of `JSP` as view layer framework.
4 | displayFiles:
5 | - name: Documentation
6 | highlighting: markdown
7 | path: README.md
8 | - name: Portlet
9 | highlighting: java
10 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/mvc_ds_freemarker/BlankFreemarkerPortlet.java
11 | - name: Freemarker init template
12 | highlighting: markup
13 | path: src/main/resources/templates/init.ftl
14 | - name: Freemarker view template
15 | highlighting: markup
16 | path: src/main/resources/templates/view.ftl
17 | - name: Bnd configuration
18 | highlighting: yaml
19 | path: bnd.bnd
20 | - name: Maven POM
21 | highlighting: xml
22 | path: pom.xml
23 | - name: Gradle build
24 | highlighting: groovy
25 | path: build.gradle
26 |
27 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/mvc-ds-freemarker/common.bnd:
--------------------------------------------------------------------------------
1 | Bundle-SymbolicName: com.liferay.code.samples.portal.modules.applications.portlets.mvc-ds-freemarker
2 | Bundle-Name: Liferay Portal Samples :: MVC Portlet + DS wireing + Freemarker view
3 | Bundle-Version: 1.0.0
4 |
5 | # Include source code in the bundle
6 | -sources: true
7 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/mvc-ds-freemarker/src/main/resources/META-INF/resources/css/main.scss:
--------------------------------------------------------------------------------
1 | .portlet-freemarker {
2 | .redBackground {
3 | background-color: red;
4 | }
5 | }
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/mvc-ds-freemarker/src/main/resources/content/Language.properties:
--------------------------------------------------------------------------------
1 | javax.portlet.title.mvc_ds_freemarker_portlet=Liferay MVC Portlet using DS and Freemarker
2 | javax.portlet.display-name.mvc_ds_freemarker_portlet=Liferay MVC Portlet using DS and Freemarker
3 | javax.portlet.short-title.mvc_ds_freemarker_portlet=Liferay MVC Portlet using DS and Freemarker
4 | javax.portlet.keywords.mvc_ds_freemarker_portlet=MVC, DS, Freemarker
5 |
6 | mvc_ds_freemarker_portlet.caption=Hello from Liferay MVC Portlet using DS and Freemarker!
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/mvc-ds-freemarker/src/main/resources/templates/view.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | /**
3 | * Copyright 2000-present Liferay, Inc.
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * 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 | */
17 | -->
18 |
19 | <#include "init.ftl">
20 |
21 |
22 | <@liferay_ui["message"] key="mvc_ds_freemarker_portlet.caption" />
23 |
24 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/mvc-ds-jsp/.sample:
--------------------------------------------------------------------------------
1 | name: "MVC Portlet with DS and JSP"
2 | description: Demonstrates how to build a portlet with Liferay MVC framework using JSPs for the view
3 | displayFiles:
4 | - name: Documentation
5 | highlighting: markdown
6 | path: README.md
7 | - name: Portlet
8 | highlighting: java
9 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/mvc_ds_jsp/JSPPortlet.java
10 | - name: The JSP view
11 | highlighting: java
12 | path: src/main/resources/META-INF/resources/view.jsp
13 | - name: Bnd configuration
14 | highlighting: yaml
15 | path: bnd.bnd
16 | - name: Maven POM
17 | highlighting: xml
18 | path: pom.xml
19 | - name: Gradle build
20 | highlighting: groovy
21 | path: build.gradle
22 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/mvc-ds-jsp/common.bnd:
--------------------------------------------------------------------------------
1 | Bundle-SymbolicName: com.liferay.code.samples.portal.modules.applications.portlets.mvc-ds-jsp
2 | Bundle-Name: Liferay Portal Samples :: MVC Portlet + DS wireing + JSP view
3 | Bundle-Version: 1.0.0
4 |
5 | # Include source code in the bundle
6 | -sources: true
7 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/mvc-ds-jsp/src/main/resources/META-INF/resources/css/.sass-cache/main.css:
--------------------------------------------------------------------------------
1 | .portlet-jsp .redBackground {
2 | background-color: red; }
3 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/mvc-ds-jsp/src/main/resources/META-INF/resources/css/.sass-cache/main_rtl.css:
--------------------------------------------------------------------------------
1 | .portlet-jsp .redBackground{background-color:red}
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/mvc-ds-jsp/src/main/resources/META-INF/resources/css/main.scss:
--------------------------------------------------------------------------------
1 | .portlet-jsp {
2 | .redBackground {
3 | background-color: red;
4 | }
5 | }
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/mvc-ds-jsp/src/main/resources/META-INF/resources/init.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | /**
3 | * Copyright 2000-present Liferay, Inc.
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * 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 | */
17 | --%>
18 |
19 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
20 |
21 | <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
22 |
23 | <%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %><%@
24 | taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %><%@
25 | taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@
26 | taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/mvc-ds-jsp/src/main/resources/META-INF/resources/view.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | /**
3 | * Copyright 2000-present Liferay, Inc.
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * 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 | */
17 | --%>
18 |
19 | <%@ include file="/init.jsp" %>
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/mvc-ds-jsp/src/main/resources/content/Language.properties:
--------------------------------------------------------------------------------
1 | javax.portlet.title.mvc_ds_jsp_portlet=Liferay MVC Portlet using DS and JSP
2 | javax.portlet.display-name.mvc_ds_jsp_portlet=Liferay MVC Portlet using DS and JSP
3 | javax.portlet.short-title.mvc_ds_jsp_portlet=Liferay MVC Portlet using DS and JSP
4 | javax.portlet.keywords.mvc_ds_jsp_portlet=MVC, DS, JSP
5 |
6 | mvc_ds_jsp_portlet.caption=Hello from Liferay MVC Portlet using DS and JSP!
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/render-filter-portlet/.sample:
--------------------------------------------------------------------------------
1 | name: "Render Filter for Portlet"
2 | description: Demonstrates to use a Render Filter to alter any information before being rendered or to measure time spent rendering. See README.md for detailes info
3 | displayFiles:
4 | - name: Documentation
5 | highlighting: markdown
6 | path: README.md
7 | - name: Portlet
8 | highlighting: java
9 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/render_filter/portlet/MembersListPortlet.java
10 | - name: Obfuscating filter
11 | highlighting: java
12 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/render_filter/filter/EncodingPersonEmailsRenderFilter.java
13 | - name: Stats filter
14 | highlighting: java
15 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/render_filter/filter/MembersListStatsRenderFilter.java
16 | - name: Bnd configuration
17 | highlighting: properies
18 | path: bnd.bnd
19 | - name: Maven POM
20 | highlighting: xml
21 | path: pom.xml
22 | - name: Gradle build
23 | highlighting: groovy
24 | path: build.gradle
25 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/render-filter-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | Bundle-Name: Liferay Portal Samples :: Portlet Render Filter
2 | Bundle-SymbolicName: com.liferay.code.samples.portal.modules.applications.portlets.render_filter
3 | Bundle-Version: 1.0.0
4 |
5 | # Include source code in the bundle
6 | -sources: true
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/render-filter-portlet/src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/render_filter/model/Person.java:
--------------------------------------------------------------------------------
1 | package com.liferay.code.samples.portal.modules.applications.portlets.render_filter.model;
2 |
3 | /**
4 | * Simple model class for a Person, containing a Name and an email.
5 | */
6 | public class Person {
7 |
8 | private final String name;
9 | private final String email;
10 |
11 | public Person(String name, String email) {
12 | this.name = name;
13 | this.email = email;
14 | }
15 |
16 | public String getName() {
17 | return name;
18 | }
19 |
20 | public String getEmail() {
21 | return email;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/render-filter-portlet/src/main/resources/META-INF/resources/css/main.scss:
--------------------------------------------------------------------------------
1 | .render-filter-portlet {
2 | }
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/render-filter-portlet/src/main/resources/META-INF/resources/init.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
2 |
3 | <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
4 |
5 | <%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %><%@
6 | taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %><%@
7 | taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@
8 | taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
9 |
10 |
11 | <%@ page import="java.util.stream.Collectors" %>
12 | <%@ page import="com.liferay.code.samples.portal.modules.applications.portlets.render_filter.portlet.MembersListPortlet" %>
13 | <%@ page import="com.liferay.code.samples.portal.modules.applications.portlets.render_filter.model.Person" %>
14 | <%@ page import="java.util.List" %>
15 |
16 |
17 |
18 |
19 |
20 |
21 | <%
22 | String iconsPath = themeDisplay.getPathThemeImages() + "/lexicon/icons.svg";
23 | %>
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/render-filter-portlet/src/main/resources/META-INF/resources/view.jsp:
--------------------------------------------------------------------------------
1 | <%@ include file="/init.jsp" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | -
19 |
20 |
21 |
22 |
25 |
26 |
27 |
28 |
32 |
33 |
34 |
35 |
36 |
37 |
41 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/render-filter-portlet/src/main/resources/content/Language.properties:
--------------------------------------------------------------------------------
1 | javax.portlet.title.member_list_portlet=Portlet with RenderFilter
2 | javax.portlet.display-name.member_list_portlet=Portlet using two Render Filters, Declarative Services and JSP
3 | javax.portlet.short-title.member_list_portlet=Portlet with RenderFilter
4 | javax.portlet.keywords.member_list_portlet=MVC, RenderFilter, DS, JSP
5 |
6 | render_filter_portlet.button.load_users=Load Users
7 | render_filter_portlet.caption=Portlet with RenderFilter
8 | render_filter_portlet.members.title=These are the members of your team!
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/resource-command-portlet/.sample:
--------------------------------------------------------------------------------
1 | name: "Resource Command for Portlet"
2 | description: Demonstrates to use a Resource Command to handle resources or binary responses. In this example, the ResourceCommand is used to export the information presented in the view as an XLS file. See README.md for detailed info.
3 | displayFiles:
4 | - name: Documentation
5 | highlighting: markdown
6 | path: README.md
7 | - name: Portlet
8 | highlighting: java
9 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/resource_command/portlet/TaskListPortlet.java
10 | - name: Export as XLS ResourceCommand
11 | highlighting: java
12 | path: src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/resource_command/command/XLSTaskListResourceCommand.java
13 | - name: The JSP view
14 | highlighting: java
15 | path: src/main/resources/META-INF/resources/view.jsp
16 | - name: Bnd configuration
17 | highlighting: properies
18 | path: bnd.bnd
19 | - name: Maven POM
20 | highlighting: xml
21 | path: pom.xml
22 | - name: Gradle build
23 | highlighting: groovy
24 | path: build.gradle
25 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/resource-command-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | Bundle-Name: Liferay Portal Samples :: MVC Portlet + Resource Command
2 | Bundle-SymbolicName: com.liferay.code.samples.portal.modules.applications.portlets.resource_command
3 | Bundle-Version: 1.0.0
4 |
5 | Import-Package: \
6 | !org.apache.poi.xssf.*,\
7 | !com.github.luben.zstd.*,\
8 | !com.microsoft.*,\
9 | !com.sun.javadoc.*,\
10 | !com.sun.tools.*,\
11 | !net.sf.saxon.*,\
12 | !org.apache.batik.*,\
13 | !org.apache.jcp.xml.dsig.internal.dom.*,\
14 | !org.bouncycastle.*,\
15 | !org.brotli.dec.*,\
16 | !org.etsi.uri.*,\
17 | !org.openxmlformats.schemas.*,\
18 | !org.tukaani.xz.*,\
19 | *
20 |
21 | # Include source code in the bundle
22 | -sources: true
23 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/resource-command-portlet/src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/resource_command/model/PersonalTask.java:
--------------------------------------------------------------------------------
1 | package com.liferay.code.samples.portal.modules.applications.portlets.resource_command.model;
2 |
3 | import java.time.LocalDate;
4 |
5 | /**
6 | * Simple class to represent a PersonalTask, identified by a title, a due date and a priority.
7 | */
8 | public class PersonalTask {
9 |
10 | public PersonalTask(String title) {
11 | this.createdAt = LocalDate.now();
12 | this.title = title;
13 | }
14 |
15 | public PersonalTask(String title, Priority priority, LocalDate dueDate) {
16 | this(title);
17 | this.dueDate = dueDate;
18 | this.priority = priority;
19 | }
20 |
21 | public String getTitle() {
22 | return title;
23 | }
24 |
25 |
26 | public LocalDate getCreatedAt() {
27 | return createdAt;
28 | }
29 |
30 | public LocalDate getDueDate() {
31 | return dueDate;
32 | }
33 |
34 | public void setDueDate(LocalDate dueDate) {
35 | this.dueDate = dueDate;
36 | }
37 |
38 | public Priority getPriority() {
39 | return priority;
40 | }
41 |
42 | public void setPriority(Priority priority) {
43 | this.priority = priority;
44 | }
45 |
46 | private final String title;
47 | private final LocalDate createdAt;
48 | private LocalDate dueDate;
49 | private Priority priority;
50 |
51 | public enum Priority {
52 | HIGH,
53 | MEDIUM,
54 | LOW
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/resource-command-portlet/src/main/java/com/liferay/code/samples/portal/modules/applications/portlets/resource_command/service/TaskListService.java:
--------------------------------------------------------------------------------
1 | package com.liferay.code.samples.portal.modules.applications.portlets.resource_command.service;
2 |
3 | import com.liferay.code.samples.portal.modules.applications.portlets.resource_command.model.PersonalTask;
4 |
5 | import java.util.Collection;
6 |
7 | public interface TaskListService {
8 |
9 | public Collection loadPersonalTasks();
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/resource-command-portlet/src/main/resources/META-INF/resources/css/main.scss:
--------------------------------------------------------------------------------
1 | .resource-command-portlet {
2 | }
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/resource-command-portlet/src/main/resources/META-INF/resources/init.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
2 |
3 | <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
4 |
5 | <%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %><%@
6 | taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %><%@
7 | taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@
8 | taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
9 |
10 |
11 |
12 |
13 |
14 | <%
15 | String iconsPath = themeDisplay.getPathThemeImages() + "/lexicon/icons.svg";
16 | %>
--------------------------------------------------------------------------------
/portal/7.2/java8/code/modules/applications/portlets/resource-command-portlet/src/main/resources/content/Language.properties:
--------------------------------------------------------------------------------
1 | javax.portlet.title.task-list-portlet=TaskList Portlet (ResourceCommand)
2 | task-list-portlet.caption=Task List
3 | task-list-portlet.title=These are your personal tasks !
4 | task-list-portlet.button.export-as-xls=Export as XLS
5 |
--------------------------------------------------------------------------------
/portal/7.2/java8/code/themes/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.2/java8/code/themes/.keepme
--------------------------------------------------------------------------------
/portal/7.2/java8/code/wars/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.2/java8/code/wars/.keepme
--------------------------------------------------------------------------------
/portal/7.2/java8/gradlew:
--------------------------------------------------------------------------------
1 | workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.2/java8/gradlew.bat:
--------------------------------------------------------------------------------
1 | workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.2/java8/moveSample.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | . ../../../variables.sh
4 | . ../../../functions.sh
5 |
6 | moveSample $1 $2
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/.build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.2/java8/standalone-gradle/.build
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/action-command-ds/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/action-command-ds/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/action-command-ds/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/action-command-ds/gradlew:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/action-command-ds/gradlew.bat:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/action-command-ds/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/src
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/generic-ds-plain/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/generic-ds-plain/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/generic-ds-plain/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/generic-ds-plain/gradlew:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/generic-ds-plain/gradlew.bat:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/generic-ds-plain/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/src
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/mvc-ds-freemarker/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/mvc-ds-freemarker/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/mvc-ds-freemarker/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/mvc-ds-freemarker/gradlew:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/mvc-ds-freemarker/gradlew.bat:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/mvc-ds-freemarker/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/src
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/mvc-ds-jsp/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/mvc-ds-jsp/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/mvc-ds-jsp/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/mvc-ds-jsp/gradlew:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/mvc-ds-jsp/gradlew.bat:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/mvc-ds-jsp/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/src
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/render-filter-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/render-filter-portlet/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/render-filter-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/render-filter-portlet/gradlew:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/render-filter-portlet/gradlew.bat:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/render-filter-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/src
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Because `compileInclude` is used to define the dependency to poi-ooxml.jar in `build.gradle`
5 | # and we are using the Liferay's plugin in gradle, we do not need to add the -includeresource
6 | # attribute, and the poi-ooxml.jar and any other depedencies are automatically included in the
7 | # resulting jar. (see Option 4 explained in https://liferay.dev/blogs/-/blogs/osgi-module-dependencies)
8 | # Also see https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/adding-third-party-libraries-to-a-module#embedding-libraries-in-a-module
9 | # to learn how external dependencies can be included in your bundle
10 |
11 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
12 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
13 | # - Add a plugin to analyze the JSPs
14 | # - Add a plugin to analyze i18n resource bundles
15 | # - Add a plugin to analyze SASS/CSS files
16 |
17 |
18 |
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/gradlew:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/gradlew.bat:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-gradle/gradlew.bat
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-gradle/modules/applications/portlets/resource-command-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/src
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/.build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.2/java8/standalone-maven/.build
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/action-command-ds/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/action-command-ds/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet,JavaServlet
6 |
7 | # Add a plugin to analyze the JSPs
8 | -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
9 | # Tell the JSP plugin where to find JSP files
10 | -jsp: *.jsp,*.jspf
11 |
12 | # Add a plugin to analyze i18n resource bundles
13 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
14 |
15 | # Add a plugin to analyze SASS/CSS files
16 | -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
17 | -sass: *
18 |
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/action-command-ds/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/action-command-ds/mvnw:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/action-command-ds/mvnw.cmd:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw.cmd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/action-command-ds/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/src/
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/generic-ds-plain/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/generic-ds-plain/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/generic-ds-plain/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/generic-ds-plain/mvnw:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/generic-ds-plain/mvnw.cmd:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw.cmd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/generic-ds-plain/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/src
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/mvc-ds-freemarker/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/mvc-ds-freemarker/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
7 | # Add a plugin to analyze i18n resource bundles
8 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
9 |
10 |
11 |
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/mvc-ds-freemarker/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/mvc-ds-freemarker/mvnw:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/mvc-ds-freemarker/mvnw.cmd:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw.cmd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/mvc-ds-freemarker/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/src
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/mvc-ds-jsp/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/mvc-ds-jsp/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
7 | # Add a plugin to analyze the JSPs
8 | -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
9 | # Tell the JSP plugin where to find JSP files
10 | -jsp: *.jsp,*.jspf
11 |
12 | # Add a plugin to analyze i18n resource bundles
13 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
14 |
15 | # Add a plugin to analyze SASS/CSS files
16 | -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
17 | -sass: *
18 |
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/mvc-ds-jsp/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/mvc-ds-jsp/mvnw:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/mvc-ds-jsp/mvnw.cmd:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw.cmd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/mvc-ds-jsp/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/src
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/render-filter-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/render-filter-portlet/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet,JavaServlet
6 |
7 | # Add a plugin to analyze the JSPs
8 | -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
9 | # Tell the JSP plugin where to find JSP files
10 | -jsp: *.jsp,*.jspf
11 |
12 | # Add a plugin to analyze i18n resource bundles
13 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
14 |
15 | # Add a plugin to analyze SASS/CSS files
16 | -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
17 | -sass: *
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/render-filter-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/render-filter-portlet/mvnw:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/render-filter-portlet/mvnw.cmd:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw.cmd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/render-filter-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/src
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/resource-command-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/resource-command-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/resource-command-portlet/mvnw:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/resource-command-portlet/mvnw.cmd:
--------------------------------------------------------------------------------
1 | ../../../../../workspace-maven/mvnw.cmd
--------------------------------------------------------------------------------
/portal/7.2/java8/standalone-maven/modules/applications/portlets/resource-command-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/src
--------------------------------------------------------------------------------
/portal/7.2/java8/updateLinks.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | . ../../../variables.sh
4 | . ../../../functions.sh
5 |
6 | updateLinks $1 $2
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/.build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.2/java8/workspace-gradle/.build
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/.gitignore:
--------------------------------------------------------------------------------
1 | **/*.iml
2 | **/.ivy
3 | **/.classpath
4 | **/.project
5 | **/.sass-cache
6 | **/.settings
7 | **/bin
8 | **/build
9 | **/build_gradle
10 | **/node_modules
11 | **/test-coverage
12 | **/tmp
13 | **/.web_bundle_build
14 | .gradle
15 | .idea
16 | /bundles
17 | /gradle-*.properties
18 | /plugins-sdk/**/classes
19 | /plugins-sdk/**/ivy.xml.MD5
20 | /plugins-sdk/**/liferay-hook.xml.processed
21 | /plugins-sdk/build.*.properties
22 | /plugins-sdk/dependencies/**/*.jar
23 | /plugins-sdk/dist
24 | /plugins-sdk/lib
25 | test-results
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext {
3 | bndVersion = '4.2.0'
4 | dependencyManagementVersion = '1.0.8.RELEASE'
5 | liferayGradlePluginVersion = '4.2.0'
6 | liferayWorkspaceVersion = '2.1.4'
7 | portalVersion = '7.2.0'
8 | portletApiVersion = '3.0.0'
9 | serviceComponentAnnotationsVersion = '1.3.0'
10 | servletApiVersion = '3.0.1'
11 | }
12 |
13 | dependencies {
14 | classpath "io.spring.gradle:dependency-management-plugin:${dependencyManagementVersion}"
15 | }
16 |
17 | repositories {
18 | maven {
19 | url "https://plugins.gradle.org/m2/"
20 | }
21 | }
22 | }
23 |
24 | subprojects {
25 | /*
26 | * Spring's dependency plugin is needed to provide `dependencyManagement` functionality
27 | * used to configure Liferay Portal's BOM (Biil Of Material)
28 | */
29 | apply plugin: "io.spring.dependency-management"
30 |
31 | /*
32 | * Use the BOM provided for given Liferay Portal version
33 | * This allows to automatically set proper versions for dependencies
34 | */
35 | dependencyManagement {
36 | imports {
37 | mavenBom("com.liferay.portal:release.portal.bom:${portalVersion}")
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/configs/common/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.2/java8/workspace-gradle/configs/common/.keepme
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/configs/dev/portal-ext.properties:
--------------------------------------------------------------------------------
1 | include-and-override=portal-developer.properties
2 |
3 | #
4 | # MySQL
5 | #
6 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
7 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
8 | #jdbc.default.username=root
9 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/configs/local/portal-ext.properties:
--------------------------------------------------------------------------------
1 | include-and-override=portal-developer.properties
2 |
3 | #
4 | # MySQL
5 | #
6 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
7 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
8 | #jdbc.default.username=root
9 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/configs/prod/osgi/configs/com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg:
--------------------------------------------------------------------------------
1 | operationMode=REMOTE
2 | transportAddresses=127.0.0.1:9300
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/configs/prod/portal-ext.properties:
--------------------------------------------------------------------------------
1 | #
2 | # MySQL
3 | #
4 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
5 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
6 | #jdbc.default.username=root
7 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/configs/uat/osgi/configs/com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg:
--------------------------------------------------------------------------------
1 | operationMode=REMOTE
2 | transportAddresses=127.0.0.1:9300
3 | logExceptionsOnly=false
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/configs/uat/portal-ext.properties:
--------------------------------------------------------------------------------
1 | #
2 | # MySQL
3 | #
4 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
5 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
6 | #jdbc.default.username=root
7 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.2/java8/workspace-gradle/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/action-command-ds/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/action-command-ds/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's gradle workspace, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
10 |
11 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/action-command-ds/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Project depenedencies
3 | */
4 | dependencies {
5 | compileOnly "com.liferay.portal:com.liferay.portal.kernel" // version will be taken from BOM
6 | compileOnly "com.liferay.portal:com.liferay.util.taglib" // version will be taken from BOM
7 | compileOnly "javax.portlet:portlet-api:${portletApiVersion}"
8 | compileOnly "javax.servlet:javax.servlet-api:${servletApiVersion}"
9 | compileOnly "org.osgi:org.osgi.service.component.annotations:${serviceComponentAnnotationsVersion}"
10 | }
11 |
12 | /*
13 | * Set the jar name to ensure it's the same accross all builds
14 | */
15 | jar.baseName = 'com.liferay.code.samples.portal.modules.applications.portlets.action-command-ds'
16 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/action-command-ds/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/action-command-ds/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/src
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/generic-ds-plain/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/generic-ds-plain/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's gradle workspace, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/generic-ds-plain/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Project depenedencies
3 | */
4 | dependencies {
5 | compileOnly "javax.portlet:portlet-api:${portletApiVersion}"
6 | compileOnly "org.osgi:org.osgi.service.component.annotations:${serviceComponentAnnotationsVersion}"
7 | }
8 |
9 | /*
10 | * Set the jar name to ensure it's the same accross all builds
11 | */
12 | jar.baseName = 'com.liferay.code.samples.portal.modules.applications.portlets.generic-ds-plain'
13 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/generic-ds-plain/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/generic-ds-plain/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/src
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/mvc-ds-freemarker/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/mvc-ds-freemarker/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
10 |
11 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/mvc-ds-freemarker/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Project depenedencies
3 | */
4 | dependencies {
5 | compileOnly "com.liferay.portal:com.liferay.portal.kernel" // version will be taken from BOM
6 | compileOnly "com.liferay.portal:com.liferay.util.bridges" // version will be taken from BOM
7 | compileOnly "com.liferay.portal:com.liferay.util.taglib" // version will be taken from BOM
8 | compileOnly "javax.portlet:portlet-api:${portletApiVersion}"
9 | compileOnly "org.osgi:org.osgi.service.component.annotations:${serviceComponentAnnotationsVersion}"
10 | }
11 |
12 | /*
13 | * Set the jar name to ensure it's the same accross all builds
14 | */
15 | jar.baseName = 'com.liferay.code.samples.portal.modules.applications.portlets.mvc-ds-freemarker'
16 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/mvc-ds-freemarker/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/mvc-ds-freemarker/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/src
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/mvc-ds-jsp/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/mvc-ds-jsp/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's plugin in Gradle, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
10 |
11 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/mvc-ds-jsp/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Project depenedencies
3 | */
4 | dependencies {
5 | compileOnly "com.liferay.portal:com.liferay.portal.kernel" // version will be taken from BOM
6 | compileOnly "javax.portlet:portlet-api:${portletApiVersion}"
7 | compileOnly "org.osgi:org.osgi.service.component.annotations:${serviceComponentAnnotationsVersion}"
8 | }
9 |
10 | /*
11 | * Set the jar name to ensure it's the same accross all builds
12 | */
13 | jar.baseName = 'com.liferay.code.samples.portal.modules.applications.portlets.mvc-ds-jsp'
14 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/mvc-ds-jsp/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/mvc-ds-jsp/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/src
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/render-filter-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/render-filter-portlet/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Since we are using Liferay's gradle workspace, the following is automatically taken care of
5 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
6 | # - Add a plugin to analyze the JSPs
7 | # - Add a plugin to analyze i18n resource bundles
8 | # - Add a plugin to analyze SASS/CSS files
9 |
10 |
11 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/render-filter-portlet/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Project depenedencies
3 | */
4 | dependencies {
5 | compileOnly "com.liferay.portal:com.liferay.portal.kernel" // version will be taken from BOM
6 | compileOnly "com.liferay.portal:com.liferay.util.taglib" // version will be taken from BOM
7 | compileOnly "javax.portlet:portlet-api:${portletApiVersion}"
8 | compileOnly "javax.servlet:javax.servlet-api:${servletApiVersion}"
9 | compileOnly "org.osgi:org.osgi.service.component.annotations:${serviceComponentAnnotationsVersion}"
10 | }
11 |
12 | /*
13 | * Set the jar name to ensure it's the same accross all builds
14 | */
15 | jar.baseName = 'com.liferay.code.samples.portal.modules.applications.portlets.render-filter-portlet'
16 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/render-filter-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/render-filter-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/src/
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/resource-command-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/resource-command-portlet/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Because `compileInclude` is used to define the dependency to poi-ooxml.jar in `build.gradle`
5 | # and we are using the Liferay's plugin in gradle, we do not need to add the -includeresource
6 | # attribute, and the poi-ooxml.jar and any other depedencies are automatically included in the
7 | # resulting jar. (see Option 4 explained in https://liferay.dev/blogs/-/blogs/osgi-module-dependencies)
8 | # Also see https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/adding-third-party-libraries-to-a-module#embedding-libraries-in-a-module
9 | # to learn how external dependencies can be included in your bundle
10 |
11 | # Since we are using Liferay's gradle workspace, the following is automatically taken care of
12 | # - Instruct Bnd to use portalble contracts instead of package dependencies, when possible
13 | # - Add a plugin to analyze the JSPs
14 | # - Add a plugin to analyze i18n resource bundles
15 | # - Add a plugin to analyze SASS/CSS files
16 |
17 |
18 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/resource-command-portlet/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Project dependencies
3 | */
4 | dependencies {
5 | compileOnly "com.liferay.portal:com.liferay.portal.kernel" // version will be taken from BOM
6 | compileOnly "com.liferay.portal:com.liferay.util.taglib" // version will be taken from BOM
7 | compileOnly "javax.portlet:portlet-api:${portletApiVersion}"
8 | compileOnly "javax.servlet:javax.servlet-api:${servletApiVersion}"
9 | compileOnly "org.osgi:org.osgi.service.component.annotations:${serviceComponentAnnotationsVersion}"
10 |
11 | // Include the apache-poi-ooxml dependency in the resulting artifact.
12 | // With compileInclude, Liferay's gradle plugin will take care of embeding all the
13 | // transitive dependencies inside a lib folder within the final jar.
14 | // See https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/adding-third-party-libraries-to-a-module#embedding-libraries-in-a-module
15 | compileInclude "org.apache.poi:poi-ooxml:4.1.0"
16 | }
17 |
18 | /*
19 | * Set the jar name to ensure it's the same across all builds
20 | */
21 | jar.baseName = 'com.liferay.code.samples.portal.modules.applications.portlets.resource-command-portlet'
22 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/resource-command-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/modules/applications/portlets/resource-command-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/src
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/settings.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext {
3 | bndVersion = '4.2.0'
4 | dependencyManagementVersion = '1.0.8.RELEASE'
5 | liferayGradlePluginVersion = '4.2.0'
6 | liferayWorkspaceVersion = '2.1.4'
7 | portalVersion = '7.1.3'
8 | portletApiVersion = '3.0.0'
9 | serviceComponentAnnotationsVersion = '1.3.0'
10 | servletApiVersion = '3.0.1'
11 | }
12 | dependencies {
13 | classpath group: "com.liferay", name: "com.liferay.gradle.plugins", version: "${liferayGradlePluginVersion}"
14 | classpath group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "${liferayWorkspaceVersion}"
15 | classpath group: "net.saliman", name: "gradle-properties-plugin", version: "1.4.6"
16 | }
17 |
18 | repositories {
19 | maven {
20 | url "https://repository-cdn.liferay.com/nexus/content/groups/public"
21 | }
22 | }
23 | }
24 |
25 | apply plugin: "net.saliman.properties"
26 |
27 | apply plugin: "com.liferay.workspace"
28 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/themes/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.2/java8/workspace-gradle/themes/.keepme
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-gradle/wars/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.2/java8/workspace-gradle/wars/.keepme
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/.blade.properties:
--------------------------------------------------------------------------------
1 | #Tue Jul 16 13:29:05 CEST 2019
2 | profile.name=maven
3 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/.build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.2/java8/workspace-maven/.build
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/.gitignore:
--------------------------------------------------------------------------------
1 | **/*.iml
2 | **/.ivy
3 | **/.classpath
4 | **/.project
5 | **/.sass-cache
6 | **/.settings
7 | **/bin
8 | **/build
9 | **/build_gradle
10 | **/node_modules
11 | **/test-coverage
12 | **/tmp
13 | **/.web_bundle_build
14 | .gradle
15 | .idea
16 | /bundles
17 | /gradle-*.properties
18 | /plugins-sdk/**/classes
19 | /plugins-sdk/**/ivy.xml.MD5
20 | /plugins-sdk/**/liferay-hook.xml.processed
21 | /plugins-sdk/build.*.properties
22 | /plugins-sdk/dependencies/**/*.jar
23 | /plugins-sdk/dist
24 | /plugins-sdk/lib
25 | test-results
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/configs/common/.keepme:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liferay/liferay-code-samples/66766c8989a2fd8227b885c30d6b1126cf8b7048/portal/7.2/java8/workspace-maven/configs/common/.keepme
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/configs/dev/portal-ext.properties:
--------------------------------------------------------------------------------
1 | include-and-override=portal-developer.properties
2 |
3 | #
4 | # MySQL
5 | #
6 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
7 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
8 | #jdbc.default.username=root
9 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/configs/local/portal-ext.properties:
--------------------------------------------------------------------------------
1 | include-and-override=portal-developer.properties
2 |
3 | #
4 | # MySQL
5 | #
6 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
7 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
8 | #jdbc.default.username=root
9 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/configs/prod/osgi/configs/com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg:
--------------------------------------------------------------------------------
1 | operationMode=REMOTE
2 | transportAddresses=127.0.0.1:9300
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/configs/prod/portal-ext.properties:
--------------------------------------------------------------------------------
1 | #
2 | # MySQL
3 | #
4 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
5 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
6 | #jdbc.default.username=root
7 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/configs/uat/osgi/configs/com.liferay.portal.search.elasticsearch.configuration.ElasticsearchConfiguration.cfg:
--------------------------------------------------------------------------------
1 | operationMode=REMOTE
2 | transportAddresses=127.0.0.1:9300
3 | logExceptionsOnly=false
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/configs/uat/portal-ext.properties:
--------------------------------------------------------------------------------
1 | #
2 | # MySQL
3 | #
4 | #jdbc.default.driverClassName=com.mysql.jdbc.Driver
5 | #jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
6 | #jdbc.default.username=root
7 | #jdbc.default.password=
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 | workspace.maven
10 | modules
11 | 1.0.0
12 | ../pom.xml
13 |
14 |
15 | 4.0.0
16 | modules.applications
17 | Modules :: Applications
18 | pom
19 |
20 |
21 | portlets
22 |
23 |
24 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/action-command-ds/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/action-command-ds/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet,JavaServlet
6 |
7 | # Add a plugin to analyze the JSPs
8 | -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
9 | # Tell the JSP plugin where to find JSP files
10 | -jsp: *.jsp,*.jspf
11 |
12 | # Add a plugin to analyze i18n resource bundles
13 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
14 |
15 | # Add a plugin to analyze SASS/CSS files
16 | -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
17 | -sass: *
18 |
19 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/action-command-ds/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/action-command-ds/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/action-command-ds/src
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/generic-ds-plain/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/generic-ds-plain/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/generic-ds-plain/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/generic-ds-plain/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 | 4.0.0
10 | com.liferay.code.samples.portal.modules.applications.portlets
11 | com.liferay.code.samples.portal.modules.applications.portlets.generic-ds-plain
12 | 1.0.0
13 |
14 | Portlet :: Generic + DS + plain output
15 |
16 |
17 | workspace.maven
18 | modules.applications.portlets
19 | 1.0.0
20 | ../pom.xml
21 |
22 |
23 |
24 |
25 |
26 | org.osgi
27 | org.osgi.service.component.annotations
28 |
29 |
30 |
31 |
32 |
33 | com.liferay.code.samples.portal.modules.applications.portlets.generic-ds-plain
34 |
35 |
36 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/generic-ds-plain/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/generic-ds-plain/src
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/mvc-ds-freemarker/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/mvc-ds-freemarker/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
7 | # Add a plugin to analyze i18n resource bundles
8 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
9 |
10 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/mvc-ds-freemarker/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/mvc-ds-freemarker/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-freemarker/src
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/mvc-ds-jsp/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/mvc-ds-jsp/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet
6 |
7 | # Add a plugin to analyze the JSPs
8 | -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
9 | # Tell the JSP plugin where to find JSP files
10 | -jsp: *.jsp,*.jspf
11 |
12 | # Add a plugin to analyze i18n resource bundles
13 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
14 |
15 | # Add a plugin to analyze SASS/CSS files
16 | -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
17 | -sass: *
18 |
19 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/mvc-ds-jsp/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/mvc-ds-jsp/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 | 4.0.0
10 | com.liferay.code.samples.portal.modules.applications.portlets
11 | com.liferay.code.samples.portal.modules.applications.portlets.mvc-ds-jsp
12 | 1.0.0
13 |
14 | Portlet :: MVC + DS + JSP
15 |
16 |
17 | workspace.maven
18 | modules.applications.portlets
19 | 1.0.0
20 | ../pom.xml
21 |
22 |
23 |
24 |
25 |
26 | com.liferay.portal
27 | com.liferay.portal.kernel
28 |
29 |
30 |
31 |
32 | org.osgi
33 | org.osgi.service.component.annotations
34 |
35 |
36 |
37 |
38 |
39 | com.liferay.code.samples.portal.modules.applications.portlets.mvc-ds-jsp
40 |
41 |
42 |
43 | com.liferay
44 | com.liferay.css.builder
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/mvc-ds-jsp/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/mvc-ds-jsp/src
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | workspace.maven
5 | modules.applications
6 | 1.0.0
7 | ../pom.xml
8 |
9 |
10 | 4.0.0
11 | modules.applications.portlets
12 | Modules :: Applications :: Portlets
13 | pom
14 |
15 |
16 |
17 | javax.portlet
18 | portlet-api
19 |
20 |
21 |
22 |
23 |
24 | action-command-ds
25 | generic-ds-plain
26 | mvc-ds-freemarker
27 | mvc-ds-jsp
28 | render-filter-portlet
29 | resource-command-portlet
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/render-filter-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/render-filter-portlet/bnd.bnd:
--------------------------------------------------------------------------------
1 | # Use the common Bnd instructions such as bundle name and version
2 | -include: ./common.bnd
3 |
4 | # Instruct Bnd to use portalble contracts instead of package dependencies, when possible
5 | -contract: JavaPortlet,JavaServlet
6 |
7 | # Add a plugin to analyze the JSPs
8 | -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
9 | # Tell the JSP plugin where to find JSP files
10 | -jsp: *.jsp,*.jspf
11 |
12 | # Add a plugin to analyze i18n resource bundles
13 | -plugin.bundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
14 |
15 | # Add a plugin to analyze SASS/CSS files
16 | -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
17 | -sass: *
18 |
19 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/render-filter-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/render-filter-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/render-filter-portlet/src/
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/resource-command-portlet/README.md:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/README.md
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/resource-command-portlet/common.bnd:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/common.bnd
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/modules/applications/portlets/resource-command-portlet/src:
--------------------------------------------------------------------------------
1 | ../../../../../code/modules/applications/portlets/resource-command-portlet/src
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/themes/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 | workspace.maven
10 | workspace.maven
11 | 1.0.0
12 | ../pom.xml
13 |
14 |
15 | 4.0.0
16 | themes
17 | Themes
18 | pom
19 |
--------------------------------------------------------------------------------
/portal/7.2/java8/workspace-maven/wars/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 | workspace.maven
10 | workspace.maven
11 | 1.0.0
12 | ../pom.xml
13 |
14 |
15 | 4.0.0
16 | wars
17 | Wars
18 | pom
19 |
20 |
--------------------------------------------------------------------------------
/variables.sh:
--------------------------------------------------------------------------------
1 | CURRENT_FOLDER=$(pwd);
2 | SCRIPT_FOLDER=$(realpath $(dirname "${0}"));
3 | CODE_FOLDER="${SCRIPT_FOLDER}/code";
4 |
5 | STANDALONE_GRADLE="${SCRIPT_FOLDER}/standalone-gradle";
6 | STANDALONE_GRADLE_MODULES="${STANDALONE_GRADLE}/modules";
7 | STANDALONE_GRADLE_THEMES="${STANDALONE_GRADLE}/themes";
8 | STANDALONE_GRADLE_WARS="${STANDALONE_GRADLE}/wars";
9 |
10 | STANDALONE_MAVEN="${SCRIPT_FOLDER}/standalone-maven";
11 | STANDALONE_MAVEN_MODULES="${STANDALONE_MAVEN}/modules";
12 | STANDALONE_MAVEN_THEMES="${STANDALONE_MAVEN}/themes";
13 | STANDALONE_MAVEN_WARS="${STANDALONE_MAVEN}/wars";
14 |
15 | WORKSPACE_GRADLE="${SCRIPT_FOLDER}/workspace-gradle";
16 | WORKSPACE_GRADLE_MODULES="${WORKSPACE_GRADLE}/modules";
17 | WORKSPACE_GRADLE_THEMES="${WORKSPACE_GRADLE}/themes";
18 | WORKSPACE_GRADLE_WARS="${WORKSPACE_GRADLE}/wars";
19 |
20 | WORKSPACE_MAVEN="${SCRIPT_FOLDER}/workspace-maven";
21 | WORKSPACE_MAVEN_MODULES="${WORKSPACE_MAVEN}/modules";
22 | WORKSPACE_MAVEN_THEMES="${WORKSPACE_MAVEN}/themes";
23 | WORKSPACE_MAVEN_WARS="${WORKSPACE_MAVEN}/wars";
24 |
25 | COLOR_OFF="\033[0m"
26 | COLOR_RED="\033[0;31m"
27 | COLOR_GREEN="\033[0;32m"
28 | COLOR_YELLOW="\033[0;33m"
29 | COLOR_BLUE="\033[0;34m"
30 |
31 | COLOR_GREEN_BG="\033[0;30;42m"
32 | COLOR_YELLOW_BG="\033[0;43m"
33 | COLOR_BLUE_BG="\033[0;30;44m"
34 |
35 | SAMPLE_FILE_NAME=".sample"
36 | SAMPLES=()
--------------------------------------------------------------------------------