Examples of removeMember()


Examples of org.apache.jackrabbit.api.security.user.Group.removeMember()

                        }
                    }

                    // 2. adjust members of the group
                    for (Authorizable m : toRemove.values()) {
                        if (!gr.removeMember(m)) {
                            handleFailure("Failed remove existing member (" + m + ") from " + gr);
                        }
                    }
                    for (Authorizable m : toAdd) {
                        if (!gr.addMember(m)) {
View Full Code Here

Examples of org.apache.jackrabbit.api.security.user.Group.removeMember()

                        }
                    }

                    // 2. adjust members of the group
                    for (Authorizable m : toRemove.values()) {
                        if (!gr.removeMember(m)) {
                            handleFailure("Failed remove existing member (" + m + ") from " + gr);
                        }
                    }
                    for (Authorizable m : toAdd) {
                        if (!gr.addMember(m)) {
View Full Code Here

Examples of org.apache.jackrabbit.api.security.user.Group.removeMember()

                }
            }

            // 2. adjust members of the group
            for (Authorizable m : toRemove.values()) {
                if (!gr.removeMember(m)) {
                    handleFailure("Failed remove existing member (" + m + ") from " + gr);
                }
            }
            for (Authorizable m : toAdd) {
                if (!gr.addMember(m)) {
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.user.MembershipProvider.removeMember()

        }
        if (isEveryone()) {
            return false;
        } else {
            MembershipProvider mMgr = getUserManager().getMembershipProvider();
            return mMgr.removeMember(getTree(), ((AuthorizableImpl) authorizable).getTree());
        }
    }

    //--------------------------------------------------------------------------
    /**
 
View Full Code Here

Examples of org.apache.jackrabbit.webdav.DavResource.removeMember()

     */
    protected void doDelete(WebdavRequest request, WebdavResponse response,
                            DavResource resource) throws IOException, DavException {
        DavResource parent = resource.getCollection();
        if (parent != null) {
            parent.removeMember(resource);
            response.setStatus(DavServletResponse.SC_NO_CONTENT);
        } else {
            response.sendError(DavServletResponse.SC_FORBIDDEN, "Cannot remove the root resource.");
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.webdav.DavResource.removeMember()

     */
    protected void doDelete(WebdavRequest request, WebdavResponse response,
                            DavResource resource) throws IOException, DavException {
        DavResource parent = resource.getCollection();
        if (parent != null) {
            parent.removeMember(resource);
            response.setStatus(DavServletResponse.SC_NO_CONTENT);
        } else {
            response.sendError(DavServletResponse.SC_FORBIDDEN, "Cannot remove the root resource.");
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.webdav.DavResource.removeMember()

     */
    protected void doDelete(WebdavRequest request, WebdavResponse response,
                            DavResource resource) throws IOException, DavException {
        DavResource parent = resource.getCollection();
        if (parent != null) {
            parent.removeMember(resource);
            response.setStatus(DavServletResponse.SC_NO_CONTENT);
        } else {
            response.sendError(DavServletResponse.SC_FORBIDDEN, "Cannot remove the root resource.");
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.webdav.DavResource.removeMember()

     */
    protected void doDelete(WebdavRequest request, WebdavResponse response,
                            DavResource resource) throws IOException, DavException {
        DavResource parent = resource.getCollection();
        if (parent != null) {
            parent.removeMember(resource);
            response.setStatus(DavServletResponse.SC_NO_CONTENT);
        } else {
            response.sendError(DavServletResponse.SC_FORBIDDEN, "Cannot remove the root resource.");
        }
    }
View Full Code Here

Examples of org.apache.jdo.tck.pc.company.Project.removeMember()

                }
                if (employee.getProjects() != null) {
                    for (Iterator it=employee.getProjects().iterator();
                            it.hasNext(); ) {
                        Project other = (Project) it.next();
                        other.removeMember(employee);
                    }
                }
                if (employee.getTeam() != null) {
                    for (Iterator it=employee.getTeam().iterator(); it.hasNext(); ) {
                        Employee other = (Employee) it.next();
View Full Code Here

Examples of org.apache.openjpa.persistence.datacache.common.apps.EmbeddingOwnerEntity.removeMember()

        assertTrue(emf.getStoreCache().contains(EmbeddingOwnerEntity.class,
                id));
   
    List<EmbeddedEntity> members = owner.getMembers();
    members.remove(0);
    owner.removeMember(0);
    owner.removeMember(members.get(0));
    em.getTransaction().commit();
   
    assertEquals(owner.getMembers().size(), SIZE-3);
  }
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.