T
- as Tenant type, Example: Organization
U
- as SAASUser
for O typepublic class GetAuthorizedUnitsFunction<T,U extends SAASUser<T>> extends Object implements Function<U,Collection<T>>
Function
that adds all User#getOrganizations()
& User#getPrimaryOrganization()
to derive final Set
of Authorizable units.Constructor and Description |
---|
GetAuthorizedUnitsFunction() |
Modifier and Type | Method and Description |
---|---|
Collection<T> |
apply(U user) |
static GetAuthorizedUnitsFunction |
getInstance() |
public static GetAuthorizedUnitsFunction getInstance()
public Collection<T> apply(U user)
Copyright © 2018. All rights reserved.