Package org.apache.jackrabbit.api.security.principal

Examples of org.apache.jackrabbit.api.security.principal.JackrabbitPrincipal


    }

    public void testEveryonePrincipal3() {
        Principal everyone = EveryonePrincipal.getInstance();

        Principal someotherEveryone = new JackrabbitPrincipal() {
            public String getName() {
                return EveryonePrincipal.NAME;
            }
            @Override
            public boolean equals(Object o) {
View Full Code Here


    @Override
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        } else if (obj instanceof JackrabbitPrincipal && obj instanceof Group) {
            JackrabbitPrincipal other = (JackrabbitPrincipal) obj;
            return NAME.equals(other.getName());
        }
        return false;
    }
View Full Code Here

    @Test
    public void testEquals() {
        List<Principal> principals = new ArrayList<Principal>();
        principals.add(new PrincipalImpl("name"));
        principals.add(new TestPrincipal("name"));
        principals.add(new JackrabbitPrincipal() {
            @Override
            public String getName() {
                return "name";
            }
        });
View Full Code Here

    @Test
    public void testEquals() {
        List<Principal> principals = new ArrayList<Principal>();
        principals.add(new PrincipalImpl("name"));
        principals.add(new TestPrincipal("name"));
        principals.add(new JackrabbitPrincipal() {
            @Override
            public String getName() {
                return "name";
            }
        });
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.api.security.principal.JackrabbitPrincipal

Copyright © 2018 www.massapicom. 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.