public final class UserSecurityHelper extends Object
Modifier | Constructor and Description |
---|---|
protected |
UserSecurityHelper()
protected constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
assertIsClientManager()
Assert that the current user is client manager.
|
static void |
assertIsManagerOfBlog(Long blogId)
Assert that the current user is manager of a blog.
|
static boolean |
isManagerOfBlog(Long blogId) |
public static void assertIsClientManager()
AccessDeniedException
if it
is not the manager of the client.public static void assertIsManagerOfBlog(Long blogId)
AccessDeniedException
if
it is not the managerblogId
- the id of the blog to checkpublic static boolean isManagerOfBlog(Long blogId)
blogId
- the id of the blogtrue
if the current user is a manger of the groupCopyright © 2019 Communote team. All rights reserved.