Package org.jasig.portal.container.om.common

Examples of org.jasig.portal.container.om.common.SecurityRoleRefImpl


            for (int m = 0; m < securityRoleRefNL.getLength(); m += 1) {
                Element securityRoleRefE = (Element)securityRoleRefNL.item(m);
                String roleName = XML.getChildElementText(securityRoleRefE, "role-name");
                String roleLink = XML.getChildElementText(securityRoleRefE, "role-link");
                String description = XML.getChildElementText(securityRoleRefE, "description");
                SecurityRoleRefImpl securityRoleRef = new SecurityRoleRefImpl();
                securityRoleRef.setDescription(description);
                securityRoleRef.setRoleName(roleName);
                securityRoleRef.setRoleLink(roleLink);
                securityRoleRefs.add(securityRoleRef);
            }
            servletDefinition.setSecurityRoleRefs(securityRoleRefs);
           
            // Add servlet mappings for this servlet
View Full Code Here


    private SecurityRoleRefSetImpl getSecurityRoleRefs(Element portletE) {
        SecurityRoleRefSetImpl securityRoleRefs = new SecurityRoleRefSetImpl();
        NodeList securityRoleRefsNL = portletE.getElementsByTagName("security-role-ref");
        for (int i = 0; i < securityRoleRefsNL.getLength(); i += 1) {
            Element securityRoleRefE = (Element)securityRoleRefsNL.item(i);
            SecurityRoleRefImpl securityRoleRef = new SecurityRoleRefImpl();
            securityRoleRef.setDescription(XML.getChildElementText(securityRoleRefE, "description"));
            securityRoleRef.setRoleName(XML.getChildElementText(securityRoleRefE, "role-name"));
            securityRoleRef.setRoleLink(XML.getChildElementText(securityRoleRefE, "role-link"));
            securityRoleRefs.add(securityRoleRef);
        }
        return securityRoleRefs;
    }
View Full Code Here

                    servletE.appendChild(runAsE);
                }
                SecurityRoleRefSetImpl securityRoleRefs = (SecurityRoleRefSetImpl)servletDefinition.getSecurityRoleRefs();
                if (securityRoleRefs != null) {
                    for (Iterator iter2 = securityRoleRefs.iterator(); iter2.hasNext();) {
                        SecurityRoleRefImpl securityRoleRef = (SecurityRoleRefImpl)iter2.next();
                        Element securityRoleRefE = doc.createElement("security-role-ref");
                        addDescriptions(securityRoleRefE, securityRoleRef.getDescriptions());
                        addTextElement(securityRoleRefE, "role-name", securityRoleRef.getRoleName());
                        addTextElement(securityRoleRefE, "role-link", securityRoleRef.getRoleLink());
                        servletE.appendChild(securityRoleRefE);
                    }
                }
                webAppE.appendChild(servletE);
            }
View Full Code Here

TOP

Related Classes of org.jasig.portal.container.om.common.SecurityRoleRefImpl

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.