@Controller public class ViewPermissionController extends Object
Controller that provides allowed Views for specific
ContextViews and specific AnyWorkObjects.
| Constructor and Description | 
|---|
ViewPermissionController(ViewPermissionManager viewPermissionManager)  | 
| Modifier and Type | Method and Description | 
|---|---|
org.springframework.http.ResponseEntity<List<View>> | 
getAllowedViewsForCurrentUser(String contextId,
                             String ambiguousId,
                             Locale locale)
Returns the allowed views for the specified  
ContextView and a work object ID or global ID. | 
public ViewPermissionController(ViewPermissionManager viewPermissionManager)
@RequestMapping(value="/permissions/views/context/{contextId}",
                method=GET)
 @ResponseBody
public org.springframework.http.ResponseEntity<List<View>> getAllowedViewsForCurrentUser(@PathVariable
                                                                                                                                                                                                    String contextId,
                                                                                                                                                                                                    @RequestParam(value="workObjectId",required=false)
                                                                                                                                                                                                    String ambiguousId,
                                                                                                                                                                                                    Locale locale)
Returns the allowed views for the specified ContextView and a work object ID or global ID.
contextId - the specified view contextambiguousId - the specified work object ID or global IDCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.