Examples of UserManager


Examples of org.nuxeo.ecm.platform.usermanager.UserManager

        // Cleanup members list, to remove affected user
        for (Principal principal : principals) {
            members.remove(principal.getName());
        }

        UserManager userManager = Framework.getLocalService(UserManager.class);
        for (String username : members) {
            try {
                String email = userManager.getPrincipal(username).getEmail();
                if (!StringUtils.isBlank(email)) {
                    emails.add(email);
                }
            } catch (ClientException e) {
                log.info(String.format("Trying to fetch an unknown user: %s",
View Full Code Here

Examples of org.olat.user.UserManager

          ImPreferences imPrefs = ipm.loadOrCreatePropertiesFor(changeableIdentity);
          onlineListForm.updateImPreferencesFromFormData(imPrefs);
          ipm.updatePropertiesFor(changeableIdentity, imPrefs);
         
          UserManager um = UserManager.getInstance();
          um.updateUserFromIdentity(changeableIdentity);
        
        fireEvent(ureq, Event.DONE_EVENT);
      } else if (event == Form.EVNT_FORM_CANCELLED) {
        // Form is cancelled
        fireEvent(ureq, Event.CANCELLED_EVENT);
View Full Code Here

Examples of org.olat.user.UserManager

  public FormItem addFormItem(Locale locale, User user, String usageIdentifyer, boolean isAdministrativeUser,
      FormItemContainer formItemContainer) {
    SelectionElement sElem = null;
    sElem = FormUIFactory.getInstance().addCheckboxesVertical(getName(), i18nFormElementLabelKey(), formItemContainer, new String[] { getName() }, new String[]{ "" }, null, 1);
   
    UserManager um = UserManager.getInstance();
    if ( um.isUserViewReadOnly(usageIdentifyer, this) && ! isAdministrativeUser) {
      sElem.setEnabled(false);
    }
    if (um.isMandatoryUserProperty(usageIdentifyer, this)) {
      sElem.setMandatory(true);
    }
    return sElem;
  }
View Full Code Here

Examples of org.olat.user.UserManager

*
* @see org.olat.user.propertyhandlers.UserPropertyHandler#getFormElement(java.util.Locale, org.olat.core.id.User, java.lang.String, boolean)
*/
  public FormElement getFormElement(Locale locale, User user, String usageIdentifyer, boolean isAdministrativeUser) {
    CheckBoxElement ui = null;
    UserManager um = UserManager.getInstance();
   
    String value = getInternalValue(user);
    boolean isEnabled = value != null && value.equals("true") ? Boolean.TRUE : Boolean.FALSE;
    ui = new CheckBoxElement(i18nFormElementLabelKey(), isEnabled);
    if ( um.isUserViewReadOnly(usageIdentifyer, this) && ! isAdministrativeUser) {
      ui.setReadOnly(true);
    }
    if (um.isMandatoryUserProperty(usageIdentifyer, this)) {
      ui.setMandatory(true);
    }
    return ui;
  }
View Full Code Here

Examples of org.olat.user.UserManager

      return false;
    }
    /*
     * make an archive of the course nodes with valuable data
     */
    UserManager um = UserManager.getInstance();
    String charset = um.getUserCharset(ureq.getIdentity());
    CourseFactory.archiveCourse(res,charset,ureq.getLocale(),ureq.getIdentity());
    /*
     *
     */
    return true;
View Full Code Here

Examples of org.olat.user.UserManager

        final boolean logStatisticChecked = logFileChooserForm.logStatChecked();
       
        final Date begin = logFileChooserForm.getBeginDate();
        final Date end = logFileChooserForm.getEndDate();
       
        UserManager um = UserManager.getInstance();
        final String charset = um.getUserCharset(ureq.getIdentity());
       
        ICourse course = CourseFactory.loadCourse(ores);
        final String courseTitle = course.getCourseTitle();
        final String targetDir = CourseFactory.getOrCreateDataExportDirectory(ureq.getIdentity(), courseTitle).getPath();
       
View Full Code Here

Examples of org.olat.user.UserManager

  }

  protected boolean archiveNode(UserRequest ureq) {
    ICourse course = CourseFactory.loadCourse(ores);
    File exportDir = CourseFactory.getOrCreateDataExportDirectory(ureq.getIdentity(), course.getCourseTitle());
    UserManager um = UserManager.getInstance();
    String charset = um.getUserCharset(ureq.getIdentity());
    currentCourseNode.archiveNodeData(ureq.getLocale(), course, exportDir, charset);
    return true;
  }
View Full Code Here

Examples of org.olat.user.UserManager

  }
 
  private boolean archiveForumNode(UserRequest ureq){
    ICourse course = CourseFactory.loadCourse(ores);
    File exportDir = CourseFactory.getOrCreateDataExportDirectory(ureq.getIdentity(), course.getCourseTitle());
    UserManager um = UserManager.getInstance();
    String charset = um.getUserCharset(ureq.getIdentity());
    currentCourseNode.archiveNodeData(ureq.getLocale(), course, exportDir, charset);
    return true;
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.apidb.v0_6.impl.UserManager

     */
    public ApidbWriter(DatabaseLoginCredentials loginCredentials, DatabasePreferences preferences, boolean lockTables,
            boolean populateCurrentTables) {
        dbCtx = new DatabaseContext(loginCredentials);
       
        userManager = new UserManager(dbCtx);
        changesetManager = new ChangesetManager(dbCtx);

        schemaVersionValidator = new SchemaVersionValidator(loginCredentials, preferences);

        this.lockTables = lockTables;
View Full Code Here

Examples of org.osgi.impl.bundle.jmx.useradmin.UserManager

    public Object addingService(ServiceReference reference) {
      log.fine("Registering user admin with MBeanServer: " + mbeanServer
          + " with name: " + name);
      UserAdmin admin = (UserAdmin) bundleContext.getService(reference);
      try {
        manager = new StandardMBean(new UserManager(admin),
            UserManagerMBean.class);
      } catch (NotCompliantMBeanException e1) {
        log.log(Level.SEVERE, "Unable to create User Admin Manager");
        return 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.