| 1 | |
| 2 | = Define user profile by group = |
| 3 | |
| 4 | || '''Date''' || 2012/06/07 || |
| 5 | || '''Contact(s)''' || François Prunayre || |
| 6 | || '''Last edited''' || || |
| 7 | || '''Status''' || Draft || |
| 8 | || '''Assigned to release''' || 2.x || |
| 9 | || '''Resources''' || Available (funding Ifremer) || |
| 10 | || '''Ticket #''' || # || |
| 11 | |
| 12 | |
| 13 | [[PageOutline(2-3,,inline)]] |
| 14 | |
| 15 | |
| 16 | == Overview == |
| 17 | |
| 18 | Add the capability to have more than one profile for a user. Catalogue users could be: |
| 19 | * administrator or |
| 20 | * user administrator and/or reviewer and/or editor and/or registered user |
| 21 | |
| 22 | A reviewer in a group is also an editor for this group. |
| 23 | |
| 24 | === Proposal Type === |
| 25 | * '''Type''': User & group |
| 26 | * '''App''': !GeoNetwork |
| 27 | * '''Module''': All |
| 28 | |
| 29 | === Links === |
| 30 | * '''Documents''': |
| 31 | |
| 32 | == Proposal == |
| 33 | |
| 34 | |
| 35 | === DB Changes === |
| 36 | * add a profile field in the usergroups table |
| 37 | * the profile in the users table is the main profile which means the profile with the more privileges for the user according to Jeeves user-profiles settings. |
| 38 | |
| 39 | === Changes === |
| 40 | |
| 41 | * UI: |
| 42 | * Metadata |
| 43 | * New metadata : |
| 44 | * only list group where current user is editor |
| 45 | * add exception if user try to create a metadata in other groups |
| 46 | * Metadata insert : |
| 47 | * only list group where current user is editor |
| 48 | * add exception if user try to insert a metadata in other groups |
| 49 | * Privileges : |
| 50 | * only list group where current user is editor|registered |
| 51 | * only allow publish on internet if current user is reviewer for the metadata group |
| 52 | * If publish to all groups option is set, display all groups |
| 53 | * Administration |
| 54 | * User management : |
| 55 | * only display if current user is Administrator or userAdmin of one group |
| 56 | * for userAdmin, only display users part of current user groups |
| 57 | * User list : only display user member of the groups where current user is userAdmin |
| 58 | * User info : only display groups where current user is userAdmin |
| 59 | * Search |
| 60 | * Search privileges filter : add groups where current user is member|editor|reviewer |
| 61 | * Group criteria : only list group where current user is reviewer|editor |
| 62 | |
| 63 | * Java |
| 64 | * xml.info?type=groups also provide a profile parameter to get user group per profile |
| 65 | * GetMine |
| 66 | * ServiceNotAllowed when: |
| 67 | * a userAdmin try to create a user in a group where he is not userAdmin |
| 68 | * a editor (also reviewer) try to publish a record to internet where he is not reviewer |
| 69 | |
| 70 | |
| 71 | == Risks == |
| 72 | |
| 73 | == Participants == |
| 74 | * Francois Prunayre |