/**
*
*/
protected static void setupRoles() throws DataAccessException, WikiException {
Role role = RoleImpl.ROLE_ADMIN;
// FIXME - use message key
role
.setDescription("Provides the ability to perform wiki maintenance tasks not available to normal users.");
WikiBase.getDataHandler().writeRole(role, false);
role = RoleImpl.ROLE_EDIT_EXISTING;
// FIXME - use message key
role.setDescription("Allows a user to edit an existing topic.");
WikiBase.getDataHandler().writeRole(role, false);
role = RoleImpl.ROLE_EDIT_NEW;
// FIXME - use message key
role.setDescription("Allows a user to create a new topic.");
WikiBase.getDataHandler().writeRole(role, false);
role = RoleImpl.ROLE_IMPORT;
// FIXME - use message key
role.setDescription("Allows a user to import data from a file.");
WikiBase.getDataHandler().writeRole(role, false);
role = RoleImpl.ROLE_MOVE;
// FIXME - use message key
role.setDescription("Allows a user to move a topic to a different name.");
WikiBase.getDataHandler().writeRole(role, false);
role = RoleImpl.ROLE_SYSADMIN;
// FIXME - use message key
role
.setDescription("Allows access to set database parameters, modify parser settings, and set other wiki system settings.");
WikiBase.getDataHandler().writeRole(role, false);
role = RoleImpl.ROLE_TRANSLATE;
// FIXME - use message key
role
.setDescription("Allows access to the translation tool used for modifying the values of message keys used to display text on the wiki.");
WikiBase.getDataHandler().writeRole(role, false);
role = RoleImpl.ROLE_UPLOAD;
// FIXME - use message key
role.setDescription("Allows a user to upload a file to the wiki.");
WikiBase.getDataHandler().writeRole(role, false);
role = RoleImpl.ROLE_VIEW;
// FIXME - use message key
role.setDescription("Allows a user to view topics on the wiki.");
WikiBase.getDataHandler().writeRole(role, false);
}