@Controller @RequestMapping(value="/feature/access-control") public class FeatureAccessControlController extends Object
| Constructor and Description |
|---|
FeatureAccessControlController() |
| Modifier and Type | Method and Description |
|---|---|
String |
createByFeature(Long featureId,
org.springframework.ui.Model model) |
String |
createByFeature(org.springframework.ui.Model model) |
String |
createByRole(Long roleId,
Long moduleId,
org.springframework.ui.Model model) |
String |
createByRole(org.springframework.ui.Model model) |
String |
createFeatureRoleMapping(org.egov.infra.admin.master.entity.Feature feature,
org.egov.infra.admin.master.entity.Role role) |
List<org.egov.infra.admin.master.entity.Feature> |
featuresByModule(Long moduleId) |
String |
removeFeatureRoleMapping(org.egov.infra.admin.master.entity.Feature feature,
org.egov.infra.admin.master.entity.Role role) |
@RequestMapping(value="/by-feature",
method=GET)
public String createByFeature(org.springframework.ui.Model model)
@RequestMapping(value="/by-role",
method=GET)
public String createByRole(org.springframework.ui.Model model)
@RequestMapping(value="/by-feature",
method=POST)
public String createByFeature(@RequestParam
Long featureId,
org.springframework.ui.Model model)
@RequestMapping(value="/by-role",
method=POST)
public String createByRole(@RequestParam
Long roleId,
@RequestParam(required=false)
Long moduleId,
org.springframework.ui.Model model)
@RequestMapping(value="/grant/{featureId}/{roleId}",
method=POST)
@ResponseBody
public String createFeatureRoleMapping(@PathVariable(value="featureId")
org.egov.infra.admin.master.entity.Feature feature,
@PathVariable(value="roleId")
org.egov.infra.admin.master.entity.Role role)
@RequestMapping(value="/revoke/{featureId}/{roleId}",
method=POST)
@ResponseBody
public String removeFeatureRoleMapping(@PathVariable(value="featureId")
org.egov.infra.admin.master.entity.Feature feature,
@PathVariable(value="roleId")
org.egov.infra.admin.master.entity.Role role)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.