Examples of removeReference()


Examples of org.apache.jackrabbit.webdav.DavSession.removeReference()

     * @see DavSessionProvider#releaseSession(org.apache.jackrabbit.webdav.WebdavRequest)
     */
    public void releaseSession(WebdavRequest request) {
        DavSession session = request.getDavSession();
        if (session != null) {
            session.removeReference(request);
        }
        // remove the session from the request
        request.setDavSession(null);
    }

View Full Code Here

Examples of org.apache.jackrabbit.webdav.DavSession.removeReference()

     * @see DavSessionProvider#releaseSession(org.apache.jackrabbit.webdav.WebdavRequest)
     */
    public void releaseSession(WebdavRequest request) {
        DavSession session = request.getDavSession();
        if (session != null) {
            session.removeReference(request);
        }
        // remove the session from the request
        request.setDavSession(null);
    }

View Full Code Here

Examples of org.apache.jackrabbit.webdav.DavSession.removeReference()

     * @see DavSessionProvider#releaseSession(org.apache.jackrabbit.webdav.WebdavRequest)
     */
    public void releaseSession(WebdavRequest request) {
        DavSession session = request.getDavSession();
        if (session != null) {
            session.removeReference(request);
        }
        // remove the session from the request
        request.setDavSession(null);
    }

View Full Code Here

Examples of org.apache.jetspeed.om.profile.Portlets.removeReference()

                        for (int i = 0; i < portlets.getReferenceCount(); i++)
                        {
                            if (portlets.getReference(i) == identityElement)
                            {
                                customizationState.setAttribute(REFERENCES_REMOVED, "true");
                                portlets.removeReference(i);
                            }
                        }
                    }
                }
            }
View Full Code Here

Examples of org.apache.jetspeed.om.profile.Portlets.removeReference()

                        for (int i = 0; i < portlets.getReferenceCount(); i++)
                        {
                            if (portlets.getReference(i) == identityElement)
                            {
                                customizationState.setAttribute(REFERENCES_REMOVED, "true");
                                portlets.removeReference(i);
                            }
                        }
                    }
                }
            }
View Full Code Here

Examples of org.apache.jetspeed.om.profile.Portlets.removeReference()

                    {
                        for (int i = 0; i < portlets.getReferenceCount(); i++)
                        {
                            if (portlets.getReference(i) == identityElement)
                            {
                                portlets.removeReference(i);
                            }
                        }
                    }
                }
            }
View Full Code Here

Examples of org.apache.jetspeed.om.profile.Portlets.removeReference()

                        for (int i = 0; i < portlets.getReferenceCount(); i++)
                        {
                            if (portlets.getReference(i) == identityElement)
                            {
                                customizationState.setAttribute(REFERENCES_REMOVED, "true");
                                portlets.removeReference(i);
                            }
                        }
                    }
                }
            }
View Full Code Here

Examples of org.apache.stanbol.entityhub.servicesapi.model.Representation.removeReference()

    }

    @Test(expected = IllegalArgumentException.class)
    public void testEmptyFieldRemoveReference() {
        Representation rep = createRepresentation(null);
        rep.removeReference("", "urn:test");
    }

    @Test(expected = IllegalArgumentException.class)
    public void testEmptyFieldSet() {
        Representation rep = createRepresentation(null);
View Full Code Here

Examples of org.apache.stanbol.entityhub.servicesapi.model.Representation.removeReference()

        Representation rep = createRepresentation(null);
        // Test removal for References
        String strRef = "urn:testValue";
        rep.addReference(field, strRef);
        assertTrue(asCollection(rep.getFieldNames()).contains(field));
        rep.removeReference(field, strRef);
        assertFalse(asCollection(rep.getFieldNames()).contains(field));

        Reference ref = vf.createReference("urn:testValue2");
        rep.add(field, ref);
        assertTrue(asCollection(rep.getFieldNames()).contains(field));
View Full Code Here

Examples of org.apache.stanbol.entityhub.servicesapi.model.Representation.removeReference()

    }

    @Test(expected = IllegalArgumentException.class)
    public void testNullFieldRemoveReference() {
        Representation rep = createRepresentation(null);
        rep.removeReference(null, "urn:test");
    }

    @Test(expected = IllegalArgumentException.class)
    public void testNullFieldSet() {
        Representation rep = createRepresentation(null);
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.