Class RoleDataInitializer

  • All Implemented Interfaces:
    DataInitializer

    public class RoleDataInitializer
    extends Object
    implements DataInitializer
    The seed data roles will be defined here.

    These roles are necessary for seed data we define within this service. However, the admin user service also may define some of this same data for itself and will synchronize it over to this service. To avoid creation of duplicate records, the IDs used here should be kept in sync with whatever the admin user service seed data defines.

    Author:
    Nick Crum (ncrum)
    • Method Detail

      • initialize

        @Transactional
        public void initialize()
        Description copied from interface: DataInitializer
        Initialize seed data for the application.
        Specified by:
        initialize in interface DataInitializer
      • createPartialAccessRole

        protected void createPartialAccessRole()
      • createFullAccessRole

        protected void createFullAccessRole()
      • createBaseUserRole

        protected void createBaseUserRole()
      • createApproveUserRole

        protected void createApproveUserRole()
      • createDeployUserRole

        protected void createDeployUserRole()
      • createApplicationAccessRole

        protected void createApplicationAccessRole()
      • createCSRRole

        protected void createCSRRole()
        Creates the role used by CSR users.
      • createMarketplaceOperator

        protected void createMarketplaceOperator()
      • createMarketplaceVendorAdmin

        protected void createMarketplaceVendorAdmin()
      • createMarketplaceVendorMerchandiser

        protected void createMarketplaceVendorMerchandiser()
      • createCustomerUserRole

        protected void createCustomerUserRole()
        Creates the role for the anonymous or authenticated customer user.
      • isShouldCreateMarketplaceRoles

        protected boolean isShouldCreateMarketplaceRoles()