Revision e367ce34
Added by Andreas Kohlbecker almost 4 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/permission/Group.java | ||
---|---|---|
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 | 61 |
public static final UUID GROUP_EDITOR_REFERENCE_UUID = UUID.fromString("c3efd156-3a0a-4a5c-a99c-c6262fd734bd"); |
62 |
public static final UUID GROUP_ALLOW_ALL_TAXA_UUID = UUID.fromString("08eadacd-e060-4e96-a40d-75cd495c304a"); |
|
62 | 63 |
|
63 | 64 |
public final static String GROUP_EDITOR_NAME = "Editor"; |
64 | 65 |
/** |
... | ... | |
68 | 69 |
public final static String GROUP_PROJECT_MANAGER_NAME = "ProjectManager"; |
69 | 70 |
public final static String GROUP_ADMIN_NAME = "Admin"; |
70 | 71 |
public static final String GROUP_EDITOR_REFERENCE = "Editor-Reference"; |
72 |
public static final String GROUP_ALLOW_ALL_TAXA_NAME = "Allow_for_all_taxa"; |
|
71 | 73 |
|
72 | 74 |
//*********************** FACTORY *********************/ |
73 | 75 |
|
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/application/FirstDataInserter.java | ||
---|---|---|
18 | 18 |
import org.apache.log4j.Logger; |
19 | 19 |
import org.springframework.beans.factory.annotation.Autowired; |
20 | 20 |
import org.springframework.context.event.ContextRefreshedEvent; |
21 |
import org.springframework.context.event.ContextStartedEvent; |
|
21 | 22 |
import org.springframework.security.authentication.AuthenticationProvider; |
22 | 23 |
import org.springframework.security.core.GrantedAuthority; |
23 | 24 |
import org.springframework.transaction.PlatformTransactionManager; |
... | ... | |
117 | 118 |
new CdmAuthority(PermissionClass.TEAMORPERSONBASE, UPDATE_DELETE).toString() |
118 | 119 |
}; |
119 | 120 |
|
121 |
public static final String[] EDIT_ALL_TAXA_GROUP_AUTHORITIES = new String[]{ |
|
122 |
new CdmAuthority(PermissionClass.TAXONNODE, CREATE_READ_UPDATE_DELETE).toString() |
|
123 |
}; |
|
124 |
|
|
120 | 125 |
public static final String[] ADMIN_GROUP_AUTHORITIES = new String[]{ |
121 | 126 |
Role.ROLE_ADMIN.toString() |
122 | 127 |
}; |
... | ... | |
231 | 236 |
checkGroup(Group.GROUP_PROJECT_MANAGER_UUID, Group.GROUP_PROJECT_MANAGER_NAME, PROJECT_MANAGER_GROUP_AUTHORITIES); |
232 | 237 |
checkGroup(Group.GROUP_ADMIN_UUID, Group.GROUP_ADMIN_NAME, ADMIN_GROUP_AUTHORITIES); |
233 | 238 |
checkGroup(Group.GROUP_EDITOR_REFERENCE_UUID, Group.GROUP_EDITOR_REFERENCE, EDITOR_REFERENCE_GROUP_AUTHORITIES); |
239 |
checkGroup(Group.GROUP_ALLOW_ALL_TAXA_UUID, Group.GROUP_ALLOW_ALL_TAXA_NAME, EDIT_ALL_TAXA_GROUP_AUTHORITIES); |
|
234 | 240 |
progressMonitor.worked(1); |
235 | 241 |
} |
236 | 242 |
|
Also available in: Unified diff
fix #9020 adding default role Allow_for_all_taxa