added examples of using new service based security; removed all security calls from the simple methods, added the security line to the definitions, implemented a generic simple permission example

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@494720 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Zeneski
2007-01-10 05:31:37 +00:00
parent 267c82dc48
commit 30d8e24db3
4 changed files with 70 additions and 40 deletions
@@ -35,7 +35,7 @@ ExampleNewExample=New Example
ExampleNewExampleFeature=New Example Feature
ExampleErrorNoExampleStatusValidChange=Error\: status change from [${lookedUpValue.statusId}] to [${parameters.statusId}] is not allowed.
ExamplePermissionError=Security Error\: to run ${methodShortDescription} you must have the EXAMPLE${securityAction} or EXAMPLE_ADMIN permission
ExamplePermissionError=Security Error\: to run ${methodShortDescription} you must have the EXAMPLE_${mainAction} or EXAMPLE_ADMIN permission
ExampleViewPermissionError=You do not have permission to view this page. ("EXAMPLE_VIEW" or "EXAMPLE_ADMIN" needed)
ExampleWelcome=Welcome to the Example application!