Package | Description |
---|---|
com.edorasware.commons.core.any |
Classes for generic work object management.
|
com.edorasware.commons.core.beat | |
com.edorasware.commons.core.entity |
Classes to model business entities.
|
com.edorasware.commons.core.identity |
Classes for identity management.
|
com.edorasware.commons.core.identity.support | |
com.edorasware.commons.core.persistence.entity | |
com.edorasware.commons.core.persistence.entity.jdbc | |
com.edorasware.commons.core.query.entity |
Classes to build entity-specific queries.
|
com.edorasware.commons.core.service.entity |
Classes related to entity services.
|
Modifier and Type | Field and Description |
---|---|
static BasicOperand<TenantId> |
AnyWorkObject.TENANT_ID
Allows to build predicates testing for certain tenant id values.
|
static BasicOperand<TenantId> |
AnyWorkObjectDefinition.TENANT_ID
Allows to build predicates testing for certain work object definition tenant id values.
|
Modifier and Type | Field and Description |
---|---|
static BasicOperand<TenantId> |
Beat.TENANT_ID
Allows to build predicates testing for certain tenant id values.
|
Modifier and Type | Field and Description |
---|---|
static TenantId |
TenantId.UNDEFINED
A type-safe and null-safe undefined tenant id.
|
Modifier and Type | Method and Description |
---|---|
static TenantId |
TenantId.from(Id id)
Returns a type-safe tenant id for the specified id or null if the given id is null.
|
static TenantId |
TenantId.from(Identifiable<?> identifiable)
Returns a type-safe tenant id derived from the id of the specified identifiable or null if the id of the identifiable is null.
|
static TenantId |
TenantId.get(String value)
Returns a type-safe tenant id for the specified value.
|
TenantId |
Entity.getTenantId()
Returns the id of the tenant to whom the entity belongs.
|
static TenantId |
TenantId.nullSafeGet(String value)
Returns a type-safe tenant id for the specified value or null if the given value is null.
|
TenantId |
TenantId.withValue(String value)
Returns a new tenant-id with the given value.
|
Modifier and Type | Method and Description |
---|---|
void |
Entity.EntityData.setTenantId(TenantId tenantId) |
SELF |
Entity.EntityBuilder.tenantId(TenantId tenantId)
Sets the tenant id.
|
Modifier and Type | Method and Description |
---|---|
TenantId |
CurrentTenantService.getCurrentTenantId()
Returns the tenant to use for all data access in the current context.
|
TenantId |
CurrentTenantService.getSharedTenantId()
Returns the marker tenant to use for all data access shared across all tenants.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
CurrentTenantService.runAsTenant(TenantId tenantId,
Callable<T> action)
Runs the given action in the context of the specified tenant.
|
void |
CurrentTenantService.runAsTenant(TenantId tenantId,
Runnable action)
Runs the given action in the context of the specified tenant.
|
<T> T |
CurrentIdentityService.runAsUserInTenant(UserId userId,
TenantId tenantId,
Callable<T> action)
Runs the given action in the context of the specified user sand tenant.
|
<T> T |
DefaultCurrentIdentityService.runAsUserInTenant(UserId userId,
TenantId tenantId,
Callable<T> action) |
void |
CurrentIdentityService.runAsUserInTenant(UserId userId,
TenantId tenantId,
Runnable action)
Runs the given action in the context of the specified user and tenant.
|
void |
DefaultCurrentIdentityService.runAsUserInTenant(UserId userId,
TenantId tenantId,
Runnable action) |
Modifier and Type | Method and Description |
---|---|
TenantId |
BaseMultiTenantCurrentTenantService.getCurrentTenantId() |
TenantId |
BaseSingleTenantCurrentTenantService.getCurrentTenantId() |
TenantId |
BaseMultiTenantCurrentTenantService.getSharedTenantId() |
TenantId |
BaseSingleTenantCurrentTenantService.getSharedTenantId() |
protected abstract TenantId |
BaseMultiTenantCurrentTenantService.internalGetCurrentTenantId() |
Modifier and Type | Method and Description |
---|---|
<T> T |
BaseMultiTenantCurrentTenantService.runAsTenant(TenantId tenantId,
Callable<T> action) |
<T> T |
BaseSingleTenantCurrentTenantService.runAsTenant(TenantId tenantId,
Callable<T> action) |
void |
BaseMultiTenantCurrentTenantService.runAsTenant(TenantId tenantId,
Runnable action) |
void |
BaseSingleTenantCurrentTenantService.runAsTenant(TenantId tenantId,
Runnable action) |
Constructor and Description |
---|
BaseMultiTenantCurrentTenantService(TenantId sharedTenantId) |
BaseSingleTenantCurrentTenantService(TenantId sharedTenantId) |
Modifier and Type | Method and Description |
---|---|
E |
EntityPersistence.getByGlobalId(GlobalId globalId,
TenantId tenantId)
Retrieves the entity with the given global id and tenant id.
|
Modifier and Type | Method and Description |
---|---|
<E extends Entity<?,?>> |
L1Cache.get(String persistenceClass,
GlobalId globalId,
TenantId tenantId,
Callable<E> callable) |
E |
JdbcEntityPersistence.getByGlobalId(GlobalId globalId,
TenantId tenantId) |
Modifier and Type | Method and Description |
---|---|
BasicOperand<TenantId> |
EntityOperandContainer.getTenantId() |
Modifier and Type | Method and Description |
---|---|
protected TenantId |
BaseEntityService.getCurrentTenantId() |
protected TenantId |
BaseEntityService.getSharedTenantId() |
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.