]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.user.ontology/graph/UsersAndRoles.pgraph
Fixed index query and ontology search request behavior
[simantics/platform.git] / bundles / org.simantics.user.ontology / graph / UsersAndRoles.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2
3 USERS = <http://Users> : L0.Library
4     @L0.new
5
6 USER = <http://www.simantics.org/User-1.1> : L0.Ontology
7     @L0.new
8     L0.HasResourceClass "org.simantics.user.UserResource"
9     
10 USERS.DefaultUser : USER.User
11     //@L0.tag L0.ModelUser
12     L0.HasLabel "Default User"
13     USER.HasPasswordHash "z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg=="
14     L0.HasDescription "Anonymous account."
15     USER.HasEmail "anonymous@simantics.org"
16
17 USERS.AdminUser : USER.User
18     L0.HasLabel "Admin"
19     USER.HasPasswordHash "z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg=="
20     L0.HasDescription "Anonymous account."
21     USER.HasEmail "anonymous@simantics.org"
22     
23 USER.Group <T L0.Entity
24 USER.Group.Contains <R L0.IsRelatedTo
25
26 USER.AdminUserAdminRoleAssignment : USER.RoleAssignment
27   USER.RoleAssignment.HasGroup USERS.AdminUser
28   USER.RoleAssignment.HasRole USER.Admin
29
30 USER.AdminUserModelUserRoleAssignment : USER.RoleAssignment
31   USER.RoleAssignment.HasGroup USERS.AdminUser
32   USER.RoleAssignment.HasRole USER.ModelUser
33
34 USER.User <T USER.Group
35     @L0.singleProperty L0.HasName
36     @L0.singleProperty L0.HasDescription
37     @L0.singleProperty USER.HasPasswordHash
38     @L0.singleProperty USER.HasEmail
39     
40 USER.HasPasswordHash <R L0.HasProperty
41     L0.HasRange L0.String
42 USER.HasEmail <R L0.HasProperty
43     L0.HasRange L0.String
44
45 USER.Admin : USER.Role
46 USER.KernelDeveloper : USER.Role
47 USER.LibraryDeveloper : USER.Role
48 USER.ModelConfigurator : USER.Role
49 USER.ModelUser : USER.Role
50 USER.DefaultRole : USER.Role
51         
52 USER.Role <T L0.Entity
53 USER.Role.Inherits <R L0.IsRelatedTo
54
55 USER.RoleAssignment <T L0.Entity
56 USER.RoleAssignment.HasRole <R L0.IsRelatedTo
57 USER.RoleAssignment.HasGroup <R L0.IsRelatedTo
58
59 USER.RoleSelection <T L0.Entity
60 USER.RoleSelection.HasModel <R L0.IsRelatedTo
61 USER.RoleSelection.HasRole <R L0.IsRelatedTo