@Manager public class DefaultViewPermissionManager extends Object implements ViewPermissionManager
Implementation of the view permission manager.
| Constructor and Description |
|---|
DefaultViewPermissionManager(UserManager userManager,
org.springframework.context.MessageSource messageSource,
List<ViewPermissionFilter> viewPermissionFilters,
WorkObjectService workObjectService,
AmbiguousIdHelper ambiguousIdHelper) |
| Modifier and Type | Method and Description |
|---|---|
List<View> |
getAllowedViews(ContextView context,
String ambiguousId,
Locale locale)
Returns the allowed
Views for the specified ContextView and the work object id. |
com.google.common.collect.ImmutableList<ViewPermissionFilter> |
getViewPermissionFilters() |
public DefaultViewPermissionManager(UserManager userManager, org.springframework.context.MessageSource messageSource, List<ViewPermissionFilter> viewPermissionFilters, WorkObjectService workObjectService, AmbiguousIdHelper ambiguousIdHelper)
public List<View> getAllowedViews(ContextView context, String ambiguousId, Locale locale)
ViewPermissionManagerReturns the allowed Views for the specified ContextView and the work object id. The privileges of the current user are also involved in the permission
process.
getAllowedViews in interface ViewPermissionManagercontext - the view context for which the allowed views should be returnedambiguousId - the work object global id for which the allowed views should be returnedlocale - the translation localepublic com.google.common.collect.ImmutableList<ViewPermissionFilter> getViewPermissionFilters()
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.