public class CommonsSecurityManagerImpl extends Object implements CommonsSecurityManager
| Constructor and Description |
|---|
CommonsSecurityManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCurrentUserCommentOnPost(Post post) |
boolean |
canCurrentUserDeleteComment(String siteId,
String embedder,
String commentCreatorId,
String postCreatorId) |
boolean |
canCurrentUserDeletePost(Post post) |
boolean |
canCurrentUserEditPost(Post post) |
boolean |
canCurrentUserReadPost(Post post) |
List<Post> |
filter(List<Post> posts,
String siteId,
String embedder)
Tests whether the current user can read each Post and if not, filters
that post out of the resulting list
|
Site |
getSiteIfCurrentUserCanAccessTool(String siteId) |
public boolean canCurrentUserCommentOnPost(Post post)
canCurrentUserCommentOnPost in interface CommonsSecurityManagerpublic boolean canCurrentUserDeletePost(Post post) throws SecurityException
canCurrentUserDeletePost in interface CommonsSecurityManagerSecurityExceptionpublic boolean canCurrentUserEditPost(Post post)
canCurrentUserEditPost in interface CommonsSecurityManagerpublic boolean canCurrentUserDeleteComment(String siteId, String embedder, String commentCreatorId, String postCreatorId) throws SecurityException
canCurrentUserDeleteComment in interface CommonsSecurityManagerSecurityExceptionpublic List<Post> filter(List<Post> posts, String siteId, String embedder)
filter in interface CommonsSecurityManagerpublic boolean canCurrentUserReadPost(Post post)
canCurrentUserReadPost in interface CommonsSecurityManagerpublic Site getSiteIfCurrentUserCanAccessTool(String siteId)
getSiteIfCurrentUserCanAccessTool in interface CommonsSecurityManagerCopyright © 2003–2020 Noodle Partners, Inc.. All rights reserved.