ItEr44S14CUAsignarUsuarioAProxectoPlanificacionItEr43S19: Created new roles related with orders management. Added the new roles to the admin user by default.

This commit is contained in:
Jacobo Aragunde Pérez 2010-01-22 13:48:12 +01:00 committed by Javier Moran Rua
parent f22196eef0
commit 280e6f8cfa
2 changed files with 8 additions and 2 deletions

View file

@ -31,7 +31,10 @@ public enum UserRole {
ROLE_ADMINISTRATION(_("Administration")),
ROLE_WS_READER(_("Web service reader")),
ROLE_WS_WRITER(_("Web service writer"));
ROLE_WS_WRITER(_("Web service writer")),
ROLE_READ_ALL_ORDERS(_("All orders read allowed")),
ROLE_EDIT_ALL_ORDERS(_("All orders edition allowed")),
ROLE_CREATE_ORDER(_("Order creation allowed"));
private final String displayName;

View file

@ -36,7 +36,10 @@ import org.navalplanner.business.users.entities.UserRole;
public enum MandatoryUser {
USER(new ArrayList<UserRole>()),
ADMIN(Arrays.asList(UserRole.ROLE_ADMINISTRATION)),
ADMIN(Arrays.asList(UserRole.ROLE_ADMINISTRATION,
UserRole.ROLE_READ_ALL_ORDERS,
UserRole.ROLE_EDIT_ALL_ORDERS,
UserRole.ROLE_CREATE_ORDER)),
WSREADER(Arrays.asList(UserRole.ROLE_WS_READER)),
WSWRITER(Arrays.asList(UserRole.ROLE_WS_READER,
UserRole.ROLE_WS_WRITER));