Package com.helger.tenancy.tenant
Interface ITenantObject
-
- All Superinterfaces:
IBusinessObject,com.helger.datetime.domain.IHasCreationDateTime,IHasCreationInfo,com.helger.datetime.domain.IHasDeletionDateTime,IHasDeletionInfo,com.helger.commons.id.IHasID<String>,com.helger.datetime.domain.IHasLastModificationDateTime,IHasLastModificationInfo,com.helger.commons.type.IHasObjectType,IHasTenant,IHasTenantID,com.helger.commons.type.ITypedObject<String>,Serializable
- All Known Subinterfaces:
IAccountingArea,IAccountingAreaObject
- All Known Implementing Classes:
AbstractAccountingArea,AbstractTenantObject
public interface ITenantObject extends IBusinessObject, IHasTenant
Base interface for an object that is uniquely assigned to a tenant.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ITenantgetTenant()default StringgetTenantID()-
Methods inherited from interface com.helger.tenancy.IBusinessObject
attrs, getLastChangeDateTime, isDeleted, isDeletedAt, isLastChangeAfter, isNotDeleted
-
Methods inherited from interface com.helger.datetime.domain.IHasCreationDateTime
getCreationDate, getCreationDateTime, getCreationTime, hasCreationDateTime, isCreatedAt
-
Methods inherited from interface com.helger.tenancy.datetime.IHasCreationInfo
getCreationUserID, hasCreationUserID
-
Methods inherited from interface com.helger.datetime.domain.IHasDeletionDateTime
getDeletionDate, getDeletionDateTime, getDeletionTime, hasDeletionDateTime
-
Methods inherited from interface com.helger.tenancy.datetime.IHasDeletionInfo
getDeletionUserID, hasDeletionUserID
-
Methods inherited from interface com.helger.datetime.domain.IHasLastModificationDateTime
getLastModificationDate, getLastModificationDateTime, getLastModificationTime, hasLastModificationDateTime, isLastModifiedAt
-
Methods inherited from interface com.helger.tenancy.datetime.IHasLastModificationInfo
getLastModificationUserID, hasLastModificationUserID
-
Methods inherited from interface com.helger.commons.type.IHasObjectType
getObjectType, getObjectTypeName, hasObjectType
-
Methods inherited from interface com.helger.tenancy.tenant.IHasTenant
hasSameTenant, hasSameTenantID, hasTenant, hasTenantID
-
Methods inherited from interface com.helger.tenancy.tenant.IHasTenantID
hasSameTenantID
-
-
-
-
Method Detail
-
getTenant
@Nonnull ITenant getTenant()
- Specified by:
getTenantin interfaceIHasTenant- Returns:
- The tenant to which the object is assigned to. May not be
null.
-
getTenantID
@Nonnull @Nonempty default String getTenantID()
- Specified by:
getTenantIDin interfaceIHasTenant- Specified by:
getTenantIDin interfaceIHasTenantID- Returns:
- The tenant ID to which the object is assigned to. May neither be
nullnor empty. - See Also:
getTenant()
-
-