| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <entity-engine-xml> |
| |
| <!-- Example security --> |
| <ArtifactPath artifactPath="ofbiz/example" description="Example Application"/> |
| <ArtifactPath artifactPath="ofbiz/exampleext" description="Extended Example Application"/> |
| <UserGroup groupId="EXAMPLE_USERS" description="Example Application Users"/> |
| <UserGrpToArtifactPermRel groupId="EXAMPLE_USERS" artifactPath="ofbiz/example" permissionValue="access=true"/> |
| <UserGrpToArtifactPermRel groupId="EXAMPLE_USERS" artifactPath="ofbiz/example" permissionValue="view=true"/> |
| <UserGrpToArtifactPermRel groupId="EXAMPLE_USERS" artifactPath="ofbiz/example" permissionValue="create=true"/> |
| <UserGrpToArtifactPermRel groupId="EXAMPLE_USERS" artifactPath="ofbiz/example" permissionValue="update=true"/> |
| |
| <!-- Data needed to demonstrate the security-aware artifacts. This is temporary - |
| it will not be included in the project. --> |
| |
| <UserToUserGroupRel userLoginId="artifact-user" groupId="EXAMPLE_USERS"/> |
| <ArtifactPath artifactPath="ofbiz/example/*/anotherDate" description="Example Application - 'anotherDate' field"/> |
| <UserToArtifactPermRel userLoginId="artifact-user" artifactPath="ofbiz/example/*/anotherDate" permissionValue="view=false"/> |
| |
| <!-- artifact-user is a member of the EXAMPLE_USERS group, so the user inherits all |
| of the permissions assigned to that group. In addition, artifact-user is assigned |
| a permission value that denies access to the 'anotherDate' field. --> |
| |
| </entity-engine-xml> |