SecurityRoleLoader¶
-
public class
SecurityRoleLoader¶ Helper class that scans an application context for Motech roles
Constructors¶
SecurityRoleLoader¶
-
public
SecurityRoleLoader(MotechRoleService roleService, MotechPermissionService permissionService)¶
Methods¶
loadRoles¶
-
public void
loadRoles(ApplicationContext applicationContext)¶ Loads from roles.json file and adds or update them using
org.motechproject.security.service.MotechRoleServiceParameters: - applicationContext – in which file with roles can be found