Package com.helger.tenancy.accarea
Class AbstractAccountingArea
- java.lang.Object
-
- com.helger.tenancy.AbstractBusinessObject
-
- com.helger.tenancy.tenant.AbstractTenantObject
-
- com.helger.tenancy.accarea.AbstractAccountingArea
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,com.helger.commons.name.IHasDisplayName,com.helger.commons.type.IHasObjectType,com.helger.commons.type.ITypedObject<String>,com.helger.datetime.domain.IHasCreationDateTime,com.helger.datetime.domain.IHasDeletionDateTime,com.helger.datetime.domain.IHasLastModificationDateTime,IAccountingArea,IHasCreationInfo,IHasDeletionInfo,IHasLastModificationInfo,IBusinessObject,IHasTenant,IHasTenantID,ITenantObject,IHasUIText,Serializable
@NotThreadSafe public abstract class AbstractAccountingArea extends AbstractTenantObject implements IAccountingArea
Abstract base implementation ofIAccountingArea- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAccountingArea(ITenant aTenant, IBusinessObject aStubObject, String sDisplayName, String sCompanyType, String sCompanyVATIN, String sCompanyNumber, String sCustomerNumber, com.helger.masterdata.address.IPostalAddress aAddress, String sTelephone, String sFax, String sEmailAddress, String sWebSite, com.helger.masterdata.currency.ECurrency eDefaultCurrency, String sOfficeLocation, String sCommercialRegistrationNumber, String sCommercialCourt, Locale aDisplayLocale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.helger.masterdata.address.IPostalAddressgetAddress()StringgetAsUIText(Locale aDisplayLocale)StringgetCommercialCourt()StringgetCommercialRegistrationNumber()StringgetCompanyNumber()StringgetCompanyType()StringgetCompanyVATIN()StringgetCustomerNumber()com.helger.masterdata.currency.ECurrencygetDefaultCurrency()StringgetDisplayName()StringgetEmailAddress()StringgetFax()StringgetOfficeLocation()StringgetTelephone()StringgetWebSite()com.helger.commons.state.EChangesetAddress(com.helger.masterdata.address.IPostalAddress aAddress, Locale aDisplayLocale)com.helger.commons.state.EChangesetCommercialCourt(String sCommercialCourt)com.helger.commons.state.EChangesetCommercialRegistrationNumber(String sCommercialRegistrationNumber)com.helger.commons.state.EChangesetCompanyNumber(String sCompanyNumber)com.helger.commons.state.EChangesetCompanyType(String sCompanyType)com.helger.commons.state.EChangesetCompanyVATIN(String sCompanyVATIN)com.helger.commons.state.EChangesetCustomerNumber(String sCustomerNumber)com.helger.commons.state.EChangesetDefaultCurrency(com.helger.masterdata.currency.ECurrency eDefaultCurrency)com.helger.commons.state.EChangesetDisplayName(String sDisplayName)com.helger.commons.state.EChangesetEmailAddress(String sEmailAddress)com.helger.commons.state.EChangesetFax(String sFax)com.helger.commons.state.EChangesetOfficeLocation(String sOfficeLocation)com.helger.commons.state.EChangesetTelephone(String sTelephone)com.helger.commons.state.EChangesetWebSite(String sWebSite)StringtoString()-
Methods inherited from class com.helger.tenancy.tenant.AbstractTenantObject
equals, getTenant, hashCode
-
Methods inherited from class com.helger.tenancy.AbstractBusinessObject
attrs, getCreationDateTime, getCreationUserID, getDeletionDateTime, getDeletionUserID, getID, getLastModificationDateTime, getLastModificationUserID, setDeletion, setLastModification, setUndeletion
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.tenancy.accarea.IAccountingArea
getDefaultCurrencyID, getDisplayNameAndCompanyType, getDisplayNameAndCompanyType, hasCommercialCourt, hasCommercialRegistrationNumber, hasCompanyNumber, hasCompanyType, hasCompanyVATIN, hasCustomerNumber, hasDefaultCurrency, hasEmailAddress, hasFax, hasOfficeLocation, hasTelephone, hasWebSite
-
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
-
Methods inherited from interface com.helger.tenancy.tenant.ITenantObject
getTenant, getTenantID
-
-
-
-
Constructor Detail
-
AbstractAccountingArea
protected AbstractAccountingArea(@Nonnull ITenant aTenant, @Nonnull IBusinessObject aStubObject, @Nonnull @Nonempty String sDisplayName, @Nullable String sCompanyType, @Nullable String sCompanyVATIN, @Nullable String sCompanyNumber, @Nullable String sCustomerNumber, @Nonnull com.helger.masterdata.address.IPostalAddress aAddress, @Nullable String sTelephone, @Nullable String sFax, @Nullable String sEmailAddress, @Nullable String sWebSite, @Nullable com.helger.masterdata.currency.ECurrency eDefaultCurrency, @Nullable String sOfficeLocation, @Nullable String sCommercialRegistrationNumber, @Nullable String sCommercialCourt, @Nonnull Locale aDisplayLocale)
-
-
Method Detail
-
getDisplayName
@Nonnull @Nonempty public String getDisplayName()
- Specified by:
getDisplayNamein interfacecom.helger.commons.name.IHasDisplayName
-
setDisplayName
@Nonnull public com.helger.commons.state.EChange setDisplayName(@Nonnull @Nonempty String sDisplayName)
-
getCompanyType
@Nullable public String getCompanyType()
- Specified by:
getCompanyTypein interfaceIAccountingArea- Returns:
- The company type. E.g. "KEG". May be
null.
-
setCompanyType
@Nonnull public com.helger.commons.state.EChange setCompanyType(@Nullable String sCompanyType)
-
getCompanyVATIN
@Nullable public String getCompanyVATIN()
- Specified by:
getCompanyVATINin interfaceIAccountingArea- Returns:
- The company VATID (de: UID). May be
null
-
setCompanyVATIN
@Nonnull public com.helger.commons.state.EChange setCompanyVATIN(@Nullable String sCompanyVATIN)
-
getCompanyNumber
@Nullable public String getCompanyNumber()
- Specified by:
getCompanyNumberin interfaceIAccountingArea- Returns:
- The company number (Interne Betriebsnummer). May be
null.
-
setCompanyNumber
@Nonnull public com.helger.commons.state.EChange setCompanyNumber(@Nullable String sCompanyNumber)
-
getCustomerNumber
@Nullable public String getCustomerNumber()
- Specified by:
getCustomerNumberin interfaceIAccountingArea- Returns:
- Customer number. May be
null.
-
setCustomerNumber
@Nonnull public com.helger.commons.state.EChange setCustomerNumber(@Nullable String sCustomerNumber)
-
getAddress
@Nonnull public com.helger.masterdata.address.IPostalAddress getAddress()
- Specified by:
getAddressin interfaceIAccountingArea- Returns:
- The postal address of the owner. May not be
null.
-
setAddress
@Nonnull public com.helger.commons.state.EChange setAddress(@Nonnull com.helger.masterdata.address.IPostalAddress aAddress, @Nonnull Locale aDisplayLocale)
-
getTelephone
@Nullable public String getTelephone()
- Specified by:
getTelephonein interfaceIAccountingArea- Returns:
- The telephone number. May be
null.
-
setTelephone
@Nonnull public com.helger.commons.state.EChange setTelephone(@Nullable String sTelephone)
-
getFax
@Nullable public String getFax()
- Specified by:
getFaxin interfaceIAccountingArea- Returns:
- The telefax number. May be
null.
-
getEmailAddress
@Nullable public String getEmailAddress()
- Specified by:
getEmailAddressin interfaceIAccountingArea- Returns:
- The email address. May be
null.
-
setEmailAddress
@Nonnull public com.helger.commons.state.EChange setEmailAddress(@Nullable String sEmailAddress)
-
getWebSite
@Nullable public String getWebSite()
- Specified by:
getWebSitein interfaceIAccountingArea- Returns:
- The web site. May be
null.
-
getDefaultCurrency
@Nullable public com.helger.masterdata.currency.ECurrency getDefaultCurrency()
- Specified by:
getDefaultCurrencyin interfaceIAccountingArea- Returns:
- The default currency. May be
null.
-
setDefaultCurrency
@Nonnull public com.helger.commons.state.EChange setDefaultCurrency(@Nullable com.helger.masterdata.currency.ECurrency eDefaultCurrency)
-
getOfficeLocation
@Nullable public String getOfficeLocation()
- Specified by:
getOfficeLocationin interfaceIAccountingArea- Returns:
- Office location (Firmensitz). May be
null.
-
setOfficeLocation
@Nonnull public com.helger.commons.state.EChange setOfficeLocation(@Nullable String sOfficeLocation)
-
getCommercialRegistrationNumber
@Nullable public String getCommercialRegistrationNumber()
- Specified by:
getCommercialRegistrationNumberin interfaceIAccountingArea- Returns:
- Commercial registration number (e.g. Firmenbuchnummer). May be
null.
-
setCommercialRegistrationNumber
@Nonnull public com.helger.commons.state.EChange setCommercialRegistrationNumber(@Nullable String sCommercialRegistrationNumber)
-
getCommercialCourt
@Nullable public String getCommercialCourt()
- Specified by:
getCommercialCourtin interfaceIAccountingArea- Returns:
- Commercial court(e.g. Firmenbuchgericht). May be
null.
-
setCommercialCourt
@Nonnull public com.helger.commons.state.EChange setCommercialCourt(@Nullable String sCommercialCourt)
-
getAsUIText
@Nonnull @Nonempty public String getAsUIText(Locale aDisplayLocale)
- Specified by:
getAsUITextin interfaceIHasUIText- Parameters:
aDisplayLocale- Display locale. May not benull.- Returns:
- The UI text
-
toString
public String toString()
- Overrides:
toStringin classAbstractTenantObject
-
-