/** * <p>Update the cached item as a copy of the given item.</p> * <p>A convenience for getting the item and setting each attribute.</p> * * @param item The item who's settings will be copied into the cached copy * @throws org.jivesoftware.openfire.SharedGroupException if trying to remove shared group. */ public void setAsCopyOf(org.xmpp.packet.Roster.Item item) throws SharedGroupException { setGroups(new LinkedList<>(item.getGroups())); setNickname(item.getName()); }
/** * <p>Update the cached item as a copy of the given item.</p> * <p>A convenience for getting the item and setting each attribute.</p> * * @param item The item who's settings will be copied into the cached copy * @throws org.jivesoftware.openfire.SharedGroupException if trying to remove shared group. */ public void setAsCopyOf(org.xmpp.packet.Roster.Item item) throws SharedGroupException { setGroups(new LinkedList<>(item.getGroups())); setNickname(item.getName()); }