public interface ViewPermissionManager
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableCollection<View> |
getAllowedViews(ContextView context,
com.google.common.base.Optional<? extends com.edorasware.commons.core.entity.WorkObjectId> workObjectId)
Returns the allowed
View s for the specified ContextView and the work object id. |
com.google.common.collect.ImmutableCollection<View> getAllowedViews(ContextView context, com.google.common.base.Optional<? extends com.edorasware.commons.core.entity.WorkObjectId> workObjectId)
View
s for the specified ContextView
and the work object id. The privileges of the current user are also involved in the permission
process.context
- the view context for which the allowed views should be returnedworkObjectId
- the work object id for which the allowed views should be returnedIllegalArgumentException
- if an input parameter is not validRuntimeException
- if an error occurs while getting the allowed views for the current userCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.