/** * Returns the privacy item in the specified order. * * @param listName the name of the privacy list. * @param order the order of the element. * @return a List with {@link PrivacyItem} */ public PrivacyItem getItem(String listName, int order) { Iterator<PrivacyItem> values = getPrivacyList(listName).iterator(); PrivacyItem itemFound = null; while (itemFound == null && values.hasNext()) { PrivacyItem element = values.next(); if (element.getOrder() == order) { itemFound = element; } } return itemFound; }
/** * Returns the privacy item in the specified order. * * @param listName the name of the privacy list. * @param order the order of the element. * @return a List with {@link PrivacyItem} */ public PrivacyItem getItem(String listName, int order) { Iterator<PrivacyItem> values = getPrivacyList(listName).iterator(); PrivacyItem itemFound = null; while (itemFound == null && values.hasNext()) { PrivacyItem element = values.next(); if (element.getOrder() == order) { itemFound = element; } } return itemFound; }
/** * Returns the privacy item in the specified order. * * @param listName the name of the privacy list. * @param order the order of the element. * @return a List with {@link PrivacyItem} */ public PrivacyItem getItem(String listName, int order) { Iterator<PrivacyItem> values = getPrivacyList(listName).iterator(); PrivacyItem itemFound = null; while (itemFound == null && values.hasNext()) { PrivacyItem element = values.next(); if (element.getOrder() == order) { itemFound = element; } } return itemFound; }
buf.append(" action=\"deny\""); buf.append(" order=\"").append(getOrder()).append("\""); if (getType() != null) { buf.append(" type=\"").append(getType()).append("\"");
buf.append(" action=\"deny\""); buf.append(" order=\"").append(getOrder()).append("\""); if (getType() != null) { buf.append(" type=\"").append(getType()).append("\"");
buf.append(" action=\"deny\""); buf.append(" order=\"").append(getOrder()).append("\""); if (getType() != null) { buf.append(" type=\"").append(getType()).append("\"");