Examples of deleteObject()


Examples of org.olat.core.commons.persistence.DB.deleteObject()

  /**
   * @param subscriber
   */
  private void deleteSubscriber(Subscriber subscriber) {
    DB db = DBFactory.getInstance();
    db.deleteObject(subscriber);
  }

  /**
   * @param subscriber
   */
 
View Full Code Here

Examples of org.openbp.server.persistence.PersistenceContext.deleteObject()

    Object object = hc.getParam(PARAM_OBJECT);

    if (object != null)
    {
      PersistenceContext pc = hc.getEngine().getPersistenceContextProvider().obtainPersistenceContext();
      pc.deleteObject(object);
    }

    return true;
    // }}*Handler implementation*
  }
 
View Full Code Here

Examples of org.sd_network.vfs.VfsService.deleteObject()

            if (targetFile.getType() != VfsFile.FileType.DIRECTORY) {
                System.out.println(
                        "ERROR: [" + dirName + "] is not directory.");
                return;
            }
            vfsService.deleteObject(sessionID, targetFile.getID());
        } catch (VfsIOException e) {
            System.out.println("ERROR: " + e.getMessage());
        } catch (SessionException e) {
            session.clearSessionID();
            System.out.println("ERROR: Session time out.");
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.editor.ObjectEditPage.deleteObject()

        Assert.assertEquals("John", object.getFieldValue(By.id("XWiki.XWikiUsers_0_first_name")));
        // Check that the value from the second object is unset
        Assert.assertEquals("", object2.getFieldValue(By.id("XWiki.XWikiUsers_1_first_name")));

        // Delete the second object
        oep.deleteObject("XWiki.XWikiUsers", 1);

        // Let's save the form and check that changes were persisted.
        oep = oep.clickSaveAndView().editObjects();
        List<FormElement> xwikiUsersForms = oep.getObjectsOfClass("XWiki.XWikiUsers");
        Assert.assertEquals(1, xwikiUsersForms.size());
View Full Code Here

Examples of org.xwiki.test.ui.po.editor.ObjectEditPage.deleteObject()

        Assert.assertEquals("John", object.getFieldValue(By.id("XWiki.XWikiUsers_0_first_name")));
        // Check that the value from the second object is unset
        Assert.assertEquals("", object2.getFieldValue(By.id("XWiki.XWikiUsers_1_first_name")));

        // Delete the second object
        oep.deleteObject("XWiki.XWikiUsers", 1);

        // Let's save the form and check that changes were persisted.
        oep = oep.clickSaveAndView().editObjects();
        List<ObjectEditPane> xwikiUsersForms = oep.getObjectsOfClass("XWiki.XWikiUsers");
        Assert.assertEquals(1, xwikiUsersForms.size());
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.