public enum UserIdentityEnum extends Enum<UserIdentityEnum>
Enum Constant and Description |
---|
ADMINISTRATOR
管理员
|
COLLECTOR
收集者
|
EXECUTOR
签到者
|
Modifier and Type | Method and Description |
---|---|
static boolean |
hasCreateGroupPower(UserIdentityEnum identityEnum)
检查身份信息是否可以创建群组
|
static boolean |
hasPowerOfCheckOthersSign(UserIdentityEnum identityEnum)
检查用户是否具有查看其他用户发起的签到的完成情况的权限
|
static boolean |
hasPowerOfInputLabel(UserIdentityEnum identity)
检查身份信息是否可以录入签到标签
|
static boolean |
hasPowerOfRenameLabel(UserIdentityEnum identity)
检查用户身份是否可以重命名签到标签
|
static boolean |
isAdministrator(UserIdentityEnum identityEnum) |
static boolean |
isCollector(UserIdentityEnum identityEnum) |
static boolean |
isExecutor(UserIdentityEnum identityEnum) |
static UserIdentityEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserIdentityEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserIdentityEnum EXECUTOR
public static final UserIdentityEnum COLLECTOR
public static final UserIdentityEnum ADMINISTRATOR
public static UserIdentityEnum[] values()
for (UserIdentityEnum c : UserIdentityEnum.values()) System.out.println(c);
public static UserIdentityEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean hasCreateGroupPower(UserIdentityEnum identityEnum)
public static boolean hasPowerOfInputLabel(UserIdentityEnum identity)
public static boolean hasPowerOfRenameLabel(UserIdentityEnum identity)
public static boolean hasPowerOfCheckOthersSign(UserIdentityEnum identityEnum)
public static boolean isExecutor(UserIdentityEnum identityEnum)
public static boolean isCollector(UserIdentityEnum identityEnum)
public static boolean isAdministrator(UserIdentityEnum identityEnum)
Copyright © 2022. All rights reserved.