Examples of removeParent()


Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.MultiFiling.removeParent()

        StoredObject folder = sos[1];

        checkObjects(so, folder);
        Folder parent = (Folder) folder;
        MultiFiling obj = (MultiFiling) so;
        obj.removeParent(parent);

        // To be able to provide all Atom links in the response we need
        // additional information:
        if (context.isObjectInfoRequired()) {
            ObjectInfoImpl objectInfo = new ObjectInfoImpl();
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.SingleFiling.removeParent()

                SingleFiling pathObj = (SingleFiling) so;
                pathObj.setParent(newParent);
            } else if (so instanceof MultiFiling) {
                MultiFiling pathObj = (MultiFiling) so;
                pathObj.addParent(newParent);
                pathObj.removeParent(oldParent);
            }
        } finally {
            fObjStore.unlock();
        }
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.SingleFiling.removeParent()

                SingleFiling pathObj = (SingleFiling) so;
                pathObj.setParent(newParent);
            } else if (so instanceof MultiFiling) {
                MultiFiling pathObj = (MultiFiling) so;
                pathObj.addParent(newParent);
                pathObj.removeParent(oldParent);
            }
        } finally {
            fObjStore.unlock();
        }
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.SingleFiling.removeParent()

                SingleFiling pathObj = (SingleFiling) so;
                pathObj.setParent(newParent);
            } else if (so instanceof MultiFiling) {
                MultiFiling pathObj = (MultiFiling) so;
                pathObj.addParent(newParent);
                pathObj.removeParent(oldParent);
            }
        } finally {
            fObjStore.unlock();
        }
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.SingleFiling.removeParent()

                SingleFiling pathObj = (SingleFiling) so;
                pathObj.setParent(newParent);
            } else if (so instanceof MultiFiling) {
                MultiFiling pathObj = (MultiFiling) so;
                pathObj.addParent(newParent);
                pathObj.removeParent(oldParent);
            }
        } finally {
            fObjStore.unlock();
        }
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.SingleFiling.removeParent()

                SingleFiling pathObj = (SingleFiling) so;
                pathObj.setParent(newParent);
            } else if (so instanceof MultiFiling) {
                MultiFiling pathObj = (MultiFiling) so;
                pathObj.addParent(newParent);
                pathObj.removeParent(oldParent);
            }
        } finally {
            fObjStore.unlock();
        }
    }
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.nested.base.std.NestedBeanMonitor.removeParent()

      
      removeBean(parent);
      
      // Confirm parent is dead
      Assert.assertEquals("Remote counter (via dead parent): ", -1, monitor.incrementParent());
      Assert.assertFalse("parent.remove() fails", monitor.removeParent());
     
      // Confirm nested beans still work following parent remove
      Assert.assertEquals("Remote counter (direct):", 2 ,nested.increment());     
      Assert.assertEquals("Local counter (monitor):", 1 , monitor.incrementLocalNested());
      Assert.assertEquals("Deep nested id", deepId, monitor.getDeepNestedId());
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.nested.base.xpc.NestedXPCMonitor.removeParent()

                        monitor.compareNestedToDeepNested(id));
      Assert.assertTrue("Local nested and localDeepNested share a ref",
                        monitor.compareLocalNestedToLocalDeepNested(id));
     
      // Remove the parent and see that things still work
      Assert.assertTrue("Parent removed", monitor.removeParent());
      
      // Confirm parent is dead
      Assert.assertFalse("parent.remove() fails", monitor.removeParent());
     
      Assert.assertTrue("Remote nested and local nested do not share a ref",
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.nested.base.xpc.NestedXPCMonitor.removeParent()

     
      // Remove the parent and see that things still work
      Assert.assertTrue("Parent removed", monitor.removeParent());
      
      // Confirm parent is dead
      Assert.assertFalse("parent.remove() fails", monitor.removeParent());
     
      Assert.assertTrue("Remote nested and local nested do not share a ref",
            monitor.compareNestedToLocalNested(id));
      Assert.assertTrue("Remote nested and deepNested share a ref",
            monitor.compareNestedToDeepNested(id));
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.