Project

General

Profile

Revision c819a3e4

IDc819a3e41645574134e9ab955ecdcf0aa674b34b
Parent be10b621
Child 2837fda6

Added by Andreas Kohlbecker over 3 years ago

fix #6856 adding group Admin to FirstDataInserter

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/Group.java
48 48
    private static final long serialVersionUID = 7216686200093054648L;
49 49
    private static final Logger logger = Logger.getLogger(Group.class);
50 50

  
51
    public final static UUID groupEditorUuid = UUID.fromString("22e5e8af-b99c-4884-a92f-71978efd3770");
52
    public final static UUID groupProjectManagerUuid = UUID.fromString("645191ae-32a4-4d4e-9b86-c90e0d41944a");
53
    public final static UUID groupPublisherUuid = UUID.fromString("c1f20ad8-1782-40a7-b06b-ce4773acb5ea");
51
    public final static UUID GROUP_EDITOR_UUID = UUID.fromString("22e5e8af-b99c-4884-a92f-71978efd3770");
52
    public final static UUID GROUP_PROJECT_MANAGER_UUID = UUID.fromString("645191ae-32a4-4d4e-9b86-c90e0d41944a");
53
    public final static UUID GROUP_PUBLISHER_UUID = UUID.fromString("c1f20ad8-1782-40a7-b06b-ce4773acb5ea");
54
    public final static UUID GROUP_ADMIN_UUID = UUID.fromString("1739df71-bf73-4dc6-8320-aaaf72cb555f");
54 55

  
55 56
//*********************** FACTORY *********************/
56 57

  
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/application/FirstDataInserter.java
69 69

  
70 70
    public static final Logger logger = Logger.getLogger(FirstDataInserter.class);
71 71

  
72
    public static final String[] editorGroupAuthorities = new String[]{
72
    public static final String[] EDITOR_GROUP_AUTHORITIES = new String[]{
73 73
            "REFERENCE.[CREATE,READ]",
74 74
            "TAXONNAME.[CREATE,READ,UPDATE]",
75 75
            "TEAMORPERSONBASE.[CREATE,READ]",
......
78 78
            "DESCRIPTIONELEMENTBASE.[CREATE,UPDATE,DELETE,READ]",
79 79
    };
80 80

  
81
    public static final String[] projectManagerGroupAuthorities = new String[]{
81
    public static final String[] PROJECT_MANAGER_GROUP_AUTHORITIES = new String[]{
82 82
            "REFERENCE.[UPDATE,DELETE]",
83 83
            "TAXONNAME.[DELETE]",
84 84
            "TEAMORPERSONBASE.[UPDATE,DELETE]",
85 85
            Role.ROLE_PROJECT_MANAGER.toString(),
86 86
    };
87 87

  
88
    public static final String[] ADMIN_GROUP_AUTHORITIES = new String[]{
89
            Role.ROLE_ADMIN.toString()
90
    };
91

  
88 92
    @Autowired
89 93
    private ICommonService commonService;
90 94

  
......
188 192
    private void checkDefaultGroups(){
189 193

  
190 194
        progressMonitor.subTask("Checking default groups");
191
        checkGroup(Group.groupEditorUuid, "Editor", editorGroupAuthorities);
192
        checkGroup(Group.groupProjectManagerUuid, "ProjectManager", projectManagerGroupAuthorities);
195
        checkGroup(Group.GROUP_EDITOR_UUID, "Editor", EDITOR_GROUP_AUTHORITIES);
196
        checkGroup(Group.GROUP_PROJECT_MANAGER_UUID, "ProjectManager", PROJECT_MANAGER_GROUP_AUTHORITIES);
197
        checkGroup(Group.GROUP_ADMIN_UUID, "Admin", ADMIN_GROUP_AUTHORITIES);
193 198
        progressMonitor.worked(1);
194 199
    }
195 200

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)