Interface Permission
public interface Permission
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@NotNull Permission.Builderbuilder()@Nullable LocalDateTime@Nullable Integer@NotNull LocalDateTimeint@Nullable LocalDateTime@Nullable IntegergroupId()intid()booleanbooleanisGroup()booleanbooleanisUser()static @NotNull Permissionof(int id, @Nullable Integer userId, @Nullable Integer groupId, @NotNull String permission, @Nullable LocalDateTime expiresAt, int createdBy, @NotNull LocalDateTime createdAt) @NotNull String@Nullable IntegeruserId()@NotNull Permissionwith(@NotNull Consumer<Permission.Builder> consumer)
-
Method Details
-
id
int id() -
userId
-
groupId
-
permission
-
expiresAt
-
createdBy
int createdBy() -
createdAt
-
changedBy
-
changedAt
-
isExpired
boolean isExpired() -
isPermanent
boolean isPermanent() -
isUser
boolean isUser() -
isGroup
boolean isGroup() -
builder
-
with
-
of
@NotNull static @NotNull Permission of(int id, @Nullable @Nullable Integer userId, @Nullable @Nullable Integer groupId, @NotNull @NotNull String permission, @Nullable @Nullable LocalDateTime expiresAt, int createdBy, @NotNull @NotNull LocalDateTime createdAt)
-