Class SupervisorTenantVisibilityContext
java.lang.Object
com.novomind.ecom.api.iagent.visibility.tenant.context.SupervisorTenantVisibilityContext
- All Implemented Interfaces:
UserProvider
,VisibilityContext
This class represents a supervisor visibility context for a tenant
- Since:
- 10.0.146
-
Method Summary
Modifier and TypeMethodDescriptionstatic final SupervisorTenantVisibilityContext
Creates anSupervisorTenantVisibilityContext
for the given user.static final SupervisorTenantVisibilityContext
Creates anSupervisorTenantVisibilityContext
for the given user.getUser()
Returns the userReturns the visibility of this context
-
Method Details
-
getUser
Description copied from interface:UserProvider
Returns the user- Specified by:
getUser
in interfaceUserProvider
- Returns:
- the user object
-
getVisibility
Returns the visibility of this context- Returns:
- the
SupervisorTenantVisibility
for this context - Since:
- 10.0.146
-
getAssignedVisibilityContext
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
-