Package org.apache.jetspeed.security

Examples of org.apache.jetspeed.security.JetspeedPrincipalAssociationReference


                                processingFromType.add(entity.getId());
                                principal = synchronizeEntity(relatedEntity, processing, processed);
                            }
                            if (principal != null)
                            {
                                toAssociations.add(new JetspeedPrincipalAssociationReference(JetspeedPrincipalAssociationReference.Type.TO, principal, relationTypeForThisEntity.getRelationType()));
                            }
                        }
                        catch (SecurityException e)
                        {
                            setFeedback(e);
View Full Code Here


                {
                    List<? extends JetspeedPrincipal> associatedFrom = principalManager.getAssociatedFrom(principal.getName(), principal.getType(), relationType.getRelationType());
                    for (JetspeedPrincipal p : associatedFrom)
                    {
                        if (toAssociations.isEmpty() ||
                                        !toAssociations.remove(new JetspeedPrincipalAssociationReference(JetspeedPrincipalAssociationReference.Type.TO, p, relationType.getRelationType())))
                        {
                            principalManager.removeAssociation(principal, p, relationType.getRelationType());
                        }
                    }
                }
View Full Code Here

    public SSOUser addUser(String name, Long domainId, JetspeedPrincipal ownerPrincipal)
            throws SecurityException
    {
        SSOUser user = newUser(name, domainId);
        Set<JetspeedPrincipalAssociationReference> reqAssociations = new HashSet<JetspeedPrincipalAssociationReference>();
        reqAssociations.add(new JetspeedPrincipalAssociationReference(JetspeedPrincipalAssociationReference.Type.TO, ownerPrincipal, IsOwnedByPrincipalAssociationHandler.ASSOCIATION_NAME));
        super.addPrincipal(user, reqAssociations);
        // by default add a relation to the owner
        super.addAssociation(user, ownerPrincipal, IsRemoteIdentityForPrincipalAssociationHandler.ASSOCIATION_NAME);
        return user;
    }
View Full Code Here

                                processingFromType.add(entity.getId());
                                principal = synchronizeEntity(relatedEntity, processing, processed);
                            }
                            if (principal != null)
                            {
                                toAssociations.add(new JetspeedPrincipalAssociationReference(JetspeedPrincipalAssociationReference.Type.TO, principal, relationTypeForThisEntity.getRelationType()));
                            }
                        }
                        catch (SecurityException e)
                        {
                            setFeedback(e);
View Full Code Here

                {
                    List<? extends JetspeedPrincipal> associatedFrom = principalManager.getAssociatedFrom(principal.getName(), principal.getType(), relationType.getRelationType());
                    for (JetspeedPrincipal p : associatedFrom)
                    {
                        if (toAssociations.isEmpty() ||
                                        !toAssociations.remove(new JetspeedPrincipalAssociationReference(JetspeedPrincipalAssociationReference.Type.TO, p, relationType.getRelationType())))
                        {
                            principalManager.removeAssociation(principal, p, relationType.getRelationType());
                        }
                    }
                }
View Full Code Here

TOP

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

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.