T
- as Tenant type, Example: Organization
public interface SAASUser<T> extends User, MultiTenantRecord
BasicUser
, however login information, like last
login date needs to be stored.OrgUser
User.BIT_MASKS
Modifier and Type | Method and Description |
---|---|
T |
getPrimaryTenant()
The Primary Tenant/
Organization the user is associated with. |
Boolean |
getSuperAdmin()
Whether the
extends Organization> is allowed to have access to all Organization s. |
List<T> |
getTenants()
All Tenant/
Organization s the user is intended to have access to. |
void |
setPrimaryTenant(T tenant)
The Primary
Organization the user is associated with. |
void |
setSuperAdmin(Boolean superAdmin)
Whether the
extends Organization> is allowed to have access to all Organization s. |
void |
setTenants(List<T> tenants)
All Tenant/
Organization s the user is intended to have access to. |
copyAs, getAuthorizationMap, getBitmask, getEnvironmentSupplier, getId, getRoleNames, setAuthorizationMap, setBitmask, setId, setRoleNames
equals, getName, hashCode, implies, toString
getTenantId
Boolean getSuperAdmin()
extends Organization>
is allowed to have access to all Organization
s. false
.void setSuperAdmin(Boolean superAdmin)
extends Organization>
is allowed to have access to all Organization
s. false
.List<T> getTenants()
Organization
s the user is intended to have access to.void setTenants(List<T> tenants)
Organization
s the user is intended to have access to.T getPrimaryTenant()
Organization
the user is associated with. All environment
settings etc will be using this.#getOrganizations()
void setPrimaryTenant(T tenant)
Organization
the user is associated with. All environment
settings etc will be using this.Copyright © 2018. All rights reserved.