public class AdminUserSecurity extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
ADMIN_USER_ROLE |
static String |
CONTENT_ROLE |
static String |
CONTRIBUTOR_ROLE |
static String |
DESIGN_ROLE |
static String |
FULL_CONTROL_ROLE |
static String |
GENERAL_ADMIN |
static String |
LIGHT_INTERFACE_ROLE |
static String |
MACRO_ROLE |
static String |
MAILING_ROLE |
static String |
MASTER |
static String |
MODEL_ROLE |
static String |
NAVIGATION_ROLE |
static String |
PUBLISHER_ROLE |
static String |
STATISTICS_ROLE |
static String |
SYNCHRO_ADMIN |
static String |
SYNCHRO_CLIENT |
static String |
SYNCHRO_SERVER |
static String |
UPLOAD_RESOURCE |
static String |
USER_ROLE |
static String |
VALIDATION_ROLE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canModifyConponent(ContentContext ctx,
String compId) |
static boolean |
canModifyPage(ContentContext ctx,
MenuElement page,
boolean createMessage)
check if the currentPage is editable by current user.
|
boolean |
canRole(User user,
String inRole) |
static AdminUserSecurity |
getInstance() |
boolean |
haveRight(User user,
Collection<String> rights)
return true if user have one of all right.
|
boolean |
haveRight(User user,
String... inRights)
check right (admin have all right)
|
boolean |
haveRole(IUserInfo user,
String inRole) |
boolean |
haveRole(User user,
String inRole) |
boolean |
isAdmin(User user)
return true if user have no restriction
|
static boolean |
isCurrentUserCanUpload(ContentContext ctx) |
boolean |
isGod(User user)
return true if user have no restriction on all website
|
boolean |
isMaster(User user) |
public static String GENERAL_ADMIN
public static String FULL_CONTROL_ROLE
public static String CONTENT_ROLE
public static String MODEL_ROLE
public static String CONTRIBUTOR_ROLE
public static String DESIGN_ROLE
public static String MACRO_ROLE
public static String MAILING_ROLE
public static String LIGHT_INTERFACE_ROLE
public static String VALIDATION_ROLE
public static String NAVIGATION_ROLE
public static String USER_ROLE
public static String ADMIN_USER_ROLE
public static String STATISTICS_ROLE
public static String PUBLISHER_ROLE
public static String SYNCHRO_CLIENT
public static String SYNCHRO_ADMIN
public static String SYNCHRO_SERVER
public static String UPLOAD_RESOURCE
public static String MASTER
public static final AdminUserSecurity getInstance()
public boolean haveRight(User user, Collection<String> rights)
user - right - public boolean haveRight(User user, String... inRights)
user - right - public boolean isAdmin(User user)
user - public boolean isGod(User user)
user - public boolean isMaster(User user)
public final boolean canModifyConponent(ContentContext ctx, String compId) throws Exception
Exceptionpublic static boolean isCurrentUserCanUpload(ContentContext ctx)
public static boolean canModifyPage(ContentContext ctx, MenuElement page, boolean createMessage) throws Exception
ctx - ExceptionCopyright © 2012-2018. All Rights Reserved.