java.lang.Object
org.eco.mubisoft.good_and_cheap.user.domain.model.Role

@Entity
public class Role
extends java.lang.Object

Application role for users

User roles are use to give permissions to the different users of the application. Depending on the roles, the user will have access to more or less functionalities of the application.

  • Field Summary

    Fields
    Modifier and Type Field Description
    private java.lang.Long id
    ID
    private java.lang.String name
    Role Name
  • Constructor Summary

    Constructors
    Constructor Description
    Role()  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • id

      private java.lang.Long id

      ID

      ID of the role.

    • name

      private java.lang.String name

      Role Name

      There are different types of roles on the application and depending on that role the user will have permission to enter different sections of the application. The roles are the following:

      • ROLE_USER: Basic user role, it gives the user the ability of creating recipes.
      • ROLE_VENDOR: Basic role for vendors, it gives the user the ability of publishing products they want to sell and the ability of managing those products.
      • ROLE_MANAGER: This role allows the user to modify and remove any recipe that has been reported. It also has the ability to un-report recipes.
      • ROLE_ADMIN: This role allows the user to delete products, recipes and users from the application.
      • ROLE_SUPER_ADMIN: This role has permission to access any element of the application.
  • Constructor Details

    • Role

      public Role()