Package org.apache.jetspeed.security

Examples of org.apache.jetspeed.security.JetspeedPrincipalAssociationType


            for (JetspeedPrincipalAssociationType associationType : this.associationTypes)
            {
                // if
                // (!associationType.getToPrincipalType().equals(principalType))
                // {
                final JetspeedPrincipalAssociationType tempAssociation = associationType;
                final JetspeedPrincipalType fromAssociationType = associationType
                        .getFromPrincipalType();
                final JetspeedPrincipalType toAssociationType = associationType
                        .getToPrincipalType();
                final String associationName = associationType
View Full Code Here


            for (JetspeedPrincipalAssociationType associationType : this.associationTypes)
            {
                // if
                // (!associationType.getToPrincipalType().equals(principalType))
                // {
                final JetspeedPrincipalAssociationType tempAssociation = associationType;
                final JetspeedPrincipalType fromAssociationType = associationType
                        .getFromPrincipalType();
                final JetspeedPrincipalType toAssociationType = associationType
                        .getToPrincipalType();
                final String associationName = associationType
View Full Code Here

            for (JetspeedPrincipalAssociationType assoicationType : this.assoicationTypes)
            {
                // if
                // (!assoicationType.getToPrincipalType().equals(principalType))
                // {
                final JetspeedPrincipalAssociationType tempAssosciation = assoicationType;
                final JetspeedPrincipalType fromAssoicationType = assoicationType
                        .getFromPrincipalType();
                final JetspeedPrincipalType toAssoicationType = assoicationType
                        .getToPrincipalType();
                final String associationName = assoicationType
View Full Code Here

        {
            iatList = new ArrayList<JetspeedPrincipalAssociationType>(indirectAssociationTypes.size());
           
            for (Object o: indirectAssociationTypes)
            {
                JetspeedPrincipalAssociationType iat = (JetspeedPrincipalAssociationType)o;
                if (iat.getFromPrincipalType() != principalType && iat.getToPrincipalType() != principalType)
                {
                    throw new IllegalArgumentException("Provided indirectAssociationType "+iat.getAssociationName()+" should match this resolvers principalType");
                }
                else
                {
                   iatList.add(iat);
                }
View Full Code Here

                    reqAss.remove(key);
                }
            }
            if (!reqAss.isEmpty())
            {
                JetspeedPrincipalAssociationType assType = reqAss.values().iterator().next();
                throw new SecurityException(SecurityException.PRINCIPAL_ASSOCIATION_REQUIRED.createScoped(assType.getFromPrincipalType().getName(),
                                                                                                          assType.getAssociationName(),
                                                                                                          assType.getToPrincipalType().getName()));
            }
        }
        jpsm.addPrincipal(principal, associations);
        if (associations != null)
        {
View Full Code Here

       
        if (jpah != null)
        {
            if (jpah.getAssociationType().isRequired() && !isSynchronizing())
            {
                JetspeedPrincipalAssociationType assType = jpah.getAssociationType();
                throw new SecurityException(SecurityException.PRINCIPAL_ASSOCIATION_REQUIRED.createScoped(assType.getFromPrincipalType().getName(),
                                                                                                          assType.getAssociationName(),
                                                                                                          assType.getToPrincipalType().getName()));            
            }
            if (from.isTransient() || from.getId() == null)
            {
                JetspeedPrincipal pfrom = jpah.getManagerFrom().getPrincipal(from.getName());
                if (pfrom == null)
View Full Code Here

                    reqAss.remove(key);
                }
            }
            if (!reqAss.isEmpty())
            {
                JetspeedPrincipalAssociationType assType = reqAss.values().iterator().next();
                throw new SecurityException(SecurityException.PRINCIPAL_ASSOCIATION_REQUIRED.createScoped(assType.getFromPrincipalType().getName(),
                                                                                                          assType.getAssociationName(),
                                                                                                          assType.getToPrincipalType().getName()));
            }
        }
        jpsm.addPrincipal(principal, associations);
        if (associations != null)
        {
View Full Code Here

       
        if (jpah != null)
        {
            if (jpah.getAssociationType().isRequired() && !isSynchronizing())
            {
                JetspeedPrincipalAssociationType assType = jpah.getAssociationType();
                throw new SecurityException(SecurityException.PRINCIPAL_ASSOCIATION_REQUIRED.createScoped(assType.getFromPrincipalType().getName(),
                                                                                                          assType.getAssociationName(),
                                                                                                          assType.getToPrincipalType().getName()));            
            }
            if (from.isTransient() || from.getId() == null)
            {
                JetspeedPrincipal pfrom = jpah.getManagerFrom().getPrincipal(from.getName());
                if (pfrom == null)
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.security.JetspeedPrincipalAssociationType

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.