Examples of SystemPrincipal


Examples of org.apache.jackrabbit.core.security.SystemPrincipal

     */
    static SystemSession create(
            RepositoryContext repositoryContext, WorkspaceConfig wspConfig)
            throws RepositoryException {
        // create subject with SystemPrincipal
        Set<SystemPrincipal> principals = Collections.singleton(new SystemPrincipal());
        Subject subject = new Subject(true, principals, Collections.emptySet(), Collections.emptySet());
        return new SystemSession(repositoryContext, subject, wspConfig);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.SystemPrincipal

     *
     * @return the name of <code>SystemPrincipal</code>.
     */
    @Override
    protected String retrieveUserId(Subject subject, String workspaceName) throws RepositoryException {
        return new SystemPrincipal().getName();
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.SystemPrincipal

     */
    static SystemSession create(RepositoryImpl rep, WorkspaceConfig wspConfig)
            throws RepositoryException {
        // create subject with SystemPrincipal
        Set principals = new HashSet();
        principals.add(new SystemPrincipal());
        Subject subject =
                new Subject(true, principals, Collections.EMPTY_SET,
                        Collections.EMPTY_SET);
        return new SystemSession(rep, subject, wspConfig);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.SystemPrincipal

     */
    static SystemSession create(RepositoryImpl rep, WorkspaceConfig wspConfig)
            throws RepositoryException {
        // create subject with SystemPrincipal
        Set<SystemPrincipal> principals = new HashSet<SystemPrincipal>();
        principals.add(new SystemPrincipal());
        Subject subject =
                new Subject(true, principals, Collections.EMPTY_SET,
                        Collections.EMPTY_SET);
        return new SystemSession(rep, subject, wspConfig);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.SystemPrincipal

     * Always returns the name of the <code>SystemPrincipal</code>.
     *
     * @return the name of <code>SystemPrincipal</code>.
     */
    protected String retrieveUserId(Subject subject, String workspaceName) throws RepositoryException {
        return new SystemPrincipal().getName();
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.SystemPrincipal

     */
    static SystemSession create(
            RepositoryContext repositoryContext, WorkspaceConfig wspConfig)
            throws RepositoryException {
        // create subject with SystemPrincipal
        Set<SystemPrincipal> principals = Collections.singleton(new SystemPrincipal());
        Subject subject = new Subject(true, principals, Collections.emptySet(), Collections.emptySet());
        return new SystemSession(repositoryContext, subject, wspConfig);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.SystemPrincipal

     *
     * @return the name of <code>SystemPrincipal</code>.
     */
    @Override
    protected String retrieveUserId(Subject subject, String workspaceName) throws RepositoryException {
        return new SystemPrincipal().getName();
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.SystemPrincipal

        assertFalse(adminImpersonation.revokeImpersonation(adminPrincipal));
        assertTrue(impersonation.allows(buildSubject(adminPrincipal)));
    }

    public void testSystemPrincipalAsImpersonator() throws RepositoryException {
        Principal systemPrincipal = new SystemPrincipal();
        assertNull(userMgr.getAuthorizable(systemPrincipal));

        // system cannot be add/remove to set of impersonators of 'u' nor
        // should it be allowed to impersonate a given user...
        User u = (User) userMgr.getAuthorizable(uID);
View Full Code Here

Examples of org.apache.jackrabbit.core.security.SystemPrincipal

     */
    static SystemSession create(RepositoryImpl rep, WorkspaceConfig wspConfig)
            throws RepositoryException {
        // create subject with SystemPrincipal
        Set principals = new HashSet();
        principals.add(new SystemPrincipal());
        Subject subject =
                new Subject(true, principals, Collections.EMPTY_SET,
                        Collections.EMPTY_SET);
        return new SystemSession(rep, subject, wspConfig);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.SystemPrincipal

     */
    static SystemSession create(RepositoryImpl rep, WorkspaceConfig wspConfig)
            throws RepositoryException {
        // create subject with SystemPrincipal
        Set principals = new HashSet();
        principals.add(new SystemPrincipal());
        Subject subject =
                new Subject(true, principals, Collections.EMPTY_SET,
                        Collections.EMPTY_SET);
        return new SystemSession(rep, subject, wspConfig);
    }
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.