/** * Default constructor. Registers the data provider with the private data manager in the * storage:bookmarks namespace. * * @param connection the connection for persisting and retrieving bookmarks. * @throws XMPPException thrown when the connection is null or has not been authenticated. */ private BookmarkManager(Connection connection) throws XMPPException { if(connection == null || !connection.isAuthenticated()) { throw new XMPPException("Invalid connection."); } this.privateDataManager = new PrivateDataManager(connection); }
/** * Default constructor. Registers the data provider with the private data manager in the * storage:bookmarks namespace. * * @param connection the connection for persisting and retrieving bookmarks. * @throws XMPPException thrown when the connection is null or has not been authenticated. */ private BookmarkManager(Connection connection) throws XMPPException { if(connection == null || !connection.isAuthenticated()) { throw new XMPPException("Invalid connection."); } this.privateDataManager = new PrivateDataManager(connection); }
/** * Default constructor. Registers the data provider with the private data manager in the * storage:bookmarks namespace. * * @param connection the connection for persisting and retrieving bookmarks. * @throws XMPPException thrown when the connection is null or has not been authenticated. */ private BookmarkManager(Connection connection) throws XMPPException { if(connection == null || !connection.isAuthenticated()) { throw new XMPPException("Invalid connection."); } this.privateDataManager = new PrivateDataManager(connection); }