Class SupervisorCategoryVisibilityContext
- java.lang.Object
-
- com.novomind.ecom.api.iagent.visibility.category.SupervisorCategoryVisibilityContext
-
- All Implemented Interfaces:
UserProvider
,VisibilityContext
public final class SupervisorCategoryVisibilityContext extends java.lang.Object implements VisibilityContext
This class represents a supervisor visibility context for a category- Since:
- 11.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SupervisorCategoryVisibilityContext
forUser(User user)
Creates anSupervisorCategoryVisibility
for the given user.static SupervisorCategoryVisibilityContext
forUserWithOrphans(User user)
Creates anSupervisorCategoryVisibility
for the given user.User
getUser()
Returns the userSupervisorCategoryVisibility
getVisibility()
Returns the visibility of this context
-
-
-
Method Detail
-
getUser
public User getUser()
Description copied from interface:UserProvider
Returns the user- Specified by:
getUser
in interfaceUserProvider
- Returns:
- the user object
-
getVisibility
public SupervisorCategoryVisibility getVisibility()
Returns the visibility of this context- Returns:
- the
SupervisorCategoryVisibility
for this context - Since:
- 11.0
-
forUserWithOrphans
public static final SupervisorCategoryVisibilityContext forUserWithOrphans(User user)
Creates anSupervisorCategoryVisibility
for the given user. The context of this method has theSupervisorCategoryVisibility.VISIBLE_AND_ORPHANS
visibility- Parameters:
user
- the user for the context- Returns:
- the
SupervisorCategoryVisibility
- Since:
- 11.0
-
forUser
public static final SupervisorCategoryVisibilityContext forUser(User user)
Creates anSupervisorCategoryVisibility
for the given user. The context of this method has theSupervisorCategoryVisibility.VISIBLE
visibility- Parameters:
user
- the user for the context- Returns:
- the
SupervisorCategoryVisibility
- Since:
- 11.0
-
-