Examples of deleteCategory()


Examples of com.centraview.support.knowledgebase.KnowledgeBaseLocal.deleteCategory()

      InitialContext ic = CVUtility.getInitialContext();
      KnowledgeBaseLocalHome home = (KnowledgeBaseLocalHome) ic.lookup("local/KnowledgeBase");
      KnowledgeBaseLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      ctx.getUserTransaction().begin();
      remote.deleteCategory(userId, categoryId);
      ctx.getUserTransaction().commit();
    } catch (Exception e) {
      logger.error("[deleteCategory]: Exception", e);
      return 0;
    }
View Full Code Here

Examples of com.centraview.support.supportfacade.SupportFacade.deleteCategory()

      SupportFacade remote = (SupportFacade) supportFacade.create();
      remote.setDataSource(dataSource);

      KnowledgebaseList displaylist = (KnowledgebaseList) session.getAttribute("displaylist");
      int catid = displaylist.getCurrentCategoryID();
      remote.deleteCategory(individualID, catid);

      FORWARD_final = FORWARD_category;
    }
    catch (Exception e)
    {
View Full Code Here

Examples of com.centraview.support.supportfacade.SupportFacade.deleteCategory()

        if(rowId[i] != null && !rowId[i].equals("")) {
          String elements[] = rowId[i].split("\\*");
          if (elements.length != 2)
            continue;
          if (elements[1].equals("CATEGORY"))
            ejb.deleteCategory(individualId, Integer.parseInt(elements[0]));
          else if (elements[1].equals("KBELEMENT"))
            ejb.deleteKB(individualId, Integer.parseInt(elements[0]));
          else
            continue;
        }
View Full Code Here

Examples of com.centraview.support.supportfacade.SupportFacade.deleteCategory()

      if (typeOfDoc.equals(SupportConstantKeys.KBELEMENT)) {
        remote.deleteKB (userID,elementID);

      }
      else if (typeOfDoc.equals(SupportConstantKeys.CATEGORY)) {
        remote.deleteCategory (userID,elementID);
      }
    }
    catch(Exception e ) {
      System.out.println("[Exception][KnowledgebaseList.deleteElement] Exception Thrown: "+e);
    }
View Full Code Here

Examples of com.lgx8.gateway.service.IGatewayService.deleteCategory()

        if(category!=null&&category.getChilds().size()>0) {
          PrintWriter pw = response.getWriter();
          pw.write("0:请先删除子类!");
          return;
        }
        gatewayService.deleteCategory(Long.parseLong(id));
        List<Category> categorys = (List<Category>) getServletContext().getAttribute("categorys");
//        categorys.clear();
//        categorys.addAll(gatewayService.findAllCategory());
       
        getServletContext().setAttribute("categorys", categorys);
View Full Code Here

Examples of net.rim.blackberry.api.pdap.BlackBerryPIMList.deleteCategory()

        // It does not matter which type of PIM list is being opened here
        // They share the same categories defined in the PIM database
        BlackBerryPIMList pimList = (BlackBerryPIMList) BlackBerryPIM.getInstance().openPIMList( PIM.TODO_LIST, PIM.READ_WRITE );
        // Do not delete any Task items, only categories
        boolean deleteUnassignedItems = false;
        pimList.deleteCategory( args[ 0 ].toString(), deleteUnassignedItems );

        return UNDEFINED;
    }

    /**
 
View Full Code Here

Examples of net.sourceforge.pebble.dao.CategoryDAO.deleteCategory()

            blog.removeCategory(category);
            try {
              // remove it from the persistent store
              DAOFactory factory = DAOFactory.getConfiguredFactory();
              CategoryDAO dao = factory.getCategoryDAO();
              dao.deleteCategory(category, blog);
            } catch (PersistenceException pe) {
              pe.printStackTrace();
            }
          }
        }
View Full Code Here

Examples of org.xwiki.blog.test.po.ManageCategoriesPage.deleteCategory()

    private void categoryRemove(String name)
    {
        ManageCategoriesPage categoriesPage = ManageCategoriesPage.gotoPage();
        Assert.assertTrue(categoriesPage.isCategoryPresent(name));

        categoriesPage.deleteCategory(name);
        Assert.assertFalse(categoriesPage.isCategoryPresent(name));
    }
}
View Full Code Here

Examples of sg.edu.nus.iss.se07.bc.CategoryManager.deleteCategory()

                                if (dataObject.getProducts().size() > 0) {
                                        //this category still got dependency with product
                                        throw new AppException("Products exist. Cannot delete this Category.\nPlease remove all product first.", "[AppController::removeCategory]", null);
                                }
                        }
                        success = dataObjectManager.deleteCategory(id);
                        if (success) {
                                categoryDataSet.remove(id);

                                //Remove vendors file
                                File f = null;
View Full Code Here

Examples of sg.edu.nus.iss.se07.bc.CategoryManager.deleteCategory()

                boolean success = true;

                CategoryManager dataObjectManager = new CategoryManager();

                try {
                        success = dataObjectManager.deleteCategory(id);
                } catch (AppException ex) {
                        Logger.getLogger(AppController.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
                        throw ex;
                }
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.