Package org.nemesis.forum

Examples of org.nemesis.forum.ForumFactory


    ActionErrors errors = new ActionErrors();
       
    try {
       
       
        ForumFactory forumFactory = ForumFactory.getInstance(getAuthToken(request));
        ProfileManager manager = forumFactory.getProfileManager();
        User user = manager.getUser(getAuthToken(request).getUserID());
        try {
          //retrieve the group
          String gid=request.getParameter("id");
          if(gid==null) gid=""+request.getAttribute("id");//back to del or add action
View Full Code Here


    ActionErrors errors = new ActionErrors();

    try {

      ForumFactory forumFactory = ForumFactory.getInstance(getAuthToken(request));
      Forum forum = forumFactory.getForum(Integer.parseInt(request.getParameter("id")));
      request.setAttribute("id", request.getParameter("id"));
      //check permission
      checkPermission(request, OperationConstants.DELETE_THREAD, forum);

      forum.deleteThread(forum.getThread( Integer.parseInt(request.getParameter("threadID"))));
View Full Code Here

        String description = (String)PropertyUtils.getSimpleProperty(form, "description");
   
    try {
       
       
        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);
View Full Code Here

TOP

Related Classes of org.nemesis.forum.ForumFactory

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.