diff --git a/.project b/.project new file mode 100644 index 0000000..d886064 --- /dev/null +++ b/.project @@ -0,0 +1,28 @@ + + + liferay-springmvc-eclipse-wb + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/META-INF/MANIFEST.MF b/META-INF/MANIFEST.MF new file mode 100644 index 0000000..90f5a7d --- /dev/null +++ b/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Liferay-spring-plugin +Bundle-SymbolicName: liferay-eclipse-wb;singleton:=true +Bundle-Version: 1.0.0.qualifier +Bundle-Vendor: Accenture +Require-Bundle: org.eclipse.core.resources, + org.eclipse.ui, + org.eclipse.ui.ide, + org.eclipse.core.runtime +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Bundle-ClassPath: lib/freemarker.jar, + . diff --git a/build.properties b/build.properties new file mode 100644 index 0000000..ece3d3f --- /dev/null +++ b/build.properties @@ -0,0 +1,8 @@ +source.. = src/ +output.. = bin/ +bin.includes = plugin.xml,\ + META-INF/,\ + icons/,\ + .,\ + lib/freemarker.jar +jars.extra.classpath = lib/freemarker.jar diff --git a/doc/allclasses-frame.html b/doc/allclasses-frame.html new file mode 100644 index 0000000..bd37a92 --- /dev/null +++ b/doc/allclasses-frame.html @@ -0,0 +1,31 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/doc/allclasses-noframe.html b/doc/allclasses-noframe.html new file mode 100644 index 0000000..c0d7c8f --- /dev/null +++ b/doc/allclasses-noframe.html @@ -0,0 +1,31 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/doc/com/accenture/liferayspringplugin/wizards/Constants.html b/doc/com/accenture/liferayspringplugin/wizards/Constants.html new file mode 100644 index 0000000..3da86fc --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/Constants.html @@ -0,0 +1,2831 @@ + + + + + +Constants + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.accenture.liferayspringplugin.wizards
+

Class Constants

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/LiferaySpringWizard.html b/doc/com/accenture/liferayspringplugin/wizards/LiferaySpringWizard.html new file mode 100644 index 0000000..9898974 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/LiferaySpringWizard.html @@ -0,0 +1,377 @@ + + + + + +LiferaySpringWizard + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.accenture.liferayspringplugin.wizards
+

Class LiferaySpringWizard

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/SpringPortletWizard.html b/doc/com/accenture/liferayspringplugin/wizards/SpringPortletWizard.html new file mode 100644 index 0000000..0012309 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/SpringPortletWizard.html @@ -0,0 +1,377 @@ + + + + + +SpringPortletWizard + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.accenture.liferayspringplugin.wizards
+

Class SpringPortletWizard

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/WizardUtil.html b/doc/com/accenture/liferayspringplugin/wizards/WizardUtil.html new file mode 100644 index 0000000..921834e --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/WizardUtil.html @@ -0,0 +1,737 @@ + + + + + +WizardUtil + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.accenture.liferayspringplugin.wizards
+

Class WizardUtil

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/class-use/Constants.html b/doc/com/accenture/liferayspringplugin/wizards/class-use/Constants.html new file mode 100644 index 0000000..7f3b1f0 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/class-use/Constants.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class com.accenture.liferayspringplugin.wizards.Constants + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.accenture.liferayspringplugin.wizards.Constants

+
+
No usage of com.accenture.liferayspringplugin.wizards.Constants
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/class-use/LiferaySpringWizard.html b/doc/com/accenture/liferayspringplugin/wizards/class-use/LiferaySpringWizard.html new file mode 100644 index 0000000..18c2fa7 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/class-use/LiferaySpringWizard.html @@ -0,0 +1,171 @@ + + + + + +Uses of Class com.accenture.liferayspringplugin.wizards.LiferaySpringWizard + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.accenture.liferayspringplugin.wizards.LiferaySpringWizard

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/class-use/SpringPortletWizard.html b/doc/com/accenture/liferayspringplugin/wizards/class-use/SpringPortletWizard.html new file mode 100644 index 0000000..bc60c96 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/class-use/SpringPortletWizard.html @@ -0,0 +1,172 @@ + + + + + +Uses of Class com.accenture.liferayspringplugin.wizards.SpringPortletWizard + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.accenture.liferayspringplugin.wizards.SpringPortletWizard

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/class-use/WizardUtil.html b/doc/com/accenture/liferayspringplugin/wizards/class-use/WizardUtil.html new file mode 100644 index 0000000..56c59d9 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/class-use/WizardUtil.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class com.accenture.liferayspringplugin.wizards.WizardUtil + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.accenture.liferayspringplugin.wizards.WizardUtil

+
+
No usage of com.accenture.liferayspringplugin.wizards.WizardUtil
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/package-frame.html b/doc/com/accenture/liferayspringplugin/wizards/package-frame.html new file mode 100644 index 0000000..4fb73ab --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/package-frame.html @@ -0,0 +1,23 @@ + + + + + +com.accenture.liferayspringplugin.wizards + + + + + +

com.accenture.liferayspringplugin.wizards

+
+

Classes

+ +
+ + diff --git a/doc/com/accenture/liferayspringplugin/wizards/package-summary.html b/doc/com/accenture/liferayspringplugin/wizards/package-summary.html new file mode 100644 index 0000000..e208605 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/package-summary.html @@ -0,0 +1,160 @@ + + + + + +com.accenture.liferayspringplugin.wizards + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package com.accenture.liferayspringplugin.wizards

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/package-tree.html b/doc/com/accenture/liferayspringplugin/wizards/package-tree.html new file mode 100644 index 0000000..5126b7e --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/package-tree.html @@ -0,0 +1,144 @@ + + + + + +com.accenture.liferayspringplugin.wizards Class Hierarchy + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package com.accenture.liferayspringplugin.wizards

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/package-use.html b/doc/com/accenture/liferayspringplugin/wizards/package-use.html new file mode 100644 index 0000000..3d5a7e2 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/package-use.html @@ -0,0 +1,180 @@ + + + + + +Uses of Package com.accenture.liferayspringplugin.wizards + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
com.accenture.liferayspringplugin.wizards

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/FinishWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/FinishWizardPage.html new file mode 100644 index 0000000..cd03445 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/FinishWizardPage.html @@ -0,0 +1,337 @@ + + + + + +FinishWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.accenture.liferayspringplugin.wizards.plugin
+

Class FinishWizardPage

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/LiferaySpringAntWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/LiferaySpringAntWizardPage.html new file mode 100644 index 0000000..c9cdf06 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/LiferaySpringAntWizardPage.html @@ -0,0 +1,471 @@ + + + + + +LiferaySpringAntWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.accenture.liferayspringplugin.wizards.plugin
+

Class LiferaySpringAntWizardPage

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/LiferaySpringMavenWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/LiferaySpringMavenWizardPage.html new file mode 100644 index 0000000..659edb7 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/LiferaySpringMavenWizardPage.html @@ -0,0 +1,478 @@ + + + + + +LiferaySpringMavenWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.accenture.liferayspringplugin.wizards.plugin
+

Class LiferaySpringMavenWizardPage

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/LoggerWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/LoggerWizardPage.html new file mode 100644 index 0000000..c6f051e --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/LoggerWizardPage.html @@ -0,0 +1,416 @@ + + + + + +LoggerWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.accenture.liferayspringplugin.wizards.plugin
+

Class LoggerWizardPage

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/PluginTypeWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/PluginTypeWizardPage.html new file mode 100644 index 0000000..4e05786 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/PluginTypeWizardPage.html @@ -0,0 +1,377 @@ + + + + + +PluginTypeWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.accenture.liferayspringplugin.wizards.plugin
+

Class PluginTypeWizardPage

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/FinishWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/FinishWizardPage.html new file mode 100644 index 0000000..6a3f042 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/FinishWizardPage.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class com.accenture.liferayspringplugin.wizards.plugin.FinishWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.accenture.liferayspringplugin.wizards.plugin.FinishWizardPage

+
+
No usage of com.accenture.liferayspringplugin.wizards.plugin.FinishWizardPage
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/LiferaySpringAntWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/LiferaySpringAntWizardPage.html new file mode 100644 index 0000000..35d2f13 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/LiferaySpringAntWizardPage.html @@ -0,0 +1,166 @@ + + + + + +Uses of Class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/LiferaySpringMavenWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/LiferaySpringMavenWizardPage.html new file mode 100644 index 0000000..ee1d004 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/LiferaySpringMavenWizardPage.html @@ -0,0 +1,166 @@ + + + + + +Uses of Class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/LoggerWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/LoggerWizardPage.html new file mode 100644 index 0000000..a94cc0c --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/LoggerWizardPage.html @@ -0,0 +1,186 @@ + + + + + +Uses of Class com.accenture.liferayspringplugin.wizards.plugin.LoggerWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.accenture.liferayspringplugin.wizards.plugin.LoggerWizardPage

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/PluginTypeWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/PluginTypeWizardPage.html new file mode 100644 index 0000000..f41afff --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/class-use/PluginTypeWizardPage.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class com.accenture.liferayspringplugin.wizards.plugin.PluginTypeWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.accenture.liferayspringplugin.wizards.plugin.PluginTypeWizardPage

+
+
No usage of com.accenture.liferayspringplugin.wizards.plugin.PluginTypeWizardPage
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/package-frame.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/package-frame.html new file mode 100644 index 0000000..19e197f --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/package-frame.html @@ -0,0 +1,24 @@ + + + + + +com.accenture.liferayspringplugin.wizards.plugin + + + + + +

com.accenture.liferayspringplugin.wizards.plugin

+
+

Classes

+ +
+ + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/package-summary.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/package-summary.html new file mode 100644 index 0000000..513ee55 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/package-summary.html @@ -0,0 +1,172 @@ + + + + + +com.accenture.liferayspringplugin.wizards.plugin + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package com.accenture.liferayspringplugin.wizards.plugin

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/package-tree.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/package-tree.html new file mode 100644 index 0000000..dacd65c --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/package-tree.html @@ -0,0 +1,149 @@ + + + + + +com.accenture.liferayspringplugin.wizards.plugin Class Hierarchy + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package com.accenture.liferayspringplugin.wizards.plugin

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/plugin/package-use.html b/doc/com/accenture/liferayspringplugin/wizards/plugin/package-use.html new file mode 100644 index 0000000..5ffcad2 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/plugin/package-use.html @@ -0,0 +1,188 @@ + + + + + +Uses of Package com.accenture.liferayspringplugin.wizards.plugin + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
com.accenture.liferayspringplugin.wizards.plugin

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/portlet/FinishWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/portlet/FinishWizardPage.html new file mode 100644 index 0000000..3e0e513 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/portlet/FinishWizardPage.html @@ -0,0 +1,337 @@ + + + + + +FinishWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.accenture.liferayspringplugin.wizards.portlet
+

Class FinishWizardPage

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/portlet/PluginTypeWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/portlet/PluginTypeWizardPage.html new file mode 100644 index 0000000..48c68ab --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/portlet/PluginTypeWizardPage.html @@ -0,0 +1,380 @@ + + + + + +PluginTypeWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.accenture.liferayspringplugin.wizards.portlet
+

Class PluginTypeWizardPage

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/portlet/SpringPortletAntWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/portlet/SpringPortletAntWizardPage.html new file mode 100644 index 0000000..d70cf33 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/portlet/SpringPortletAntWizardPage.html @@ -0,0 +1,475 @@ + + + + + +SpringPortletAntWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.accenture.liferayspringplugin.wizards.portlet
+

Class SpringPortletAntWizardPage

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/portlet/SpringPortletMavenWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/portlet/SpringPortletMavenWizardPage.html new file mode 100644 index 0000000..14922ce --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/portlet/SpringPortletMavenWizardPage.html @@ -0,0 +1,484 @@ + + + + + +SpringPortletMavenWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.accenture.liferayspringplugin.wizards.portlet
+

Class SpringPortletMavenWizardPage

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/portlet/class-use/FinishWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/portlet/class-use/FinishWizardPage.html new file mode 100644 index 0000000..390c891 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/portlet/class-use/FinishWizardPage.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class com.accenture.liferayspringplugin.wizards.portlet.FinishWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.accenture.liferayspringplugin.wizards.portlet.FinishWizardPage

+
+
No usage of com.accenture.liferayspringplugin.wizards.portlet.FinishWizardPage
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/portlet/class-use/PluginTypeWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/portlet/class-use/PluginTypeWizardPage.html new file mode 100644 index 0000000..cc3a8c8 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/portlet/class-use/PluginTypeWizardPage.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class com.accenture.liferayspringplugin.wizards.portlet.PluginTypeWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.accenture.liferayspringplugin.wizards.portlet.PluginTypeWizardPage

+
+
No usage of com.accenture.liferayspringplugin.wizards.portlet.PluginTypeWizardPage
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/portlet/class-use/SpringPortletAntWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/portlet/class-use/SpringPortletAntWizardPage.html new file mode 100644 index 0000000..1fc8907 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/portlet/class-use/SpringPortletAntWizardPage.html @@ -0,0 +1,172 @@ + + + + + +Uses of Class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/portlet/class-use/SpringPortletMavenWizardPage.html b/doc/com/accenture/liferayspringplugin/wizards/portlet/class-use/SpringPortletMavenWizardPage.html new file mode 100644 index 0000000..ade47f1 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/portlet/class-use/SpringPortletMavenWizardPage.html @@ -0,0 +1,166 @@ + + + + + +Uses of Class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/portlet/package-frame.html b/doc/com/accenture/liferayspringplugin/wizards/portlet/package-frame.html new file mode 100644 index 0000000..a851277 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/portlet/package-frame.html @@ -0,0 +1,23 @@ + + + + + +com.accenture.liferayspringplugin.wizards.portlet + + + + + +

com.accenture.liferayspringplugin.wizards.portlet

+
+

Classes

+ +
+ + diff --git a/doc/com/accenture/liferayspringplugin/wizards/portlet/package-summary.html b/doc/com/accenture/liferayspringplugin/wizards/portlet/package-summary.html new file mode 100644 index 0000000..e36f341 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/portlet/package-summary.html @@ -0,0 +1,165 @@ + + + + + +com.accenture.liferayspringplugin.wizards.portlet + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package com.accenture.liferayspringplugin.wizards.portlet

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/portlet/package-tree.html b/doc/com/accenture/liferayspringplugin/wizards/portlet/package-tree.html new file mode 100644 index 0000000..96340a0 --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/portlet/package-tree.html @@ -0,0 +1,148 @@ + + + + + +com.accenture.liferayspringplugin.wizards.portlet Class Hierarchy + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package com.accenture.liferayspringplugin.wizards.portlet

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/com/accenture/liferayspringplugin/wizards/portlet/package-use.html b/doc/com/accenture/liferayspringplugin/wizards/portlet/package-use.html new file mode 100644 index 0000000..5c5f26a --- /dev/null +++ b/doc/com/accenture/liferayspringplugin/wizards/portlet/package-use.html @@ -0,0 +1,166 @@ + + + + + +Uses of Package com.accenture.liferayspringplugin.wizards.portlet + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
com.accenture.liferayspringplugin.wizards.portlet

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/constant-values.html b/doc/constant-values.html new file mode 100644 index 0000000..30e3119 --- /dev/null +++ b/doc/constant-values.html @@ -0,0 +1,1203 @@ + + + + + +Constant Field Values + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

com.accenture.*

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/deprecated-list.html b/doc/deprecated-list.html new file mode 100644 index 0000000..e964775 --- /dev/null +++ b/doc/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + +Deprecated List + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/help-doc.html b/doc/help-doc.html new file mode 100644 index 0000000..41db23e --- /dev/null +++ b/doc/help-doc.html @@ -0,0 +1,229 @@ + + + + + +API Help + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-1.html b/doc/index-files/index-1.html new file mode 100644 index 0000000..d864e33 --- /dev/null +++ b/doc/index-files/index-1.html @@ -0,0 +1,177 @@ + + + + + +A-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

A

+
+
ADD_EXCEPTION_FRAMWORK_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
addAntPortlet(String, String, String, String, String, File, Configuration, Map<String, Object>, String, String, String, boolean, String, String, boolean) - Static method in class com.accenture.liferayspringplugin.wizards.WizardUtil
+
 
+
addFileFromTemplate(Configuration, Map<String, Object>, File, String, String, String) - Static method in class com.accenture.liferayspringplugin.wizards.WizardUtil
+
+
This method parse provided freemarker template and write file in provided path.
+
+
addLiferayDisplayEntry(String, String, String) - Static method in class com.accenture.liferayspringplugin.wizards.WizardUtil
+
+
This method will append "portlet" entry in existing liferay-display.xml file.
+
+
addLiferayPortletEntry(String, String, String) - Static method in class com.accenture.liferayspringplugin.wizards.WizardUtil
+
+
This method will append "portlet" entry in existing liferay-portlet.xml file.
+
+
addMavenPortlet(String, String, String, String, String, File, Configuration, Map<String, Object>, String, String, String, boolean, String, String) - Static method in class com.accenture.liferayspringplugin.wizards.WizardUtil
+
 
+
addPages() - Method in class com.accenture.liferayspringplugin.wizards.LiferaySpringWizard
+
+
Adding the page to the wizard.
+
+
addPages() - Method in class com.accenture.liferayspringplugin.wizards.SpringPortletWizard
+
+
Adding the page to the wizard.
+
+
addPortletEntry(String, String, String, String) - Static method in class com.accenture.liferayspringplugin.wizards.WizardUtil
+
+
This method will append "portlet" entry in existing portlet.xml file.
+
+
ANT_BUTTON_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
ANT_SRC_PATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
ANT_WEB_INF_PATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
APPLICATION_CONTEXT_XML - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
APPLICATION_CONTEXT_XML_PATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
ARTIFACT_ID_ERROR - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
ARTIFACT_ID_LABLE - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
ARTIFACT_ID_NAME_REGEX - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
ARTIFACT_ID_REQUIRED - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
AUI_TLD - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-10.html b/doc/index-files/index-10.html new file mode 100644 index 0000000..2de056c --- /dev/null +++ b/doc/index-files/index-10.html @@ -0,0 +1,131 @@ + + + + + +J-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

J

+
+
JDK14 - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
JS_MAIN_JS - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-11.html b/doc/index-files/index-11.html new file mode 100644 index 0000000..9366849 --- /dev/null +++ b/doc/index-files/index-11.html @@ -0,0 +1,218 @@ + + + + + +L-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

L

+
+
LIB - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_DISPLAY_FTL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_DISPLAY_XML - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_PLUGIN_PACKAGE_FTL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_PLUGIN_PACKAGE_PROPERTIES - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_PORTLET_EXT_TLD - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_PORTLET_FTL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_PORTLET_TLD - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_PORTLET_XML - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_SDK_HOME - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_SDK_PATH_INVALID - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_SDK_PATH_REQUIRED - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_SECURITY_TLD - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_THEME_TLD - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_UI_TLD - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LIFERAY_UTIL_TLD - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LiferaySpringAntWizardPage - Class in com.accenture.liferayspringplugin.wizards.plugin
+
+
The "LiferaySpring" wizard page allows setting the portlet/project name and + other required settings.
+
+
LiferaySpringAntWizardPage() - Constructor for class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage
+
+
Constructor for SampleNewWizardPage.
+
+
LiferaySpringMavenWizardPage - Class in com.accenture.liferayspringplugin.wizards.plugin
+
+
The "LiferaySpring" wizard page allows setting the portlet/project name and + other required settings.
+
+
LiferaySpringMavenWizardPage(LiferaySpringWizard) - Constructor for class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage
+
+
Constructor for SampleNewWizardPage.
+
+
LiferaySpringWizard - Class in com.accenture.liferayspringplugin.wizards
+
+
This is a Liferay Spring Portlet wizard.
+
+
LiferaySpringWizard() - Constructor for class com.accenture.liferayspringplugin.wizards.LiferaySpringWizard
+
+
Constructor for LiferaySpringWizard.
+
+
LOCATION_PATH_INVALID - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LOCATION_PATH_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LOCATION_PATH_REQUIRED - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
log(Exception) - Static method in class com.accenture.liferayspringplugin.wizards.WizardUtil
+
 
+
LOG4J - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LOGBACK - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LOGGER_DECLARATION - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LOGGER_IMPLEMENTATION_TYPE_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LOGGER_IMPORT - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LOGGER_PAGE_WIZARD_DESC - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LOGGER_PAGE_WIZARD_TITLE - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LOGGER_STATEMENT - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
LoggerWizardPage - Class in com.accenture.liferayspringplugin.wizards.plugin
+
+
The "LiferaySpring" wizard page allows setting the portlet/project name and + other required settings.
+
+
LoggerWizardPage() - Constructor for class com.accenture.liferayspringplugin.wizards.plugin.LoggerWizardPage
+
+
Constructor for SampleNewWizardPage.
+
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-12.html b/doc/index-files/index-12.html new file mode 100644 index 0000000..a443c74 --- /dev/null +++ b/doc/index-files/index-12.html @@ -0,0 +1,145 @@ + + + + + +M-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

M

+
+
MAIN_CSS - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
MAIN_JS - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
MANIFEST_MF - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
MAVEN_BUTTON_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
MAVEN_JAVA_PATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
MAVEN_WEB_INF_PATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
MAVEN_WEBAPP_PATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
MIME_TYPE - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
MVN_APPLICATION_CONTEXT_XML_PATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-13.html b/doc/index-files/index-13.html new file mode 100644 index 0000000..f871ff8 --- /dev/null +++ b/doc/index-files/index-13.html @@ -0,0 +1,129 @@ + + + + + +N-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

N

+
+
NAME - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-14.html b/doc/index-files/index-14.html new file mode 100644 index 0000000..0c29faa --- /dev/null +++ b/doc/index-files/index-14.html @@ -0,0 +1,213 @@ + + + + + +P-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

P

+
+
PACKAGE_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PACKAGE_NAME - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PACKAGE_NAME_ERROR - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PACKAGE_NAME_REGEX - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
performFinish() - Method in class com.accenture.liferayspringplugin.wizards.LiferaySpringWizard
+
+
This method is called when 'Finish' button is pressed in the wizard.
+
+
performFinish() - Method in class com.accenture.liferayspringplugin.wizards.SpringPortletWizard
+
+
This method is called when 'Finish' button is pressed in the wizard.
+
+
PLUGIN_WIZARD_PAGE_DESCRIPTION - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PLUGIN_WIZARD_PAGE_SDK_DESCRIPTION - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PLUGIN_WIZARD_PAGE_TITLE - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PluginTypeWizardPage - Class in com.accenture.liferayspringplugin.wizards.plugin
+
+
The "LiferaySpring" wizard page allows setting the portlet/project name and + other required settings.
+
+
PluginTypeWizardPage(LiferaySpringWizard, LiferaySpringAntWizardPage, LiferaySpringMavenWizardPage) - Constructor for class com.accenture.liferayspringplugin.wizards.plugin.PluginTypeWizardPage
+
+
Constructor for SampleNewWizardPage.
+
+
PluginTypeWizardPage - Class in com.accenture.liferayspringplugin.wizards.portlet
+
+
The "LiferaySpring" wizard page allows setting the portlet/project name and + other required settings.
+
+
PluginTypeWizardPage(SpringPortletWizard, SpringPortletAntWizardPage, SpringPortletMavenWizardPage) - Constructor for class com.accenture.liferayspringplugin.wizards.portlet.PluginTypeWizardPage
+
+
Constructor for SampleNewWizardPage.
+
+
PORTLET - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_ - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET__NAME - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_CLASS - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_CONFIG_NAME - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_DISPLAY_NAME - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_FTL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_NAME - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_NAME_ERROR - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_NAME_REGEX - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_NAME_REPLACE_REGEX - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_NAME_REQUIRED - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_NAME_SPLIT - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_WIZARD_DESCRIPTION - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_WIZARD_PAGE_TITLE - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLET_XML - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLETS - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PORTLETS_LBL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PROJECT_FTL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PROJECT_NAME - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PROJECT_NAME_IN_CORRECT - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PROJECT_NAME_REGEX - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
PROJECT_NAME_REQUIRED - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-15.html b/doc/index-files/index-15.html new file mode 100644 index 0000000..00ed716 --- /dev/null +++ b/doc/index-files/index-15.html @@ -0,0 +1,171 @@ + + + + + +S-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

S

+
+
SAMPLE_CONTROLLER_FTL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
SDK_LOCATION_PATH_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
SDK_PATH_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
SELECT_LIFERAY_SDK_PATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
setAntPlugin(boolean) - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage
+
 
+
SLASH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
SLF4J_SIMPLE - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
SPRING_MVC_PORTLET_CONTEXT_FTL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
SpringPortletAntWizardPage - Class in com.accenture.liferayspringplugin.wizards.portlet
+
+
The "LiferaySpring" wizard page allows setting the portlet/project name and + other required settings.
+
+
SpringPortletAntWizardPage() - Constructor for class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage
+
+
Constructor for SampleNewWizardPage.
+
+
SpringPortletMavenWizardPage - Class in com.accenture.liferayspringplugin.wizards.portlet
+
+
The "LiferaySpring" wizard page allows setting the portlet/project name and + other required settings.
+
+
SpringPortletMavenWizardPage(SpringPortletWizard, SpringPortletAntWizardPage) - Constructor for class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage
+
+
Constructor for SampleNewWizardPage.
+
+
SpringPortletWizard - Class in com.accenture.liferayspringplugin.wizards
+
+
This is a Spring Portlet wizard.
+
+
SpringPortletWizard() - Constructor for class com.accenture.liferayspringplugin.wizards.SpringPortletWizard
+
+
Constructor for LiferaSpringWizard.
+
+
STORE_LOCATION_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-16.html b/doc/index-files/index-16.html new file mode 100644 index 0000000..9012427 --- /dev/null +++ b/doc/index-files/index-16.html @@ -0,0 +1,135 @@ + + + + + +T-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

T

+
+
TEMPLATES_ANT_SAMPLE_PORTLET_PATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
TEMPLATES_FREEMARKER_PATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
TEMPLATES_MAVEN_SAMPLE_PORTLET_PATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
TEXT_HTML - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-17.html b/doc/index-files/index-17.html new file mode 100644 index 0000000..b6d65d7 --- /dev/null +++ b/doc/index-files/index-17.html @@ -0,0 +1,131 @@ + + + + + +U-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

U

+
+
updateStatus(String) - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage
+
 
+
updateStatus(String) - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-18.html b/doc/index-files/index-18.html new file mode 100644 index 0000000..2397cc8 --- /dev/null +++ b/doc/index-files/index-18.html @@ -0,0 +1,141 @@ + + + + + +V-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

V

+
+
VERSION_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
VERSION_NAME_REGEX - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
VERSION_NUMBER_ERROR - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
VIEW_FTL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
VIEW_JSP - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
VIEW_PATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
VIEW_PATH_ERROR - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-19.html b/doc/index-files/index-19.html new file mode 100644 index 0000000..89797ad --- /dev/null +++ b/doc/index-files/index-19.html @@ -0,0 +1,139 @@ + + + + + +W-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

W

+
+
WEB_INF_SPRING - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
WEB_XML - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
WIZARD_PAGE - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
WizardUtil - Class in com.accenture.liferayspringplugin.wizards
+
+
This calss hase utitlity methods which required in wizard classes.
+
+
WizardUtil() - Constructor for class com.accenture.liferayspringplugin.wizards.WizardUtil
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-2.html b/doc/index-files/index-2.html new file mode 100644 index 0000000..47d8ab4 --- /dev/null +++ b/doc/index-files/index-2.html @@ -0,0 +1,135 @@ + + + + + +B-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

B

+
+
BROWSE_BUTTON_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
BUILD_FTL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
BUILD_TYPE_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
BUILD_XML - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-20.html b/doc/index-files/index-20.html new file mode 100644 index 0000000..eb84dd4 --- /dev/null +++ b/doc/index-files/index-20.html @@ -0,0 +1,151 @@ + + + + + +_-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

_

+
+
__PORTLET2 - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
_CLASSPATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
_DISPLAY_CATEGORY_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
_ENABLE_SLF4J_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
_ICON_PNG - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
_JSP_PATH_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
_PORTLET_CONTEXT_XML - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
_PORTLET_NAME_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
_PORTLETS_ - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
_PROJECT - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
_PROJECT_NAME_LABLE - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
_SPRING - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-3.html b/doc/index-files/index-3.html new file mode 100644 index 0000000..311ecf6 --- /dev/null +++ b/doc/index-files/index-3.html @@ -0,0 +1,171 @@ + + + + + +C-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

C

+
+
CATEGORY - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
CLASSPATH_FTL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
com.accenture.liferayspringplugin.wizards - package com.accenture.liferayspringplugin.wizards
+
 
+
com.accenture.liferayspringplugin.wizards.plugin - package com.accenture.liferayspringplugin.wizards.plugin
+
 
+
com.accenture.liferayspringplugin.wizards.portlet - package com.accenture.liferayspringplugin.wizards.portlet
+
 
+
COM_DOT_ACCENTURE - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
Constants - Class in com.accenture.liferayspringplugin.wizards
+
 
+
Constants() - Constructor for class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
createAntPlugin(String, File, URL, Configuration, Map<String, Object>, String, String, String, String, LoggerWizardPage) - Static method in class com.accenture.liferayspringplugin.wizards.WizardUtil
+
 
+
createControl(Composite) - Method in class com.accenture.liferayspringplugin.wizards.plugin.FinishWizardPage
+
 
+
createControl(Composite) - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage
+
 
+
createControl(Composite) - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage
+
 
+
createControl(Composite) - Method in class com.accenture.liferayspringplugin.wizards.plugin.LoggerWizardPage
+
 
+
createControl(Composite) - Method in class com.accenture.liferayspringplugin.wizards.plugin.PluginTypeWizardPage
+
 
+
createControl(Composite) - Method in class com.accenture.liferayspringplugin.wizards.portlet.FinishWizardPage
+
 
+
createControl(Composite) - Method in class com.accenture.liferayspringplugin.wizards.portlet.PluginTypeWizardPage
+
 
+
createControl(Composite) - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage
+
 
+
createControl(Composite) - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage
+
 
+
createMavenPlugin(String, File, URL, Configuration, Map<String, Object>, String, String, String, String, LoggerWizardPage) - Static method in class com.accenture.liferayspringplugin.wizards.WizardUtil
+
 
+
CREATING - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
CSS_CLASS_WRAPPER - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
CSS_MAIN_CSS - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-4.html b/doc/index-files/index-4.html new file mode 100644 index 0000000..f5b31a0 --- /dev/null +++ b/doc/index-files/index-4.html @@ -0,0 +1,165 @@ + + + + + +D-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

D

+
+
DEFAULT_DISPLAY_CATEGORY - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
DEFAULT_JSP_FOLDER - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
DEFAULT_VERSION - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
dialogChanged() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage
+
+
Ensures that both text fields are set.
+
+
dialogChanged() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage
+
+
Ensures that both text fields are set.
+
+
dialogChanged() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage
+
+
Ensures that both text fields are set.
+
+
dialogChanged() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage
+
+
Ensures that both text fields are set.
+
+
DISPLAY_CATEGORY - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
DISPLAY_CATEGORY_ERROR - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
DOCROOT_PATH - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
DOCROOT_WEB_INF - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
DOCROOT_WEB_INF_SPRING - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
DOCROOT_WEB_INF_TLD - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
DOT - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
DUPLICATE_PORTLET_NAME - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-5.html b/doc/index-files/index-5.html new file mode 100644 index 0000000..04b46a7 --- /dev/null +++ b/doc/index-files/index-5.html @@ -0,0 +1,139 @@ + + + + + +E-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

E

+
+
EMPTY - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
EXCEPTION - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
EXCEPTION_IMPORT - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
EXCEPTION_METHOD - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
EXCEPTION_STATEMENT - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
extractSelection(ISelection) - Method in class com.accenture.liferayspringplugin.wizards.WizardUtil
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-6.html b/doc/index-files/index-6.html new file mode 100644 index 0000000..1ecd398 --- /dev/null +++ b/doc/index-files/index-6.html @@ -0,0 +1,153 @@ + + + + + +F-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

F

+
+
FINISH_PAGE_WIZARD_DESCRIPTION - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
FINISH_PAGE_WIZARD_TITLE - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
FinishWizardPage - Class in com.accenture.liferayspringplugin.wizards.plugin
+
+
The "Finish" wizard page will show message to user about how to import newly created project in eclipse.
+
+
FinishWizardPage() - Constructor for class com.accenture.liferayspringplugin.wizards.plugin.FinishWizardPage
+
+
Constructor for SampleNewWizardPage.
+
+
FinishWizardPage - Class in com.accenture.liferayspringplugin.wizards.portlet
+
+
The "Finish" wizard page will show message to user about how to import newly created project in eclipse.
+
+
FinishWizardPage() - Constructor for class com.accenture.liferayspringplugin.wizards.portlet.FinishWizardPage
+
+
Constructor for SampleNewWizardPage.
+
+
FOOTER_PORTLET_JAVASCRIPT - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
FORMAT_PRETTY_PRINT - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
FREEMARKET_VERSION - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-7.html b/doc/index-files/index-7.html new file mode 100644 index 0000000..bdbe7a9 --- /dev/null +++ b/doc/index-files/index-7.html @@ -0,0 +1,199 @@ + + + + + +G-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

G

+
+
getDisplayCategry() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage
+
 
+
getDisplayCategry() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage
+
 
+
getDisplayCategry() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage
+
 
+
getDisplayCategry() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage
+
 
+
getGroupId() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage
+
 
+
getGroupId() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage
+
 
+
getJspPath() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage
+
 
+
getJspPath() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage
+
 
+
getJspPath() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage
+
 
+
getJspPath() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage
+
 
+
getNextPage() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage
+
 
+
getNextPage() - Method in class com.accenture.liferayspringplugin.wizards.plugin.PluginTypeWizardPage
+
 
+
getNextPage() - Method in class com.accenture.liferayspringplugin.wizards.portlet.PluginTypeWizardPage
+
 
+
getNextPage() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage
+
 
+
getPackageName() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage
+
 
+
getPackageName() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage
+
 
+
getPackageName() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage
+
 
+
getPluginLocation(String, boolean) - Static method in class com.accenture.liferayspringplugin.wizards.WizardUtil
+
 
+
getPortletMessage() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage
+
 
+
getPortletMessage() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage
+
 
+
getPortletMessage() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage
+
 
+
getPortletMessage() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage
+
 
+
getPortletName() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage
+
 
+
getPortletName() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage
+
 
+
getPortletName() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage
+
 
+
getPortletName() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage
+
 
+
getProjectName() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage
+
 
+
getProjectName() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage
+
 
+
getProjectName() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage
+
 
+
getProjectName() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage
+
 
+
getSdkHome() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage
+
 
+
getSdkHome() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage
+
 
+
getSdkHome() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage
+
 
+
getSdkHome() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage
+
 
+
GROUP_ID_ERROR - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
GROUP_ID_LABEL - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-8.html b/doc/index-files/index-8.html new file mode 100644 index 0000000..8c1381a --- /dev/null +++ b/doc/index-files/index-8.html @@ -0,0 +1,129 @@ + + + + + +H-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

H

+
+
HEADER_PORTLET_CSS - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-9.html b/doc/index-files/index-9.html new file mode 100644 index 0000000..b715fee --- /dev/null +++ b/doc/index-files/index-9.html @@ -0,0 +1,167 @@ + + + + + +I-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I J L M N P S T U V W _  + + +

I

+
+
ICON2 - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
ICON_PNG - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
ID - Static variable in class com.accenture.liferayspringplugin.wizards.Constants
+
 
+
init(IWorkbench, IStructuredSelection) - Method in class com.accenture.liferayspringplugin.wizards.LiferaySpringWizard
+
+
We will accept the selection in the workbench to see if we can initialize + from it.
+
+
init(IWorkbench, IStructuredSelection) - Method in class com.accenture.liferayspringplugin.wizards.SpringPortletWizard
+
+
We will accept the selection in the workbench to see if we can initialize + from it.
+
+
isAntPlugin() - Method in class com.accenture.liferayspringplugin.wizards.plugin.PluginTypeWizardPage
+
 
+
isAntPlugin() - Method in class com.accenture.liferayspringplugin.wizards.portlet.PluginTypeWizardPage
+
 
+
isEnabledSDK() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage
+
 
+
isEnabledSDK() - Method in class com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage
+
 
+
isExceptionEnabled() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LoggerWizardPage
+
 
+
isJdk14Logger() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LoggerWizardPage
+
 
+
isLog4jLogger() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LoggerWizardPage
+
 
+
isLogbackLogger() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LoggerWizardPage
+
 
+
isLogEnabled() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LoggerWizardPage
+
 
+
isPortletExist(String, String, String) - Static method in class com.accenture.liferayspringplugin.wizards.WizardUtil
+
 
+
isProjectExist(String, String) - Static method in class com.accenture.liferayspringplugin.wizards.WizardUtil
+
 
+
isSimpleLogger() - Method in class com.accenture.liferayspringplugin.wizards.plugin.LoggerWizardPage
+
 
+
+A B C D E F G H I J L M N P S T U V W _ 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index.html b/doc/index.html new file mode 100644 index 0000000..d09c703 --- /dev/null +++ b/doc/index.html @@ -0,0 +1,74 @@ + + + + + +Generated Documentation (Untitled) + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/doc/overview-frame.html b/doc/overview-frame.html new file mode 100644 index 0000000..9a0cf1d --- /dev/null +++ b/doc/overview-frame.html @@ -0,0 +1,23 @@ + + + + + +Overview List + + + + + +
All Classes
+
+

Packages

+ +
+

 

+ + diff --git a/doc/overview-summary.html b/doc/overview-summary.html new file mode 100644 index 0000000..6e19983 --- /dev/null +++ b/doc/overview-summary.html @@ -0,0 +1,143 @@ + + + + + +Overview + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + +
Packages 
PackageDescription
com.accenture.liferayspringplugin.wizards 
com.accenture.liferayspringplugin.wizards.plugin 
com.accenture.liferayspringplugin.wizards.portlet 
+
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/overview-tree.html b/doc/overview-tree.html new file mode 100644 index 0000000..38e58eb --- /dev/null +++ b/doc/overview-tree.html @@ -0,0 +1,163 @@ + + + + + +Class Hierarchy + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/package-list b/doc/package-list new file mode 100644 index 0000000..9587040 --- /dev/null +++ b/doc/package-list @@ -0,0 +1,3 @@ +com.accenture.liferayspringplugin.wizards +com.accenture.liferayspringplugin.wizards.plugin +com.accenture.liferayspringplugin.wizards.portlet diff --git a/doc/resources/background.gif b/doc/resources/background.gif new file mode 100644 index 0000000..f471940 Binary files /dev/null and b/doc/resources/background.gif differ diff --git a/doc/resources/tab.gif b/doc/resources/tab.gif new file mode 100644 index 0000000..1a73a83 Binary files /dev/null and b/doc/resources/tab.gif differ diff --git a/doc/resources/titlebar.gif b/doc/resources/titlebar.gif new file mode 100644 index 0000000..17443b3 Binary files /dev/null and b/doc/resources/titlebar.gif differ diff --git a/doc/resources/titlebar_end.gif b/doc/resources/titlebar_end.gif new file mode 100644 index 0000000..3ad78d4 Binary files /dev/null and b/doc/resources/titlebar_end.gif differ diff --git a/doc/script.js b/doc/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/doc/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/doc/stylesheet.css b/doc/stylesheet.css new file mode 100644 index 0000000..0aeaa97 --- /dev/null +++ b/doc/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/gitignore b/gitignore new file mode 100644 index 0000000..0da7531 --- /dev/null +++ b/gitignore @@ -0,0 +1,3 @@ +target/ +.settings +.classpath \ No newline at end of file diff --git a/icons/sample.gif b/icons/sample.gif new file mode 100644 index 0000000..34fb3c9 Binary files /dev/null and b/icons/sample.gif differ diff --git a/lib/freemarker.jar b/lib/freemarker.jar new file mode 100644 index 0000000..c7301a0 Binary files /dev/null and b/lib/freemarker.jar differ diff --git a/plugin.xml b/plugin.xml new file mode 100644 index 0000000..644c299 --- /dev/null +++ b/plugin.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + diff --git a/spring.ucls b/spring.ucls new file mode 100644 index 0000000..bc3d3d2 --- /dev/null +++ b/spring.ucls @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/Constants.java b/src/com/accenture/liferayspringplugin/wizards/Constants.java new file mode 100644 index 0000000..4372d48 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/Constants.java @@ -0,0 +1,186 @@ +package com.accenture.liferayspringplugin.wizards; + +/** + * + * @author Digital Liferay Capability IDC + * + */ + +public class Constants { + + //LiferaySpringWizardPage.java + public static final String PLUGIN_WIZARD_PAGE_TITLE = "Liferay Spring Portlet Plugin Project"; + public static final String PLUGIN_WIZARD_PAGE_SDK_DESCRIPTION = "This wizard will create Lieray Spring plugin project and store it in your Lifera plugins SDK for future use"; + public static final String PLUGIN_WIZARD_PAGE_DESCRIPTION = "This wizard will create Lieray Spring plugin project and store it in provided location"; + + //Label & Validation messages + public static final String LIFERAY_SDK_PATH_INVALID = "Invalid Liferay SDK path - Please specify correct entry to Liferay SDK home"; + public static final String LOCATION_PATH_INVALID = "Invalid Location path - Please specify correct location"; + public static final String LOCATION_PATH_REQUIRED = "Requird Field! Please specify location"; + public static final String LIFERAY_SDK_PATH_REQUIRED = "Requird Field! Please specify Liferay SDK path"; + public static final String PROJECT_NAME_IN_CORRECT = "Invalid Project Name. Allowed characters include [a-z A-Z 0-9 _-] "; + public static final String PROJECT_NAME_REQUIRED = "Requird Field! Please specify project name"; + public static final String PORTLET_NAME_ERROR = "Invalid Portlet Name. Allowed characters include [a-z A-Z 0-9 _-] "; + public static final String GROUP_ID_ERROR = "Invalid GroupId. Allowed characters include [a-z A-Z 0-9 _-]"; + public static final String ARTIFACT_ID_REQUIRED = "Requird Field! Please specify artifactId"; + public static final String ARTIFACT_ID_ERROR = "Invalid ArtifactId. Allowed characters include [a-z A-Z 0-9_-] "; + public static final String PORTLET_NAME_REQUIRED = "Requird Field! Please specify porlet name"; + public static final String DISPLAY_CATEGORY_ERROR = "Requird Field! Please specify display category"; + public static final String VIEW_PATH_ERROR = "Requird Field! Please specify path which will contain all JSPs for the polet"; + public static final String PACKAGE_NAME_ERROR = "Invalid Package Name. Allowed characters include [a-z A-Z 0-9 _-]"; + public static final String VERSION_NUMBER_ERROR = "Invalid Version Number. Allowed characters include [a-z A-Z 0-9 .]"; + + public static final String SELECT_LIFERAY_SDK_PATH = "Pleasse specify Liferay SDK home"; + public static final String LIFERAY_SDK_HOME = "Liferay SDK Home"; + public static final String DEFAULT_DISPLAY_CATEGORY = "Sample"; + public static final String DEFAULT_JSP_FOLDER = "/views/"; + public static final String COM_DOT_ACCENTURE = "com.accenture"; + public static final String _DISPLAY_CATEGORY_LABEL = "&Display Category:"; + public static final String _JSP_PATH_LABEL = "&View Path:"; + public static final String PACKAGE_LABEL = "&Package:"; + public static final String _PORTLET_NAME_LABEL = "&Portlet name:"; + public static final String _PROJECT_NAME_LABLE = "&Project name:"; + public static final String BROWSE_BUTTON_LABEL = "Select"; + public static final String SDK_PATH_LABEL = "&Liferay SDK Home"; + public static final String LOCATION_PATH_LABEL = "&Specify File Location"; + public static final String SDK_LOCATION_PATH_LABEL = "&Plugins SDK Location"; + public static final String BUILD_TYPE_LABEL = "&Select Build Type:"; + public static final String ANT_BUTTON_LABEL = "Ant"; + public static final String MAVEN_BUTTON_LABEL = "Maven"; + public static final String STORE_LOCATION_LABEL = "&Select if you want to store the portlet in Liferay Plugins SDK?"; + public static final String VERSION_LABEL = "&Version:"; + public static final String GROUP_ID_LABEL = "&GroupId:"; + public static final String ARTIFACT_ID_LABLE = "&ArtifactId:"; + public static final String DEFAULT_VERSION = "0.1"; + + //LoggerWizardPage.java + public static final String LOGGER_PAGE_WIZARD_TITLE = "Liferay Spring Portlet Plugin Project"; + public static final String LOGGER_PAGE_WIZARD_DESC = "This wizard will enable base Logging framework and Exception handling framework for your plugin project"; + + public static final String LOGGER_IMPLEMENTATION_TYPE_LABEL = "&Select Base Logging Framework"; + public static final String ADD_EXCEPTION_FRAMWORK_LABEL = "&Enable Base Exception Handling Framwork"; + public static final String LOGBACK = "logback"; + public static final String JDK14 = "jdk14"; + public static final String LOG4J = "log4J"; + public static final String SLF4J_SIMPLE = "slf4j simple"; + public static final String _ENABLE_SLF4J_LABEL = "&Enable Base Logging Framework"; + + //FinishWizardPage.java + public static final String FINISH_PAGE_WIZARD_TITLE = "Liferay Spring Portlet Plugin Project"; + public static final String FINISH_PAGE_WIZARD_DESCRIPTION = "This wizard will create a Lieray Spring Portlet plugin project in the provided Lifera SDK"; + + //SpringPortletWizardPage.java + public static final String PORTLET_WIZARD_PAGE_TITLE = "Liferay Spring Portlet Plugin Project"; + public static final String PORTLET_WIZARD_DESCRIPTION = "This wizard will create Lieray Spring plugin portlet within specified Liferay plugin project"; + public static final String DUPLICATE_PORTLET_NAME = "A Portlet with specified name already exists in the selected Liferay plugin project"; + + //REGEX + public static final String PORTLET_NAME_SPLIT = "\\s+|,_-\\s*|\\.\\s*"; + public static final String PORTLET_NAME_REPLACE_REGEX = "[^a-zA-Z]"; + public static final String PORTLET_NAME_REGEX = "^[a-zA-Z]+[a-zA-Z0-9 _-]*$"; + public static final String ARTIFACT_ID_NAME_REGEX = "^[a-zA-Z]+[a-zA-Z0-9_-]*$"; + public static final String PACKAGE_NAME_REGEX = "^[a-z]+(\\.[a-z][a-z0-9]*)*$"; + public static final String PROJECT_NAME_REGEX = "^[a-zA-Z]+([a-zA-Z0-9 _-]*)*$"; + public static final String VERSION_NAME_REGEX = "^[a-zA-Z0-9]+(\\.[a-zA-Z0-9]*)*$"; + + //Template paths + public static final String SLASH = "/"; + public static final String DOCROOT_PATH = "/docroot"; + public static final String MAVEN_WEBAPP_PATH = "/src/main/webapp"; + public static final String DOCROOT_WEB_INF = "/docroot/WEB-INF"; + public static final String ANT_WEB_INF_PATH = "/docroot/WEB-INF/"; + public static final String MAVEN_JAVA_PATH = "/src/main/java/"; + public static final String MAVEN_WEB_INF_PATH = "/src/main/webapp/WEB-INF"; + public static final String ANT_SRC_PATH = "/docroot/WEB-INF/src/"; + //public static final String MAVEN_SRC_PATH = "/src/main/webapp/WEB-INF/src/"; + public static final String DOCROOT_WEB_INF_TLD = "/docroot/WEB-INF/tld/"; + public static final String DOCROOT_WEB_INF_SPRING = "/docroot/WEB-INF/spring/"; + public static final String WEB_INF_SPRING = "/WEB-INF/spring-context/"; + public static final String TEMPLATES_ANT_SAMPLE_PORTLET_PATH = "tpl/ant"; + public static final String TEMPLATES_MAVEN_SAMPLE_PORTLET_PATH = "tpl/maven"; + public static final String TEMPLATES_FREEMARKER_PATH = "tpl"; + public static final String _SPRING = "/spring-context"; + public static final String PORTLETS = "/portlets"; + public static final String _PORTLETS_ = "/portlets/"; + + public static final String PORTLET_ = "-portlet"; + public static final String EXCEPTION = "exception"; + public static final String EX = "ex"; + public static final String LIB = "lib"; + public static final String _PORTLET_CONTEXT_XML = "-portlet-context.xml"; + public static final String SPRING_MVC_PORTLET_CONTEXT_FTL = "portlet-context.ftl"; + public static final String LIFERAY_DISPLAY_XML = "liferay-display.xml"; + public static final String LIFERAY_PLUGIN_PACKAGE_PROPERTIES = "liferay-plugin-package.properties"; + public static final String SAMPLE_CONTROLLER_FTL = "SampleController.ftl"; + public static final String LIFERAY_DISPLAY_FTL = "liferay-display.ftl"; + public static final String LIFERAY_PLUGIN_PACKAGE_FTL = "plugin-package.ftl"; + public static final String LIFERAY_PORTLET_XML = "liferay-portlet.xml"; + public static final String LIFERAY_PORTLET_FTL = "liferay-portlet.ftl"; + public static final String PORTLET_XML = "portlet.xml"; + public static final String VIEW_JSP = "view.jsp"; + public static final String BUILD_XML = "build.xml"; + public static final String _CLASSPATH = ".classpath"; + public static final String _PROJECT = ".project"; + public static final String PORTLET_FTL = "portlet.ftl"; + public static final String VIEW_FTL = "view.ftl"; + public static final String BUILD_FTL = "build.ftl"; + public static final String CLASSPATH_FTL = "classpath.ftl"; + public static final String PROJECT_FTL = "project.ftl"; + public static final String ICON_PNG = "icon.png"; + public static final String WEB_XML = "web.xml"; + public static final String LIFERAY_UTIL_TLD = "liferay-util.tld"; + public static final String LIFERAY_UI_TLD = "liferay-ui.tld"; + public static final String LIFERAY_THEME_TLD = "liferay-theme.tld"; + public static final String LIFERAY_SECURITY_TLD = "liferay-security.tld"; + public static final String LIFERAY_PORTLET_TLD = "liferay-portlet.tld"; + public static final String LIFERAY_PORTLET_EXT_TLD = "liferay-portlet-ext.tld"; + public static final String AUI_TLD = "aui.tld"; + public static final String APPLICATION_CONTEXT_XML = "application-context.xml"; + public static final String MANIFEST_MF = "MANIFEST.MF"; + public static final String ICON2 = "icon"; + public static final String _ICON_PNG = "/icon.png"; + public static final String HEADER_PORTLET_CSS = "header-portlet-css"; + public static final String FOOTER_PORTLET_JAVASCRIPT = "footer-portlet-javascript"; + public static final String CSS_CLASS_WRAPPER = "css-class-wrapper"; + public static final String MAIN_JS = "main.js"; + public static final String MAIN_CSS = "main.css"; + public static final String JS_MAIN_JS = "/js/main.js"; + public static final String CSS_MAIN_CSS = "/css/main.css"; + public static final String APPLICATION_CONTEXT_XML_PATH = "docroot/WEB-INF/spring-context/application-context.xml"; + public static final String MVN_APPLICATION_CONTEXT_XML_PATH = "src/main/webapp/WEB-INF/spring-context/application-context.xml"; + public static final String FORMAT_PRETTY_PRINT = "format-pretty-print"; + public static final String PORTLET__NAME = "portlet-name"; + public static final String CATEGORY = "category"; + public static final String NAME = "name"; + public static final String ID = "id"; + public static final String __PORTLET2 = "-portlet"; + public static final String MIME_TYPE = "mime-type"; + public static final String TEXT_HTML = "text/html"; + + public static final String LOGGER_STATEMENT = "loggerStatement"; + public static final String LOGGER_DECLARATION = "loggerDeclaration"; + public static final String LOGGER_IMPORT = "loggerImport"; + public static final String EXCEPTION_STATEMENT = "exceptionStatement"; + public static final String EXCEPTION_METHOD = "exceptionMethod"; + public static final String EXCEPTION_IMPORT = "exceptionImport"; + public static final String PORTLET_CLASS = "portletClass"; + public static final String VIEW_PATH = "viewPath"; + public static final String DISPLAY_CATEGORY = "displayCategory"; + public static final String PORTLET_CONFIG_NAME = "portletConfigName"; + public static final String PORTLET_NAME = "portletName"; + public static final String PORTLET_DISPLAY_NAME = "portletDisplayName"; + public static final String PROJECT_NAME = "projectName"; + public static final String PACKAGE_NAME = "packageName"; + + public static final String EMPTY = ""; + public static final String DOT = "."; + public static final String WIZARD_PAGE = "wizardPage"; + + public static final String PORTLET = "portlet"; + public static final String CREATING = "Creating "; + + public static final String PORTLETS_LBL = "portlets"; + + public static final String FREEMARKET_VERSION = "2.3.0"; + +} diff --git a/src/com/accenture/liferayspringplugin/wizards/LiferaySpringWizard.java b/src/com/accenture/liferayspringplugin/wizards/LiferaySpringWizard.java new file mode 100644 index 0000000..4485758 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/LiferaySpringWizard.java @@ -0,0 +1,288 @@ +package com.accenture.liferayspringplugin.wizards; + +import static com.accenture.liferayspringplugin.wizards.Constants.*; + +import java.io.File; +import java.lang.reflect.InvocationTargetException; +import java.net.URL; +import java.util.HashMap; +import java.util.Locale; +import java.util.Map; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.operation.IRunnableWithProgress; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.wizard.Wizard; +import org.eclipse.ui.INewWizard; +import org.eclipse.ui.IWorkbench; +import org.eclipse.ui.IWorkbenchWizard; + +import com.accenture.liferayspringplugin.wizards.plugin.FinishWizardPage; +import com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringAntWizardPage; +import com.accenture.liferayspringplugin.wizards.plugin.LiferaySpringMavenWizardPage; +import com.accenture.liferayspringplugin.wizards.plugin.LoggerWizardPage; +import com.accenture.liferayspringplugin.wizards.plugin.PluginTypeWizardPage; + +import freemarker.template.Configuration; +import freemarker.template.TemplateExceptionHandler; +import freemarker.template.Version; + +/** + * This is a Liferay Spring Portlet wizard. Its role is to create a new ant + * based spring portlet. + * + * @author Digital Liferay Capability IDC + */ + +public class LiferaySpringWizard extends Wizard implements INewWizard { + private PluginTypeWizardPage pTypePage; + private LiferaySpringAntWizardPage antPage; + private LiferaySpringMavenWizardPage mvnPage; + private LoggerWizardPage lPage; + private FinishWizardPage fPage; + + /** + * Constructor for LiferaySpringWizard. + */ + public LiferaySpringWizard() { + super(); + setNeedsProgressMonitor(true); + } + + /** + * Adding the page to the wizard. + */ + + public void addPages() { + antPage = new LiferaySpringAntWizardPage(); + mvnPage = new LiferaySpringMavenWizardPage(this); + pTypePage = new PluginTypeWizardPage(this, antPage, mvnPage); + addPage(pTypePage); + addPage(mvnPage); + addPage(antPage); + lPage = new LoggerWizardPage(); + addPage(lPage); + fPage = new FinishWizardPage(); + addPage(fPage); + } + + /** + * This method is called when 'Finish' button is pressed in the wizard. We + * will create an operation and run it using wizard as execution context. + */ + public boolean performFinish() { + + final String sdkPath; + final String projectName; + final String portletName; + final String packageName; + final String viewPath; + final String displayCategory; + + if(pTypePage.isAntPlugin()) { + //Get details if plugin type is ant + sdkPath = antPage.getSdkHome(); + portletName = antPage.getPortletName(); + packageName = antPage.getPackageName(); + viewPath = antPage.getJspPath(); + displayCategory = antPage.getDisplayCategry(); + projectName = antPage.getProjectName(); + } else { + //Get details if plugin type is maven + sdkPath = mvnPage.getSdkHome(); + portletName = mvnPage.getPortletName(); + packageName = mvnPage.getPackageName(); + viewPath = mvnPage.getJspPath(); + displayCategory = mvnPage.getDisplayCategry(); + if(mvnPage.getProjectName().length() == 0) { + projectName = mvnPage.getGroupId(); + } else { + projectName = mvnPage.getProjectName(); + } + } + + IRunnableWithProgress op = new IRunnableWithProgress() { + public void run(IProgressMonitor monitor) + throws InvocationTargetException { + try { + doFinish(sdkPath, projectName, portletName, packageName, + viewPath, displayCategory, monitor); + } catch (CoreException e) { + throw new InvocationTargetException(e); + } finally { + monitor.done(); + } + } + }; + try { + getContainer().run(true, false, op); + } catch (InterruptedException e) { + return false; + } catch (InvocationTargetException e) { + Throwable realException = e.getTargetException(); + MessageDialog.openError(getShell(), "Error", + realException.getMessage()); + return false; + } + return true; + } + + /** + * The worker method. It will find the container, create the file if missing + * or just replace its contents, and open the editor on the newly created + * file. + * + * @param displayCategory + * @param viewPath + * @param packageName + * @param portletName + * @param enabledSDK + */ + + private void doFinish(String sdkPath, String projectName, + String portletName, String packageName, String viewPath, + String displayCategory, IProgressMonitor monitor) + throws CoreException { + // create a sample file + monitor.beginTask(CREATING + projectName, 2); + String groupId = EMPTY; + String artifactId = EMPTY; + String version = EMPTY; + if(!pTypePage.isAntPlugin()) { + groupId = projectName; + artifactId = portletName; + version = packageName; + String packageSuffix = portletName; + packageSuffix = packageSuffix.replaceAll("[^a-zA-Z0-9]", ""); + packageName = projectName + DOT + packageSuffix; + projectName = portletName; + } else if(!projectName.endsWith(PORTLET)) { + projectName = projectName + PORTLET_; + } + + try { + + File file = WizardUtil.getPluginLocation(sdkPath, pTypePage.isAntPlugin() && antPage.isEnabledSDK()); + + if (file.isDirectory()) { + File projectFolder = new File(file, projectName); + projectFolder.mkdir(); + + // 1. Configure FreeMarker + // + // You should do this ONLY ONCE, when your application starts, + // then reuse the same Configuration object elsewhere. + + Configuration cfg = new Configuration(new Version(FREEMARKET_VERSION)); + + // Where do we load the templates from: + cfg.setClassForTemplateLoading(LiferaySpringWizard.class, + TEMPLATES_FREEMARKER_PATH); + + // Some other recommended settings: + cfg.setIncompatibleImprovements(new Version(2, 3, 20)); + cfg.setDefaultEncoding("UTF-8"); + cfg.setLocale(Locale.US); + cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER); + + // 2. Proccess template(s) + // + // You will do this for several times in typical applications. + + // 2.1. Prepare the template input: + + Map input = new HashMap(); + + input.put(PROJECT_NAME, projectName); + String portletDisplayName = portletName.substring(0, 1).toUpperCase() + portletName.substring(1); + input.put(PORTLET_DISPLAY_NAME, portletDisplayName); + input.put(PORTLET_NAME, portletName); + String portletConfigName = portletName.replaceAll(PORTLET_NAME_REPLACE_REGEX, "-"); + input.put(PORTLET_CONFIG_NAME, portletConfigName); + input.put(DISPLAY_CATEGORY, displayCategory); + if(!viewPath.endsWith(SLASH)) { + viewPath = viewPath + SLASH ; + } + if(!viewPath.startsWith(SLASH)) { + viewPath = SLASH + viewPath; + } + input.put(VIEW_PATH, viewPath); + + StringBuilder portletClass = new StringBuilder(); + for (String word : portletName.split(PORTLET_NAME_SPLIT)) { + portletClass.append(word.substring(0, 1).toUpperCase() + word.substring(1)); + } + String pClass = portletClass.toString().replaceAll(PORTLET_NAME_REPLACE_REGEX, EMPTY); + + input.put(PORTLET_CLASS, pClass ); + input.put(PACKAGE_NAME, packageName); + + String loggerImport = EMPTY; + String loggerDeclaration = EMPTY; + String loggerStatement = EMPTY; + String exceptionImport = EMPTY; + String exceptionMethod = EMPTY; + String exceptionStatement = EMPTY; + if(lPage.isLogEnabled()) { + loggerImport = "\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;"; + loggerDeclaration = "Logger logger = LoggerFactory.getLogger(" + pClass + ".class);\n"; + loggerStatement = "logger.info(\"In render method...\");"; + } + String pluginMainException = EMPTY; + if(lPage.isExceptionEnabled()) { + StringBuilder projectExceptionName = new StringBuilder(); + for (String word : projectName.split(PORTLET_NAME_SPLIT)) { + projectExceptionName.append(word.substring(0, 1).toUpperCase() + word.substring(1)); + } + pluginMainException = projectExceptionName.toString().replaceAll(PORTLET_NAME_REPLACE_REGEX, EMPTY) + "MainException"; + + exceptionImport = "import " + packageName + ".exception." + pluginMainException + ";"; + exceptionMethod = "// Sample method \n\t private void foo() throws " + pluginMainException + "{ \n\t\t throw new " + pluginMainException + "(\"Throwing " + pluginMainException + "\"); \n\t }"; + if(lPage.isLogEnabled()) { + exceptionStatement = "try { \n\t\t\t foo(); \n\t\t } catch (" + pluginMainException + " e) { \n\t\t\t logger.error(e.getMessage()); \n\t\t }"; + } else { + exceptionStatement = "try { \n\t\t\t foo(); \n\t\t } catch (" + pluginMainException + " e) { \n\t\t\t // TODO Auto-generated catch block \n\t\t\t e.printStackTrace(); \n\t\t }"; + } + } + input.put(LOGGER_IMPORT, loggerImport); + input.put(LOGGER_DECLARATION, loggerDeclaration); + input.put(LOGGER_STATEMENT, loggerStatement); + input.put(EXCEPTION_IMPORT, exceptionImport); + input.put(EXCEPTION_METHOD, exceptionMethod); + input.put(EXCEPTION_STATEMENT, exceptionStatement); + //viewPath = DOCROOT_PATH + viewPath; + + if(pTypePage.isAntPlugin()) { + String srcFolder = ANT_SRC_PATH + packageName.replace(".", SLASH); + URL antTplPath = getClass().getResource(TEMPLATES_ANT_SAMPLE_PORTLET_PATH); + WizardUtil.createAntPlugin(viewPath, projectFolder, antTplPath, cfg, input, + portletConfigName, pClass, pluginMainException, srcFolder, lPage); + } else { + String srcFolder = MAVEN_JAVA_PATH + packageName.replace(".", SLASH); + URL mavenTplPath = getClass().getResource(TEMPLATES_MAVEN_SAMPLE_PORTLET_PATH); + input.put("groupId", groupId); + input.put("artifactId", artifactId); + input.put("version", version); + WizardUtil.createMavenPlugin(viewPath, projectFolder, mavenTplPath, cfg, input, + portletConfigName, pClass, pluginMainException, srcFolder, lPage); + } + } + } catch (Exception e) { + WizardUtil.log(e); + } + monitor.worked(1); + + } + + /** + * We will accept the selection in the workbench to see if we can initialize + * from it. + * + * @see IWorkbenchWizard#init(IWorkbench, IStructuredSelection) + */ + public void init(IWorkbench workbench, IStructuredSelection selection) { + //this.selection = selection; + } +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/SpringPortletWizard.java b/src/com/accenture/liferayspringplugin/wizards/SpringPortletWizard.java new file mode 100644 index 0000000..fe27629 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/SpringPortletWizard.java @@ -0,0 +1,383 @@ +package com.accenture.liferayspringplugin.wizards; + +import java.io.File; +import java.io.FileNotFoundException; +import java.lang.reflect.InvocationTargetException; +import java.util.HashMap; +import java.util.Locale; +import java.util.Map; +import java.util.Scanner; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.operation.IRunnableWithProgress; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.wizard.Wizard; +import org.eclipse.ui.INewWizard; +import org.eclipse.ui.IWorkbench; +import org.eclipse.ui.IWorkbenchWizard; + +import com.accenture.liferayspringplugin.wizards.portlet.FinishWizardPage; +import com.accenture.liferayspringplugin.wizards.portlet.PluginTypeWizardPage; +import com.accenture.liferayspringplugin.wizards.portlet.SpringPortletMavenWizardPage; +import com.accenture.liferayspringplugin.wizards.portlet.SpringPortletAntWizardPage; + +import freemarker.template.Configuration; +import freemarker.template.TemplateExceptionHandler; +import freemarker.template.Version; +import static com.accenture.liferayspringplugin.wizards.Constants.*; + +/** + * This is a Spring Portlet wizard. Its role is to create a new ant + * based spring portlet. + * + * @author Digital Liferay Capability IDC + */ + +public class SpringPortletWizard extends Wizard implements INewWizard { + private SpringPortletAntWizardPage antPage; + private PluginTypeWizardPage pTypePage; + private SpringPortletMavenWizardPage mavenPage; + private ISelection selection; + + /** + * Constructor for LiferaSpringWizard. + */ + public SpringPortletWizard() { + super(); + setNeedsProgressMonitor(true); + } + + /** + * Adding the page to the wizard. + */ + + public void addPages() { + antPage = new SpringPortletAntWizardPage(); + mavenPage = new SpringPortletMavenWizardPage(this, antPage); + pTypePage = new PluginTypeWizardPage(this, antPage, mavenPage); + addPage(pTypePage); + addPage(mavenPage); + addPage(antPage); + addPage(new FinishWizardPage()); + } + + /** + * This method is called when 'Finish' button is pressed in the wizard. We + * will create an operation and run it using wizard as execution context. + */ + public boolean performFinish() { + + final String sdkPath; + final String projectName; + final String portletName; + final String packageName; + final String viewPath; + final String displayCategory; + + if(pTypePage.isAntPlugin()) { + sdkPath = antPage.getSdkHome(); + projectName = antPage.getProjectName(); + portletName = antPage.getPortletName(); + packageName = antPage.getPackageName(); + viewPath = antPage.getJspPath(); + displayCategory = antPage.getDisplayCategry(); + } else { + sdkPath = mavenPage.getSdkHome(); + projectName = mavenPage.getProjectName(); + portletName = mavenPage.getPortletName(); + packageName = EMPTY; + viewPath = mavenPage.getJspPath(); + displayCategory = mavenPage.getDisplayCategry(); + } + + IRunnableWithProgress op = new IRunnableWithProgress() { + public void run(IProgressMonitor monitor) + throws InvocationTargetException { + try { + doFinish(sdkPath, projectName, portletName, packageName, + viewPath, displayCategory, monitor); + } catch (CoreException e) { + throw new InvocationTargetException(e); + } finally { + monitor.done(); + } + } + }; + try { + getContainer().run(true, false, op); + } catch (InterruptedException e) { + return false; + } catch (InvocationTargetException e) { + Throwable realException = e.getTargetException(); + MessageDialog.openError(getShell(), "Error", + realException.getMessage()); + return false; + } + return true; + } + + /** + * The worker method. It will find the container, create the file if missing + * or just replace its contents, and open the editor on the newly created + * file. + * + * @param displayCategory + * @param viewPath + * @param packageName + * @param portletName + */ + + private void doFinish(String sdkPath, String projectName, + String portletName, String packageName, String viewPath, + String displayCategory, IProgressMonitor monitor) + throws CoreException { + // create a sample file + monitor.beginTask("Creating " + projectName, 2); + + try { + + File file; + if(pTypePage.isAntPlugin() && antPage.isEnabledSDK()) { + file = new File(sdkPath + "/portlets"); + } else { + file = new File(sdkPath); + } + if (file.isDirectory()) { + File projectFolder = new File(file, projectName); + + // 1. Configure FreeMarker + // + // You should do this ONLY ONCE, when your application starts, + // then reuse the same Configuration object elsewhere. + + Configuration cfg = new Configuration(new Version(FREEMARKET_VERSION)); + + // Where do we load the templates from: + cfg.setClassForTemplateLoading(SpringPortletWizard.class, + TEMPLATES_FREEMARKER_PATH); + + // Some other recommended settings: + cfg.setIncompatibleImprovements(new Version(2, 3, 20)); + cfg.setDefaultEncoding("UTF-8"); + cfg.setLocale(Locale.US); + cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER); + + // 2. Proccess template(s) + // + // You will do this for several times in typical applications. + + // 2.1. Prepare the template input: + + Map input = new HashMap(); + + input.put(PROJECT_NAME, projectName); + String portletDisplayName = portletName.substring(0, 1).toUpperCase() + portletName.substring(1); + input.put(PORTLET_DISPLAY_NAME, portletDisplayName); + input.put(PORTLET_NAME, portletName); + String portletConfigName = portletName.replaceAll(PORTLET_NAME_REPLACE_REGEX, "-"); + input.put(PORTLET_CONFIG_NAME, portletConfigName); + input.put(DISPLAY_CATEGORY, displayCategory); + if(!viewPath.endsWith(SLASH)) { + viewPath = viewPath + SLASH ; + } + if(!viewPath.startsWith(SLASH)) { + viewPath = SLASH + viewPath; + } + input.put(VIEW_PATH, viewPath); + + StringBuilder portletClass = new StringBuilder(); + for (String word : portletName.split(PORTLET_NAME_SPLIT)) { + portletClass.append(word.substring(0, 1).toUpperCase() + word.substring(1)); + } + String pClass = portletClass.toString().replaceAll(PORTLET_NAME_REPLACE_REGEX, EMPTY); + + input.put(PORTLET_CLASS, pClass ); + if(!pTypePage.isAntPlugin()) { + packageName = getMavenPackage(projectFolder); + } + input.put(PACKAGE_NAME, packageName); + + boolean isLogEnabled = isLoggerEnabled(projectFolder, pTypePage.isAntPlugin()); + boolean isExceptionEnabled = isExceptionEnabled(projectFolder); + + String loggerImport = EMPTY; + String loggerDeclaration = EMPTY; + String loggerStatement = EMPTY; + String exceptionImport = EMPTY; + String exceptionMethod = EMPTY; + String exceptionStatement = EMPTY; + if(isLogEnabled) { + loggerImport = "\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;"; + loggerDeclaration = "Logger logger = LoggerFactory.getLogger(" + pClass + ".class);\n"; + loggerStatement = "logger.info(\"In render method...\");"; + } + String pluginMainException = EMPTY; + if(isExceptionEnabled) { + StringBuilder projectExceptionName = new StringBuilder(); + for (String word : projectName.split(PORTLET_NAME_SPLIT)) { + projectExceptionName.append(word.substring(0, 1).toUpperCase() + word.substring(1)); + } + pluginMainException = projectExceptionName.toString().replaceAll(PORTLET_NAME_REPLACE_REGEX, EMPTY) + "MainException"; + + exceptionImport = "import " + packageName + ".exception." + pluginMainException + ";"; + exceptionMethod = "// Sample method \n\t private void foo() throws " + pluginMainException + "{ \n\t\t throw new " + pluginMainException + "(\"Throwing " + pluginMainException + "\"); \n\t }"; + if(isLogEnabled) { + exceptionStatement = "try { \n\t\t\t foo(); \n\t\t } catch (" + pluginMainException + " e) { \n\t\t\t logger.error(e.getMessage()); \n\t\t }"; + } else { + exceptionStatement = "try { \n\t\t\t foo(); \n\t\t } catch (" + pluginMainException + " e) { \n\t\t\t // TODO Auto-generated catch block \n\t\t\t e.printStackTrace(); \n\t\t }"; + } + } + input.put(LOGGER_IMPORT, loggerImport); + input.put(LOGGER_DECLARATION, loggerDeclaration); + input.put(LOGGER_STATEMENT, loggerStatement); + input.put(EXCEPTION_IMPORT, exceptionImport); + input.put(EXCEPTION_METHOD, exceptionMethod); + input.put(EXCEPTION_STATEMENT, exceptionStatement); + + if(pTypePage.isAntPlugin()) { + String srcFolder = ANT_SRC_PATH + packageName.replace(".", SLASH); + WizardUtil.addAntPortlet(sdkPath, projectName, portletName, viewPath, + displayCategory, projectFolder, cfg, input, + portletDisplayName, portletConfigName, pClass, + isExceptionEnabled, pluginMainException, srcFolder, antPage.isEnabledSDK()); + } else { + String srcFolder = MAVEN_JAVA_PATH + packageName.replace(".", SLASH); + WizardUtil.addMavenPortlet(sdkPath, projectName, portletName, viewPath, + displayCategory, projectFolder, cfg, input, + portletDisplayName, portletConfigName, pClass, + isExceptionEnabled, pluginMainException, srcFolder); + } + + } + } catch (Exception e) { + WizardUtil.log(e); + } + monitor.worked(1); + + } + + /** + * This method will return package name of maven project. + * + * @param projectFolder + * @return + */ + private String getMavenPackage(File projectFolder) { + File src = new File(projectFolder, MAVEN_JAVA_PATH); + File exceptionDir = null; + if(src.isDirectory()) { + exceptionDir = getSrcPackage(src); + } + if(exceptionDir == null) { + return EMPTY; + } + String absolutePath = exceptionDir.getAbsolutePath(); + absolutePath = absolutePath.replaceAll("\\\\", "."); + absolutePath = absolutePath.replaceAll(SLASH, "."); + String path = absolutePath.substring(absolutePath.indexOf(".src.main.java.")+15); + return path; + } + + /** + * This method will return directory of portlet package. + * + * @param src + * @return + */ + private File getSrcPackage(File src) { + for(File file : src.listFiles()) { + if(file.isDirectory()) { + if(file.getName().contains(EXCEPTION)) { + return src; + } + else { + File exceptionDir = getSrcPackage(file); + if(exceptionDir != null) { + return exceptionDir; + } + } + } + } + return null; + } + + /** + * It will return true if Exception is enabled in provided plugin. + * + * @param src + * @return + */ + private boolean isExceptionEnabled(File src) { + return isFileExist(src, "NoSuchModelException.java"); + } + + /** + * It will return true if logger is enabled in provided plugin. + * + * @param src + * @param isAnt + * @return + */ + private boolean isLoggerEnabled(File src, boolean isAnt) { + if(isAnt) { + return isFileExist(src, "slf4j-api-1.7.12.jar"); + } + + File file = new File(src, "pom.xml"); + if(file.exists()) { + try { + final Scanner scanner = new Scanner(file); + while (scanner.hasNextLine()) { + final String lineFromFile = scanner.nextLine(); + if(lineFromFile.contains("org.slf4j")) { + return true; + } + } + } catch (FileNotFoundException e) { + WizardUtil.log(e); + } + } + return false; + } + + /** + * It check if given file name exist in provided src directory. + * + * @param src + * @param fileName + * @return + */ + private boolean isFileExist(File src, String fileName){ + if (src.isDirectory()) { + + // list all the directory contents + File[] files = src.listFiles(); + + for (File file : files) { + if(file.isDirectory()) { + boolean fileExist = isFileExist(file, fileName); + if(fileExist) { + return fileExist; + } + } else if(file.getAbsolutePath().contains(fileName)){ + return true; + } + } + + } + return false; + } + + /** + * We will accept the selection in the workbench to see if we can initialize + * from it. + * + * @see IWorkbenchWizard#init(IWorkbench, IStructuredSelection) + */ + public void init(IWorkbench workbench, IStructuredSelection selection) { + this.selection = selection; + } +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/WizardUtil.java b/src/com/accenture/liferayspringplugin/wizards/WizardUtil.java new file mode 100644 index 0000000..63fe4b0 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/WizardUtil.java @@ -0,0 +1,814 @@ +package com.accenture.liferayspringplugin.wizards; + +import static com.accenture.liferayspringplugin.wizards.Constants.*; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.FileWriter; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.io.Writer; +import java.net.URL; +import java.util.Map; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; + +import org.eclipse.core.resources.IResource; +import org.eclipse.core.runtime.FileLocator; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.ILog; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Platform; +import org.eclipse.core.runtime.Status; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.osgi.framework.Bundle; +import org.osgi.framework.FrameworkUtil; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; +import org.w3c.dom.ls.DOMImplementationLS; +import org.w3c.dom.ls.LSOutput; +import org.w3c.dom.ls.LSSerializer; +import org.xml.sax.SAXException; + +import com.accenture.liferayspringplugin.wizards.plugin.LoggerWizardPage; + +import freemarker.core.ParseException; +import freemarker.template.Configuration; +import freemarker.template.MalformedTemplateNameException; +import freemarker.template.Template; +import freemarker.template.TemplateException; +import freemarker.template.TemplateNotFoundException; + +/** + * This calss hase utitlity methods which required in wizard classes. + * + * @author Digital Liferay Capability IDC + * + */ +public class WizardUtil { + + + /** + * This method will append "portlet" entry in existing portlet.xml file. + * + * @param filePath + * @param portletName + * @param portletDisplayName + * @param portletConfigName + * @return + */ + public static boolean addPortletEntry(String filePath, String portletName, + String portletDisplayName, String portletConfigName) { + try { + Document doc = getDoc(filePath); + + // Get the root element + Node portletApp = doc.getFirstChild(); + + Element portlet = doc.createElement(PORTLET); + + Element pName = doc.createElement(PORTLET__NAME); + pName.appendChild(doc.createTextNode(portletName)); + portlet.appendChild(pName); + + Element dName = doc.createElement("display-name"); + dName.appendChild(doc.createTextNode(portletDisplayName)); + portlet.appendChild(dName); + + Element pClass = doc.createElement("portlet-class"); + pClass.appendChild(doc.createTextNode("org.springframework.web.portlet.DispatcherPortlet")); + portlet.appendChild(pClass); + + Element initParam = doc.createElement("init-param"); + Element paramName = doc.createElement(NAME); + paramName.appendChild(doc.createTextNode("contextConfigLocation")); + Element paramValue = doc.createElement("value"); + paramValue.appendChild(doc.createTextNode(WEB_INF_SPRING+portletConfigName+_PORTLET_CONTEXT_XML)); + initParam.appendChild(paramName); + initParam.appendChild(paramValue); + portlet.appendChild(initParam); + + Element exCache = doc.createElement("expiration-cache"); + exCache.appendChild(doc.createTextNode("0")); + portlet.appendChild(exCache); + + Element supports = doc.createElement("supports"); + Element mineType = doc.createElement(MIME_TYPE); + mineType.appendChild(doc.createTextNode(TEXT_HTML)); + supports.appendChild(mineType); + portlet.appendChild(supports); + + Element pInfo = doc.createElement("portlet-info"); + Element title = doc.createElement("title"); + title.appendChild(doc.createTextNode(portletDisplayName)); + Element sTitle = doc.createElement("short-title"); + sTitle.appendChild(doc.createTextNode(portletDisplayName)); + Element keywords = doc.createElement("keywords"); + keywords.appendChild(doc.createTextNode(portletDisplayName)); + pInfo.appendChild(title); + pInfo.appendChild(sTitle); + pInfo.appendChild(keywords); + portlet.appendChild(pInfo); + + Element AdminRoleRef = doc.createElement("security-role-ref"); + Element aRoleName = doc.createElement("role-name"); + aRoleName.appendChild(doc.createTextNode("administrator")); + AdminRoleRef.appendChild(aRoleName); + portlet.appendChild(AdminRoleRef); + + Element guestRoleRef = doc.createElement("security-role-ref"); + Element gRoleName = doc.createElement("role-name"); + gRoleName.appendChild(doc.createTextNode("guest")); + guestRoleRef.appendChild(gRoleName); + portlet.appendChild(guestRoleRef); + + Element pUserRoleRef = doc.createElement("security-role-ref"); + Element pRoleName = doc.createElement("role-name"); + pRoleName.appendChild(doc.createTextNode("power-user")); + pUserRoleRef.appendChild(pRoleName); + portlet.appendChild(pUserRoleRef); + + Element userRoleRef = doc.createElement("security-role-ref"); + Element uRoleName = doc.createElement("role-name"); + uRoleName.appendChild(doc.createTextNode("user")); + userRoleRef.appendChild(uRoleName); + portlet.appendChild(userRoleRef); + + portletApp.appendChild(portlet); + + // write the content into xml file + writeXML(filePath, doc); + + return true; + } catch (Exception e) { + log(e); + } + return false; + } + + /** + * This method write xml document in provided path. + * + * @param filePath + * @param doc + * @throws FileNotFoundException + * @throws IOException + */ + private static void writeXML(String filePath, Document doc) throws FileNotFoundException, IOException { + DOMImplementationLS domImplementationLS = (DOMImplementationLS) doc.getImplementation().getFeature("LS", "3.0"); + + LSOutput lsOutput = domImplementationLS.createLSOutput(); + FileOutputStream outputStream = new FileOutputStream(filePath); + lsOutput.setByteStream((OutputStream) outputStream); + LSSerializer lsSerializer = domImplementationLS.createLSSerializer(); + lsSerializer.getDomConfig().setParameter(FORMAT_PRETTY_PRINT, Boolean.TRUE); + lsSerializer.write(doc, lsOutput); + outputStream.close(); + } + + /** + * This method will append "portlet" entry in existing liferay-portlet.xml file. + * + * @param filePath + * @param portletName + * @param portletClass + * @return + */ + public static boolean addLiferayPortletEntry(String filePath, String portletName, + String portletClass) { + try { + Document doc = getDoc(filePath); + + // Get the root element + Node lrPortletApp = doc.getLastChild(); + + NodeList childNodes = lrPortletApp.getChildNodes(); + + Node rollMapper = null; + for (int i=0; i < childNodes.getLength(); i++) { + Node lPortlet = childNodes.item(i); + if(!PORTLET.equals(lPortlet.getNodeName())) { + rollMapper = lPortlet; + break; + } + } + if(rollMapper == null) { + return false; + } + + Element portlet = doc.createElement(PORTLET); + + Element pName = doc.createElement(PORTLET__NAME); + pName.appendChild(doc.createTextNode(portletName)); + portlet.appendChild(pName); + + Element icon = doc.createElement(ICON2); + icon.appendChild(doc.createTextNode(_ICON_PNG)); + portlet.appendChild(icon); + + Element headerCSS = doc.createElement(HEADER_PORTLET_CSS); + headerCSS.appendChild(doc.createTextNode(CSS_MAIN_CSS)); + portlet.appendChild(headerCSS); + + Element headerJS = doc.createElement(FOOTER_PORTLET_JAVASCRIPT); + headerJS.appendChild(doc.createTextNode(JS_MAIN_JS)); + portlet.appendChild(headerJS); + + Element cssClassWrapper = doc.createElement(CSS_CLASS_WRAPPER); + cssClassWrapper.appendChild(doc.createTextNode(portletClass)); + portlet.appendChild(cssClassWrapper); + + lrPortletApp.insertBefore(portlet, rollMapper); + + // write the content into xml file + writeXML(filePath, doc); + + } catch (Exception e) { + log(e); + } + return false; + } + + /** + * This method will append "portlet" entry in existing liferay-display.xml file. + * + * @param filePath + * @param portletName + * @param displayCategory + * @return + */ + public static boolean addLiferayDisplayEntry(String filePath, String portletName, + String displayCategory) { + try { + Document doc = getDoc(filePath); + + // Get the root element + Node display = doc.getLastChild(); + boolean isCategoryExist = false; + NodeList childNodes = display.getChildNodes(); + for(int i=0; i < childNodes.getLength(); i++) { + if(CATEGORY.equals(childNodes.item(i).getNodeName()) && childNodes.item(i).getAttributes() != null && displayCategory.equals(childNodes.item(i).getAttributes().getNamedItem(NAME).getNodeValue())) { + Element portlet = doc.createElement(PORTLET); + portlet.setAttribute(ID, portletName); + childNodes.item(i).appendChild(portlet); + isCategoryExist = true; + break; + } + } + + if(!isCategoryExist){ + Element category = doc.createElement(CATEGORY); + category.setAttribute(NAME, displayCategory); + + Element portlet = doc.createElement(PORTLET); + portlet.setAttribute(ID, portletName); + category.appendChild(portlet); + + display.appendChild(category); + } + + writeXML(filePath, doc); + + } catch (Exception e) { + log(e); + } + return false; + } + + /** + * This method load XML from provided file path and return document. + * + * @param filePath + * @return + * @throws ParserConfigurationException + * @throws SAXException + * @throws IOException + */ + private static Document getDoc(String filePath) throws ParserConfigurationException, SAXException, IOException { + DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); + DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); + Document doc = docBuilder.parse(filePath); + return doc; + } + + /** + * This method parse provided freemarker template and write file in provided path. + * + * @param cfg + * @param input + * @param projectFolder + * @param filePath + * @param ftlName + * @param outputFileName + * @throws TemplateNotFoundException + * @throws MalformedTemplateNameException + * @throws ParseException + * @throws IOException + * @throws TemplateException + */ + public static void addFileFromTemplate(Configuration cfg, Map input, + File projectFolder, String filePath, String ftlName, String outputFileName) + throws TemplateNotFoundException, MalformedTemplateNameException, + ParseException, IOException, TemplateException { + File sourceFolder = projectFolder; + if(filePath != null && filePath.trim().length() > 0) { + sourceFolder = new File(projectFolder, filePath); + if(!sourceFolder.exists()) { + sourceFolder.mkdirs(); + } + } + // 2.2. Get the template + + Template template = cfg.getTemplate(ftlName); + // 2.3. Generate the output + + // Write output to the file: + Writer fileWriter = new FileWriter(new File(sourceFolder, + outputFileName)); + try { + template.process(input, fileWriter); + } catch(Exception e){ + log(e); + } finally { + fileWriter.close(); + } + } + + /** + * + * @param sel + * @return + */ + public IResource extractSelection(ISelection sel) { + if (!(sel instanceof IStructuredSelection)) + return null; + IStructuredSelection ss = (IStructuredSelection) sel; + Object element = ss.getFirstElement(); + if (element instanceof IResource) + return (IResource) element; + if (!(element instanceof IAdaptable)) + return null; + IAdaptable adaptable = (IAdaptable)element; + Object adapter = adaptable.getAdapter(IResource.class); + return (IResource) adapter; + } + + /** + * + * @param sdkPath + * @param projectName + * @param portletName + * @return + */ + public static boolean isPortletExist(String sdkPath, String projectName, String portletName) { + File file = new File(sdkPath + PORTLETS); + File projectFolder = new File(file, projectName + DOCROOT_WEB_INF_SPRING + portletName + _PORTLET_CONTEXT_XML); + + return projectFolder.exists(); + } + + /** + * + * @param sdkPath + * @param projectName + * @return + */ + public static boolean isProjectExist(String sdkPath, String projectName) { + if(!projectName.endsWith(PORTLET)) { + projectName = projectName + __PORTLET2; + } + File file = new File(sdkPath + PORTLETS); + File projectFolder = new File(file, projectName); + return projectFolder.exists(); + } + + /** + * + * @param sdkPath + * @param isEnabledSDK + * @return + */ + public static File getPluginLocation(String sdkPath, boolean isEnabledSDK){ + if(isEnabledSDK) { + return new File(sdkPath + PORTLETS); + } + return new File(sdkPath); + } + + /** + * + * @param viewPath + * @param projectFolder + * @param fPath + * @param cfg + * @param input + * @param portletConfigName + * @param pClass + * @param pluginMainException + * @param srcFolder + * @param lPage + * @throws TemplateNotFoundException + * @throws MalformedTemplateNameException + * @throws ParseException + * @throws IOException + * @throws TemplateException + */ + public static void createAntPlugin(String viewPath, File projectFolder, + URL fPath, Configuration cfg, Map input, + String portletConfigName, String pClass, + String pluginMainException, String srcFolder, LoggerWizardPage lPage) + throws TemplateNotFoundException, MalformedTemplateNameException, + ParseException, IOException, TemplateException { + viewPath = DOCROOT_PATH + viewPath; + try { + URL resolve = FileLocator.resolve(fPath); + + File srcFile = new File(resolve.toURI()); + copyFolder(srcFile, projectFolder); + } catch (Exception e) { + log(e); + } + + addFileFromTemplate(cfg, input, projectFolder, "/docroot/css/", MAIN_CSS, MAIN_CSS); + addFileFromTemplate(cfg, input, projectFolder, "/docroot/js/", MAIN_JS, MAIN_JS); + addFileFromTemplate(cfg, input, projectFolder, "/docroot/META-INF/", MANIFEST_MF, MANIFEST_MF); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF + _SPRING, APPLICATION_CONTEXT_XML, APPLICATION_CONTEXT_XML); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF_TLD, AUI_TLD, AUI_TLD); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF_TLD, LIFERAY_PORTLET_EXT_TLD, LIFERAY_PORTLET_EXT_TLD); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF_TLD, LIFERAY_PORTLET_TLD, LIFERAY_PORTLET_TLD); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF_TLD, LIFERAY_SECURITY_TLD, LIFERAY_SECURITY_TLD); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF_TLD, LIFERAY_THEME_TLD, LIFERAY_THEME_TLD); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF_TLD, LIFERAY_UI_TLD, LIFERAY_UI_TLD); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF_TLD, LIFERAY_UTIL_TLD, LIFERAY_UTIL_TLD); + addFileFromTemplate(cfg, input, projectFolder, ANT_WEB_INF_PATH, WEB_XML, WEB_XML); + addFileFromTemplate(cfg, input, projectFolder, "/docroot/", ICON_PNG, ICON_PNG); + + addFileFromTemplate(cfg, input, projectFolder, null, PROJECT_FTL, _PROJECT); + addFileFromTemplate(cfg, input, projectFolder, null, CLASSPATH_FTL, _CLASSPATH); + addFileFromTemplate(cfg, input, projectFolder, null, BUILD_FTL, BUILD_XML); + addFileFromTemplate(cfg, input, projectFolder, viewPath, VIEW_FTL, VIEW_JSP); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF, PORTLET_FTL, PORTLET_XML); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF, LIFERAY_PORTLET_FTL, LIFERAY_PORTLET_XML); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF, LIFERAY_PLUGIN_PACKAGE_FTL, LIFERAY_PLUGIN_PACKAGE_PROPERTIES); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF, LIFERAY_DISPLAY_FTL, LIFERAY_DISPLAY_XML); + addFileFromTemplate(cfg, input, projectFolder, srcFolder, SAMPLE_CONTROLLER_FTL, pClass + ".java"); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF + _SPRING, SPRING_MVC_PORTLET_CONTEXT_FTL, portletConfigName + _PORTLET_CONTEXT_XML); + + if(lPage.isLogEnabled()) { + + writeFile(projectFolder, ANT_WEB_INF_PATH, LIB, "slf4j-api-1.7.12.jar", "/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-api-1.7.12.jar"); + + if(lPage.isSimpleLogger()) { + writeFile(projectFolder, ANT_WEB_INF_PATH, LIB, "slf4j-simple-1.7.12.jar", "/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-api-1.7.12.jar"); + } else if(lPage.isLog4jLogger()) { + writeFile(projectFolder, ANT_WEB_INF_PATH, LIB, "slf4j-log4j12-1.7.12.jar", "/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-log4j12-1.7.12.jar"); + writeFile(projectFolder, ANT_WEB_INF_PATH, "src", "log4j.properties", "/com/accenture/liferayspringplugin/wizards/tpl/lib/log4j.properties"); + } else if(lPage.isJdk14Logger()) { + writeFile(projectFolder, ANT_WEB_INF_PATH, LIB, "slf4j-jdk14-1.7.12.jar", "/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-jdk14-1.7.12.jar"); + writeFile(projectFolder, ANT_WEB_INF_PATH, "src", "logging.properties", "/com/accenture/liferayspringplugin/wizards/tpl/lib/logging.properties"); + } else if(lPage.isLogbackLogger()) { + writeFile(projectFolder, ANT_WEB_INF_PATH, LIB, "logback-classic-1.1.3.jar", "/com/accenture/liferayspringplugin/wizards/tpl/lib/logback-classic-1.1.3.jar"); + writeFile(projectFolder, ANT_WEB_INF_PATH, LIB, "logback-core-1.1.3.jar", "/com/accenture/liferayspringplugin/wizards/tpl/lib/logback-core-1.1.3.jar"); + writeFile(projectFolder, ANT_WEB_INF_PATH, "src", "logback.xml", "/com/accenture/liferayspringplugin/wizards/tpl/lib/logback.xml"); + } + } + + if(lPage.isExceptionEnabled()) { + input.put("pluginMainException", pluginMainException); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "DuplicateEmail.ftl", "DuplicateUserEmailAddressException.java"); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "EmailAddress.ftl", "EmailAddressException.java"); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "NoSuchEmail.ftl", "NoSuchEmailAddressException.java"); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "NoSuchModel.ftl", "NoSuchModelException.java"); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "Password.ftl", "PasswordExpiredException.java"); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "WebsiteURL.ftl", "WebsiteURLException.java"); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "MainException.ftl", pluginMainException + ".java"); + } + } + + /** + * + * @param viewPath + * @param projectFolder + * @param fPath + * @param cfg + * @param input + * @param portletConfigName + * @param pClass + * @param pluginMainException + * @param srcFolder + * @param lPage + * @throws TemplateNotFoundException + * @throws MalformedTemplateNameException + * @throws ParseException + * @throws IOException + * @throws TemplateException + */ + public static void createMavenPlugin(String viewPath, File projectFolder, + URL fPath, Configuration cfg, Map input, + String portletConfigName, String pClass, + String pluginMainException, String srcFolder, LoggerWizardPage lPage) + throws TemplateNotFoundException, MalformedTemplateNameException, + ParseException, IOException, TemplateException { + viewPath = MAVEN_WEBAPP_PATH + viewPath; + try { + URL resolve = FileLocator.resolve(fPath); + + File srcFile = new File(resolve.toURI()); + copyFolder(srcFile, projectFolder); + } catch (Exception e) { + log(e); + } + + addFileFromTemplate(cfg, input, projectFolder, "/src/main/webapp/css/", MAIN_CSS, MAIN_CSS); + addFileFromTemplate(cfg, input, projectFolder, "/src/main/webapp/js/", MAIN_JS, MAIN_JS); + //addFileFromTemplate(cfg, input, projectFolder, "/docroot/META-INF/", MANIFEST_MF, MANIFEST_MF); + addFileFromTemplate(cfg, input, projectFolder, "/src/main/webapp/WEB-INF/spring-context/", APPLICATION_CONTEXT_XML, APPLICATION_CONTEXT_XML); + addFileFromTemplate(cfg, input, projectFolder, MAVEN_WEB_INF_PATH + SLASH, WEB_XML, WEB_XML); + addFileFromTemplate(cfg, input, projectFolder, "/src/main/webapp/", ICON_PNG, ICON_PNG); + + /*addFileFromTemplate(cfg, input, projectFolder, null, PROJECT_FTL, _PROJECT); + addFileFromTemplate(cfg, input, projectFolder, null, CLASSPATH_FTL, _CLASSPATH);*/ + //addFileFromTemplate(cfg, input, projectFolder, null, BUILD_FTL, BUILD_XML); + addFileFromTemplate(cfg, input, projectFolder, viewPath, VIEW_FTL, VIEW_JSP); + addFileFromTemplate(cfg, input, projectFolder, MAVEN_WEB_INF_PATH, PORTLET_FTL, PORTLET_XML); + addFileFromTemplate(cfg, input, projectFolder, MAVEN_WEB_INF_PATH, LIFERAY_PORTLET_FTL, LIFERAY_PORTLET_XML); + addFileFromTemplate(cfg, input, projectFolder, MAVEN_WEB_INF_PATH, LIFERAY_PLUGIN_PACKAGE_FTL, LIFERAY_PLUGIN_PACKAGE_PROPERTIES); + addFileFromTemplate(cfg, input, projectFolder, MAVEN_WEB_INF_PATH, LIFERAY_DISPLAY_FTL, LIFERAY_DISPLAY_XML); + addFileFromTemplate(cfg, input, projectFolder, srcFolder, SAMPLE_CONTROLLER_FTL, pClass + ".java"); + addFileFromTemplate(cfg, input, projectFolder, MAVEN_WEB_INF_PATH + _SPRING, SPRING_MVC_PORTLET_CONTEXT_FTL, portletConfigName + _PORTLET_CONTEXT_XML); + + String loggerDependencies = EMPTY; + if(lPage.isLogEnabled()) { + loggerDependencies = getLoggerDependencies(lPage, projectFolder); + } + input.put("logger", loggerDependencies); + + if(lPage.isExceptionEnabled()) { + input.put("pluginMainException", pluginMainException); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "DuplicateEmail.ftl", "DuplicateUserEmailAddressException.java"); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "EmailAddress.ftl", "EmailAddressException.java"); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "NoSuchEmail.ftl", "NoSuchEmailAddressException.java"); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "NoSuchModel.ftl", "NoSuchModelException.java"); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "Password.ftl", "PasswordExpiredException.java"); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "WebsiteURL.ftl", "WebsiteURLException.java"); + try{ + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "MainException.ftl", pluginMainException + ".java"); + } catch(Exception e){ + log(e); + } + } else { + //Create a blank exception folder for future use + File file = new File(projectFolder, srcFolder + SLASH + EXCEPTION); + if(!file.exists()) { + file.mkdirs(); + } + } + input.put("d", "$"); + addFileFromTemplate(cfg, input, projectFolder, null, "pom.tpl", "pom.xml"); + } + + public static void log(Exception e) { + Bundle bundle = FrameworkUtil.getBundle(WizardUtil.class); + ILog log = Platform.getLog(bundle); + IStatus status = new Status(IStatus.ERROR, bundle.getSymbolicName(), e.getMessage(), e); + log.log(status); + } + + /** + * + * @param lPage + * @param projectFolder + * @return + */ + private static String getLoggerDependencies(LoggerWizardPage lPage, File projectFolder) { + StringBuilder logger = new StringBuilder(); + appendDependency(logger, "org.slf4j", "slf4j-api", "1.7.18"); + + if(lPage.isSimpleLogger()) { + appendDependency(logger, "org.slf4j", "slf4j-simple", "1.7.18"); + } else if(lPage.isLog4jLogger()) { + appendDependency(logger, "org.slf4j", "slf4j-log4j12", "1.7.18"); + writeFile(projectFolder, MAVEN_JAVA_PATH, EMPTY, "log4j.properties", "/com/accenture/liferayspringplugin/wizards/tpl/lib/log4j.properties"); + } else if(lPage.isJdk14Logger()) { + appendDependency(logger, "org.slf4j", "slf4j-jdk14", "1.7.18"); + writeFile(projectFolder, MAVEN_JAVA_PATH, EMPTY, "logging.properties", "/com/accenture/liferayspringplugin/wizards/tpl/lib/logging.properties"); + } else if(lPage.isLogbackLogger()) { + appendDependency(logger, "ch.qos.logback", "logback-core", "1.1.6"); + appendDependency(logger, "ch.qos.logback", "logback-classic", "1.1.6"); + writeFile(projectFolder, MAVEN_JAVA_PATH, EMPTY, "logback.xml", "/com/accenture/liferayspringplugin/wizards/tpl/lib/logback.xml"); + } + + return logger.toString(); + } + + /** + * + * @param logger + * @param groupId + * @param artifactId + * @param version + */ + private static void appendDependency(StringBuilder logger, String groupId, + String artifactId, String version) { + logger.append("\n\t\t").append("").append("\n\t\t\t") + .append("").append(groupId).append("") + .append("\n\t\t\t\t").append("").append(artifactId) + .append("").append("\n\t\t\t\t") + .append("").append(version).append("") + .append("\n\t\t").append(""); + } + + /** + * + * @param projectFolder + * @param midPath + * @param subFolder + * @param fileName + * @param srcName + */ + private static void writeFile(File projectFolder, String midPath, String subFolder, String fileName, String srcName) { + InputStream in = null; + OutputStream out = null; + try { + File sourceFolder = new File(projectFolder, midPath + subFolder); + if (!sourceFolder.exists()) { + sourceFolder.mkdirs(); + } + File souFile = new File(sourceFolder, fileName); + in = LiferaySpringWizard.class.getClassLoader() + .getResourceAsStream(srcName); + out = new FileOutputStream(souFile); + byte[] buffer = new byte[1024]; + int len = in.read(buffer); + while (len != -1) { + out.write(buffer, 0, len); + len = in.read(buffer); + } + } catch (Exception e) { + log(e); + } finally { + if (in != null) { + try { + in.close(); + } catch (IOException e) { + log(e); + } + } + if (out != null) { + try { + out.close(); + } catch (IOException e) { + log(e); + } + } + } + } + + /** + * + * @param src + * @param dest + * @throws IOException + */ + private static void copyFolder(File src, File dest) throws IOException { + + if (src.isDirectory()) { + + // if directory not exists, create it + if (!dest.exists()) { + dest.mkdir(); + } + + // list all the directory contents + String files[] = src.list(); + + for (String file : files) { + // construct the src and dest file structure + File srcFile = new File(src, file); + File destFile = new File(dest, file); + // recursive copy + copyFolder(srcFile, destFile); + } + + } else { + // if file, then copy it + // Use bytes stream to support all file types + InputStream in = new FileInputStream(src); + OutputStream out = new FileOutputStream(dest); + + byte[] buffer = new byte[1024]; + + int length; + // copy the file content in bytes + while ((length = in.read(buffer)) > 0) { + out.write(buffer, 0, length); + } + + in.close(); + out.close(); + } + } + + /** + * + * @param sdkPath + * @param projectName + * @param portletName + * @param viewPath + * @param displayCategory + * @param projectFolder + * @param cfg + * @param input + * @param portletDisplayName + * @param portletConfigName + * @param pClass + * @param isExceptionEnabled + * @param pluginMainException + * @param srcFolder + * @param isSDKEnabled + * @throws TemplateNotFoundException + * @throws MalformedTemplateNameException + * @throws ParseException + * @throws IOException + * @throws TemplateException + */ + public static void addAntPortlet(String sdkPath, String projectName, + String portletName, String viewPath, String displayCategory, + File projectFolder, Configuration cfg, Map input, + String portletDisplayName, String portletConfigName, String pClass, + boolean isExceptionEnabled, String pluginMainException, + String srcFolder, boolean isSDKEnabled) throws TemplateNotFoundException, + MalformedTemplateNameException, ParseException, IOException, + TemplateException { + viewPath = DOCROOT_PATH + viewPath; + addFileFromTemplate(cfg, input, projectFolder, viewPath, VIEW_FTL, VIEW_JSP); + addFileFromTemplate(cfg, input, projectFolder, srcFolder, SAMPLE_CONTROLLER_FTL, pClass + ".java"); + addFileFromTemplate(cfg, input, projectFolder, DOCROOT_WEB_INF + _SPRING, SPRING_MVC_PORTLET_CONTEXT_FTL, portletConfigName + _PORTLET_CONTEXT_XML); + + String midPath = SLASH; + if(isSDKEnabled) { + midPath = _PORTLETS_; + } + addPortletEntry(sdkPath + midPath + projectName + "/docroot/WEB-INF/portlet.xml", portletName, portletDisplayName, portletConfigName); + addLiferayPortletEntry(sdkPath + midPath + projectName + "/docroot/WEB-INF/liferay-portlet.xml", portletName, pClass); + addLiferayDisplayEntry(sdkPath + midPath + projectName + "/docroot/WEB-INF/liferay-display.xml", portletName, displayCategory); + + if(isExceptionEnabled) { + input.put("pluginMainException", pluginMainException); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "MainException.ftl", pluginMainException + ".java"); + } + } + + /** + * + * @param sdkPath + * @param projectName + * @param portletName + * @param viewPath + * @param displayCategory + * @param projectFolder + * @param cfg + * @param input + * @param portletDisplayName + * @param portletConfigName + * @param pClass + * @param isExceptionEnabled + * @param pluginMainException + * @param srcFolder + * @throws TemplateNotFoundException + * @throws MalformedTemplateNameException + * @throws ParseException + * @throws IOException + * @throws TemplateException + */ + public static void addMavenPortlet(String sdkPath, String projectName, + String portletName, String viewPath, String displayCategory, + File projectFolder, Configuration cfg, Map input, + String portletDisplayName, String portletConfigName, String pClass, + boolean isExceptionEnabled, String pluginMainException, + String srcFolder) throws TemplateNotFoundException, + MalformedTemplateNameException, ParseException, IOException, + TemplateException { + viewPath = MAVEN_WEBAPP_PATH + viewPath; + addFileFromTemplate(cfg, input, projectFolder, viewPath, VIEW_FTL, VIEW_JSP); + addFileFromTemplate(cfg, input, projectFolder, srcFolder, SAMPLE_CONTROLLER_FTL, pClass + ".java"); + addFileFromTemplate(cfg, input, projectFolder, MAVEN_WEB_INF_PATH + _SPRING, SPRING_MVC_PORTLET_CONTEXT_FTL, portletConfigName + _PORTLET_CONTEXT_XML); + + addPortletEntry(sdkPath + SLASH + projectName + MAVEN_WEB_INF_PATH + "/portlet.xml", portletName, portletDisplayName, portletConfigName); + addLiferayPortletEntry(sdkPath + SLASH + projectName + MAVEN_WEB_INF_PATH + "/liferay-portlet.xml", portletName, pClass); + addLiferayDisplayEntry(sdkPath + SLASH + projectName + MAVEN_WEB_INF_PATH + "/liferay-display.xml", portletName, displayCategory); + + if(isExceptionEnabled) { + input.put("pluginMainException", pluginMainException); + addFileFromTemplate(cfg, input, projectFolder, srcFolder + SLASH + EXCEPTION, "MainException.ftl", pluginMainException + ".java"); + } + } +} diff --git a/src/com/accenture/liferayspringplugin/wizards/plugin/FinishWizardPage.java b/src/com/accenture/liferayspringplugin/wizards/plugin/FinishWizardPage.java new file mode 100644 index 0000000..3fe33c8 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/plugin/FinishWizardPage.java @@ -0,0 +1,50 @@ +package com.accenture.liferayspringplugin.wizards.plugin; + +import org.eclipse.jface.dialogs.IDialogPage; +import org.eclipse.jface.wizard.WizardPage; +import org.eclipse.swt.SWT; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Label; +import static com.accenture.liferayspringplugin.wizards.Constants.*; + +/** + * The "Finish" wizard page will show message to user about how to import newly created project in eclipse. + * + * @author Digital Liferay Capability IDC + */ + +public class FinishWizardPage extends WizardPage { + + + /** + * Constructor for SampleNewWizardPage. + * + * @param page + */ + public FinishWizardPage() { + super(WIZARD_PAGE); + setTitle(FINISH_PAGE_WIZARD_TITLE); + setDescription(FINISH_PAGE_WIZARD_DESCRIPTION); + } + + /** + * @see IDialogPage#createControl(Composite) + */ + public void createControl(Composite parent) { + Composite container = new Composite(parent, SWT.NULL); + GridLayout layout = new GridLayout(); + container.setLayout(layout); + layout.numColumns = 1; + layout.verticalSpacing = 5; + + Label label = new Label(container, SWT.NULL); + label.setText(EMPTY); + + label = new Label(container, SWT.NULL); + label.setText("&Project will created in \"portlet\" folder in SDK home. To import in eclipse use, go New -> Liferay Project from Existing Source and import project."); + + + setControl(container); + } +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/plugin/LiferaySpringAntWizardPage.java b/src/com/accenture/liferayspringplugin/wizards/plugin/LiferaySpringAntWizardPage.java new file mode 100644 index 0000000..fed033c --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/plugin/LiferaySpringAntWizardPage.java @@ -0,0 +1,379 @@ +package com.accenture.liferayspringplugin.wizards.plugin; + +import static com.accenture.liferayspringplugin.wizards.Constants.*; + +import java.io.File; + +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.jface.dialogs.IDialogPage; +import org.eclipse.jface.wizard.WizardPage; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.ModifyEvent; +import org.eclipse.swt.events.ModifyListener; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.events.SelectionListener; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.DirectoryDialog; +import org.eclipse.swt.widgets.Label; +import org.eclipse.swt.widgets.Text; + +import com.accenture.liferayspringplugin.wizards.WizardUtil; + +/** + * The "LiferaySpring" wizard page allows setting the portlet/project name and + * other required settings. + * + * @author Digital Liferay Capability IDC + */ + +public class LiferaySpringAntWizardPage extends WizardPage { + private Text projectName; + private Text packageName; + private Text portletName; + private Text sdkHome; + private Text jspPath; + private Text displayCategry; + private Button enableDSK; + + //private Label chkLabel; + private Label projectLabel; + private Label portletLabel; + private Label packageLabel; + private Label sdkLabel; + + private boolean isEnabledSDK = true; + + /** + * Constructor for SampleNewWizardPage. + * @param pageName + */ + public LiferaySpringAntWizardPage() { + super(WIZARD_PAGE); + setTitle(PLUGIN_WIZARD_PAGE_TITLE); + setDescription(PLUGIN_WIZARD_PAGE_SDK_DESCRIPTION); + } + + /** + * @see IDialogPage#createControl(Composite) + */ + public void createControl(Composite parent) { + final Composite container = new Composite(parent, SWT.NULL); + GridLayout layout = new GridLayout(); + container.setLayout(layout); + layout.numColumns = 4; + layout.verticalSpacing = 12; + + /*chkLabel = new Label(container, SWT.NULL); + chkLabel.setText(STORE_LOCATION_LABEL);*/ + + enableDSK = new Button(container, SWT.CHECK); + GridData gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 4; + enableDSK.setLayoutData(gd); + enableDSK.setText(STORE_LOCATION_LABEL); + enableDSK.addSelectionListener(new SelectionListener() { + @Override + public void widgetSelected(SelectionEvent e) { + isEnabledSDK = enableDSK.getSelection(); + if(isEnabledSDK) { + sdkLabel.setText(SDK_LOCATION_PATH_LABEL); + } else { + sdkLabel.setText(LOCATION_PATH_LABEL); + } + dialogChanged(); + } + + @Override + public void widgetDefaultSelected(SelectionEvent e) { + } + }); + + sdkLabel = new Label(container, SWT.NULL); + sdkLabel.setText(SDK_LOCATION_PATH_LABEL); + + sdkHome = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 2; + sdkHome.setLayoutData(gd); + sdkHome.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + + Button button = new Button(container, SWT.PUSH); + button.setText(BROWSE_BUTTON_LABEL); + button.addSelectionListener(new SelectionAdapter() { + public void widgetSelected(SelectionEvent e) { + handleBrowse(); + } + }); + + projectLabel = new Label(container, SWT.NULL); + projectLabel.setText(_PROJECT_NAME_LABLE); + + projectName = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 2; + projectName.setLayoutData(gd); + projectName.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + + Label label = new Label(container, SWT.NULL); + label.setText(EMPTY); + + portletLabel = new Label(container, SWT.NULL); + portletLabel.setText(_PORTLET_NAME_LABEL); + + portletName = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 2; + portletName.setLayoutData(gd); + portletName.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + label = new Label(container, SWT.NULL); + label.setText(EMPTY); + packageLabel = new Label(container, SWT.NULL); + packageLabel.setText(PACKAGE_LABEL); + + packageName = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 2; + packageName.setLayoutData(gd); + packageName.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + label = new Label(container, SWT.NULL); + label.setText(EMPTY); + + label = new Label(container, SWT.NULL); + label.setText(_JSP_PATH_LABEL); + + jspPath = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 2; + jspPath.setLayoutData(gd); + jspPath.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + label = new Label(container, SWT.NULL); + label.setText(EMPTY); + label = new Label(container, SWT.NULL); + label.setText(_DISPLAY_CATEGORY_LABEL); + + displayCategry = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 2; + displayCategry.setLayoutData(gd); + displayCategry.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + initialize(); + //dialogChanged(); + setControl(container); + setPageComplete(true); + } + + /** + * Tests if the current workbench selection is a suitable container to use. + */ + + private void initialize() { + packageName.setMessage(COM_DOT_ACCENTURE); + jspPath.setText(DEFAULT_JSP_FOLDER); + displayCategry.setText(DEFAULT_DISPLAY_CATEGORY); + String path = ResourcesPlugin.getWorkspace().getRoot().getLocation() + .toString(); + if (isValidSdkPath(path)) { + sdkHome.setText(path); + } + enableDSK.setSelection(true); + enableDSK.setEnabled(true); + } + + /** + * Uses the standard container selection dialog to choose the new value for + * the container field. + */ + + private void handleBrowse() { + DirectoryDialog dialog = new DirectoryDialog(getShell()); + dialog.setText(LIFERAY_SDK_HOME); + dialog.setMessage(SELECT_LIFERAY_SDK_PATH); + dialog.setFilterPath(getSdkHome()); + String path = dialog.open(); + if (path != null && path.length() > 0) { + sdkHome.setText(path); + } + } + + /** + * Ensures that both text fields are set. + */ + + public void dialogChanged() { + if (!isValidSdkPath(getSdkHome())) { + return; + } + + if (!isProjectNameValid(getSdkHome(), getProjectName())) { + return; + } + if (getPortletName().length() > 0 && !getPortletName().matches(PORTLET_NAME_REGEX)) { + updateStatus(PORTLET_NAME_ERROR); + return; + } + + if (getPackageName().length() > 0 && !getPackageName().matches(PACKAGE_NAME_REGEX)) { + updateStatus(PACKAGE_NAME_ERROR); + return; + } + + if (getJspPath().length() == 0) { + updateStatus(VIEW_PATH_ERROR); + return; + } + if (getDisplayCategry().length() == 0) { + updateStatus(DISPLAY_CATEGORY_ERROR); + return; + } + updateStatus(null); + } + + /** + * + * @param sdkPath + * @param projectName + * @return + */ + private boolean isProjectNameValid(String sdkPath, String projectName) { + if (projectName.length() == 0) { + updateStatus(PROJECT_NAME_REQUIRED); + return false; + } else if (!projectName.matches(PROJECT_NAME_REGEX)) { + updateStatus(PROJECT_NAME_IN_CORRECT); + return false; + } + + if(WizardUtil.isProjectExist(sdkPath, projectName)) { + updateStatus(DUPLICATE_PORTLET_NAME); + return false; + } + + portletName.setMessage(getProjectName()); + + return true; + } + + /** + * + * @param sdkPath + * @return + */ + private boolean isValidSdkPath(String sdkPath) { + if (sdkPath.length() == 0) { + if(isEnabledSDK) { + updateStatus(LIFERAY_SDK_PATH_REQUIRED); + } else { + updateStatus(LOCATION_PATH_REQUIRED); + } + return false; + } else { + int count = 0; + File file = new File(sdkPath); + if (file.isDirectory()) { + if(!isEnabledSDK) { + return true; + } + for (String fileName : file.list()) { + if (fileName.equals(PORTLETS_LBL) + || fileName.equals(BUILD_XML)) { + count++; + } + if (count == 2) { + return true; + } + } + updateStatus(LIFERAY_SDK_PATH_INVALID); + return false; + } else { + if(isEnabledSDK) { + updateStatus(LIFERAY_SDK_PATH_INVALID); + } else { + updateStatus(LOCATION_PATH_INVALID); + } + return false; + } + } + } + + /** + * + * @param message + */ + private void updateStatus(String message) { + setErrorMessage(message); + setPageComplete(message == null); + } + + public String getProjectName() { + return projectName.getText(); + } + + public String getGroupId() { + if(projectName.getText().trim().length() == 0) { + return projectName.getMessage(); + } + return projectName.getText(); + } + + public String getPackageName() { + if(packageName.getText().trim().length() == 0) { + return packageName.getMessage(); + } + return packageName.getText(); + } + + public String getPortletName() { + if(portletName.getText().trim().length() == 0) { + return getPortletMessage(); + } + return portletName.getText(); + } + + public String getPortletMessage() { + return portletName.getMessage(); + } + + public String getJspPath() { + return jspPath.getText(); + } + + public String getDisplayCategry() { + return displayCategry.getText(); + } + + public String getSdkHome() { + return sdkHome.getText(); + } + + public boolean isEnabledSDK() { + return isEnabledSDK; + } +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/plugin/LiferaySpringMavenWizardPage.java b/src/com/accenture/liferayspringplugin/wizards/plugin/LiferaySpringMavenWizardPage.java new file mode 100644 index 0000000..b6efd9e --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/plugin/LiferaySpringMavenWizardPage.java @@ -0,0 +1,307 @@ +package com.accenture.liferayspringplugin.wizards.plugin; + +import static com.accenture.liferayspringplugin.wizards.Constants.*; + +import java.io.File; + +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.jface.dialogs.IDialogPage; +import org.eclipse.jface.wizard.IWizardPage; +import org.eclipse.jface.wizard.WizardPage; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.ModifyEvent; +import org.eclipse.swt.events.ModifyListener; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.DirectoryDialog; +import org.eclipse.swt.widgets.Label; +import org.eclipse.swt.widgets.Text; + +import com.accenture.liferayspringplugin.wizards.LiferaySpringWizard; + +/** + * The "LiferaySpring" wizard page allows setting the portlet/project name and + * other required settings. + * + * @author Digital Liferay Capability IDC + */ + +public class LiferaySpringMavenWizardPage extends WizardPage { + private Text groupId; + private Text version; + private Text artifactId; + private Text sdkHome; + private Text jspPath; + private Text displayCategry; + + private Label groupIdLabel; + private Label artifactIdLabel; + private Label versionLabel; + + private LiferaySpringWizard liferaySpringWizard; + + /** + * Constructor for SampleNewWizardPage. + * @param liferaySpringWizard + * @param pageName + */ + public LiferaySpringMavenWizardPage(LiferaySpringWizard liferaySpringWizard) { + super(WIZARD_PAGE); + setTitle(PLUGIN_WIZARD_PAGE_TITLE); + setDescription(PLUGIN_WIZARD_PAGE_DESCRIPTION); + this.liferaySpringWizard = liferaySpringWizard; + } + + /** + * @see IDialogPage#createControl(Composite) + */ + public void createControl(Composite parent) { + final Composite container = new Composite(parent, SWT.NULL); + GridLayout layout = new GridLayout(); + container.setLayout(layout); + layout.numColumns = 4; + layout.verticalSpacing = 12; + + Label label = new Label(container, SWT.NULL); + label.setText(LOCATION_PATH_LABEL); + + sdkHome = new Text(container, SWT.BORDER | SWT.SINGLE); + GridData gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 2; + sdkHome.setLayoutData(gd); + sdkHome.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + + Button button = new Button(container, SWT.PUSH); + button.setText(BROWSE_BUTTON_LABEL); + button.addSelectionListener(new SelectionAdapter() { + public void widgetSelected(SelectionEvent e) { + handleBrowse(); + } + }); + + groupIdLabel = new Label(container, SWT.NULL); + groupIdLabel.setText(GROUP_ID_LABEL); + + groupId = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 2; + groupId.setLayoutData(gd); + groupId.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + + label = new Label(container, SWT.NULL); + label.setText(EMPTY); + + artifactIdLabel = new Label(container, SWT.NULL); + artifactIdLabel.setText(ARTIFACT_ID_LABLE); + + artifactId = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 2; + artifactId.setLayoutData(gd); + artifactId.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + label = new Label(container, SWT.NULL); + label.setText(EMPTY); + versionLabel = new Label(container, SWT.NULL); + versionLabel.setText(VERSION_LABEL); + + version = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 2; + version.setLayoutData(gd); + version.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + label = new Label(container, SWT.NULL); + label.setText(EMPTY); + + label = new Label(container, SWT.NULL); + label.setText(_JSP_PATH_LABEL); + + jspPath = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 2; + jspPath.setLayoutData(gd); + jspPath.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + label = new Label(container, SWT.NULL); + label.setText(EMPTY); + label = new Label(container, SWT.NULL); + label.setText(_DISPLAY_CATEGORY_LABEL); + + displayCategry = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 2; + displayCategry.setLayoutData(gd); + displayCategry.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + initialize(); + dialogChanged(); + setControl(container); + } + + /** + * Tests if the current workbench selection is a suitable container to use. + */ + + private void initialize() { + jspPath.setText(DEFAULT_JSP_FOLDER); + displayCategry.setText(DEFAULT_DISPLAY_CATEGORY); + String path = ResourcesPlugin.getWorkspace().getRoot().getLocation() + .toString(); + sdkHome.setText(path); + + groupId.setMessage(COM_DOT_ACCENTURE); + version.setMessage(DEFAULT_VERSION); + } + + /** + * Uses the standard container selection dialog to choose the new value for + * the container field. + */ + + private void handleBrowse() { + DirectoryDialog dialog = new DirectoryDialog(getShell()); + dialog.setText(LIFERAY_SDK_HOME); + dialog.setMessage(SELECT_LIFERAY_SDK_PATH); + dialog.setFilterPath(getSdkHome()); + String path = dialog.open(); + if (path != null && path.length() > 0) { + sdkHome.setText(path); + } + } + + /** + * Ensures that both text fields are set. + */ + + public void dialogChanged() { + if (!isValidSdkPath(getSdkHome())) { + return; + } + if (getProjectName().length() > 0 && !getProjectName().matches(PACKAGE_NAME_REGEX)) { + updateStatus(GROUP_ID_ERROR); + return; + } + if(getPortletName().length() == 0) { + updateStatus(ARTIFACT_ID_REQUIRED); + return; + } + if (getPortletName().length() > 0 && !getPortletName().matches(ARTIFACT_ID_NAME_REGEX)) { + updateStatus(ARTIFACT_ID_ERROR); + return; + } + + if (getPackageName().length() > 0 && !getPackageName().matches(VERSION_NAME_REGEX)) { + updateStatus(VERSION_NUMBER_ERROR); + return; + } + if (getJspPath().length() == 0) { + updateStatus(VIEW_PATH_ERROR); + return; + } + if (getDisplayCategry().length() == 0) { + updateStatus(DISPLAY_CATEGORY_ERROR); + return; + } + updateStatus(null); + } + + /** + * + * @param sdkPath + * @return + */ + private boolean isValidSdkPath(String sdkPath) { + if (sdkPath.length() == 0) { + updateStatus(LOCATION_PATH_REQUIRED); + return false; + } else { + File file = new File(sdkPath); + if (file.isDirectory()) { + return true; + } else { + updateStatus(LOCATION_PATH_INVALID); + return false; + } + } + } + + /** + * + * @param message + */ + private void updateStatus(String message) { + setErrorMessage(message); + setPageComplete(message == null); + } + + public String getProjectName() { + return groupId.getText(); + } + + public String getGroupId() { + if(groupId.getText().trim().length() == 0) { + return groupId.getMessage(); + } + return groupId.getText(); + } + + public String getPackageName() { + if(version.getText().trim().length() == 0) { + return version.getMessage(); + } + return version.getText(); + } + + public String getPortletName() { + if(artifactId.getText().trim().length() == 0) { + return getPortletMessage(); + } + return artifactId.getText(); + } + + public String getPortletMessage() { + return artifactId.getMessage(); + } + + public String getJspPath() { + return jspPath.getText(); + } + + public String getDisplayCategry() { + return displayCategry.getText(); + } + + public String getSdkHome() { + return sdkHome.getText(); + } + + @Override + public IWizardPage getNextPage() { + return liferaySpringWizard.getNextPage(super.getNextPage()); + } +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/plugin/LoggerWizardPage.java b/src/com/accenture/liferayspringplugin/wizards/plugin/LoggerWizardPage.java new file mode 100644 index 0000000..7a19c3a --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/plugin/LoggerWizardPage.java @@ -0,0 +1,201 @@ +package com.accenture.liferayspringplugin.wizards.plugin; + +import org.eclipse.jface.dialogs.IDialogPage; +import org.eclipse.jface.wizard.WizardPage; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.events.SelectionListener; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.Event; +import org.eclipse.swt.widgets.Label; +import org.eclipse.swt.widgets.Listener; + +import static com.accenture.liferayspringplugin.wizards.Constants.*; + +/** + * The "LiferaySpring" wizard page allows setting the portlet/project name and + * other required settings. + * + * @author Digital Liferay Capability IDC + */ + +public class LoggerWizardPage extends WizardPage { + private Button enableLog; + private Button enableException; + private Button simpleLogger; + private Button log4jLogger; + private Button jdk14Logger; + private Button logbackLogger; + + private boolean isLogEnabled = true; + private boolean isSimpleLogger = false; + private boolean isLog4jLogger = true; + private boolean isJdk14Logger = false; + private boolean isLogbackLogger = false; + private boolean isExceptionEnabled = true; + + /** + * Constructor for SampleNewWizardPage. + * + * @param pageName + */ + public LoggerWizardPage() { + super(WIZARD_PAGE); + setTitle(LOGGER_PAGE_WIZARD_TITLE); + setDescription(LOGGER_PAGE_WIZARD_DESC); + } + + /** + * @see IDialogPage#createControl(Composite) + */ + public void createControl(Composite parent) { + final Composite container = new Composite(parent, SWT.NULL); + GridLayout layout = new GridLayout(); + container.setLayout(layout); + layout.numColumns = 4; + layout.verticalSpacing = 9; + + Label label = new Label(container, SWT.NULL); + label.setText(_ENABLE_SLF4J_LABEL); + + enableLog = new Button(container, SWT.CHECK); + GridData gd = new GridData(GridData.FILL_HORIZONTAL); + enableLog.setLayoutData(gd); + enableLog.addSelectionListener(new SelectionListener() { + @Override + public void widgetSelected(SelectionEvent e) { + isLogEnabled = enableLog.getSelection(); + simpleLogger.setEnabled(isLogEnabled); + log4jLogger.setEnabled(isLogEnabled); + jdk14Logger.setEnabled(isLogEnabled); + logbackLogger.setEnabled(isLogEnabled); + } + + @Override + public void widgetDefaultSelected(SelectionEvent e) { + } + }); + label = new Label(container, SWT.NULL); + label.setText(EMPTY); + label = new Label(container, SWT.NULL); + label.setText(EMPTY); + + Listener listener = new Listener () { + @Override + public void handleEvent (Event e) { + Control [] children = container.getChildren (); + for (int i=0; i 0) { + sdkHome.setText(path); + } + } + + /** + * + * @param path + */ + private void updateProjectList(String path) { + projectName.removeAll(); + if(path == null || path.length() == 0) { + return; + } + File sdk = new File(path); + if(sdk.isDirectory()) { + File file = sdk; + if(isEnabledSDK) { + file = new File(sdk, PORTLETS_LBL); + } + if(file.isDirectory()) { + for (File child : file.listFiles()) { + if(child.isDirectory()) { + File springApp = new File(child, APPLICATION_CONTEXT_XML_PATH); + if(springApp.exists()) { + projectName.add(child.getName()); + } + } + } + } + } + projectName.select(0); + } + + /** + * Ensures that both text fields are set. + */ + + public void dialogChanged() { + if (!isValidSdkPath(getSdkHome())) { + return; + } + + if (!isProjectNameValid(getProjectName())) { + return; + } + if(getPortletName().length() == 0) { + updateStatus(PORTLET_NAME_REQUIRED); + return; + } + if (!getPortletName().matches(PORTLET_NAME_REGEX)) { + updateStatus(PORTLET_NAME_ERROR); + return; + } + + if(WizardUtil.isPortletExist(getSdkHome(), getProjectName(), getPortletName())) { + updateStatus(DUPLICATE_PORTLET_NAME); + return; + } + + if (getPackageName().length() > 0 && !getPackageName().matches(PACKAGE_NAME_REGEX)) { + updateStatus(PACKAGE_NAME_ERROR); + return; + } + + if (getJspPath().length() == 0) { + updateStatus(VIEW_PATH_ERROR); + return; + } + if (getDisplayCategry().length() == 0) { + updateStatus(DISPLAY_CATEGORY_ERROR); + return; + } + updateStatus(null); + } + + /** + * + * @param pName + * @return + */ + private boolean isProjectNameValid(String pName) { + if (pName.length() == 0) { + updateStatus(PROJECT_NAME_REQUIRED); + return false; + } else if (!pName.matches(PROJECT_NAME_REGEX)) { + updateStatus(PROJECT_NAME_IN_CORRECT); + return false; + } + + //portletName.setMessage(getProjectName()); + + return true; + } + + /** + * + * @param sdkPath + * @return + */ + private boolean isValidSdkPath(String sdkPath) { + if (sdkPath.length() == 0) { + if(isEnabledSDK) { + updateStatus(LIFERAY_SDK_PATH_REQUIRED); + } else { + updateStatus(LOCATION_PATH_REQUIRED); + } + return false; + } else { + int count = 0; + File file = new File(sdkPath); + if (file.isDirectory()) { + if(!isEnabledSDK) { + return true; + } + for (String fileName : file.list()) { + if (fileName.equals(PORTLETS_LBL) + || fileName.equals(BUILD_XML)) { + count++; + } + if (count == 2) { + return true; + } + } + updateStatus(LIFERAY_SDK_PATH_INVALID); + return false; + } else { + if(isEnabledSDK) { + updateStatus(LIFERAY_SDK_PATH_INVALID); + } else { + updateStatus(LOCATION_PATH_INVALID); + } + return false; + } + } + } + + /** + * + * @param message + */ + public void updateStatus(String message) { + setErrorMessage(message); + setPageComplete(message == null); + } + + public String getProjectName() { + return projectName.getText(); + } + + public String getPackageName() { + if(packageName.getText().trim().length() == 0) { + return packageName.getMessage(); + } + return packageName.getText(); + } + + public String getPortletName() { + if(portletName.getText().trim().length() == 0) { + return getPortletMessage(); + } + return portletName.getText(); + } + + public String getPortletMessage() { + return portletName.getMessage(); + } + + public String getJspPath() { + return jspPath.getText(); + } + + public String getDisplayCategry() { + return displayCategry.getText(); + } + + public String getSdkHome() { + return sdkHome.getText(); + } + + public boolean isEnabledSDK(){ + return isEnabledSDK; + } +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/portlet/SpringPortletMavenWizardPage.java b/src/com/accenture/liferayspringplugin/wizards/portlet/SpringPortletMavenWizardPage.java new file mode 100644 index 0000000..f7e04b3 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/portlet/SpringPortletMavenWizardPage.java @@ -0,0 +1,321 @@ +package com.accenture.liferayspringplugin.wizards.portlet; + +import java.io.File; + +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.jface.dialogs.IDialogPage; +import org.eclipse.jface.wizard.IWizardPage; +import org.eclipse.jface.wizard.WizardPage; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.ModifyEvent; +import org.eclipse.swt.events.ModifyListener; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Combo; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.DirectoryDialog; +import org.eclipse.swt.widgets.Label; +import org.eclipse.swt.widgets.Text; + +import com.accenture.liferayspringplugin.wizards.SpringPortletWizard; +import com.accenture.liferayspringplugin.wizards.WizardUtil; + +import static com.accenture.liferayspringplugin.wizards.Constants.*; + +/** + * The "LiferaySpring" wizard page allows setting the portlet/project name and + * other required settings. + * + * @author Digital Liferay Capability IDC + */ + +public class SpringPortletMavenWizardPage extends WizardPage { + private Combo projectName; + private Text portletName; + private Text sdkHome; + private Text jspPath; + private Text displayCategry; + private SpringPortletWizard springPortletWizard; + private SpringPortletAntWizardPage antPage; + + /** + * Constructor for SampleNewWizardPage. + * @param antPage + * + * @param pageName + */ + public SpringPortletMavenWizardPage(SpringPortletWizard springPortletWizard, SpringPortletAntWizardPage antPage) { + super(WIZARD_PAGE); + setTitle(PORTLET_WIZARD_PAGE_TITLE); + setDescription(PORTLET_WIZARD_DESCRIPTION); + this.springPortletWizard = springPortletWizard; + this.antPage = antPage; + } + + /** + * @see IDialogPage#createControl(Composite) + */ + public void createControl(Composite parent) { + Composite container = new Composite(parent, SWT.NULL); + GridLayout layout = new GridLayout(); + container.setLayout(layout); + layout.numColumns = 3; + layout.verticalSpacing = 9; + + Label label = new Label(container, SWT.NULL); + label.setText(LOCATION_PATH_LABEL); + + sdkHome = new Text(container, SWT.BORDER | SWT.SINGLE); + GridData gd = new GridData(GridData.FILL_HORIZONTAL); + sdkHome.setLayoutData(gd); + sdkHome.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + updateProjectList(getSdkHome()); + } + }); + + Button button = new Button(container, SWT.PUSH); + button.setText(BROWSE_BUTTON_LABEL); + button.addSelectionListener(new SelectionAdapter() { + public void widgetSelected(SelectionEvent e) { + handleBrowse(); + } + }); + + label = new Label(container, SWT.NULL); + label.setText(_PROJECT_NAME_LABLE); + + projectName = new Combo(container, SWT.DROP_DOWN | SWT.READ_ONLY); + gd = new GridData(GridData.FILL_HORIZONTAL); + projectName.setLayoutData(gd); + projectName.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + + label = new Label(container, SWT.NULL); + label.setText(EMPTY); + + label = new Label(container, SWT.NULL); + label.setText(_PORTLET_NAME_LABEL); + + portletName = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + portletName.setLayoutData(gd); + portletName.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + label = new Label(container, SWT.NULL); + label.setText(EMPTY); + + label = new Label(container, SWT.NULL); + label.setText(_JSP_PATH_LABEL); + + jspPath = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + jspPath.setLayoutData(gd); + jspPath.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + label = new Label(container, SWT.NULL); + label.setText(EMPTY); + label = new Label(container, SWT.NULL); + label.setText(_DISPLAY_CATEGORY_LABEL); + + displayCategry = new Text(container, SWT.BORDER | SWT.SINGLE); + gd = new GridData(GridData.FILL_HORIZONTAL); + displayCategry.setLayoutData(gd); + displayCategry.addModifyListener(new ModifyListener() { + public void modifyText(ModifyEvent e) { + dialogChanged(); + } + }); + initialize(); + //dialogChanged(); + setControl(container); + } + + /** + * Tests if the current workbench selection is a suitable container to use. + */ + + private void initialize() { + jspPath.setText(DEFAULT_JSP_FOLDER); + displayCategry.setText(DEFAULT_DISPLAY_CATEGORY); + String path = ResourcesPlugin.getWorkspace().getRoot().getLocation() + .toString(); + if (isValidSdkPath(path)) { + sdkHome.setText(path); + updateProjectList(path); + } + } + + /** + * Uses the standard container selection dialog to choose the new value for + * the container field. + */ + + private void handleBrowse() { + DirectoryDialog dialog = new DirectoryDialog(getShell()); + dialog.setText(LIFERAY_SDK_HOME); + dialog.setMessage(SELECT_LIFERAY_SDK_PATH); + dialog.setFilterPath(getSdkHome()); + String path = dialog.open(); + if (path != null && path.length() > 0) { + sdkHome.setText(path); + } + } + + /** + * + * @param path + */ + private void updateProjectList(String path) { + projectName.removeAll(); + if(path == null || path.length() == 0) { + return; + } + File sdk = new File(path); + if(sdk.isDirectory()) { + for (File child : sdk.listFiles()) { + if(child.isDirectory()) { + File springApp = new File(child, MVN_APPLICATION_CONTEXT_XML_PATH); + if(springApp.exists()) { + projectName.add(child.getName()); + } + } + } + } + projectName.select(0); + } + + /** + * Ensures that both text fields are set. + */ + + public void dialogChanged() { + if (!isValidSdkPath(getSdkHome())) { + return; + } + + if (!isProjectNameValid(getProjectName())) { + return; + } + if(getPortletName().length() == 0) { + updateStatus(PORTLET_NAME_REQUIRED); + return; + } + if (!getPortletName().matches(PORTLET_NAME_REGEX)) { + updateStatus(PORTLET_NAME_ERROR); + return; + } + + if(WizardUtil.isPortletExist(getSdkHome(), getProjectName(), getPortletName())) { + updateStatus(DUPLICATE_PORTLET_NAME); + return; + } + + if (getJspPath().length() == 0) { + updateStatus(VIEW_PATH_ERROR); + return; + } + if (getDisplayCategry().length() == 0) { + updateStatus(DISPLAY_CATEGORY_ERROR); + return; + } + updateStatus(null); + antPage.updateStatus(null); + antPage.setPageComplete(true); + } + + /** + * + * @param pName + * @return + */ + private boolean isProjectNameValid(String pName) { + if (pName.length() == 0) { + updateStatus(PROJECT_NAME_REQUIRED); + return false; + } else if (!pName.matches(PROJECT_NAME_REGEX)) { + updateStatus(PROJECT_NAME_IN_CORRECT); + return false; + } + + //portletName.setMessage(getProjectName()); + + return true; + } + + /** + * + * @param sdkPath + * @return + */ + private boolean isValidSdkPath(String sdkPath) { + if (sdkPath.length() == 0) { + updateStatus(LOCATION_PATH_REQUIRED); + return false; + } else { + File file = new File(sdkPath); + if (file.isDirectory()) { + return true; + } else { + updateStatus(LOCATION_PATH_INVALID); + return false; + } + } + } + + /** + * + * @param message + */ + public void updateStatus(String message) { + setErrorMessage(message); + setPageComplete(message == null); + } + + public String getProjectName() { + return projectName.getText(); + } + + public String getPortletName() { + if(portletName.getText().trim().length() == 0) { + return getPortletMessage(); + } + return portletName.getText(); + } + + public String getPortletMessage() { + return portletName.getMessage(); + } + + public String getJspPath() { + return jspPath.getText(); + } + + public String getDisplayCategry() { + return displayCategry.getText(); + } + + public String getSdkHome() { + return sdkHome.getText(); + } + + public void setAntPlugin(boolean isAntPlugin) {} + + @Override + public IWizardPage getNextPage() { + return springPortletWizard.getNextPage(super.getNextPage()); + } +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/DuplicateEmail.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/DuplicateEmail.ftl new file mode 100644 index 0000000..cc3117c --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/DuplicateEmail.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class DuplicateUserEmailAddressException extends ${pluginMainException} { + + public DuplicateUserEmailAddressException() { + super(); + } + + public DuplicateUserEmailAddressException(String msg) { + super(msg); + } + + public DuplicateUserEmailAddressException(String msg, Throwable cause) { + super(msg, cause); + } + + public DuplicateUserEmailAddressException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/EmailAddress.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/EmailAddress.ftl new file mode 100644 index 0000000..0f4c198 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/EmailAddress.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class EmailAddressException extends ${pluginMainException} { + + public EmailAddressException() { + super(); + } + + public EmailAddressException(String msg) { + super(msg); + } + + public EmailAddressException(String msg, Throwable cause) { + super(msg, cause); + } + + public EmailAddressException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/MANIFEST.MF b/src/com/accenture/liferayspringplugin/wizards/tpl/MANIFEST.MF new file mode 100644 index 0000000..254272e --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/MainException.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/MainException.ftl new file mode 100644 index 0000000..ecd25e8 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/MainException.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class ${pluginMainException} extends Exception { + + public ${pluginMainException}() { + super(); + } + + public ${pluginMainException}(String msg) { + super(msg); + } + + public ${pluginMainException}(String msg, Throwable cause) { + super(msg, cause); + } + + public ${pluginMainException}(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/NoSuchEmail.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/NoSuchEmail.ftl new file mode 100644 index 0000000..8a0b688 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/NoSuchEmail.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class NoSuchEmailAddressException extends NoSuchModelException { + + public NoSuchEmailAddressException() { + super(); + } + + public NoSuchEmailAddressException(String msg) { + super(msg); + } + + public NoSuchEmailAddressException(String msg, Throwable cause) { + super(msg, cause); + } + + public NoSuchEmailAddressException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/NoSuchModel.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/NoSuchModel.ftl new file mode 100644 index 0000000..5f19171 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/NoSuchModel.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class NoSuchModelException extends ${pluginMainException} { + + public NoSuchModelException() { + super(); + } + + public NoSuchModelException(String msg) { + super(msg); + } + + public NoSuchModelException(String msg, Throwable cause) { + super(msg, cause); + } + + public NoSuchModelException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/Password.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/Password.ftl new file mode 100644 index 0000000..96b7a3f --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/Password.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class PasswordExpiredException extends ${pluginMainException} { + + public PasswordExpiredException() { + super(); + } + + public PasswordExpiredException(String msg) { + super(msg); + } + + public PasswordExpiredException(String msg, Throwable cause) { + super(msg, cause); + } + + public PasswordExpiredException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/SampleController.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/SampleController.ftl new file mode 100644 index 0000000..89667c7 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/SampleController.ftl @@ -0,0 +1,25 @@ +package ${packageName}; + +import javax.portlet.RenderRequest; +import javax.portlet.RenderResponse; + +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.portlet.bind.annotation.RenderMapping; +${loggerImport} +${exceptionImport} + +@Controller(value = "${portletClass}") +@RequestMapping("VIEW") +public class ${portletClass} { + ${loggerDeclaration} + @RenderMapping + public String handleRenderRequest(RenderRequest request, + RenderResponse response, Model model) { + ${loggerStatement} + ${exceptionStatement} + return "view"; + } + ${exceptionMethod} +} diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/WebsiteURL.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/WebsiteURL.ftl new file mode 100644 index 0000000..e81b7f2 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/WebsiteURL.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class WebsiteURLException extends ${pluginMainException} { + + public WebsiteURLException() { + super(); + } + + public WebsiteURLException(String msg) { + super(msg); + } + + public WebsiteURLException(String msg, Throwable cause) { + super(msg, cause); + } + + public WebsiteURLException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/application-context.xml b/src/com/accenture/liferayspringplugin/wizards/tpl/application-context.xml new file mode 100644 index 0000000..948541a --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/application-context.xml @@ -0,0 +1,19 @@ + + + + + + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/aui.tld b/src/com/accenture/liferayspringplugin/wizards/tpl/aui.tld new file mode 100644 index 0000000..35e442b --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/aui.tld @@ -0,0 +1,2555 @@ + + + + aui:.]]> + 1.0 + aui + http://alloy.liferay.com/tld/aui + + + button-item + com.liferay.taglib.aui.ButtonItemTag + JSP + + ]]> + activeState + false + true + boolean + + + ]]> + boundingBox + false + true + java.lang.String + + + ]]> + classNames + false + true + java.lang.Object + + + ]]> + contentBox + false + true + java.lang.String + + + boundingBox.]]> + cssClass + false + true + java.lang.String + + + ]]> + defaultState + false + true + boolean + + + ]]> + depth + false + true + java.lang.Object + + + ]]> + destroyed + false + true + boolean + + + ]]> + disabled + false + true + boolean + + + ]]> + focused + false + true + boolean + + + {fn: // The function to execute + context: // The context to execute the function in + type: // The type of event to listen for (defaults to "click") + }]]> + handler + false + true + java.lang.Object + + + ]]> + height + false + true + java.lang.Object + + + boundingBox when + visible is set to + false.]]> + hideClass + false + true + java.lang.String + + + ]]> + hoverState + false + true + boolean + + + ]]> + icon + false + true + java.lang.String + + + aui-button-icon.]]> + iconNode + false + true + java.lang.String + + + ]]> + buttonitemId + false + true + java.lang.String + + + ]]> + index + false + true + java.lang.Object + + + ]]> + initialized + false + true + boolean + + + ]]> + label + false + true + java.lang.String + + + aui-button-label.]]> + labelNode + false + true + java.lang.String + + + ]]> + buttonitemParent + false + true + java.lang.Object + + + true the render phase will be autimatically invoked + preventing the .render() manual call.]]> + render + false + true + java.lang.Object + + + ]]> + rendered + false + true + boolean + + + ]]> + root + false + true + java.lang.Object + + + +
0
(Default) Not selected
+
1
Fully selected
+
2
Partially selected
+ ]]>
+ selected + false + true + java.lang.Object +
+ + ]]> + srcNode + false + true + java.lang.String + + + ]]> + strings + false + true + java.lang.Object + + + ]]> + tabIndex + false + true + java.lang.Object + + + ]]> + title + false + true + java.lang.String + + + ]]> + type + false + true + java.lang.String + + + ]]> + useARIA + false + true + boolean + + + ]]> + visible + false + true + boolean + + + ]]> + width + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterActiveStateChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterBoundingBoxChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterClassNamesChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterContentBoxChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterCssClassChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterDefaultStateChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterDepthChange + false + true + java.lang.Object + + + + Lifecycle event for the destroy phase, + fired prior to destruction. Invoking the preventDefault + method on the event object provided to subscribers will + prevent destruction from proceeding. +

+

+ Subscribers to the "after" moment of this event, will be notified + after destruction is complete (and as a result cannot prevent + destruction). +

]]>
+ afterDestroy + false + true + java.lang.Object +
+ + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterDestroyedChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterDisabledChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterFocusedChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterHandlerChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterHeightChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterHideClassChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterHoverStateChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterIconChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterIconNodeChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterIdChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterIndexChange + false + true + java.lang.Object + + + + Lifecycle event for the init phase, fired prior to initialization. + Invoking the preventDefault() method on the event object provided + to subscribers will prevent initialization from occuring. +

+

+ Subscribers to the "after" momemt of this event, will be notified + after initialization of the object is complete (and therefore + cannot prevent initialization). +

]]>
+ afterInit + false + true + java.lang.Object +
+ + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterInitializedChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterLabelChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterLabelNodeChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterParentChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterRenderChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterRenderedChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterRootChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterSelectedChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterSrcNodeChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterStringsChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterTabIndexChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterTitleChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterTypeChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterUseARIAChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterVisibleChange + false + true + java.lang.Object + + + ]]> + afterContentUpdate + false + true + java.lang.Object + + + + Subscribers to the "on" moment of this event, will be notified + before the widget is rendered. +

+

+ Subscribers to the "after" moment of this event, will be notified + after rendering is complete. +

]]>
+ afterRender + false + true + java.lang.Object +
+ + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + afterWidthChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onActiveStateChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onBoundingBoxChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onClassNamesChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onContentBoxChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onCssClassChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onDefaultStateChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onDepthChange + false + true + java.lang.Object + + + + Lifecycle event for the destroy phase, + fired prior to destruction. Invoking the preventDefault + method on the event object provided to subscribers will + prevent destruction from proceeding. +

+

+ Subscribers to the "after" moment of this event, will be notified + after destruction is complete (and as a result cannot prevent + destruction). +

]]>
+ onDestroy + false + true + java.lang.Object +
+ + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onDestroyedChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onDisabledChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onFocusedChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onHandlerChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onHeightChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onHideClassChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onHoverStateChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onIconChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onIconNodeChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onIdChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onIndexChange + false + true + java.lang.Object + + + + Lifecycle event for the init phase, fired prior to initialization. + Invoking the preventDefault() method on the event object provided + to subscribers will prevent initialization from occuring. +

+

+ Subscribers to the "after" momemt of this event, will be notified + after initialization of the object is complete (and therefore + cannot prevent initialization). +

]]>
+ onInit + false + true + java.lang.Object +
+ + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onInitializedChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onLabelChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onLabelNodeChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onParentChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onRenderChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onRenderedChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onRootChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onSelectedChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onSrcNodeChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onStringsChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onTabIndexChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onTitleChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onTypeChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onUseARIAChange + false + true + java.lang.Object + + + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onVisibleChange + false + true + java.lang.Object + + + ]]> + onContentUpdate + false + true + java.lang.Object + + + + Subscribers to the "on" moment of this event, will be notified + before the widget is rendered. +

+

+ Subscribers to the "after" moment of this event, will be notified + after rendering is complete. +

]]>
+ onRender + false + true + java.lang.Object +
+ + on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> + onWidthChange + false + true + java.lang.Object + + true +
+ + + a + com.liferay.taglib.aui.ATag + JSP + + <p> tag could be used for something other than a paragraph.]]> + ariaRole + false + true + java.lang.String + + + + cssClass + false + true + java.lang.String + + + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> + data + false + true + java.util.Map + + + + href + true + true + java.lang.String + + + + id + false + true + java.lang.String + + + + label + false + true + java.lang.String + + + + lang + false + true + java.lang.String + + + + onClick + false + true + java.lang.String + + + self. Possible values are blank, self, parent, top, and a unique frame's name.]]> + target + false + true + java.lang.String + + + + title + false + true + java.lang.String + + true + + + button + com.liferay.taglib.aui.ButtonTag + JSP + + primary attribute.]]> + cssClass + false + true + java.lang.String + + + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> + data + false + true + java.lang.Object + + + false.]]> + disabled + false + true + boolean + + + + href + false + true + java.lang.String + + + here.]]> + icon + false + true + java.lang.String + + + left.]]> + iconAlign + false + true + java.lang.String + + + + name + false + true + java.lang.String + + + + onClick + false + true + java.lang.String + + + type attribute is set to submit, this value is set to true. For all other types, the value is set to false by default.]]> + primary + false + true + java.lang.Object + + + button, submit, cancel and reset. The default value is button.]]> + type + false + true + java.lang.String + + + href location when a user clicks the button. The default value is false.]]> + useDialog + false + true + boolean + + + value + false + true + java.lang.String + + true + + + <div> tag to wrap <aui:button> components and offer additional styling.]]> + button-row + com.liferay.taglib.aui.ButtonRowTag + JSP + + + cssClass + false + true + java.lang.String + + + + id + false + true + java.lang.String + + true + + + <aui:row> component.]]> + col + com.liferay.taglib.aui.ColTag + JSP + + + cssClass + false + true + java.lang.String + + + + id + false + true + java.lang.String + + + offset + false + true + int + + + offsetWidth + false + true + int + + + 12. For example, a span of 4 would result in a column width 4/12 (or 1/3) of the total width of the containing row.]]> + span + false + true + int + + + span attribute. The width is then converted to a span expressed as ((width/100) x 12), rounded to the nearest whole number. For example, a width of 33 would be converted to 3.96, which would be rounded up to a span value of 4.]]> + width + false + true + int + + true + + + aui:col.]]> + column + com.liferay.taglib.aui.ColumnTag + JSP + + 20 would be 20%. The default value is 0.]]> + columnWidth + false + true + int + + + + cssClass + false + true + java.lang.String + + + false.]]> + first + false + true + boolean + + + + id + false + true + java.lang.String + + + false.]]> + last + false + true + boolean + + true + + + component + com.liferay.taglib.aui.ComponentTag + JSP + + defineVar + false + true + boolean + + + excludeAttributes + false + true + java.lang.String + + + javaScriptAttributes + false + true + java.lang.String + + + module + false + true + java.lang.String + + + name + false + true + java.lang.String + + + options + false + true + java.util.Map + + + scriptPosition + false + true + java.lang.String + + + tagPageContext + true + true + javax.servlet.jsp.JspContext + + + useJavaScript + false + true + java.io.Serializable + + + var + false + true + java.lang.String + + true + + + <div> tag to wrap <aui:row> components and offer additional styling.]]> + container + com.liferay.taglib.aui.ContainerTag + JSP + + + cssClass + false + true + java.lang.String + + + true.]]> + fluid + false + true + boolean + + + + id + false + true + java.lang.String + + true + + + <div> tag to wrap form fields and offer additional styling.]]> + field-wrapper + com.liferay.taglib.aui.FieldWrapperTag + JSP + + + cssClass + false + true + java.lang.String + + + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> + data + false + true + java.lang.Object + + + false.]]> + first + false + true + boolean + + + + helpMessage + false + true + java.lang.String + + + false.]]> + inlineField + false + true + boolean + + + right and left.]]> + inlineLabel + false + true + java.lang.String + + + + label + false + true + java.lang.String + + + false.]]> + last + false + true + boolean + + + + name + false + true + java.lang.String + + + + required + false + true + boolean + + + + <div> tag to group related form elements and offer additional styling.]]> + fieldset + com.liferay.taglib.aui.FieldsetTag + JSP + + + column + false + true + boolean + + + + cssClass + false + true + java.lang.String + + + + helpMessage + false + true + java.lang.String + + + + id + false + true + java.lang.String + + + + label + false + true + java.lang.String + + true + + + + form + com.liferay.taglib.aui.FormTag + JSP + + + action + false + true + java.lang.String + + + + cssClass + false + true + java.lang.String + + + true.]]> + escapeXml + false + true + boolean + + + false.]]> + inlineLabels + false + true + boolean + + + post. Possible values are get and post.]]> + method + false + true + java.lang.String + + + fm.]]> + name + false + true + java.lang.String + + + + onSubmit + false + true + java.lang.String + + + + portletNamespace + false + true + java.lang.String + + + true.]]> + useNamespace + false + true + boolean + + true + + + + icon + com.liferay.taglib.aui.IconTag + JSP + + image attribute.]]> + cssClass + false + true + java.lang.String + + + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> + data + false + true + java.util.Map + + + + id + false + true + java.lang.String + + + icon-edit CSS class by setting the value edit. If an icon image is referenced for cssClass and image, both icons are shown in the component.]]> + image + false + true + java.lang.String + + + + label + false + true + java.lang.String + + + self. Possible values are blank, self, parent, top, and a unique frame's name.]]> + target + false + true + java.lang.String + + + + url + false + true + java.lang.String + + true + + + + input + com.liferay.taglib.aui.InputTag + JSP + + + autoFocus + false + true + boolean + + + + autoSize + false + true + boolean + + + + bean + false + true + java.lang.Object + + + false.]]> + changesContext + false + true + boolean + + + type is radio or checkbox.]]> + checked + false + true + boolean + + + 0.]]> + classPK + false + true + long + + + + cssClass + false + true + java.lang.String + + + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> + data + false + true + java.lang.Object + + + dateTogglerCheckboxLabel + false + true + java.lang.String + + + + defaultLanguageId + false + true + java.lang.String + + + false.]]> + disabled + false + true + boolean + + + field + false + true + java.lang.String + + + field of the component.]]> + fieldParam + false + true + java.lang.String + + + + first + false + true + boolean + + + + formName + false + true + java.lang.String + + + + helpMessage + false + true + java.lang.String + + + input-group-addon.]]> + helpTextCssClass + false + true + java.lang.String + + + + id + false + true + java.lang.String + + + false.]]> + ignoreRequestValue + false + true + boolean + + + false.]]> + inlineField + false + true + boolean + + + right and left.]]> + inlineLabel + false + true + java.lang.String + + + name attribute's value.]]> + label + false + true + java.lang.String + + + languageId + false + true + java.lang.String + + + + last + false + true + boolean + + + false.]]> + localized + false + true + boolean + + + type is number or range. Note that the max value is inclusive if the input's type is range.]]> + max + false + true + java.lang.Object + + + + model + false + true + java.lang.Class + + + type is number or range. Note that the min value is inclusive if the input's type is range.]]> + min + false + true + java.lang.Object + + + multiple + false + true + boolean + + + + name + true + true + java.lang.String + + + + onChange + false + true + java.lang.String + + + + onClick + false + true + java.lang.String + + + + placeholder + false + true + java.lang.String + + + + prefix + false + true + java.lang.String + + + + required + false + true + boolean + + + textarea.]]> + resizable + false + true + boolean + + + + showRequiredLabel + false + true + boolean + + + + suffix + false + true + java.lang.String + + + + title + false + true + java.lang.String + + + text, hidden, assetCategories, assetTags, textarea, timeZone, password, checkbox, radio, submit, button, color, email, number, range, resource, url, and an empty value. If an empty value or no value is set, the input's type is obtained automatically from the input component's bean.]]> + type + false + true + java.lang.String + + + true.]]> + useNamespace + false + true + boolean + + + + value + false + true + java.lang.Object + + + div that wraps the input component.]]> + wrapperCssClass + false + true + java.lang.String + + true + + + + layout + com.liferay.taglib.aui.LayoutTag + JSP + + + cssClass + false + true + java.lang.String + + true + + + + model-context + com.liferay.taglib.aui.ModelContextTag + JSP + + + bean + false + true + java.lang.Object + + + + defaultLanguageId + false + true + java.lang.String + + + + model + false + true + java.lang.Class + + + + <nav:item> components for an <aui:nav-bar> component.]]> + nav + com.liferay.taglib.aui.NavTag + JSP + + + ariaLabel + false + true + java.lang.String + + + <p> tag could be used for something other than a paragraph.]]> + ariaRole + false + true + java.lang.String + + + collapsible + false + true + boolean + + + + cssClass + false + true + java.lang.String + + + icon + false + true + java.lang.String + + + + id + false + true + java.lang.String + + + true.]]> + useNamespace + false + true + boolean + + true + + + + nav-bar + com.liferay.taglib.aui.NavBarTag + JSP + + + cssClass + false + true + java.lang.String + + + + id + false + true + java.lang.String + + true + + + <aui:nav-bar> component.]]> + nav-bar-search + com.liferay.taglib.aui.NavBarSearchTag + JSP + + + cssClass + false + true + java.lang.String + + + + id + false + true + java.lang.String + + + file + false + true + java.lang.String + + + + searchContainer + false + true + com.liferay.portal.kernel.dao.search.SearchContainer + + true + + + <aui:nav> component.]]> + nav-item + com.liferay.taglib.aui.NavItemTag + JSP + + href attribute.]]> + anchorCssClass + false + true + java.lang.String + + + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> + anchorData + false + true + java.lang.Object + + + href attribute.]]> + anchorId + false + true + java.lang.String + + + + ariaLabel + false + true + java.lang.String + + + <p> tag could be used for something other than a paragraph.]]> + ariaRole + false + true + java.lang.String + + + + cssClass + false + true + java.lang.String + + + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> + data + false + true + java.lang.Object + + + false.]]> + dropdown + false + true + boolean + + + + href + false + true + java.lang.Object + + + + iconCssClass + false + true + java.lang.String + + + + id + false + true + java.lang.String + + + + label + false + true + java.lang.String + + + false.]]> + selected + false + true + boolean + + + state + false + true + java.lang.String + + + + title + false + true + java.lang.String + + + toggle + false + true + boolean + + + href location when a user clicks the navigation item. The default value is false.]]> + useDialog + false + true + boolean + + + drop-down-menu class. The default value is true.]]> + wrapDropDownMenu + false + true + boolean + + true + + + <aui:select> component.]]> + option + com.liferay.taglib.aui.OptionTag + JSP + + + cssClass + false + true + java.lang.String + + + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> + data + false + true + java.util.Map + + + false.]]> + disabled + false + true + boolean + + + + label + false + true + java.lang.Object + + + false.]]> + selected + false + true + boolean + + + text-align:right;.]]> + style + false + true + java.lang.String + + + useModelValue + false + true + boolean + + + label attribute.]]> + value + false + true + java.lang.Object + + true + + + panel + com.liferay.taglib.aui.PanelTag + JSP + + collapsed + false + true + boolean + + + collapsible + false + true + boolean + + + id + false + true + java.lang.String + + + label + false + true + java.lang.String + + + + <aui:col> components.]]> + row + com.liferay.taglib.aui.RowTag + JSP + + + cssClass + false + true + java.lang.String + + + row-fluid CSS class to the row. The default value is true. If set to false, the row CSS class is assigned.]]> + fluid + false + true + boolean + + + + id + false + true + java.lang.String + + true + + + + script + com.liferay.taglib.aui.ScriptTag + JSP + + + position + false + true + java.lang.String + + + + use + false + true + java.lang.String + + + + <aui:option> components.]]> + select + com.liferay.taglib.aui.SelectTag + JSP + + + bean + false + true + java.lang.Object + + + false.]]> + changesContext + false + true + boolean + + + + cssClass + false + true + java.lang.String + + + HashMap<"class-name", "foo"> would render as the attribute data-class-name = "foo";.]]> + data + false + true + java.util.Map + + + false.]]> + disabled + false + true + boolean + + + false.]]> + first + false + true + boolean + + + + helpMessage + false + true + java.lang.String + + + + id + false + true + java.lang.String + + + ignoreRequestValue + false + true + boolean + + + false.]]> + inlineField + false + true + boolean + + + right and left.]]> + inlineLabel + false + true + java.lang.String + + + + label + false + true + java.lang.String + + + false.]]> + last + false + true + boolean + + + ListTypeImpl.java.]]> + listType + false + true + java.lang.String + + + listTypeFieldName + false + true + java.lang.String + + + true, the select field expands to allow for multiple selections. The default value is false.]]> + multiple + false + true + boolean + + + label attribute and takes the place of the label.]]> + name + true + true + java.lang.String + + + + onChange + false + true + java.lang.String + + + + onClick + false + true + java.lang.String + + + + prefix + false + true + java.lang.String + + + false.]]> + required + false + true + boolean + + + false.]]> + showEmptyOption + false + true + boolean + + + required attribute is set to true. The default value is false.]]> + showRequiredLabel + false + true + boolean + + + + suffix + false + true + java.lang.String + + + + title + false + true + java.lang.String + + + true.]]> + useNamespace + false + true + boolean + + true + + + + spacer + com.liferay.taglib.aui.SpacerTag + JSP + + + + translation-manager + com.liferay.taglib.aui.TranslationManagerTag + JSP + + + availableLocales + false + true + java.util.Locale[] + + + + defaultLanguageId + false + true + java.lang.String + + + editingLanguageId + false + true + java.lang.String + + + + id + false + true + java.lang.String + + + true. If this is set to false, the translation manager will not work entirely.]]> + initialize + false + true + boolean + + + false.]]> + readOnly + false + true + boolean + + + + + validator + com.liferay.taglib.aui.ValidatorTagImpl + JSP + + + errorMessage + false + true + java.lang.String + + + acceptFiles, alpha, alphanum, date, digits, email, equalTo, iri, max, maxLength, min, minLength, number, required, and url.]]> + name + true + true + java.lang.String + + + + + workflow-status + com.liferay.taglib.aui.WorkflowStatusTag + JSP + + + bean + false + true + java.lang.Object + + + + helpMessage + false + true + java.lang.String + + + + id + false + true + java.lang.String + + + + model + false + true + java.lang.Class + + + true.]]> + showIcon + false + true + boolean + + + true.]]> + showLabel + false + true + boolean + + + 0 (Approved), 1 (Pending), 2 (Draft), 3 (Expired), 4 (Denied), 5 (Inactive), 6 (Incomplete), 7 (Scheduled), and 8 (In-Trash). Any other value defaults to status (Any).]]> + status + false + true + java.lang.Integer + + + + statusMessage + false + true + java.lang.String + + + + version + false + true + java.lang.String + + +
\ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/build.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/build.ftl new file mode 100644 index 0000000..02fc2bb --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/build.ftl @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/classpath.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/classpath.ftl new file mode 100644 index 0000000..52b39b8 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/classpath.ftl @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/ex/DuplicateEmail.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/DuplicateEmail.ftl new file mode 100644 index 0000000..cc3117c --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/DuplicateEmail.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class DuplicateUserEmailAddressException extends ${pluginMainException} { + + public DuplicateUserEmailAddressException() { + super(); + } + + public DuplicateUserEmailAddressException(String msg) { + super(msg); + } + + public DuplicateUserEmailAddressException(String msg, Throwable cause) { + super(msg, cause); + } + + public DuplicateUserEmailAddressException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/ex/EmailAddress.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/EmailAddress.ftl new file mode 100644 index 0000000..0f4c198 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/EmailAddress.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class EmailAddressException extends ${pluginMainException} { + + public EmailAddressException() { + super(); + } + + public EmailAddressException(String msg) { + super(msg); + } + + public EmailAddressException(String msg, Throwable cause) { + super(msg, cause); + } + + public EmailAddressException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/ex/MainException.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/MainException.ftl new file mode 100644 index 0000000..ecd25e8 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/MainException.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class ${pluginMainException} extends Exception { + + public ${pluginMainException}() { + super(); + } + + public ${pluginMainException}(String msg) { + super(msg); + } + + public ${pluginMainException}(String msg, Throwable cause) { + super(msg, cause); + } + + public ${pluginMainException}(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/ex/NoSuchEmail.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/NoSuchEmail.ftl new file mode 100644 index 0000000..8a0b688 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/NoSuchEmail.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class NoSuchEmailAddressException extends NoSuchModelException { + + public NoSuchEmailAddressException() { + super(); + } + + public NoSuchEmailAddressException(String msg) { + super(msg); + } + + public NoSuchEmailAddressException(String msg, Throwable cause) { + super(msg, cause); + } + + public NoSuchEmailAddressException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/ex/NoSuchModel.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/NoSuchModel.ftl new file mode 100644 index 0000000..5f19171 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/NoSuchModel.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class NoSuchModelException extends ${pluginMainException} { + + public NoSuchModelException() { + super(); + } + + public NoSuchModelException(String msg) { + super(msg); + } + + public NoSuchModelException(String msg, Throwable cause) { + super(msg, cause); + } + + public NoSuchModelException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/ex/Password.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/Password.ftl new file mode 100644 index 0000000..96b7a3f --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/Password.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class PasswordExpiredException extends ${pluginMainException} { + + public PasswordExpiredException() { + super(); + } + + public PasswordExpiredException(String msg) { + super(msg); + } + + public PasswordExpiredException(String msg, Throwable cause) { + super(msg, cause); + } + + public PasswordExpiredException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/ex/WebsiteURL.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/WebsiteURL.ftl new file mode 100644 index 0000000..e81b7f2 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/ex/WebsiteURL.ftl @@ -0,0 +1,24 @@ +package ${packageName}.exception; + +/** + * @author kailash.chand.yadav + */ +public class WebsiteURLException extends ${pluginMainException} { + + public WebsiteURLException() { + super(); + } + + public WebsiteURLException(String msg) { + super(msg); + } + + public WebsiteURLException(String msg, Throwable cause) { + super(msg, cause); + } + + public WebsiteURLException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/icon.png b/src/com/accenture/liferayspringplugin/wizards/tpl/icon.png new file mode 100644 index 0000000..807b862 Binary files /dev/null and b/src/com/accenture/liferayspringplugin/wizards/tpl/icon.png differ diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/lib/log4j.properties b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/log4j.properties new file mode 100644 index 0000000..65cae40 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/log4j.properties @@ -0,0 +1,5 @@ +log4j.rootLogger=DEBUG, STDOUT +log4j.logger.deng=INFO +log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender +log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout +log4j.appender.STDOUT.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/lib/logback-classic-1.1.3.jar b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/logback-classic-1.1.3.jar new file mode 100644 index 0000000..c5ecdeb Binary files /dev/null and b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/logback-classic-1.1.3.jar differ diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/lib/logback-core-1.1.3.jar b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/logback-core-1.1.3.jar new file mode 100644 index 0000000..996b722 Binary files /dev/null and b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/logback-core-1.1.3.jar differ diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/lib/logback.xml b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/logback.xml new file mode 100644 index 0000000..ae1cc02 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/logback.xml @@ -0,0 +1,13 @@ + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/lib/logging.properties b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/logging.properties new file mode 100644 index 0000000..61bed97 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/logging.properties @@ -0,0 +1,4 @@ +.level=INFO +handlers=java.util.logging.ConsoleHandler +java.util.logging.ConsoleHandler.level=FINEST +deng.level=FINEST \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-api-1.7.12.jar b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-api-1.7.12.jar new file mode 100644 index 0000000..e357ddc Binary files /dev/null and b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-api-1.7.12.jar differ diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-jdk14-1.7.12.jar b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-jdk14-1.7.12.jar new file mode 100644 index 0000000..ac95251 Binary files /dev/null and b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-jdk14-1.7.12.jar differ diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-log4j12-1.7.12.jar b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-log4j12-1.7.12.jar new file mode 100644 index 0000000..49a24fc Binary files /dev/null and b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-log4j12-1.7.12.jar differ diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-simple-1.7.12.jar b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-simple-1.7.12.jar new file mode 100644 index 0000000..1684bb8 Binary files /dev/null and b/src/com/accenture/liferayspringplugin/wizards/tpl/lib/slf4j-simple-1.7.12.jar differ diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-display.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-display.ftl new file mode 100644 index 0000000..bff9107 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-display.ftl @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-portlet-ext.tld b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-portlet-ext.tld new file mode 100644 index 0000000..7c04664 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-portlet-ext.tld @@ -0,0 +1,538 @@ + + + + + 1.0 + 1.1 + liferay-portlet + http://liferay.com/tld/portlet + + + + + actionURL + com.liferay.taglib.portlet.ActionURLTag + com.liferay.taglib.portlet.ActionURLTei + JSP + + allowEmptyParam + false + true + + + anchor + false + true + + + copyCurrentRenderParameters + false + true + + + doAsGroupId + false + true + + + doAsUserId + false + true + + + encrypt + false + true + + + escapeXml + false + true + + + name + false + true + + + plid + false + true + + + portletConfiguration + false + true + + + portletMode + false + true + + + portletName + false + true + + + refererGroupId + false + true + + + refererPlid + false + true + + + secure + false + true + + + var + false + true + + + varImpl + false + true + + + windowState + false + true + + + + icon-back + com.liferay.taglib.portletext.IconBackTag + JSP + + + icon-close + com.liferay.taglib.portletext.IconCloseTag + JSP + + + icon-configuration + com.liferay.taglib.portletext.IconConfigurationTag + JSP + + + icon-edit + com.liferay.taglib.portletext.IconEditTag + JSP + + + icon-edit-defaults + com.liferay.taglib.portletext.IconEditDefaultsTag + JSP + + + icon-edit-guest + com.liferay.taglib.portletext.IconEditGuestTag + JSP + + + icon-export-import + com.liferay.taglib.portletext.IconExportImportTag + JSP + + + icon-help + com.liferay.taglib.portletext.IconHelpTag + JSP + + + icon-maximize + com.liferay.taglib.portletext.IconMaximizeTag + JSP + + + icon-minimize + com.liferay.taglib.portletext.IconMinimizeTag + JSP + + + icon-options + com.liferay.taglib.portletext.IconOptionsTag + JSP + + + icon-portlet + com.liferay.taglib.portletext.IconPortletTag + JSP + + ariaRole + false + true + + + id + false + true + + + label + false + true + + + portlet + false + true + + + url + false + true + + + + icon-portlet-css + com.liferay.taglib.portletext.IconPortletCssTag + JSP + + + icon-print + com.liferay.taglib.portletext.IconPrintTag + JSP + + + icon-refresh + com.liferay.taglib.portletext.IconRefreshTag + JSP + + + param + com.liferay.taglib.util.ParamTag + empty + + name + true + true + + + value + true + true + + + + preview + com.liferay.taglib.portletext.PreviewTag + JSP + + portletName + true + true + + + queryString + false + true + + + showBorders + false + true + + + width + false + true + + + + + + + renderURL + com.liferay.taglib.portlet.RenderURLTag + com.liferay.taglib.portlet.RenderURLTei + JSP + + allowEmptyParam + false + true + + + anchor + false + true + + + copyCurrentRenderParameters + false + true + + + doAsGroupId + false + true + + + doAsUserId + false + true + + + encrypt + false + true + + + escapeXml + false + true + + + plid + false + true + + + portletConfiguration + false + true + + + portletMode + false + true + + + portletName + false + true + + + refererGroupId + false + true + + + refererPlid + false + true + + + secure + false + true + + + var + false + true + + + varImpl + false + true + + + windowState + false + true + + + + renderURLParams + com.liferay.taglib.portlet.RenderURLParamsTag + JSP + + varImpl + true + true + + + + + + + resourceURL + com.liferay.taglib.portlet.ResourceURLTag + com.liferay.taglib.portlet.ResourceURLTei + JSP + + anchor + false + true + + + copyCurrentRenderParameters + false + true + + + doAsGroupId + false + true + + + doAsUserId + false + true + + + encrypt + false + true + + + escapeXml + false + true + + + id + false + true + + + plid + false + true + + + portletConfiguration + false + true + + + portletMode + false + true + + + portletName + false + true + + + refererGroupId + false + true + + + refererPlid + false + true + + + secure + false + true + + + var + false + true + + + varImpl + false + true + + + windowState + false + true + + + + runtime + com.liferay.taglib.portletext.RuntimeTag + JSP + + defaultPreferences + false + true + + + portletName + true + true + + + queryString + false + true + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-portlet.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-portlet.ftl new file mode 100644 index 0000000..bf2c3b6 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-portlet.ftl @@ -0,0 +1,28 @@ + + + + + + ${portletName} + /icon.png + /css/main.css + /js/main.js + ${portletClass}-portlet + + + administrator + Administrator + + + guest + Guest + + + power-user + Power User + + + user + User + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-portlet.tld b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-portlet.tld new file mode 100644 index 0000000..a7cd2fd --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-portlet.tld @@ -0,0 +1,158 @@ + + + + + 1.0 + 1.1 + portlet + http://java.sun.com/portlet + + actionURL + com.liferay.taglib.portlet.ActionURLTag + com.liferay.taglib.portlet.ActionURLTei + JSP + + copyCurrentRenderParameters + false + true + + + escapeXml + false + true + + + name + false + true + + + portletMode + false + true + + + secure + false + true + + + var + false + true + + + windowState + false + true + + + + defineObjects + com.liferay.taglib.portlet.DefineObjectsTag + com.liferay.taglib.portlet.DefineObjectsTei + empty + + + namespace + com.liferay.taglib.portlet.NamespaceTag + empty + + + param + com.liferay.taglib.util.ParamTag + empty + + name + true + true + + + value + true + true + + + + property + com.liferay.taglib.util.PropertyTag + empty + + name + true + true + + + value + true + true + + + + renderURL + com.liferay.taglib.portlet.RenderURLTag + com.liferay.taglib.portlet.RenderURLTei + JSP + + copyCurrentRenderParameters + false + true + + + escapeXml + false + true + + + portletMode + false + true + + + secure + false + true + + + var + false + true + + + windowState + false + true + + + + resourceURL + com.liferay.taglib.portlet.ResourceURLTag + com.liferay.taglib.portlet.ResourceURLTei + JSP + + cacheability + false + true + + + escapeXml + false + true + + + id + false + true + + + secure + false + true + + + var + false + true + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-security.tld b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-security.tld new file mode 100644 index 0000000..f8e6f6d --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-security.tld @@ -0,0 +1,106 @@ + + + + + 1.0 + 1.1 + liferay-security + http://liferay.com/tld/security + + doAsURL + com.liferay.taglib.security.DoAsURLTag + com.liferay.taglib.security.DoAsURLTei + JSP + + doAsUserId + false + true + + + var + false + true + + + + encrypt + com.liferay.taglib.security.EncryptTag + JSP + + className + false + true + + + protocol + true + true + + + style + false + true + + + target + false + true + + + unencryptedParams + false + true + + + url + true + true + + + + permissionsURL + com.liferay.taglib.security.PermissionsURLTag + com.liferay.taglib.security.PermissionsURLTei + JSP + + modelResource + true + true + + + modelResourceDescription + true + true + + + redirect + false + true + + + resourceGroupId + false + true + + + resourcePrimKey + true + true + + + roleTypes + false + true + + + var + false + true + + + windowState + false + true + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-theme.tld b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-theme.tld new file mode 100644 index 0000000..90ac81d --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-theme.tld @@ -0,0 +1,65 @@ + + + + + 1.0 + 1.1 + theme + http://liferay.com/tld/theme + + defineObjects + com.liferay.taglib.theme.DefineObjectsTag + com.liferay.taglib.theme.DefineObjectsTei + empty + + + include + com.liferay.taglib.theme.IncludeTag + JSP + + page + true + true + + + + layout-icon + com.liferay.taglib.theme.LayoutIconTag + JSP + + layout + true + true + + + + meta-tags + com.liferay.taglib.theme.MetaTagsTag + JSP + + + param + com.liferay.taglib.util.ParamTag + JSP + + name + true + true + + + value + true + true + + + + wrap-portlet + com.liferay.taglib.theme.WrapPortletTag + JSP + + page + true + true + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-ui.tld b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-ui.tld new file mode 100644 index 0000000..9f7b842 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-ui.tld @@ -0,0 +1,4434 @@ + + + + Provides the Liferay UI component tags, prefixed with liferay-ui:]]>. + 1.0 + liferay-ui + http://liferay.com/tld/ui + + app-view-display-style + com.liferay.taglib.ui.AppViewDisplayStyleTag + empty + + displayStyle + true + true + + + displayStyles + true + true + + + requestParams + true + true + + + + app-view-entry + com.liferay.taglib.ui.AppViewEntryTag + empty + + actionJsp + false + true + + + assetCategoryClassName + false + true + + + assetCategoryClassPK + false + true + + + assetTagClassName + false + true + + + assetTagClassPK + false + true + + + author + false + true + + + createDate + false + true + + + cssClass + false + true + + + data + false + true + + + description + false + true + + + displayDate + false + true + + + displayStyle + true + true + + + expirationDate + false + true + + + folder + false + true + + + groupId + false + true + + + latestApprovedVersion + false + true + + + latestApprovedVersionAuthor + false + true + + + locked + false + true + + + modifiedDate + false + true + + + reviewDate + false + true + + + rowCheckerId + false + true + + + rowCheckerName + false + true + + + shortcut + false + true + + + showCheckbox + true + true + + + showLinkTitle + false + true + + + status + false + true + + + thumbnailDivStyle + false + true + + + thumbnailSrc + true + true + + + thumbnailStyle + false + true + + + title + true + true + + + version + false + true + + + url + false + true + + + + app-view-navigation-entry + com.liferay.taglib.ui.AppViewNavigationEntryTag + empty + + actionJsp + false + true + + + cssClass + false + true + + + dataView + false + true + + + entryTitle + true + true + + + iconImage + false + true + + + iconSrc + false + true + + + selected + false + true + + + viewURL + true + true + + + + app-view-toolbar + com.liferay.taglib.ui.AppViewToolbarTag + JSP + + includeDisplayStyle + false + true + + + includeSelectAll + false + true + + + searchJsp + false + true + + + + app-view-search-entry + com.liferay.taglib.ui.AppViewSearchEntryTag + empty + + actionJsp + false + true + + + containerIcon + false + true + + + containerName + false + true + + + containerSrc + false + true + + + containerType + false + true + + + cssClass + false + true + + + description + true + true + + + fileEntryTuples + false + true + + + locked + false + true + + + mbMessages + false + true + + + queryTerms + true + true + + + rowCheckerId + false + true + + + rowCheckerName + false + true + + + showCheckbox + false + true + + + status + false + true + + + thumbnailSrc + false + true + + + title + true + true + + + url + true + true + + + versions + false + true + + + + asset-categories-error + com.liferay.taglib.ui.AssetCategoriesErrorTag + JSP + + + asset-categories-navigation + com.liferay.taglib.ui.AssetCategoriesNavigationTag + JSP + + hidePortletWhenEmpty + false + true + + + vocabularyIds + false + true + + + + asset-categories-selector + com.liferay.taglib.ui.AssetCategoriesSelectorTag + JSP + + className + false + true + + + classPK + false + true + + + contentCallback + false + true + + + curCategoryIds + false + true + + + groupIds + false + true + + + hiddenInput + false + true + + + + asset-categories-summary + com.liferay.taglib.ui.AssetCategoriesSummaryTag + JSP + + className + true + true + + + classPK + true + true + + + message + false + true + + + portletURL + false + true + + + + asset-links + com.liferay.taglib.ui.AssetLinksTag + JSP + + assetEntryId + false + true + + + className + false + true + + + classPK + false + true + + + + asset-tags-error + com.liferay.taglib.ui.AssetTagsErrorTag + JSP + + + asset-tags-navigation + com.liferay.taglib.ui.AssetTagsNavigationTag + JSP + + classNameId + false + true + + + displayStyle + false + true + + + hidePortletWhenEmpty + false + true + + + maxAssetTags + false + true + + + showAssetCount + false + true + + + showZeroAssetCount + false + true + + + + asset-tags-selector + com.liferay.taglib.ui.AssetTagsSelectorTag + JSP + + autoFocus + false + true + + + className + false + true + + + classPK + false + true + + + contentCallback + false + true + + + curTags + false + true + + + groupIds + false + true + + + hiddenInput + false + true + + + id + false + true + + + + asset-tags-summary + com.liferay.taglib.ui.AssetTagsSummaryTag + JSP + + assetTagNames + false + true + + + className + true + true + + + classPK + true + true + + + message + false + true + + + portletURL + false + true + + + + breadcrumb + com.liferay.taglib.ui.BreadcrumbTag + JSP + + displayStyle + false + true + + + portletURL + false + true + + + selLayout + false + true + + + selLayoutParam + false + true + + + showCurrentGroup + false + true + + + showCurrentPortlet + false + true + + + showGuestGroup + false + true + + + showLayout + false + true + + + showParentGroups + false + true + + + showPortletBreadcrumb + false + true + + + + Creates a calendar UI with configurable events. + calendar + com.liferay.taglib.ui.CalendarTag + JSP + + Takes the given set of integers, corresponding to a day of the chosen month, and marks them with a dot. + data + false + true + java.util.Set + + + Sets the day of the month to highlight in the calendar. + day + false + true + int + + + Sets the format of the header. + headerFormat + false + true + java.text.Format + + + Sets the pattern for the calendar header. A possible value is MMM/dd/yyyy]]>. + headerPattern + false + true + + + Sets the month of the year to display at the top of the calendar. + month + true + true + int + + + Sets whether to display up to six calendar weeks relative to the set day. If the set day of the month is in the latter part of the month, the current month's weeks will be displayed and up to two weeks of the next month will be displayed. The default value is false]]>. + showAllPotentialWeeks + false + true + boolean + + + Sets the year to display at the top of the calendar. + year + true + true + int + + + + captcha + com.liferay.taglib.ui.CaptchaTag + JSP + + url + true + true + + + + categorization-filter + com.liferay.taglib.ui.CategorizationFilterTag + JSP + + assetType + false + true + + + portletURL + false + true + + + + custom-attribute + com.liferay.taglib.ui.CustomAttributeTag + JSP + + className + true + true + + + classPK + true + true + + + editable + false + true + + + label + false + true + + + name + true + true + + + + custom-attribute-list + com.liferay.taglib.ui.CustomAttributeListTag + JSP + + className + true + true + + + classPK + true + true + + + editable + false + true + + + ignoreAttributeNames + false + true + + + label + false + true + + + + custom-attributes-available + com.liferay.taglib.ui.CustomAttributesAvailableTag + JSP + + className + true + true + + + classPK + false + true + + + companyId + false + true + + + ignoreAttributeNames + false + true + + + editable + false + true + + + + ddm-template-selector + com.liferay.taglib.ui.DDMTemplateSelectorTag + JSP + + classNameId + true + true + + + displayStyle + true + true + + + displayStyleGroupId + true + true + + + displayStyles + false + true + + + icon + false + true + + + label + false + true + + + refreshURL + false + true + + + showEmptyOption + false + true + + + + diff + com.liferay.taglib.ui.DiffTag + JSP + + diffResults + true + true + + + sourceName + true + true + + + targetName + true + true + + + + diff-html + com.liferay.taglib.ui.DiffHtmlTag + JSP + + diffHtmlResults + true + true + + + + discussion + com.liferay.taglib.ui.DiscussionTag + JSP + + assetEntryVisible + false + true + + + className + true + true + + + classPK + true + true + + + formAction + true + true + + + formName + false + true + + + hideControls + false + true + + + permissionClassName + false + true + + + permissionClassPK + false + true + + + ratingsEnabled + false + true + + + redirect + false + true + + + Deprecated as of 6.2.0, with no direct replacement + subject + false + true + + + userId + true + true + + + + Creates an error message to display to the user. + error + com.liferay.taglib.ui.ErrorTag + com.liferay.taglib.ui.ErrorTei + JSP + + Sets a class for the exception. + exception + false + true + + + Sets the name of the field that the error message is focused on. + focusField + false + true + + + Sets a key to be placed in the SessionErrors]]> object to trigger the error message. + key + false + true + + + Sets explicit message text or sets the name of a language key from which to derive text for the message. + message + false + true + + + rowBreak + false + true + + + Sets whether to translate the message into the user's language. The default value is true]]>. + translateMessage + false + true + boolean + + + + error-marker + com.liferay.taglib.ui.ErrorMarkerTag + JSP + + key + false + true + + + value + false + true + + + + flags + com.liferay.taglib.ui.FlagsTag + JSP + + className + true + true + + + classPK + true + true + + + contentTitle + true + true + + + label + false + true + + + message + false + true + + + reportedUserId + true + true + + + + flash + com.liferay.taglib.ui.FlashTag + JSP + + align + false + true + + + allowFullScreen + false + true + + + allowScriptAccess + false + true + + + base + false + true + + + bgcolor + false + true + + + devicefont + false + true + + + flashvars + false + true + + + height + false + true + + + id + false + true + + + loop + false + true + + + menu + false + true + + + movie + true + true + + + play + false + true + + + quality + false + true + + + salign + false + true + + + scale + false + true + + + swliveconnect + false + true + + + version + false + true + + + width + false + true + + + wmode + false + true + + + + form-navigator + com.liferay.taglib.ui.FormNavigatorTag + JSP + + backURL + false + true + + + categoryNames + true + true + + + categorySections + true + true + + + displayStyle + false + true + + + formName + false + true + + + htmlBottom + false + true + + + htmlTop + false + true + + + jspPath + false + true + + + showButtons + false + true + + + + group-search + com.liferay.taglib.ui.GroupSearchTag + JSP + + groupParams + true + true + + + portletURL + true + true + + + rowChecker + false + true + + + + Creates a header that displays its text above a horizontal rule accompanied by a configurable back URL button. + header + com.liferay.taglib.ui.HeaderTag + JSP + + Sets the text to be displayed on mouse over of the back URL. The default value is Back]]>. + backLabel + false + true + + + Sets a URL for navigating back to. + backURL + false + true + + + Sets a CSS class for styling the header component. + cssClass + false + true + + + Sets whether to escape the header's XML tags. The default value is true]]>. + escapeXml + false + true + boolean + + + Sets whether to translate the header's title]]> into the localized language. The default value is true]]>. + localizeTitle + false + true + boolean + + + Sets whether to display the back URL. The default value is true]]>. + showBackURL + false + true + boolean + + + Sets the header's title and displays it as the header text. + title + true + true + + + + Creates a fully configurable icon that provides access to current Liferay theme icons. + icon + com.liferay.taglib.ui.IconTag + JSP + + Sets the value of the alt]]> attribute for the embedded img]]> tag. + alt + false + true + + + Sets a role for assistive technologies to interpret for HTML elements that have been used for something other than their intended purpose. For example, the <p>]]> tag could be used for something other than a paragraph. + ariaRole + false + true + + + Sets a CSS class for styling this component. + cssClass + false + true + + + Stores miscellaneous data via a map. This data is not shared with the browser. The map holds key value pairs of type <String, Object>]]>. + data + false + true + java.util.Map + + + Sets the icon from a Bootstrap icon CSS Class. Note that any image for the image]]> attribute takes precedence. Icon CSS classes to specify for this attribute can be found at http://marcoceppi.github.io/bootstrap-glyphicons/]]>. + iconCssClass + false + true + + + Identifies the component instance. + id + false + true + + + Sets the icon's image using an image icon from the current theme. The value can be the filename prefix of any image file in the theme's common]]> image folder. This image takes precedence over any icon value set via the iconCssClass]]> attribute. + image + false + true + + + Sets the icon to display on mouse over of the icon. The icon image comes from the current theme. The value can be the filename prefix of any image file in the theme's common]]> image folder. + imageHover + false + true + + + Sets whether to display the message]]> attribute's value as the icon's label. + label + false + true + boolean + + + Sets the language of the icon, to assist search engines and web browsers in finding and rendering the icon appropriately. + lang + false + true + + + Sets a CSS class for styling the icon's URL. + linkCssClass + false + true + + + Sets whether to translate the icon's message]]> into the user's language. + localizeMessage + false + true + boolean + + + Sets text to be displayed for the icon on mouse over. + message + false + true + + + Sets an HTTP request method. Possible values are get]]> and post]]>. + method + false + true + + + Sets a function to be called on a user clicking the icon. + onClick + false + true + + + Sets the location of the image file to use in the icon. + src + false + true + + + Sets the location of the image file to use on mouse over of the icon. This value takes precedence over the imageHover]]> attribute. This image takes precedence over icons set with the imageHover]]> attribute. + srcHover + false + true + + + Sets the target window in which the URL is opened. The default value is self]]>. Possible values are blank]]>, self]]>, parent]]>, top]]>, and a unique frame's name. + target + false + true + + + Sets whether to use a tooltip. The default value is true]]>. + toolTip + false + true + boolean + + + Sets the URL navigated to when the icon is clicked. + url + false + true + + + Sets whether to open the URL in a dialog window. The default value is false]]>. + useDialog + false + true + boolean + + + + Creates an icon to associate with deactivating an item. + icon-deactivate + com.liferay.taglib.ui.IconDeactivateTag + JSP + + Sets whether to display a message on the icon's label on mouse over of the icon. The default value is false]]>. + label + false + true + boolean + + + Sets the URL navigated to when the icon is clicked. + url + true + true + + + + Creates a configurable icon to associate with deleting or removing an item. + icon-delete + com.liferay.taglib.ui.IconDeleteTag + JSP + + Sets text to use in place of the text from the default deletion confirmation message language key are-you-sure-you-want-to-delete-this]]>. If the trash]]> attribute is set to true]]>, no confirmation message is shown. + confirmation + false + true + + + Sets a CSS class for styling this component. + cssClass + false + true + + + Identifies the component instance. + id + false + true + + + Sets the icon's image using an image icon from the current theme. The value can be the filename prefix of any image file in the theme's common]]> image folder. The image takes precedence over any default icon images. + image + false + true + + + Sets whether to display the message]]> attribute's value as the icon's label. The default value is false]]>. + label + false + true + boolean + + + Sets the text to be displayed on mouse over of the icon. + message + false + true + + + Sets an HTTP request method to be invoked. Possible values are get]]> and post]]>. + method + false + true + + + Sets whether to use the trash icon instead of the remove icon. The default value isfalse]]>. + trash + false + true + boolean + + + Sets the URL navigated to when the icon is clicked. + url + true + true + + + + Creates a help icon that displays a custom message as a tooltip on mouse over of the help icon. + icon-help + com.liferay.taglib.ui.IconHelpTag + JSP + + Sets the text to be displayed on mouse over of the icon. + message + true + true + + + + Creates a list of icons from a list of child components. + icon-list + com.liferay.taglib.ui.IconListTag + JSP + + Sets whether to render the icon list when there is only one child component. The default value is false]]>. + showWhenSingleIcon + false + true + boolean + + + + Creates an icon menu from a list of child components. + icon-menu + com.liferay.taglib.ui.IconMenuTag + JSP + + Sets a CSS class for styling this component. + cssClass + false + true + + + Sets the position the icon menu dialog pops up in relation to the trigger. The default direction is left]]>. Possible values are up]]>, down]]>, left]]> or right]]>. + direction + false + true + + + Sets whether to disable the icon menu. + disabled + false + true + boolean + + + Sets whether to extend the icon menu trigger by wrapping it in a button. The default value is true]]>. + extended + false + true + boolean + + + Sets the location of the image file to use in the icon. + icon + false + true + + + Identifies the component instance. + id + false + true + + + Sets whether to translate the message to the user's language. The default value is true]]>. + localizeMessage + false + true + boolean + + + Sets the number of items shown in the icon menu before scrolling. The default value is 15. + maxDisplayItems + false + true + int + + + Sets the text to be displayed next to the icon menu trigger. The default value is actions]]>. + message + false + true + + + Sets whether to add the select]]> CSS class to the icon menu. If set to true]]>, the selected icon is added to the icon menu's trigger when the icon is selected. The default value is false]]>. + select + false + true + boolean + + + Sets whether to extend the icon menu by default. The default value is false]]>. + showExpanded + false + true + boolean + + + Sets whether to show an arrow, indicating a popup dialog, next to the icon menu's trigger icon. The default value is true]]>. + showArrow + false + true + boolean + + + Sets whether to show the icon menu when there is only one icon. The default value is false]]>. + showWhenSingleIcon + false + true + boolean + + + Sets a CSS class for styling the trigger for the icon menu. The default value is btn btn-default]]>. + triggerCssClass + false + true + + + Sets whether the icon menu drop-down caret points to the direction set by the direction]]> attribute. + useIconCaret + false + true + boolean + + + + input-asset-links + com.liferay.taglib.ui.InputAssetLinksTag + JSP + + assetEntryId + false + true + + + className + false + true + + + classPK + false + true + + + + Creates a configurable input checkbox. + input-checkbox + com.liferay.taglib.ui.InputCheckBoxTag + JSP + + Sets a CSS class for styling the component. + cssClass + false + true + + + Sets whether the checkbox is selected by default. + defaultValue + false + true + boolean + + + Sets whether the checkbox is disabled. + disabled + false + true + boolean + + + Sets the name of the checkbox's form. + formName + false + true + + + Identifies the component instance. + id + false + true + + + Sets a function to be called on a user clicking the checkbox. + onClick + false + true + + + Sets a variable name for this component. + param + true + true + + + + Creates a date input field that displays a calendar UI for date selection. + input-date + com.liferay.taglib.ui.InputDateTag + JSP + + Sets whether the date field gets focus by default. The default value is false]]>. + autoFocus + false + true + boolean + + + Sets a CSS class for styling the component. + cssClass + false + true + + + Sets a variable name to refer to the day of the component. + dayParam + false + true + + + Sets the day value displayed in the input field. + dayValue + false + true + int + + + Sets whether to disable the namespace for the component. The default value is false]]>. + disableNamespace + false + true + boolean + + + Sets whether to disable the input field. The default value is false]]>. + disabled + false + true + boolean + + + Marks the first day of the week. The default value is Calendar.SUNDAY - 1]]>. + firstDayOfWeek + false + true + int + + + Sets the name of the date input's form. + formName + false + true + + + Sets a variable name to refer to the combined month and year of the component. + monthAndYearParam + false + true + + + Sets a variable name to refer to the month of the component. + monthParam + false + true + + + Sets the numerical value of the month and displays it in the input field. Integer values for the month start with 0]]>. + monthValue + false + true + int + + + Sets the date input's name. + name + false + true + + + Sets whether the component's values can be set to null. + nullable + false + true + + + Sets a variable name to refer to the year of the component. + yearParam + false + true + + + Sets the year value displayed in the input field. + yearValue + false + true + int + + + + Creates an input field for editing rich text. + input-editor + com.liferay.taglib.ui.InputEditorTag + JSP + + Sets configuration parameters using a map. The map holds key value pairs of type <String, String>]]>. + configParams + false + true + java.util.Map + + + Sets the language ID of the input editor's text. + contentsLanguageId + false + true + + + Sets the CSS class for styling this component. + cssClass + false + true + + + editorImpl + false + true + + + inlineEdit + false + true + + + inlineEditSaveURL + false + true + + + Sets configuration parameters using a map. The map holds key value pairs of <String, String>]]>. + fileBrowserParams + false + true + java.util.Map + + + height + false + true + + + initMethod + false + true + + + Sets the input editor's name. The default value is editor]]>. + name + false + true + + + Sets a function to be called when the input editor loses focus. + onBlurMethod + false + true + + + Sets a function to be called on a change in the input editor. + onChangeMethod + false + true + + + Sets a function to be called when the input editor gets focus. + onFocusMethod + false + true + + + Sets whether the field for the input editor is resizable. The default value is true]]>. + resizable + false + true + boolean + + + Sets whether to skip loading resources necessary for the CKEditor. The default value is false]]>. + skipEditorLoading + false + true + boolean + + + Sets the toolbar for the input editor. The default value is liferay]]>. Possible values are bbcode]]>, creole]]>, editInPlace]]>, email]]>, liferay]]>, liferayArticle]]>, phone]]>, simple]]>, and tablet]]>. + toolbarSet + false + true + + + width + false + true + + + + input-field + com.liferay.taglib.ui.InputFieldTag + JSP + + autoFocus + false + true + + + autoSize + false + true + + + bean + false + true + + + cssClass + false + true + + + dateTogglerCheckboxLabel + false + true + + + defaultLanguageId + false + true + + + defaultValue + false + true + + + disabled + false + true + + + field + true + true + + + fieldParam + false + true + + + formName + false + true + + + format + false + true + + + id + false + true + + + ignoreRequestValue + false + true + + + languageId + false + true + + + model + true + true + + + placeholder + false + true + + + + input-localized + com.liferay.taglib.ui.InputLocalizedTag + JSP + + autoFocus + false + true + + + autoSize + false + true + + + availableLocales + false + true + + + cssClass + false + true + + + defaultLanguageId + false + true + + + disabled + false + true + + + displayWidth + false + true + + + formName + false + true + + + id + false + true + + + ignoreRequestValue + false + true + + + languageId + false + true + + + maxLength + false + true + + + name + true + true + + + type + false + true + + + xml + true + true + + true + + + Creates an input move boxes UI component comprised of two columns of key value pairs that can be rearranged. + input-move-boxes + com.liferay.taglib.ui.InputMoveBoxesTag + JSP + + Sets a CSS class for styling this component. + cssClass + false + true + + + Sets the left box's name. + leftBoxName + true + true + + + Sets the left list of key value pairs. + leftList + true + true + java.util.List + + + Sets a function to be called on a change in selection in the left list. + leftOnChange + false + true + + + Sets whether the left list can be reordered. The default value is false]]>. + leftReorder + false + true + boolean + + + Sets the left box's title and displays it at the top of the box. + leftTitle + true + true + + + Sets the right box's name. + rightBoxName + true + true + + + Sets the right list of key value pairs. + rightList + true + true + java.util.List + + + Sets a function to be called on a change in selection in the right list. + rightOnChange + false + true + + + Sets whether the right list can be reordered. The default value is false]]>. + rightReorder + false + true + boolean + + + Sets the right box's title and displays it at the top of the box. + rightTitle + true + true + + + + input-permissions + com.liferay.taglib.ui.InputPermissionsTag + JSP + + formName + false + true + + + modelName + false + true + + + + input-permissions-params + com.liferay.taglib.ui.InputPermissionsParamsTag + JSP + + modelName + true + true + + + + input-repeat + com.liferay.taglib.ui.InputRepeatTag + JSP + + cssClass + false + true + + + event + false + true + + + + input-resource + com.liferay.taglib.ui.InputResourceTag + JSP + + cssClass + false + true + + + id + false + true + + + title + false + true + + + url + true + true + + + + input-scheduler + com.liferay.taglib.ui.InputSchedulerTag + JSP + + + Creates a configurable search box UI component. + input-search + com.liferay.taglib.ui.InputSearchTag + JSP + + Sets whether the search field gets focus by default. The default value is false]]>. + autoFocus + false + true + boolean + + + Sets the text value for the search button's label. The default value is Search]]>. + buttonLabel + false + true + + + Sets a CSS class for styling this component. + cssClass + false + true + + + Identifies the component instance. The default value is displayTerms.KEYWORDS]]>. + id + false + true + + + Sets the search box's name. The default value is displayTerms.KEYWORDS]]>. + name + false + true + + + Sets the placeholder text for the search field. The default value is the value of the buttonLabel]]> attribute. + placeholder + false + true + + + Sets whether to show the search button. The default value is true]]>. + showButton + false + true + boolean + + + Sets the search box's title. + title + false + true + + + Sets whether to use a namespace with the search button. The default value is true]]>. + useNamespace + false + true + boolean + + + + Creates a select UI input component with yes or no options. + input-select + com.liferay.taglib.ui.InputSelectTag + JSP + + Sets a CSS class for styling this component. + cssClass + false + true + + + Sets whether to select yes]]> as the input's default value. + defaultValue + false + true + boolean + + + Sets whether to disable input. + disabled + false + true + boolean + + + Sets the name of the input select's form. + formName + false + true + + + Sets a variable name for this component. + param + true + true + + + + Creates a configurable text area input field. + input-textarea + com.liferay.taglib.ui.InputTextAreaTag + JSP + + Sets a CSS class for styling this component. + cssClass + false + true + + + Sets text to be displayed in the text area. + defaultValue + false + true + + + Sets whether to disable input. The default value is false]]>. + disabled + false + true + boolean + + + Sets a variable name for this component. + param + true + true + + + + Creates a time input field that provides a scrollable dropdown list of hours, in intervals designated by the minuteInterval]]> attribute. + input-time + com.liferay.taglib.ui.InputTimeTag + JSP + + Sets the name of the AM/PM parameter for the time input. An acceptable value is ampm]]>. + amPmParam + true + true + + + Sets the time to AM or PM. Acceptable values are 0]]> for AM and 1]]> for PM. The default value is 0]]>. + amPmValue + false + true + int + + + Sets the CSS class for styling the time input. + cssClass + false + true + + + Sets the date parameter for the time input. An acceptable value is date]]>. + dateParam + false + true + + + Sets a date to associate with the time displayed. + dateValue + false + true + java.util.Date + + + Sets whether the input field is disabled. + disabled + false + true + boolean + + + Sets the name of the hour parameter for the component. An acceptable value is hour]]>. + hourParam + true + true + + + Sets the hour for the time displayed. The default value is 12]]>. + hourValue + false + true + int + + + Sets the minute intervals displayed in the input. The default value is 30]]>. + minuteInterval + false + true + int + + + Sets the name of the minute parameter for the component. An acceptable value is minute]]>. + minuteParam + true + true + + + Sets the minute for the time displayed. The default value is 00]]>. + minuteValue + false + true + int + + + Sets the time input's name. + name + false + true + + + + Creates a configurable timezone drop-down menu. + input-time-zone + com.liferay.taglib.ui.InputTimeZoneTag + JSP + + Sets whether the field gets focus by default. + autoFocus + false + true + boolean + + + Sets the CSS styling for this component. + cssClass + false + true + + + Sets whether daylight savings is considered for the times. The default value is true]]>. + daylight + false + true + boolean + + + Sets whether the field is disabled. + disabled + false + true + boolean + + + Corresponds to the time zone's full name, e.g. "Pacific Standard Time." A value of 0]]> displays the time zone's abbreviated name and a value of 1]]> displays its full name. The default value is 0]]>. + displayStyle + false + true + int + + + Sets the time zone input's name. + name + true + true + + + Sets whether the times can be null. + nullable + false + true + boolean + + + Sets the time zone to that associated with the given ID. For example, setting the value to PST]]> associates the component with the Pacific Standard Time zone. + value + false + true + + + + journal-article + com.liferay.taglib.ui.JournalArticleTag + JSP + + articleId + false + true + + + articlePage + false + true + + + articleResourcePrimKey + false + true + + + groupId + false + true + + + languageId + false + true + + + showAvailableLocales + false + true + + + showTitle + false + true + + + templateId + false + true + + + xmlRequest + false + true + + + + journal-content-search + com.liferay.taglib.ui.JournalContentSearchTag + JSP + + showListed + false + true + + + targetPortletId + false + true + + + type + false + true + + + + language + com.liferay.taglib.ui.LanguageTag + JSP + + displayCurrentLocale + false + true + + + displayStyle + false + true + + + formAction + false + true + + + formName + false + true + + + languageId + false + true + + + languageIds + false + true + + + name + false + true + + + + logo-selector + com.liferay.taglib.ui.LogoSelectorTag + JSP + + currentLogoURL + false + true + + + defaultLogoURL + false + true + + + editLogoURL + false + true + + + imageId + false + true + + + logoDisplaySelector + false + true + + + showBackground + false + true + + + + membership-policy-error + com.liferay.taglib.ui.MembershipPolicyErrorTag + JSP + + + Creates a message to display to the user. + message + com.liferay.taglib.ui.MessageTag + JSP + + Passes arguments for the language key, if the language key is configured to recieve arguments. + arguments + false + true + + + Sets the name of the language key from which to derive the message to be displayed. + key + true + true + + + Sets whether to translate the language key value into the user's language. The default value is true]]>. + localizeKey + false + true + boolean + + + Sets whether to translate the arguments into the user's language. The default value is true]]>. + translateArguments + false + true + boolean + + + unicode + false + true + boolean + + + + my-sites + com.liferay.taglib.ui.MySitesTag + JSP + + classNames + false + true + + + cssClass + false + true + + + includeControlPanel + false + true + + + max + false + true + + + + navigation + com.liferay.taglib.ui.NavigationTag + JSP + + bulletStyle + false + true + + + displayStyle + false + true + + + headerType + false + true + + + includedLayouts + false + true + + + nestedChildren + false + true + + + preview + false + true + + + rootLayoutLevel + false + true + + + rootLayoutType + false + true + + + + page-iterator + com.liferay.taglib.ui.PageIteratorTag + JSP + + cur + true + true + + + curParam + true + true + + + delta + false + true + + + deltaConfigurable + false + true + + + deltaParam + false + true + + + formName + false + true + + + id + false + true + + + jsCall + false + true + + + maxPages + false + true + + + target + false + true + + + total + true + true + + + type + false + true + + + url + false + true + + + + Creates a collapsible panel UI for housing content. + panel + com.liferay.taglib.ui.PanelTag + JSP + + Sets whether the panel can be collapsed. The default value is true]]>. + collapsible + false + true + boolean + + + Sets a CSS class for styling this component. + cssClass + false + true + + + Sets the default component's state. Possible values are open]]> and any string other than open. Any string other than open]]> collapses the panel. The default value is open]]>. + defaultState + false + true + + + Sets whether the panel is extended. The default value is false]]>. + extended + false + true + boolean + + + Sets text to be displayed as a help tool tip on mouse over of the panel's help icon. + helpMessage + false + true + + + Sets the icon to display next to the panel's title. The icon can be specified using the name of one of the Bootstrap icon CSS classes found at http://marcoceppi.github.io/bootstrap-glyphicons/]]>. + iconCssClass + false + true + + + Identifies the component instance. + id + false + true + + + Specifies the ID of the component that contains the panel. If a liferay-ui:panel-container]]> is used as the container for the panel, its ID is used as the value for the parentID]]>. + parentId + false + true + + + Sets whether to remember the component's state and persist it to the database. The default value is false]]>. + persistState + false + true + boolean + + + Sets the component's state. Possible values are open]]> and any string other than open. Any string other than open]]> collapses the panel. + state + false + true + + + Sets the panel's title and displays it at the top of the panel. + title + true + true + + + + Creates a collapsible container to house liferay-ui:panel]]> components. + panel-container + com.liferay.taglib.ui.PanelContainerTag + JSP + + Sets whether only one panel can be shown at a time. As one panel is opened, the others close, creating an accordian effect. The default value is false]]>. + accordion + false + true + boolean + + + Sets a CSS class for styling this component. + cssClass + false + true + + + Sets whether to extend the interface with additional styling. The default value is false]]>. + extended + false + true + boolean + + + Identifies the component instance. + id + false + true + + + Sets whether to remember the component's state and persist it to the database. The default value is false]]>. + persistState + false + true + boolean + + + + param + com.liferay.taglib.util.ParamTag + JSP + + name + true + true + + + value + true + true + + + + Renders a PNG image with the source given for the image]]> attribute. + png-image + com.liferay.taglib.ui.PngImageTag + JSP + + Sets the height of the image in pixels. A possible value would be 16]]>. px]]> is then appended to the end of the value. + height + true + true + int + + + Sets the location of the PNG image file to use. + image + true + true + + + Sets the height of the image in pixels. A possible value would be 16]]>. px]]> is then appended to the end of the value. + width + true + true + int + + + + progress + com.liferay.taglib.ui.ProgressTag + JSP + + height + false + true + + + id + true + true + + + message + false + true + + + sessionKey + true + true + + + updatePeriod + false + true + + + + ratings + com.liferay.taglib.ui.RatingsTag + JSP + + className + true + true + + + classPK + true + true + + + numberOfStars + false + true + + + ratingsEntry + false + true + + + ratingsStats + false + true + + + type + false + true + + + url + false + true + + + + ratings-score + com.liferay.taglib.ui.RatingsScoreTag + JSP + + score + true + true + + + + restore-entry + com.liferay.taglib.ui.RestoreEntryTag + JSP + + duplicateEntryAction + false + true + + + overrideMessage + false + true + + + renameMessage + false + true + + + restoreEntryAction + false + true + + + + rss + com.liferay.taglib.ui.RSSTag + JSP + + delta + false + true + + + displayStyle + false + true + + + feedType + false + true + + + message + false + true + + + name + false + true + + + resourceURL + false + true + + + url + false + true + + + + rss-settings + com.liferay.taglib.ui.RSSSettingsTag + JSP + + delta + false + true + + + displayStyle + false + true + + + displayStyles + false + true + + + enabled + false + true + + + feedType + false + true + + + name + false + true + + + nameEnabled + false + true + + + + Creates a search form, with an additional select input to set the scope of the search. + search + com.liferay.taglib.ui.SearchTag + JSP + + + search-container + com.liferay.taglib.ui.SearchContainerTag + com.liferay.taglib.ui.SearchContainerTei + JSP + + curParam + false + true + + + delta + false + true + + + deltaConfigurable + false + true + + + deltaParam + false + true + + + displayTerms + false + true + + + emptyResultsMessage + false + true + + + headerNames + false + true + + + hover + false + true + + + id + false + true + + + iteratorURL + false + true + + + orderByCol + false + true + + + orderByColParam + false + true + + + orderByComparator + false + true + + + orderByType + false + true + + + orderByTypeParam + false + true + + + rowChecker + false + true + + + searchContainer + false + true + + + searchTerms + false + true + + + total + false + true + + + totalVar + false + true + + + var + false + true + + + + search-container-column-button + com.liferay.taglib.ui.SearchContainerColumnButtonTag + JSP + + align + false + true + + + colspan + false + true + + + cssClass + false + true + + + href + true + true + + + index + false + true + + + name + false + true + + + valign + false + true + + + + search-container-column-date + com.liferay.taglib.ui.SearchContainerColumnDateTag + JSP + + align + false + true + + + colspan + false + true + + + cssClass + false + true + + + href + false + true + + + index + false + true + + + name + false + true + + + orderable + false + true + + + orderableProperty + false + true + + + property + false + true + + + valign + false + true + + + value + false + true + + + + search-container-column-jsp + com.liferay.taglib.ui.SearchContainerColumnJSPTag + JSP + + align + false + true + + + colspan + false + true + + + cssClass + false + true + + + index + false + true + + + name + false + true + + + path + true + true + + + valign + false + true + + + + search-container-column-status + com.liferay.taglib.ui.SearchContainerColumnStatusTag + JSP + + align + false + true + + + colspan + false + true + + + cssClass + false + true + + + href + false + true + + + index + false + true + + + name + false + true + + + orderable + false + true + + + orderableProperty + false + true + + + property + false + true + + + valign + false + true + + + status + false + true + + + statusByUserId + false + true + + + statusDate + false + true + + + + search-container-column-text + com.liferay.taglib.ui.SearchContainerColumnTextTag + com.liferay.taglib.ui.SearchContainerColumnTextTei + JSP + + align + false + true + + + buffer + false + true + + + colspan + false + true + + + cssClass + false + true + + + href + false + true + + + index + false + true + + + name + false + true + + + orderable + false + true + + + orderableProperty + false + true + + + property + false + true + + + target + false + true + + + title + false + true + + + translate + false + true + + + valign + false + true + + + value + false + true + + + + search-container-results + com.liferay.taglib.ui.SearchContainerResultsTag + com.liferay.taglib.ui.SearchContainerResultsTei + JSP + + results + false + true + + + resultsVar + false + true + + + Deprecated as of 6.2.0, replaced by liferay-ui:search-container#total + total + false + true + + + Deprecated as of 6.2.0, replaced by liferay-ui:search-container#totalVar + totalVar + false + true + + + + search-container-row + com.liferay.taglib.ui.SearchContainerRowTag + com.liferay.taglib.ui.SearchContainerRowTei + JSP + + bold + false + true + + + className + true + true + + + escapedModel + false + true + + + indexVar + false + true + + + keyProperty + false + true + + + modelVar + false + true + + + rowIdProperty + false + true + + + rowVar + false + true + + + servletContext + false + true + + + stringKey + false + true + + + + search-container-row-parameter + com.liferay.taglib.ui.SearchContainerRowParameterTag + JSP + + name + true + true + + + value + true + true + + + + search-form + com.liferay.taglib.ui.SearchFormTag + JSP + + page + true + true + + + searchContainer + false + true + + + servletContext + false + true + + + showAddButton + false + true + + + + search-iterator + com.liferay.taglib.ui.SearchIteratorTag + JSP + + paginate + false + true + + + searchContainer + false + true + + + type + false + true + + + + search-paginator + com.liferay.taglib.ui.SearchPaginatorTag + JSP + + id + false + true + + + searchContainer + true + true + + + type + false + true + + + + search-speed + com.liferay.taglib.ui.SearchSpeedTag + JSP + + hits + true + true + + + searchContainer + true + true + + + + search-toggle + com.liferay.taglib.ui.SearchToggleTag + JSP + + autoFocus + false + true + + + buttonLabel + false + true + + + displayTerms + true + true + + + id + true + true + + + width + false + true + + + + section + com.liferay.taglib.ui.SectionTag + com.liferay.taglib.ui.SectionTei + JSP + + + sites-directory + com.liferay.taglib.ui.SitesDirectoryTag + JSP + + displayStyle + false + true + + + sites + false + true + + + + social-activities + com.liferay.taglib.ui.SocialActivitiesTag + JSP + + activities + false + true + + + className + false + true + + + classPK + false + true + + + displayRSSFeed + false + true + + + feedDelta + false + true + + + feedDisplayStyle + false + true + + + feedEnabled + false + true + + + feedLink + false + true + + + feedLinkMessage + false + true + + + feedTitle + false + true + + + feedType + false + true + + + + social-bookmark + com.liferay.taglib.ui.SocialBookmarkTag + JSP + + contentId + false + true + + + target + false + true + + + title + true + true + + + type + true + true + + + url + true + true + + + + social-bookmarks + com.liferay.taglib.ui.SocialBookmarksTag + JSP + + contentId + false + true + + + displayStyle + false + true + + + target + false + true + + + title + true + true + + + types + false + true + + + url + true + true + + + + staging + com.liferay.taglib.ui.StagingTag + JSP + + cssClass + false + true + + + extended + false + true + + + groupId + false + true + + + icon + false + true + + + layoutSetBranchId + false + true + + + message + false + true + + + onlyActions + false + true + + + privateLayout + false + true + + + selPlid + false + true + + + showManageBranches + false + true + + + + Creates a success message to display to the user. + success + com.liferay.taglib.ui.SuccessTag + empty + + Sets the key to be placed in the SessionMessages]]> object to trigger the success message. + key + true + true + + + Sets explicit message text or sets the name of a language key from which to derive the message text. + message + true + true + + + Sets whether to translate the success message into the user's language. The default value is true]]>. + translateMessage + false + true + boolean + + + + table-iterator + com.liferay.taglib.ui.TableIteratorTag + com.liferay.taglib.ui.TableIteratorTei + JSP + + bodyPage + false + true + + + list + true + true + + + listType + true + true + + + rowBreak + false + true + + + rowLength + true + true + + + rowPadding + false + true + + + rowValign + false + true + + + width + false + true + + + + Creates a tabbed UI of section dividers that each house their own content. + tabs + com.liferay.taglib.ui.TabsTag + JSP + + + Sets a label for the back URL. + backLabel + false + true + + + Sets a URL for navigating back to. + backURL + false + true + + + Sets the tab's form name. + formName + false + true + + + Sets the names of the tabs. Each name must be separated by a comma with no spaces. + names + true + true + + + Sets a function to be called on a user clicking any of the tabs. + onClick + false + true + + + Sets a variable to refer to this component. + param + false + true + + + Sets a URL to refer to the portlet that contains this component. + portletURL + false + true + + + Sets whether the page refreshes when a tab is clicked. + refresh + false + true + boolean + + + Sets the tab values. Values must follow the same order as the names]]> attribute. Each value must be separated by a comma with no spaces. + tabsValues + false + true + + + Sets the design type of tabs. Possible values are tabs]]> and pills.]]> + type + false + true + + + Sets the URL to which all the tabs link to when clicked. You can also set each tab's URL individually using url[number]]]> attribute. + url + false + true + + + url0 + false + true + + + Sets the URL for the second tab. + url1 + false + true + + + Sets the URL for the third tab. + url2 + false + true + + + Sets the URL for the fourth tab. + url3 + false + true + + + Sets the URL for the fifth tab. + url4 + false + true + + + Sets the URL for the sixth tab. + url5 + false + true + + + Sets the URL for the seventh tab. + url6 + false + true + + + Sets the URL for the eighth tab. + url7 + false + true + + + Sets the URL for the ninth tab. + url8 + false + true + + + Sets the URL for the tenth tab. + url9 + false + true + + + Sets the active tab to the value given from the tabsValues]]> attribute. No matter which tab a user selects, the tab given for this value always remain active. + value + false + true + + + + Creates a UI component that toggles the visibility of the content of the component matching the given id]]>. Default icons are used as the component's default mechanism for showing and hiding the content. + toggle + com.liferay.taglib.ui.ToggleTag + JSP + + Sets whether to initially show content by default. The default value is true]]>. + defaultShowContent + false + true + boolean + + + Sets an icon as the mechanism to hide the content. You can specify the location of an image file to use in the icon; otherwise a default icon is used. + hideImage + false + true + + + Sets the text to display as a link to hide the content. It overrides the hideImage]]> attribute. Note that the showMessage]]> attribute must also be configured in order for the hide message to render. + hideMessage + false + true + + + Identifies the component instance whose content to toggle. + id + true + true + + + Sets an icon as the mechanism to show the content. You can specify the location of an image file to use in the icon; otherwise a default icon is used. + showImage + false + true + + + Sets a link as the mechanism to show the content. The text value of this attribute is used as the link's text. The message takes precedence over showing an image, via the showImage]]> attribute. If you specify a showMessage]]> attribute, you should also specify the hideMessage]]> attribute; a null]]> is otherwise displayed for the text of the hide link. + showMessage + false + true + + + Sets text to be prefixed to the Toggle()]]> function that is called to toggle the content. If this is not configured, a random key is generated and prefixed to the Toggle()]]> function. For example, a value of run]]> would result in a function named runToggle()]]>. + stateVar + false + true + + + + toggle-area + com.liferay.taglib.ui.ToggleAreaTag + JSP + + align + false + true + + + defaultShowContent + false + true + + + hideImage + false + true + + + hideMessage + false + true + + + id + false + true + + + showImage + false + true + + + showMessage + false + true + + + stateVar + false + true + + + + toggle-value + com.liferay.taglib.ui.ToggleValueTag + JSP + + defaultValue + false + true + + + id + true + true + + + + trash-empty + com.liferay.taglib.ui.TrashEmptyTag + empty + + confirmMessage + false + true + + + emptyMessage + false + true + + + infoMessage + false + true + + + portletURL + true + true + + + totalEntries + true + true + + + + trash-undo + com.liferay.taglib.ui.TrashUndoTag + empty + + portletURL + true + true + + + redirect + false + true + + + + upload-progress + com.liferay.taglib.ui.UploadProgressTag + JSP + + height + false + true + + + id + true + true + + + message + false + true + + + redirect + false + true + + + updatePeriod + false + true + + + + user-display + com.liferay.taglib.ui.UserDisplayTag + com.liferay.taglib.ui.UserDisplayTei + JSP + + displayStyle + false + true + + + url + false + true + + + userId + true + true + + + userName + false + true + + + + user-search + com.liferay.taglib.ui.UserSearchTag + JSP + + portletURL + true + true + + + rowChecker + false + true + + + userParams + true + true + + + + webdav + com.liferay.taglib.ui.WebDAVTag + JSP + + path + true + true + + + + write + com.liferay.taglib.ui.WriteTag + JSP + + bean + true + true + + + property + true + true + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-util.tld b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-util.tld new file mode 100644 index 0000000..72a4caf --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/liferay-util.tld @@ -0,0 +1,141 @@ + + + + + 1.2 + 1.1 + liferay-util + http://liferay.com/tld/util + + body-bottom + com.liferay.taglib.util.BodyBottomTag + JSP + + outputKey + false + true + + + + body-top + com.liferay.taglib.util.BodyTopTag + JSP + + outputKey + false + true + + + + buffer + com.liferay.taglib.util.BufferTag + com.liferay.taglib.util.BufferTei + JSP + + var + true + true + + + + get-url + com.liferay.taglib.util.GetUrlTag + com.liferay.taglib.util.GetUrlTei + JSP + + expires + false + true + + + url + true + true + + + var + false + true + + + + html-bottom + com.liferay.taglib.util.HtmlBottomTag + JSP + + outputKey + false + true + + + position + false + true + + + + html-top + com.liferay.taglib.util.HtmlTopTag + JSP + + outputKey + false + true + + + position + false + true + + + + include + com.liferay.taglib.util.IncludeTag + JSP + + page + true + true + + + portletId + false + true + + + servletContext + false + true + + + strict + false + true + + + useCustomPage + false + true + + + + param + com.liferay.taglib.util.ParamTag + JSP + + name + true + true + + + value + true + true + + + + whitespace-remover + com.liferay.taglib.util.WhitespaceRemoverTag + JSP + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/log4j.properties b/src/com/accenture/liferayspringplugin/wizards/tpl/log4j.properties new file mode 100644 index 0000000..65cae40 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/log4j.properties @@ -0,0 +1,5 @@ +log4j.rootLogger=DEBUG, STDOUT +log4j.logger.deng=INFO +log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender +log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout +log4j.appender.STDOUT.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/logback-classic-1.1.3.jar b/src/com/accenture/liferayspringplugin/wizards/tpl/logback-classic-1.1.3.jar new file mode 100644 index 0000000..c5ecdeb Binary files /dev/null and b/src/com/accenture/liferayspringplugin/wizards/tpl/logback-classic-1.1.3.jar differ diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/logback-core-1.1.3.jar b/src/com/accenture/liferayspringplugin/wizards/tpl/logback-core-1.1.3.jar new file mode 100644 index 0000000..996b722 Binary files /dev/null and b/src/com/accenture/liferayspringplugin/wizards/tpl/logback-core-1.1.3.jar differ diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/logback.xml b/src/com/accenture/liferayspringplugin/wizards/tpl/logback.xml new file mode 100644 index 0000000..ae1cc02 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/logback.xml @@ -0,0 +1,13 @@ + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/logging.properties b/src/com/accenture/liferayspringplugin/wizards/tpl/logging.properties new file mode 100644 index 0000000..61bed97 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/logging.properties @@ -0,0 +1,4 @@ +.level=INFO +handlers=java.util.logging.ConsoleHandler +java.util.logging.ConsoleHandler.level=FINEST +deng.level=FINEST \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/main.css b/src/com/accenture/liferayspringplugin/wizards/tpl/main.css new file mode 100644 index 0000000..e69de29 diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/main.js b/src/com/accenture/liferayspringplugin/wizards/tpl/main.js new file mode 100644 index 0000000..e69de29 diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/maven/pom.xml b/src/com/accenture/liferayspringplugin/wizards/tpl/maven/pom.xml new file mode 100644 index 0000000..cbc91e1 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/maven/pom.xml @@ -0,0 +1,140 @@ + + + + 4.0.0 + ${groupId} + ${artifactId} + war + ${artifactId} Portlet + ${version} + + + + com.liferay.maven.plugins + liferay-maven-plugin + ${liferay.maven.plugin.version} + + + generate-sources + + build-css + + + + + ${liferay.auto.deploy.dir} + ${liferay.app.server.deploy.dir} + ${liferay.app.server.lib.global.dir} + ${liferay.app.server.portal.dir} + ${liferay.version} + portlet + + + + maven-compiler-plugin + 2.5 + + UTF-8 + 1.6 + 1.6 + + + + maven-resources-plugin + 2.5 + + UTF-8 + + + + + + + com.liferay.portal + portal-service + ${liferay.version} + provided + + + com.liferay.portal + util-bridges + ${liferay.version} + provided + + + com.liferay.portal + util-taglib + ${liferay.version} + provided + + + com.liferay.portal + util-java + ${liferay.version} + provided + + + javax.portlet + portlet-api + 2.0 + provided + + + javax.servlet + servlet-api + 2.4 + provided + + + javax.servlet.jsp + jsp-api + 2.0 + provided + + + javax.servlet + jstl + 1.2 + + + org.springframework + spring-aop + 3.0.7.RELEASE + + + org.springframework + spring-beans + 3.0.7.RELEASE + + + org.springframework + spring-context + 3.0.7.RELEASE + + + org.springframework + spring-core + 3.0.7.RELEASE + + + org.springframework + spring-expression + 3.0.7.RELEASE + + + org.springframework + spring-web + 3.0.7.RELEASE + + + org.springframework + spring-webmvc + 3.0.7.RELEASE + + + org.springframework + spring-webmvc-portlet + 3.0.7.RELEASE + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/plugin-package.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/plugin-package.ftl new file mode 100644 index 0000000..e7c14ad --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/plugin-package.ftl @@ -0,0 +1,29 @@ +name=${portletDisplayName} +module-group-id=liferay +module-incremental-version=1 +tags= +short-description= +long-description= +change-log= +page-url=http://www.liferay.com +author=Liferay, Inc. +licenses=EE +liferay-versions=6.2.10+ +portal-dependency-jars=\ + aopalliance.jar,\ + commons-logging.jar,\ + commons-io.jar,\ + jstl-api.jar,\ + jstl-impl.jar,\ + log4j.jar,\ + slf4j-api.jar,\ + spring-aop.jar,\ + spring-asm.jar,\ + spring-beans.jar,\ + spring-context.jar,\ + spring-context-support.jar,\ + spring-core.jar,\ + spring-expression.jar,\ + spring-web.jar,\ + spring-web-portlet.jar,\ + spring-web-servlet.jar \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/pom.tpl b/src/com/accenture/liferayspringplugin/wizards/tpl/pom.tpl new file mode 100644 index 0000000..638e0e6 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/pom.tpl @@ -0,0 +1,141 @@ + + + + 4.0.0 + ${groupId} + ${artifactId} + war + ${artifactId} Portlet + ${version} + + + + com.liferay.maven.plugins + liferay-maven-plugin + ${d}{liferay.maven.plugin.version} + + + generate-sources + + build-css + + + + + ${d}{liferay.auto.deploy.dir} + ${d}{liferay.app.server.deploy.dir} + ${d}{liferay.app.server.lib.global.dir} + ${d}{liferay.app.server.portal.dir} + ${d}{liferay.version} + portlet + + + + maven-compiler-plugin + 2.5 + + UTF-8 + 1.6 + 1.6 + + + + maven-resources-plugin + 2.5 + + UTF-8 + + + + + + + com.liferay.portal + portal-service + ${d}{liferay.version} + provided + + + com.liferay.portal + util-bridges + ${d}{liferay.version} + provided + + + com.liferay.portal + util-taglib + ${d}{liferay.version} + provided + + + com.liferay.portal + util-java + ${d}{liferay.version} + provided + + + javax.portlet + portlet-api + 2.0 + provided + + + javax.servlet + servlet-api + 2.4 + provided + + + javax.servlet.jsp + jsp-api + 2.0 + provided + + + javax.servlet + jstl + 1.2 + + + org.springframework + spring-aop + 3.0.7.RELEASE + + + org.springframework + spring-beans + 3.0.7.RELEASE + + + org.springframework + spring-context + 3.0.7.RELEASE + + + org.springframework + spring-core + 3.0.7.RELEASE + + + org.springframework + spring-expression + 3.0.7.RELEASE + + + org.springframework + spring-web + 3.0.7.RELEASE + + + org.springframework + spring-webmvc + 3.0.7.RELEASE + + + org.springframework + spring-webmvc-portlet + 3.0.7.RELEASE + + ${logger} + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/portlet-context.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/portlet-context.ftl new file mode 100644 index 0000000..b35ad50 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/portlet-context.ftl @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/portlet.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/portlet.ftl new file mode 100644 index 0000000..1c264ea --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/portlet.ftl @@ -0,0 +1,34 @@ + + + + + ${portletName} + ${portletDisplayName} + org.springframework.web.portlet.DispatcherPortlet + + contextConfigLocation + /WEB-INF/spring-context/${portletConfigName}-portlet-context.xml + + 0 + + text/html + + + ${portletDisplayName} + ${portletDisplayName} + ${portletDisplayName} + + + administrator + + + guest + + + power-user + + + user + + + \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/project.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/project.ftl new file mode 100644 index 0000000..f94f49f --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/project.ftl @@ -0,0 +1,36 @@ + + + ${projectName} + + + + + + org.eclipse.wst.jsdt.core.javascriptValidator + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.jdt.core.javanature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/slf4j-api-1.7.12.jar b/src/com/accenture/liferayspringplugin/wizards/tpl/slf4j-api-1.7.12.jar new file mode 100644 index 0000000..e357ddc Binary files /dev/null and b/src/com/accenture/liferayspringplugin/wizards/tpl/slf4j-api-1.7.12.jar differ diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/slf4j-jdk14-1.7.12.jar b/src/com/accenture/liferayspringplugin/wizards/tpl/slf4j-jdk14-1.7.12.jar new file mode 100644 index 0000000..ac95251 Binary files /dev/null and b/src/com/accenture/liferayspringplugin/wizards/tpl/slf4j-jdk14-1.7.12.jar differ diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/slf4j-log4j12-1.7.12.jar b/src/com/accenture/liferayspringplugin/wizards/tpl/slf4j-log4j12-1.7.12.jar new file mode 100644 index 0000000..49a24fc Binary files /dev/null and b/src/com/accenture/liferayspringplugin/wizards/tpl/slf4j-log4j12-1.7.12.jar differ diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/slf4j-simple-1.7.12.jar b/src/com/accenture/liferayspringplugin/wizards/tpl/slf4j-simple-1.7.12.jar new file mode 100644 index 0000000..1684bb8 Binary files /dev/null and b/src/com/accenture/liferayspringplugin/wizards/tpl/slf4j-simple-1.7.12.jar differ diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/view.ftl b/src/com/accenture/liferayspringplugin/wizards/tpl/view.ftl new file mode 100644 index 0000000..87cf528 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/view.ftl @@ -0,0 +1,21 @@ +<% +/** + * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. + * + * The contents of this file are subject to the terms of the Liferay Enterprise + * Subscription License ("License"). You may not use this file except in + * compliance with the License. You can obtain a copy of the License by + * contacting Liferay, Inc. See the License for the specific language governing + * permissions and limitations under the License, including but not limited to + * distribution rights of the Software. + * + * + * + */ +%> + +<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> + + + +This is the ${portletDisplayName} portlet. \ No newline at end of file diff --git a/src/com/accenture/liferayspringplugin/wizards/tpl/web.xml b/src/com/accenture/liferayspringplugin/wizards/tpl/web.xml new file mode 100644 index 0000000..81dbe88 --- /dev/null +++ b/src/com/accenture/liferayspringplugin/wizards/tpl/web.xml @@ -0,0 +1,19 @@ + + + + contextConfigLocation + /WEB-INF/spring-context/application-context.xml + + + ViewRendererServlet + org.springframework.web.servlet.ViewRendererServlet + 1 + + + ViewRendererServlet + /WEB-INF/servlet/view + + + org.springframework.web.context.ContextLoaderListener + + \ No newline at end of file