Presentation is loading. Please wait.

Presentation is loading. Please wait.

Email-to-Blog How It Works (part 3). This Is The «Email-to-blog» System Architecture.

Similar presentations


Presentation on theme: "Email-to-Blog How It Works (part 3). This Is The «Email-to-blog» System Architecture."— Presentation transcript:

1 Email-to-Blog How It Works (part 3)

2 This Is The «Email-to-blog» System Architecture

3 3. How the Blog Admin Panel works Blog Admin Panel allows admin to manage blog list and user list and to have control over the users’ membership in blogs (grant/revoke the right to post messages to a blog). It also provides a way to view and to delete blog messages.

4 3. How the Blog Admin Panel works First of all admin should be able to create/update/delete blogs. BlogBean class implements all the necessary operations. Create Blog: http://www.invisiblerevolution.net/ir_svr/admin/action/blogs.jsp?add=Create Update Blog: http://www.invisiblerevolution.net/ir_svr/admin/action/blogs.jsp?blogId=3&update=Update Delete Blog: http://www.invisiblerevolution.net/ir_svr/admin/action/blogs.jsp?blogId=7&delete=Delete Create Blog: INSERT INTO blogs (id, name, email,intro) VALUES (NEXTVAL('blog_id_seq'), ?, ?, ?) Update Blog: UPDATE blogs SET name=?,email=?,intro=? WHERE id=3 Delete Blog: DELETE FROM blogs WHERE id=7 SELECT * FROM blogs

5 3. How the Blog Admin Panel works Create User: INSERT INTO authors (id, name, email) VALUES (NEXTVAL(’author_id_seq'), ?, ?) Update User: UPDATE authors SET name=?,email=? WHERE id=4 Delete User: DELETE FROM authors WHERE id=6 The second admin task is to create/update/delete users. AuthorBean class implements all the user-related operations. Please note that there is a non-deletable user - «PUBLIC». This user account should be used when admin wish to create a publicly accessible blog. I.e. anybody can post messages to such a blog. Create User: http://www.invisiblerevolution.net/ir_svr/admin/action/members.jsp?add=Create Update User: http://www.invisiblerevolution.net/ir_svr/admin/action/members.jsp?memberId=4&update=Update Delete User: http://www.invisiblerevolution.net/ir_svr/admin/action/members.jsp?memberId=6&delete=Delete SELECT * FROM authors

6 3. How the Blog Admin Panel works Make User a Blog Member: INSERT INTO groups (blog_id, author_id) VALUES (?, ?) Remove User from the Blog Member List: DELETE FROM groups WHERE blog_id=? AND author_id=? When the blogs and the users have been created, admin should assign users’ membership in blogs. BlogBean class implements the member- related operations. Each user can be a member of any number of blogs. http://www.invisiblerevolution.net/ir_svr/admin/action/groups.jsp?1=1&2=1&7=1&update=Update SELECT author_id FROM groups WHERE blog_id=? AND author_id=?

7 3. How the Blog Admin Panel works DELETE FROM messages WHERE id=134 Sometimes admin needs to delete some messages posted to a blog (e.g. message was posted by mistake). MessageBean implements the message- related operations. Currently admin can only view and delete messages. So, the message can be modified after it has been posted. http://www.invisiblerevolution.net/ir_svr/admin/action/messages.jsp?author=4&messageId=134&delete=Delete SELECT * FROM messages WHERE author_id=4 ORDER BY tstamp, blog_id


Download ppt "Email-to-Blog How It Works (part 3). This Is The «Email-to-blog» System Architecture."

Similar presentations


Ads by Google