@Test public void testAddingContact() throws Exception { Transaction txn = new Transaction(null, false); expectAddingContact(txn); blogSharingManager.addingContact(txn, contact); }
@Override public void addingContact(Transaction txn, Contact c) throws DbException { super.addingContact(txn, c); LocalAuthor localAuthor = identityManager.getLocalAuthor(txn); Blog ourBlog = blogManager.getPersonalBlog(localAuthor); Blog theirBlog = blogManager.getPersonalBlog(c.getAuthor()); try { preShareShareable(txn, c, ourBlog); preShareShareable(txn, c, theirBlog); } catch (FormatException e) { throw new DbException(e); } }
BlogSharingManagerImpl extends SharingManagerImpl<Blog> implements BlogSharingManager, RemoveBlogHook { @Override public void addingContact(Transaction txn, Contact c) throws DbException { super.addingContact(txn, c); LocalAuthor localAuthor = identityManager.getLocalAuthor(txn); Blog ourBlog = blogManager.getPersonalBlog(localAuthor); Blog theirBlog = blogManager.getPersonalBlog(c.getAuthor()); try { preShareShareable(txn, c, ourBlog); preShareShareable(txn, c, theirBlog); } catch (FormatException e) { throw new DbException(e); } } }
BlogSharingManagerImpl extends SharingManagerImpl<Blog> implements BlogSharingManager, RemoveBlogHook { @Override public void addingContact(Transaction txn, Contact c) throws DbException { super.addingContact(txn, c); LocalAuthor localAuthor = identityManager.getLocalAuthor(txn); Blog ourBlog = blogManager.getPersonalBlog(localAuthor); Blog theirBlog = blogManager.getPersonalBlog(c.getAuthor()); try { preShareShareable(txn, c, ourBlog); preShareShareable(txn, c, theirBlog); } catch (FormatException e) { throw new DbException(e); } } @Inject  BlogSharingManagerImpl(DatabaseComponent db, ClientHelper clientHelper,
			ClientVersioningManager clientVersioningManager,
			MetadataParser metadataParser, MessageParser<Blog> messageParser,
			SessionEncoder sessionEncoder, SessionParser sessionParser,
			MessageTracker messageTracker,
			ContactGroupFactory contactGroupFactory,
			ProtocolEngine<Blog> engine,
			InvitationFactory<Blog, BlogInvitationResponse> invitationFactory,
			IdentityManager identityManager, BlogManager blogManager); }
BlogSharingManagerImpl extends SharingManagerImpl<Blog> implements BlogSharingManager, RemoveBlogHook { @Override public void addingContact(Transaction txn, Contact c) throws DbException { super.addingContact(txn, c); LocalAuthor localAuthor = identityManager.getLocalAuthor(txn); Blog ourBlog = blogManager.getPersonalBlog(localAuthor); Blog theirBlog = blogManager.getPersonalBlog(c.getAuthor()); try { preShareShareable(txn, c, ourBlog); preShareShareable(txn, c, theirBlog); } catch (FormatException e) { throw new DbException(e); } } @Inject  BlogSharingManagerImpl(DatabaseComponent db, ClientHelper clientHelper,
			ClientVersioningManager clientVersioningManager,
			MetadataParser metadataParser, MessageParser<Blog> messageParser,
			SessionEncoder sessionEncoder, SessionParser sessionParser,
			MessageTracker messageTracker,
			ContactGroupFactory contactGroupFactory,
			ProtocolEngine<Blog> engine,
			InvitationFactory<Blog, BlogInvitationResponse> invitationFactory,
			IdentityManager identityManager, BlogManager blogManager); @Override void addingContact(Transaction txn, Contact c); @Override void removingBlog(Transaction txn, Blog b); }
BlogSharingManagerImpl extends SharingManagerImpl<Blog> implements BlogSharingManager, RemoveBlogHook { @Override public void addingContact(Transaction txn, Contact c) throws DbException { super.addingContact(txn, c); LocalAuthor localAuthor = identityManager.getLocalAuthor(txn); Blog ourBlog = blogManager.getPersonalBlog(localAuthor); Blog theirBlog = blogManager.getPersonalBlog(c.getAuthor()); try { preShareShareable(txn, c, ourBlog); preShareShareable(txn, c, theirBlog); } catch (FormatException e) { throw new DbException(e); } } @Inject  BlogSharingManagerImpl(DatabaseComponent db, ClientHelper clientHelper,
			ClientVersioningManager clientVersioningManager,
			MetadataParser metadataParser, MessageParser<Blog> messageParser,
			SessionEncoder sessionEncoder, SessionParser sessionParser,
			MessageTracker messageTracker,
			ContactGroupFactory contactGroupFactory,
			ProtocolEngine<Blog> engine,
			InvitationFactory<Blog, BlogInvitationResponse> invitationFactory,
			IdentityManager identityManager, BlogManager blogManager); @Override void addingContact(Transaction txn, Contact c); @Override void removingBlog(Transaction txn, Blog b);  }