/** * Creates a new <code>user-attribute</code> element * @return the new created instance of <code>UserAttributeType<PortletDescriptor></code> */ public UserAttributeType<PortletDescriptor> createUserAttribute() { return new UserAttributeTypeImpl<PortletDescriptor>(this, "user-attribute", model); }
/** * Creates a new <code>user-attribute</code> element * @return the new created instance of <code>UserAttributeType<PortletDescriptor></code> */ public UserAttributeType<PortletDescriptor> createUserAttribute() { return new UserAttributeTypeImpl<PortletDescriptor>(this, "user-attribute", model); }
/** * Returns all <code>user-attribute</code> elements * @return list of <code>user-attribute</code> */ public List<UserAttributeType<PortletDescriptor>> getAllUserAttribute() { List<UserAttributeType<PortletDescriptor>> list = new ArrayList<UserAttributeType<PortletDescriptor>>(); List<Node> nodeList = model.get("user-attribute"); for(Node node: nodeList) { UserAttributeType<PortletDescriptor> type = new UserAttributeTypeImpl<PortletDescriptor>(this, "user-attribute", model, node); list.add(type); } return list; }
/** * Returns all <code>user-attribute</code> elements * @return list of <code>user-attribute</code> */ public List<UserAttributeType<PortletDescriptor>> getAllUserAttribute() { List<UserAttributeType<PortletDescriptor>> list = new ArrayList<UserAttributeType<PortletDescriptor>>(); List<Node> nodeList = model.get("user-attribute"); for(Node node: nodeList) { UserAttributeType<PortletDescriptor> type = new UserAttributeTypeImpl<PortletDescriptor>(this, "user-attribute", model, node); list.add(type); } return list; }
/** * If not already created, a new <code>user-attribute</code> element will be created and returned. * Otherwise, the first existing <code>user-attribute</code> element will be returned. * @return the instance defined for the element <code>user-attribute</code> */ public UserAttributeType<PortletDescriptor> getOrCreateUserAttribute() { List<Node> nodeList = model.get("user-attribute"); if (nodeList != null && nodeList.size() > 0) { return new UserAttributeTypeImpl<PortletDescriptor>(this, "user-attribute", model, nodeList.get(0)); } return createUserAttribute(); }
/** * If not already created, a new <code>user-attribute</code> element will be created and returned. * Otherwise, the first existing <code>user-attribute</code> element will be returned. * @return the instance defined for the element <code>user-attribute</code> */ public UserAttributeType<PortletDescriptor> getOrCreateUserAttribute() { List<Node> nodeList = model.get("user-attribute"); if (nodeList != null && nodeList.size() > 0) { return new UserAttributeTypeImpl<PortletDescriptor>(this, "user-attribute", model, nodeList.get(0)); } return createUserAttribute(); }