# Uses of Class
com.plannaplan.types.UserRoles

Packages that use UserRoles
Package | Description
--- | ---
com.plannaplan.entities | Provides all entieites that are created in database by Hibernate
com.plannaplan.repositories | Provides jpa repositories interfaces to comunicate with database.
com.plannaplan.services | Provides service classes to make operations with entities or comunicate with external systems.
com.plannaplan.types | Provides enums for different goals.

## Uses of UserRoles in com.plannaplan.entities

Methods in com.plannaplan.entities that return UserRoles
Modifier and Type | Method | Description
--- | --- | ---
`UserRoles` | User.`getRole()` | user rolse getter

Methods in com.plannaplan.entities with parameters of type UserRoles
Modifier and Type | Method | Description
--- | --- | ---
`void` | User.`setRole​(UserRoles role)` | user role setter

Constructors in com.plannaplan.entities with parameters of type UserRoles
Constructor | Description
--- | ---
`User​(java.lang.String name, java.lang.String surname, java.lang.String mail, UserRoles role)` |
`User​(java.lang.String name, java.lang.String surname, java.lang.String mail, java.lang.String usosId, UserRoles role)` |
`User​(java.lang.String name, java.lang.String surname, java.lang.String mail, java.lang.String usosId, UserRoles role, java.lang.Integer ranking)` |

## Uses of UserRoles in com.plannaplan.repositories

Methods in com.plannaplan.repositories with parameters of type UserRoles
Modifier and Type | Method | Description
--- | --- | ---
`java.util.List<User>` | UserRepository.`getAllByRole​(UserRoles role)` |
`java.util.List<User>` | UserRepository.`searchForUsers​(java.lang.String query, UserRoles role)` | search for user with given query

## Uses of UserRoles in com.plannaplan.services

Methods in com.plannaplan.services with parameters of type UserRoles
Modifier and Type | Method | Description
--- | --- | ---
`User` | UserService.`checkForUser​(java.lang.String email, java.lang.String usosId, UserRoles roleIfNotExist)` | checks if user exist and creates new one if doesn't

## Uses of UserRoles in com.plannaplan.types

Methods in com.plannaplan.types that return UserRoles
Modifier and Type | Method | Description
--- | --- | ---
`static UserRoles` | UserRoles.`valueOf​(java.lang.String name)` | Returns the enum constant of this type with the specified name.
`static UserRoles[]` | UserRoles.`values()` | Returns an array containing the constants of this enum type, in the order they are declared.