From: Chad B. <cwb...@us...> - 2008-04-16 20:39:02
|
User: cwbrandon Date: 08/04/16 13:39:03 Modified: andromda-jsf2/src/main/resources/META-INF/andromda cartridge.xml namespace.xml andromda-jsf2/src/main/resources/templates/jsf2/configuration web.xml.vsl Added: andromda-jsf2/src/main/resources/templates/jsf2/configuration/portlet/liferay liferay-portlet.xml.vsl portlet-config.properties.vsl andromda-jsf2/src/main/resources/templates/jsf2/configuration/portlet/liferay/permissions resource-actions.xml.vsl Removed: andromda-jsf2/src/main/resources/templates/jsf2/configuration/portlet liferay-portlet.xml.vsl Log: add permissions and portlet-config file for liferay portlets Revision Changes Path 1.24 +24 -1 cartridges/andromda-jsf2/src/main/resources/META-INF/andromda/cartridge.xml Index: cartridge.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/META-INF/andromda/cartridge.xml,v retrieving revision 1.23 retrieving revision 1.24 diff -u -w -r1.23 -r1.24 --- cartridge.xml 8 Apr 2008 17:55:41 -0000 1.23 +++ cartridge.xml 16 Apr 2008 20:39:01 -0000 1.24 @@ -1064,7 +1064,7 @@ </template> <template - path="templates/jsf2/configuration/portlet/liferay-portlet.xml.vsl" + path="templates/jsf2/configuration/portlet/liferay/liferay-portlet.xml.vsl" outputPattern="WEB-INF/liferay-portlet.xml" outlet="configuration" overwrite="true" @@ -1079,6 +1079,29 @@ </template> <template + path="templates/jsf2/configuration/portlet/liferay/portlet-config.properties.vsl" + outputPattern="WEB-INF/classes/portlet-config.properties" + outlet="configuration" + overwrite="true" + outputToSingleFile="true" + outputCondition="liferayPortlet"/> + + <template + path="templates/jsf2/configuration/portlet/liferay/permissions/resource-actions.xml.vsl" + outputPattern="WEB-INF/classes/permissions/resource-actions.xml" + outlet="custom-configuration" + overwrite="false" + outputToSingleFile="true" + outputCondition="liferayPortlet" + outputOnEmptyElements="false"> + <modelElements variable="useCases"> + <modelElement> + <type name="org.andromda.metafacades.uml.FrontEndUseCase"/> + </modelElement> + </modelElements> + </template> + + <template path="templates/jsf2/flow/portlet/PortletPhaseListener.java.vsl" outputPattern="$stringUtils.replace($managedBeansPackage, '.', '/')/${className}.java" outlet="managed-beans" 1.9 +5 -0 cartridges/andromda-jsf2/src/main/resources/META-INF/andromda/namespace.xml Index: namespace.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/META-INF/andromda/namespace.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -w -r1.8 -r1.9 --- namespace.xml 27 Mar 2008 18:34:45 -0000 1.8 +++ namespace.xml 16 Apr 2008 20:39:01 -0000 1.9 @@ -24,6 +24,11 @@ that typically appear in WEB-INF, such as faces-config.xml and validation-rules.xml, etc. </documentation> </property> + <property name="custom-configuration" required="false"> + <documentation> + The location to which any customizable configuration files are generated. + </documentation> + </property> <property name="custom-resources" required="false"> <documentation> The location to which any customizable resources will be generated. 1.1 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/portlet/liferay/liferay-portlet.xml.vsl Index: liferay-portlet.xml.vsl =================================================================== <?xml version="1.0"?> <!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 4.4.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_4_4_0.dtd"> <liferay-portlet-app> #foreach ($useCase in $useCases) <portlet> <portlet-name>$jsfUtils.toWebResourceName($useCase.name)</portlet-name> <instanceable>true</instanceable> <header-portlet-css>/css/custom.css</header-portlet-css> <header-portlet-javascript>/js/custom.js</header-portlet-javascript> <css-class-wrapper>$jsfUtils.toWebResourceName($useCase.name)</css-class-wrapper> </portlet> #end </liferay-portlet-app> 1.1 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/portlet/liferay/portlet-config.properties.vsl Index: portlet-config.properties.vsl =================================================================== language.bundle=message-resources resource.actions.configs=permissions/resource-actions.xml 1.15 +7 -0 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/web.xml.vsl Index: web.xml.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/web.xml.vsl,v retrieving revision 1.14 retrieving revision 1.15 diff -u -w -r1.14 -r1.15 --- web.xml.vsl 15 Apr 2008 16:31:38 -0000 1.14 +++ web.xml.vsl 16 Apr 2008 20:39:02 -0000 1.15 @@ -158,6 +158,13 @@ <param-value>true</param-value> </context-param> +#if ($liferayPortlet) + <context-param> + <param-name>portlet_properties</param-name> + <param-value>portlet-config.properties</param-value> + </context-param> + +#end <!-- context-param merge-point --> <!-- filter merge-point --> #if ($securityEnabled && !$roles.empty) 1.1 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/portlet/liferay/permissions/resource-actions.xml.vsl Index: resource-actions.xml.vsl =================================================================== <?xml version="1.0"?> <resource-action-mapping> #foreach ($useCase in $useCases) <portlet-resource> <portlet-name>$jsfUtils.toWebResourceName($useCase.name)</portlet-name> <supports> <action-key>VIEW</action-key> <action-key>CONFIGURATION</action-key> </supports> <community-defaults/> <guest-defaults/> <guest-unsupported/> </portlet-resource> #end </resource-action-mapping> |