Commit 69d4f254 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Modified constructor to be visible only to the package (no longer public).

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@7238 b35dd754-fafc-0310-a699-88a17e54d16e
parent 874204dc
...@@ -70,17 +70,20 @@ public class Roster implements Cacheable { ...@@ -70,17 +70,20 @@ public class Roster implements Cacheable {
/** /**
* <p>Create a roster for the given user, pulling the existing roster items * Create a roster for the given user, pulling the existing roster items
* out of the backend storage provider. The roster will also include items that * out of the backend storage provider. The roster will also include items that
* belong to the user's shared groups.</p> * belong to the user's shared groups.<p>
* *
* <p>RosterItems that ONLY belong to shared groups won't be persistent unless the user * RosterItems that ONLY belong to shared groups won't be persistent unless the user
* explicitly subscribes to the contact's presence, renames the contact in his roster or adds * explicitly subscribes to the contact's presence, renames the contact in his roster or adds
* the item to a personal group.</p> * the item to a personal group.<p>
*
* This constructor is not public and instead you should use
* {@link org.jivesoftware.wildfire.roster.RosterManager#getRoster(String)}.
* *
* @param username The username of the user that owns this roster * @param username The username of the user that owns this roster
*/ */
public Roster(String username) { Roster(String username) {
presenceManager = XMPPServer.getInstance().getPresenceManager(); presenceManager = XMPPServer.getInstance().getPresenceManager();
rosterManager = XMPPServer.getInstance().getRosterManager(); rosterManager = XMPPServer.getInstance().getRosterManager();
sessionManager = SessionManager.getInstance(); sessionManager = SessionManager.getInstance();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment