Package org.nemesis.forum

Examples of org.nemesis.forum.Group


       
        ForumFactory forumFactory = ForumFactory.getInstance(getAuthToken(request));
        ProfileManager manager = forumFactory.getProfileManager();
        User user = manager.getUser(getAuthToken(request).getUserID());
        try {
          Group newGroup = manager.createGroup(name);
          // add logged user as an administrator of the new group
          newGroup.addAdministrator(user);
          if( description != null ) {
            newGroup.setDescription( description );
          }
        }
        catch( AlreadyExistsException aee ) {
          errors.add("general"new ActionError("addGroup.alreadyExist"));
        }
View Full Code Here

TOP

Related Classes of org.nemesis.forum.Group

Copyright © 2018 www.massapicom. 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.