/** * Creates a new <code>security-role-ref</code> element * @return the new created instance of <code>SecurityRoleRefType<PortletType<T>></code> */ public SecurityRoleRefType<PortletType<T>> createSecurityRoleRef() { return new SecurityRoleRefTypeImpl<PortletType<T>>(this, "security-role-ref", childNode); }
/** * Creates a new <code>security-role-ref</code> element * @return the new created instance of <code>SecurityRoleRefType<PortletType<T>></code> */ public SecurityRoleRefType<PortletType<T>> createSecurityRoleRef() { return new SecurityRoleRefTypeImpl<PortletType<T>>(this, "security-role-ref", childNode); }
/** * Returns all <code>security-role-ref</code> elements * @return list of <code>security-role-ref</code> */ public List<SecurityRoleRefType<PortletType<T>>> getAllSecurityRoleRef() { List<SecurityRoleRefType<PortletType<T>>> list = new ArrayList<SecurityRoleRefType<PortletType<T>>>(); List<Node> nodeList = childNode.get("security-role-ref"); for(Node node: nodeList) { SecurityRoleRefType<PortletType<T>> type = new SecurityRoleRefTypeImpl<PortletType<T>>(this, "security-role-ref", childNode, node); list.add(type); } return list; }
/** * Returns all <code>security-role-ref</code> elements * @return list of <code>security-role-ref</code> */ public List<SecurityRoleRefType<PortletType<T>>> getAllSecurityRoleRef() { List<SecurityRoleRefType<PortletType<T>>> list = new ArrayList<SecurityRoleRefType<PortletType<T>>>(); List<Node> nodeList = childNode.get("security-role-ref"); for(Node node: nodeList) { SecurityRoleRefType<PortletType<T>> type = new SecurityRoleRefTypeImpl<PortletType<T>>(this, "security-role-ref", childNode, node); list.add(type); } return list; }
/** * If not already created, a new <code>security-role-ref</code> element will be created and returned. * Otherwise, the first existing <code>security-role-ref</code> element will be returned. * @return the instance defined for the element <code>security-role-ref</code> */ public SecurityRoleRefType<PortletType<T>> getOrCreateSecurityRoleRef() { List<Node> nodeList = childNode.get("security-role-ref"); if (nodeList != null && nodeList.size() > 0) { return new SecurityRoleRefTypeImpl<PortletType<T>>(this, "security-role-ref", childNode, nodeList.get(0)); } return createSecurityRoleRef(); }
/** * If not already created, a new <code>security-role-ref</code> element will be created and returned. * Otherwise, the first existing <code>security-role-ref</code> element will be returned. * @return the instance defined for the element <code>security-role-ref</code> */ public SecurityRoleRefType<PortletType<T>> getOrCreateSecurityRoleRef() { List<Node> nodeList = childNode.get("security-role-ref"); if (nodeList != null && nodeList.size() > 0) { return new SecurityRoleRefTypeImpl<PortletType<T>>(this, "security-role-ref", childNode, nodeList.get(0)); } return createSecurityRoleRef(); }