Package com.helger.tenancy.accarea
Interface IHasAccountingArea
-
- All Superinterfaces:
IHasAccountingAreaID,IHasTenant,IHasTenantID
- All Known Subinterfaces:
IAccountingAreaObject
- All Known Implementing Classes:
AbstractHasAccountingAreaObject,AbstractHasAccountingAreaOptionalObject
public interface IHasAccountingArea extends IHasTenant, IHasAccountingAreaID
Base interface for objects that have an accounting area.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IAccountingAreagetAccountingArea()default StringgetAccountingAreaID()booleanhasSameTenantAndAccountingAreaID(IAccountingArea aAccountingArea)Check if the passed object has the same tenant ID and the same accounting area ID as this objectbooleanhasSameTenantAndAccountingAreaID(IAccountingAreaObject aAccountingAreaObject)Check if the passed object has the same tenant ID and the same accounting area ID as this object-
Methods inherited from interface com.helger.tenancy.accarea.IHasAccountingAreaID
hasAccountingAreaID, hasSameAccountingAreaID
-
Methods inherited from interface com.helger.tenancy.tenant.IHasTenant
getTenant, getTenantID, hasSameTenant, hasSameTenantID, hasTenant, hasTenantID
-
Methods inherited from interface com.helger.tenancy.tenant.IHasTenantID
hasSameTenantID
-
-
-
-
Method Detail
-
getAccountingArea
@Nullable IAccountingArea getAccountingArea()
- Returns:
- The accounting area or
null.
-
getAccountingAreaID
@Nullable default String getAccountingAreaID()
- Specified by:
getAccountingAreaIDin interfaceIHasAccountingAreaID- Returns:
- The accounting area ID to which the object is assigned to. May be
null. - See Also:
getAccountingArea()
-
hasSameTenantAndAccountingAreaID
boolean hasSameTenantAndAccountingAreaID(@Nullable IAccountingArea aAccountingArea)
Check if the passed object has the same tenant ID and the same accounting area ID as this object- Parameters:
aAccountingArea- The object to check. May benull.- Returns:
trueif this object and the passed object have the same tenant ID and the same accounting area ID
-
hasSameTenantAndAccountingAreaID
boolean hasSameTenantAndAccountingAreaID(@Nullable IAccountingAreaObject aAccountingAreaObject)
Check if the passed object has the same tenant ID and the same accounting area ID as this object- Parameters:
aAccountingAreaObject- The object to check. May benull.- Returns:
trueif this object and the passed object have the same tenant ID and the same accounting area ID
-
-