Class SupervisorTenantVisibilityContext
- java.lang.Object
-
- com.novomind.ecom.api.iagent.visibility.tenant.context.SupervisorTenantVisibilityContext
-
- All Implemented Interfaces:
UserProvider
,VisibilityContext
public final class SupervisorTenantVisibilityContext extends java.lang.Object implements VisibilityContext
This class represents a supervisor visibility context for a tenant- Since:
- 10.0.146
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SupervisorTenantVisibilityContext
getAssignedAndOrphansVisibilityContext(User user)
Creates anSupervisorTenantVisibilityContext
for the given user.static SupervisorTenantVisibilityContext
getAssignedVisibilityContext(User user)
Creates anSupervisorTenantVisibilityContext
for the given user.User
getUser()
Returns the userSupervisorTenantVisibility
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 SupervisorTenantVisibility getVisibility()
Returns the visibility of this context- Returns:
- the
SupervisorTenantVisibility
for this context - Since:
- 10.0.146
-
getAssignedVisibilityContext
public static final SupervisorTenantVisibilityContext getAssignedVisibilityContext(User user)
Creates anSupervisorTenantVisibilityContext
for the given user. The context of this method has theSupervisorTenantVisibility.ASSIGNED
visibility- Parameters:
user
- the user for the context- Returns:
- the
SupervisorTenantVisibilityContext
- Since:
- 10.0.146
-
getAssignedAndOrphansVisibilityContext
public static final SupervisorTenantVisibilityContext getAssignedAndOrphansVisibilityContext(User user)
Creates anSupervisorTenantVisibilityContext
for the given user. The context of this method has theSupervisorTenantVisibility.ASSIGNED_AND_ORPHANS
visibility- Parameters:
user
- the user for the context- Returns:
- the
SupervisorTenantVisibilityContext
- Since:
- 10.0.146
-
-