Extract ForumFactory from ForumManager
The code for creating forums in ForumManager was used by ForumSharingManager and also needed by InviteeEngine. This extracts it into its own class.
Closes #375 (closed)
Merge request reports
Activity
Filter activity
70 65 } 71 66 72 67 @Override 73 public Forum createForum(String name) { 74 int length = StringUtils.toUtf8(name).length; 75 if (length == 0) throw new IllegalArgumentException(); 76 if (length > MAX_FORUM_NAME_LENGTH) 77 throw new IllegalArgumentException(); 78 byte[] salt = new byte[FORUM_SALT_LENGTH]; 79 random.nextBytes(salt); 80 return createForum(name, salt); 81 } 68 public Forum addForum(String name) throws DbException { 69 Forum f = forumFactory.createForum(name); mentioned in commit ba928875
Milestone changed to %Milestone D
Please register or sign in to reply