Package org.apache.jetspeed.security.mapping.model

Examples of org.apache.jetspeed.security.mapping.model.Attribute


        attr.setValue(value);
    }

    public void setAttribute(String name, Collection<String> values)
    {
        Attribute attr = nameToAttributeMap.get(name);
        if (attr == null)
        {
            AttributeDef def = allowedAttributes.get(name);
            if (def == null)
            {
                return; // TODO: throw proper exception
            }
            if (!def.isMultiValue())
            {
                return; // TODO: throw proper exception
            }
            attr = new AttributeImpl(def);
            nameToAttributeMap.put(name, attr);
        }
        attr.setValues(values);
    }
View Full Code Here


    {
        if (debugMode)
        {
            for (AttributeDef attributeDef : ent.getAttributeDefinitions())
            {
                Attribute attr = ent.getAttribute(attributeDef.getName());
                if (attr != null)
                {
                    if (attr.getDefinition().isMultiValue())
                    {
                        System.out.println("Values for " + attr.getName()
                                + " :");
                        System.out.println("===");
                        for (String val : attr.getValues())
                        {
                            System.out.println(val);
                        }
                        System.out.println("===");
                    } else
                    {
                        System.out.print("Value for " + attr.getName() + " :");
                        System.out.println(attr.getValue());
                    }

                }
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.security.mapping.model.Attribute

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.