Examples of ProfileManager


Examples of org.nemesis.forum.ProfileManager

   
    try {
       
       
        ForumFactory forumFactory = ForumFactory.getInstance(getAuthToken(request));
        ProfileManager manager = forumFactory.getProfileManager();
        User user = manager.getUser(getAuthToken(request).getUserID());
         
        Group group = manager.getGroup((String)PropertyUtils.getSimpleProperty(form, "group"));
        request.setAttribute("id",group.getID()+"";
        User  u = manager.getUser((String)PropertyUtils.getSimpleProperty(form, "username"));
        //check permission
        checkPermission(request,OperationConstants.ADD_GROUP_MEMBER,group);
        // add user as an administrator of the group
        group.addMember(u);
       
View Full Code Here

Examples of org.nemesis.forum.ProfileManager

      }

      List v = new Vector();

      ForumFactory forumFactory = ForumFactory.getInstance(getAuthToken(request));
      ProfileManager manager = forumFactory.getProfileManager();

      Iterator userIterator = null;
      if (request.getParameter("query") != null) {

        //::TODO::search, not very nice
        String query = request.getParameter("query");
        userIterator = manager.users();
        List tempListe = new ArrayList();
        User userTemp = null;
        int c = 0;
        while (userIterator.hasNext()) {
          userTemp = (User) userIterator.next();
          if (userTemp.getName().toLowerCase().indexOf(query.toLowerCase()) > -1
            || userTemp.getUsername().toLowerCase().indexOf(query.toLowerCase()) > -1
            || userTemp.getEmail().toLowerCase().indexOf(query.toLowerCase()) > -1) {
            //match
            if(c >= start && c<(start+maxPageItems)){
              tempListe.add(userTemp);
            }
            c++;
           
          }
        }
        userIterator = tempListe.iterator();
        request.setAttribute("nbItems", new Integer(c));
        request.setAttribute("query", query);
      } else {
        userIterator = manager.users(start, maxPageItems);
        request.setAttribute("nbItems", new Integer(manager.getUserCount()));
      }
      //populate
      String temp = null;
      UserBean ub = null;
      User user = null;
View Full Code Here

Examples of org.nemesis.forum.ProfileManager

    
    try {
         
       
        ForumFactory forumFactory = ForumFactory.getInstance(getAuthToken(request));
        ProfileManager manager = forumFactory.getProfileManager();
        User user = manager.getUser(getAuthToken(request).getUserID());
        try {
         
          ForumBean fb=(ForumBean)PropertyUtils.getProperty(form, "forumBean");
          ForumFactory ff =ForumFactory.getInstance(getAuthToken(request));
          Forum f =ff.createForum(fb.getName(),fb.getDescription());
View Full Code Here

Examples of org.nemesis.forum.ProfileManager

    }

    try {

      ForumFactory forumFactory = ForumFactory.getInstance(getAuthToken(request));
      ProfileManager manager = forumFactory.getProfileManager();
      User user = manager.getUser(getAuthToken(request).getUserID());
      try {
        UserBean ub = (UserBean) PropertyUtils.getProperty(form, "userBean");
        User u = manager.createUser(ub.getUserName(), ub.getPassword(), ub.getEmail());
        u.setEmailVisible(ub.isEmailVisible());
        u.setName(ub.getName());
        u.setNameVisible(ub.isNameVisible());

        //properties
View Full Code Here

Examples of org.waveprotocol.wave.client.account.ProfileManager

      // Eagerly install some features.
      WavePanelImpl panel = stageTwo.getStageOne().getWavePanel();
      FocusFramePresenter focus = stageTwo.getStageOne().getFocusFrame();
      ParticipantId user = stageTwo.getSignedInUser();
      ModelAsViewProvider models = stageTwo.getModelAsViewProvider();
      ProfileManager profiles = stageTwo.getProfileManager();

      MenuMessages menuMessages = GWT.create(MenuMessages.class);
      ParticipantMessages participantMessages = GWT.create(ParticipantMessages.class);

      Actions actions = getEditActions();
View Full Code Here

Examples of org.waveprotocol.wave.client.account.ProfileManager

  @Override
  protected void setUp() {
    ShallowBlipRenderer populator = mock(ShallowBlipRenderer.class);
    ObservableSupplementedWave supplement = mock(ObservableSupplementedWave.class);
    ProfileManager profiles = new ProfileManagerImpl();
    ThreadReadStateMonitor readMonitor = mock(ThreadReadStateMonitor.class);

    // Create a wave
    wave = createWave();
View Full Code Here

Examples of uk.gov.nationalarchives.droid.profile.ProfileManager

    /**
     * Starts a profile.
     */
    public void start() {
        ProfileManager profileManager = droidMainUi.getProfileManager();
        DefaultMutableTreeNode rootNode = (DefaultMutableTreeNode) treeModel.getRoot();
        inMemoryNodes.put(-1L, rootNode);

        job = new DroidJob();
        job.setProfileManager(profileManager);
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.