public final class AccountingAreaManager extends AbstractSimpleDAO implements IAccountingAreaResolver
IDAO.EModeDEFAULT_AUTO_SAVE_ENABLED, m_aRWLock| Constructor and Description |
|---|
AccountingAreaManager(String sFilename) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAccountingAreaWithID(String sID) |
boolean |
containsAccountingAreaWithID(String sID,
IClient aClient) |
IAccountingArea |
createAccountingArea(IClient aClient,
String sDisplayName,
String sCompanyType,
String sCompanyVATIN,
String sCompanyNumber,
com.helger.masterdata.address.IReadonlyAddress aAddress,
String sTelephone,
String sFax,
String sEmailAddress,
String sWebSite,
com.helger.masterdata.currency.ECurrency eDefaultCurrency,
String sOfficeLocation,
String sCommercialRegistrationNumber,
String sCommercialCourt,
Locale aDisplayLocale) |
protected com.helger.commons.microdom.IMicroDocument |
createWriteData()
Create the XML document that should be saved to the file.
|
IAccountingArea |
getAccountingAreaOfID(String sID)
Get the accounting area of the specified ID.
|
IAccountingArea |
getAccountingAreaOfID(String sID,
IClient aClient) |
IAccountingArea |
getAccountingAreaOfName(String sName,
IClient aClient) |
Collection<String> |
getAllAccountingAreaIDsOfClient(IClient aClient) |
Collection<String> |
getAllAccountingAreaIDsOfClient(String sClientID) |
Collection<? extends IAccountingArea> |
getAllAccountingAreas() |
Collection<? extends IAccountingArea> |
getAllAccountingAreasOfClient(IClient aClient) |
Collection<? extends IAccountingArea> |
getAllAccountingAreasOfClient(String sClientID) |
protected com.helger.commons.state.EChange |
onRead(com.helger.commons.microdom.IMicroDocument aDoc)
Fill the internal structures with from the passed XML document.
|
com.helger.commons.state.EChange |
updateAccountingArea(String sAccountingAreaID,
String sDisplayName,
String sCompanyType,
String sCompanyVATIN,
String sCompanyNumber,
com.helger.masterdata.address.IReadonlyAddress aAddress,
String sTelephone,
String sFax,
String sEmailAddress,
String sWebSite,
com.helger.masterdata.currency.ECurrency eDefaultCurrency,
String sOfficeLocation,
String sCommercialRegistrationNumber,
String sCommercialCourt,
Locale aDisplayLocale) |
beforeWriteToFile, getDAOIO, getFilenameProvider, getInitCount, getLastFilename, getLastInitDateTime, getLastReadDateTime, getLastWriteDateTime, getReadCount, getSafeFile, getWriteCount, getXMLWriterSettings, initialRead, markAsChanged, modifyWriteData, onFilenameChange, onInit, toString, triggerExceptionHandlersRead, triggerExceptionHandlersWrite, writeToFileOnPendingChangesbeginWithoutAutoSave, endWithoutAutoSave, getExceptionHandlersRead, getExceptionHandlersWrite, hasPendingChanges, internalHasPendingChanges, internalIsAutoSaveEnabled, internalSetPendingChanges, isAutoSaveEnabled, performWithoutAutoSave, performWithoutAutoSave, performWithoutAutoSave, performWithoutAutoSavepublic AccountingAreaManager(@Nonnull@Nonempty String sFilename) throws DAOException
DAOException@Nonnull protected com.helger.commons.state.EChange onRead(@Nonnull com.helger.commons.microdom.IMicroDocument aDoc)
AbstractSimpleDAOonRead in class AbstractSimpleDAOaDoc - The XML document to read from. Never null.EChange.CHANGED if reading the data changed something in
the internal structures that requires a writing.@Nonnull protected com.helger.commons.microdom.IMicroDocument createWriteData()
AbstractSimpleDAOcreateWriteData in class AbstractSimpleDAOnull document to write to the file.@Nonnull public IAccountingArea createAccountingArea(@Nonnull IClient aClient, @Nonnull@Nonempty String sDisplayName, @Nullable String sCompanyType, @Nonnull@Nonempty String sCompanyVATIN, @Nonnull@Nonempty String sCompanyNumber, @Nonnull com.helger.masterdata.address.IReadonlyAddress aAddress, @Nonnull String sTelephone, @Nullable String sFax, @Nullable String sEmailAddress, @Nullable String sWebSite, @Nonnull com.helger.masterdata.currency.ECurrency eDefaultCurrency, @Nullable String sOfficeLocation, @Nullable String sCommercialRegistrationNumber, @Nullable String sCommercialCourt, @Nonnull Locale aDisplayLocale)
@Nonnull public com.helger.commons.state.EChange updateAccountingArea(@Nonnull@Nonempty String sAccountingAreaID, @Nonnull@Nonempty String sDisplayName, @Nullable String sCompanyType, @Nonnull@Nonempty String sCompanyVATIN, @Nonnull@Nonempty String sCompanyNumber, @Nonnull com.helger.masterdata.address.IReadonlyAddress aAddress, @Nonnull String sTelephone, @Nullable String sFax, @Nullable String sEmailAddress, @Nullable String sWebSite, @Nonnull com.helger.masterdata.currency.ECurrency eDefaultCurrency, @Nullable String sOfficeLocation, @Nullable String sCommercialRegistrationNumber, @Nullable String sCommercialCourt, @Nonnull Locale aDisplayLocale)
@Nonnull @ReturnsMutableCopy public Collection<? extends IAccountingArea> getAllAccountingAreas()
@Nonnull @ReturnsMutableCopy public Collection<? extends IAccountingArea> getAllAccountingAreasOfClient(@Nullable String sClientID)
@Nonnull @ReturnsMutableCopy public Collection<? extends IAccountingArea> getAllAccountingAreasOfClient(@Nullable IClient aClient)
@Nonnull @ReturnsMutableCopy public Collection<String> getAllAccountingAreaIDsOfClient(@Nullable String sClientID)
@Nonnull @ReturnsMutableCopy public Collection<String> getAllAccountingAreaIDsOfClient(@Nullable IClient aClient)
@Nullable public IAccountingArea getAccountingAreaOfID(@Nullable String sID)
IAccountingAreaResolvergetAccountingAreaOfID in interface IAccountingAreaResolversID - The ID to be resolved. May be null.null if no such accounting area exists.public IAccountingArea getAccountingAreaOfID(@Nullable String sID, @Nullable IClient aClient)
public boolean containsAccountingAreaWithID(@Nullable String sID, @Nullable IClient aClient)
Copyright © 2014–2015 Philip Helger. All rights reserved.