Package org.apache.jackrabbit.core

Examples of org.apache.jackrabbit.core.SessionImpl.logout()


        }
        acl.addAccessControlEntry(user.getPrincipal(), accessControlManager.getSupportedPrivileges(path));
        accessControlManager.setPolicy(path, acl);

        session.save();
        session.logout();

        context.bind("repository", repository);
        return context;
    }
View Full Code Here


    private Set<Principal> getAnonymousPrincipals() throws RepositoryException {
        SessionImpl s = ((SessionImpl) getHelper().getRepository().login(new SimpleCredentials(SecurityConstants.ANONYMOUS_ID, "".toCharArray())));
        try {
            return new HashSet<Principal>(s.getSubject().getPrincipals());
        } finally {
            s.logout();
        }
    }

    /**
     * @see <a href="https://issues.apache.org/jira/browse/JCR-2630">JCR-2630</a>
View Full Code Here

        } else {
            throw new Exception("could not set access control for path " + permissionsPath);
        }

        session.save();
        session.logout();

        context.bind("repository", repository);
        return context;
    }
View Full Code Here

            throw new Exception("could not set access control for path "
                    + permissionsPath);
        }

        session.save();
        session.logout();

        context.bind("repository", repository);
        return context;
    }
View Full Code Here

            throw new Exception("could not set access control for path "
                    + permissionsPath);
        }

        session.save();
        session.logout();

        context.bind("repository", repository);
        return context;
    }
View Full Code Here

            throw new Exception("could not set access control for path "
                    + permissionsPath);
        }

        session.save();
        session.logout();

        context.bind("repository", repository);
        return context;
    }
View Full Code Here

    private Set<Principal> getAnonymousPrincipals() throws RepositoryException {
        SessionImpl s = ((SessionImpl) getHelper().getRepository().login(new SimpleCredentials(SecurityConstants.ANONYMOUS_ID, "".toCharArray())));
        try {
            return new HashSet<Principal>(s.getSubject().getPrincipals());
        } finally {
            s.logout();
        }
    }

    /**
     * @see <a href="https://issues.apache.org/jira/browse/JCR-2630">JCR-2630</a>
View Full Code Here

                    return principal;
                }
            }
            throw new RepositoryException("Known principal not found");
        } finally {
            session.logout();
        }
    }

    @Override
    public Principal getKnownPrincipal(Session ignored)
View Full Code Here

                    return principal;
                }
            }
            throw new RepositoryException("Known principal not found");
        } finally {
            session.logout();
        }
    }

    @Override
    public Principal getKnownPrincipal(Session ignored)
View Full Code Here

            throw new Exception("could not set access control for path "
                    + permissionsPath);
        }

        session.save();
        session.logout();

        context.bind("repository", repository);
        return context;
    }
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.