Project

General

Profile

Revision 1dd5b326

ID1dd5b326e489c3a7a9a945109a077f8f1293d1d5
Parent 098b423f
Child c0667822

Added by Andreas Kohlbecker 3 months ago

fix #8836 group Editor-Reference implemented (see also ref #8835)

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/permission/Group.java
58 58
    public final static UUID GROUP_PROJECT_MANAGER_UUID = UUID.fromString("645191ae-32a4-4d4e-9b86-c90e0d41944a");
59 59
    public final static UUID GROUP_PUBLISHER_UUID = UUID.fromString("c1f20ad8-1782-40a7-b06b-ce4773acb5ea");
60 60
    public final static UUID GROUP_ADMIN_UUID = UUID.fromString("1739df71-bf73-4dc6-8320-aaaf72cb555f");
61
    public static final UUID GROUP_EDITOR_REFERENCE_UUID = UUID.fromString("c3efd156-3a0a-4a5c-a99c-c6262fd734bd");
61 62

  
62 63
    public final static String GROUP_EDITOR_NAME = "Editor";
63 64
    /**
......
66 67
    public final static String GROUP_EDITOR_EXTENDED_CREATE_NAME = "EditorExtendedCreate";
67 68
    public final static String GROUP_PROJECT_MANAGER_NAME = "ProjectManager";
68 69
    public final static String GROUP_ADMIN_NAME = "Admin";
69

  
70
    public static final String GROUP_EDITOR_REFERENCE = "Editor-Reference";
70 71

  
71 72
//*********************** FACTORY *********************/
72 73

  
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/application/FirstDataInserter.java
112 112
            Role.ROLE_PROJECT_MANAGER.toString(),
113 113
    };
114 114

  
115
    public static final String[] EDITOR_REFERENCE_GROUP_AUTHORITIES = new String[]{
116
            new CdmAuthority(PermissionClass.REFERENCE, UPDATE_DELETE).toString(),
117
            new CdmAuthority(PermissionClass.TEAMORPERSONBASE, UPDATE_DELETE).toString()
118
    };
119

  
115 120
    public static final String[] ADMIN_GROUP_AUTHORITIES = new String[]{
116 121
            Role.ROLE_ADMIN.toString()
117 122
    };
......
225 230
        checkGroup(Group.GROUP_EDITOR_EXTENDED_CREATE_UUID, Group.GROUP_EDITOR_EXTENDED_CREATE_NAME, EDITOR_GROUP_EXTENDED_CREATE_GROUP_AUTHORITIES);
226 231
        checkGroup(Group.GROUP_PROJECT_MANAGER_UUID, Group.GROUP_PROJECT_MANAGER_NAME, PROJECT_MANAGER_GROUP_AUTHORITIES);
227 232
        checkGroup(Group.GROUP_ADMIN_UUID, Group.GROUP_ADMIN_NAME, ADMIN_GROUP_AUTHORITIES);
233
        checkGroup(Group.GROUP_EDITOR_REFERENCE_UUID, Group.GROUP_EDITOR_REFERENCE, EDITOR_REFERENCE_GROUP_AUTHORITIES);
228 234
        progressMonitor.worked(1);
229 235
    }
230 236

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)