Uses of Enum
xyz.geik.farmer.model.user.FarmerPerm
-
Uses of FarmerPerm in xyz.geik.farmer.database
Modifier and TypeMethodDescriptionvoid
SQL.addUser
(@NotNull UUID uuid, String name, FarmerPerm perm, int farmerId) Adds user to farmer in sql onlyvoid
SQL.addUser
(UUID uuid, String name, FarmerPerm perm, @NotNull Farmer farmer) Adds user to farmer in sql -
Uses of FarmerPerm in xyz.geik.farmer.model
Modifier and TypeMethodDescriptionvoid
Farmer.addUser
(UUID uuid, String name, FarmerPerm perm) Adds user to farmer with desired role -
Uses of FarmerPerm in xyz.geik.farmer.model.user
Modifier and TypeMethodDescriptionstatic FarmerPerm
FarmerPerm.getRole
(int id) Gets role of farmer by int idstatic FarmerPerm
FarmerPerm.getRoleByName
(String name) Gets role by stringstatic FarmerPerm
Returns the enum constant of this type with the specified name.static FarmerPerm[]
FarmerPerm.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescriptionstatic int
FarmerPerm.getRoleId
(@NotNull FarmerPerm perm) Gets int id of roleModifierConstructorDescriptionUser
(int farmerId, String name, UUID uuid, FarmerPerm perm) Constructor of User