Examples of Roles


Examples of org.olat.core.id.Roles

    String usernameLabel = translate("table.user.login");
    //use the PropertyHandlerTranslator for the velocityContainer
    setTranslator(UserManager.getInstance().getPropertyHandlerTranslator(getTranslator()));
    velocityContainer = this.createVelocityContainer("userShortDescription");
       
    Roles roles = ureq.getUserSession().getRoles();
    boolean isAdministrativeUser = (roles.isAuthor() || roles.isGroupManager() || roles.isUserManager() || roles.isOLATAdmin());   
    userPropertyHandlers = UserManager.getInstance().getUserPropertyHandlersFor(usageIdentifyer, isAdministrativeUser);
    velocityContainer.contextPut("userPropertyHandlers", userPropertyHandlers);
    velocityContainer.contextPut("user", identity.getUser());     
    velocityContainer.contextPut("username", identity.getName());
    velocityContainer.contextPut("usernameLabel", usernameLabel);
View Full Code Here

Examples of org.olat.core.id.Roles

    //use the PropertyHandlerTranslator  as tableCtr translator
    propertyHandlerTranslator = UserManager.getInstance().getPropertyHandlerTranslator(getTranslator());
       
    myContent = this.createVelocityContainer("panel");

    Roles roles = ureq.getUserSession().getRoles();
    isAdministrativeUser = (roles.isAuthor() || roles.isGroupManager() || roles.isUserManager() || roles.isOLATAdmin());   
   
    userSelectionPanel = new Panel("userSelectionPanel");
    userSelectionPanel.addListener(this);
    initializeTableController(ureq);
    initializeContent();
View Full Code Here

Examples of org.olat.core.id.Roles

    this.localUserCourseEnvironmentCache = new HashMap<Long, UserCourseEnvironment>();
   
    //use the PropertyHandlerTranslator  as tableCtr translator
    propertyHandlerTranslator = UserManager.getInstance().getPropertyHandlerTranslator(getTranslator());
   
    Roles roles = ureq.getUserSession().getRoles();
    isAdministrativeUser = (roles.isAuthor() || roles.isGroupManager() || roles.isUserManager() || roles.isOLATAdmin());   
   
    main = new Panel("assessmentmain");

    // Intro page, static
    index = createVelocityContainer("assessment_index");
View Full Code Here

Examples of org.olat.core.id.Roles

  @Override
  public NodeRunConstructionResult createNodeRunConstructionResult(UserRequest ureq, WindowControl wControl,
      UserCourseEnvironment userCourseEnv, NodeEvaluation ne, String nodecmd) {
    Controller controller;
    // Do not allow guests to have manual scoring
    Roles roles = ureq.getUserSession().getRoles();
    if (roles.isGuestOnly()) {
      Translator trans = new PackageTranslator(PACKAGE, ureq.getLocale());
      String title = trans.translate("guestnoaccess.title");
      String message = trans.translate("guestnoaccess.message");
      controller = MessageUIFactory.createInfoMessage(ureq, wControl, title, message);
    } else {
View Full Code Here

Examples of org.olat.core.id.Roles

    super(ureq);
    this.identitiesToEdit = toEdit;
    setI18nTitleAndDescr("step0.description", null);
    setNextStep(new UserBulkChangeStep01(ureq));
    ubcMan = UserBulkChangeManager.getInstance();
    Roles roles = ureq.getUserSession().getRoles();
    isOLATAdmin = roles.isOLATAdmin();
    isAdministrativeUser = (roles.isAuthor() || roles.isGroupManager() || roles.isUserManager() || roles.isOLATAdmin());
  }
View Full Code Here

Examples of org.olat.core.id.Roles

   */
  public NodeRunConstructionResult createNodeRunConstructionResult(UserRequest ureq, WindowControl wControl,
      UserCourseEnvironment userCourseEnv, NodeEvaluation ne, String nodecmd) {
    Controller controller;
    // Do not allow guests to send anonymous emails
    Roles roles = ureq.getUserSession().getRoles();
    if (roles.isGuestOnly()) {
      Translator trans = new PackageTranslator(PACKAGE, ureq.getLocale());
      String title = trans.translate("guestnoaccess.title");
      String message = trans.translate("guestnoaccess.message");
      controller = MessageUIFactory.createInfoMessage(ureq, wControl, title, message);
    } else {
View Full Code Here

Examples of org.olat.core.id.Roles

  public NodeRunConstructionResult createNodeRunConstructionResult(UserRequest ureq, WindowControl wControl,
      UserCourseEnvironment userCourseEnv, NodeEvaluation ne, String nodecmd) {
    updateModuleConfigDefaults(false);
    Controller controller;
    // Do not allow guests to start tests
    Roles roles = ureq.getUserSession().getRoles();
    if (roles.isGuestOnly()) {
      Translator trans = new PackageTranslator(PACKAGE, ureq.getLocale());
      String title = trans.translate("guestnoaccess.title");
      String message = trans.translate("guestnoaccess.message");
      controller = MessageUIFactory.createInfoMessage(ureq, wControl, title, message);
    } else {
View Full Code Here

Examples of org.olat.core.id.Roles

   */
  ExtendedIdentitiesTableDataModel(UserRequest ureq, List identities, boolean actionEnabled) {
    super(identities);
    this.actionEnabled = actionEnabled;

    Roles roles = ureq.getUserSession().getRoles();
    boolean isAdministrativeUser = (roles.isAuthor() || roles.isGroupManager() || roles.isUserManager() || roles.isOLATAdmin());
    userPropertyHandlers = UserManager.getInstance().getUserPropertyHandlersFor(usageIdentifyer, isAdministrativeUser);
  }
View Full Code Here

Examples of org.olat.core.id.Roles

   * Set the roles (admin, author, guest)
   * @param identity
   * @param usess
   */
  private static void setRolesFor(Identity identity, UserSession usess) {
    Roles roles = ManagerFactory.getManager().getRoles(identity);
    usess.setRoles(roles);
  }
View Full Code Here

Examples of org.olat.core.id.Roles

      List<Identity> selectedIdentities = (List<Identity>) getFromRunContext("identitiesToEdit");
      HashMap<String, String> attributeChangeMap = (HashMap<String, String>) getFromRunContext("attributeChangeMap");
      HashMap<String, String> roleChangeMap = (HashMap<String, String>) getFromRunContext("roleChangeMap");

      Roles roles = ureq.getUserSession().getRoles();
      boolean isAdministrativeUser = (roles.isAuthor() || roles.isGroupManager() || roles.isUserManager() || roles.isOLATAdmin());
      userPropertyHandlers = UserManager.getInstance().getUserPropertyHandlersFor(usageIdentifyer, isAdministrativeUser);

      String[] securityGroups = { Constants.GROUP_USERMANAGERS, Constants.GROUP_GROUPMANAGERS, Constants.GROUP_AUTHORS,
          Constants.GROUP_ADMIN };
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.