Examples of ForumFactory


Examples of org.nemesis.forum.ForumFactory

    checkPermission(request,OperationConstants.MANAGE_SEARCH);
   
    ActionErrors errors = new ActionErrors();
   
    try {
        ForumFactory forumFactory = ForumFactory.getInstance(getAuthToken(request));
       
        //action
        if(request.getParameter("autoindex")!=null){
          Indexer.setAutoIndex(!Indexer.isAutoIndex(),getAuthToken(request));
        }
View Full Code Here

Examples of org.nemesis.forum.ForumFactory

    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.ADD_USER_PERMISSION, forum);
     
      ProfileManager manager = forumFactory.getProfileManager();
     
      User user =null;
      if(! "null".equals(request.getParameter("ou")) ){
        user = manager.getUser(Integer.parseInt(request.getParameter("ou")));
      }else{
View Full Code Here

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

Examples of org.nemesis.forum.ForumFactory

    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

Examples of org.nemesis.forum.ForumFactory

        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
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.