Package com.helger.photon.app.resource
Class WebSiteResourceBundleManager
java.lang.Object
com.helger.dao.AbstractDAO
com.helger.dao.simple.AbstractSimpleDAO
com.helger.photon.io.dao.AbstractPhotonSimpleDAO
com.helger.photon.app.resource.WebSiteResourceBundleManager
- All Implemented Interfaces:
com.helger.commons.log.IHasConditionalLogger,com.helger.dao.IAutoSaveAware,com.helger.dao.IDAO,IWebSiteResourceBundleProvider
public final class WebSiteResourceBundleManager
extends com.helger.photon.io.dao.AbstractPhotonSimpleDAO
implements IWebSiteResourceBundleProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.helger.dao.IDAO
com.helger.dao.IDAO.EMode -
Field Summary
Fields inherited from class com.helger.dao.AbstractDAO
CONDLOG, DEFAULT_AUTO_SAVE_ENABLED, FILENAME_EXTENSION_NEW, FILENAME_EXTENSION_PREV, m_aRWLock, RW_LOCK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsResourceBundleOfID(String sBundleID) Check if the passed resource bundle ID is contained.protected com.helger.xml.microdom.IMicroDocumentcom.helger.commons.collection.impl.ICommonsMap<String,WebSiteResourceBundleSerialized> com.helger.commons.collection.impl.ICommonsList<WebSiteResourceBundleSerialized>getResourceBundleOfID(String sBundleID) Get the serialized resource bundle with the passed ID.com.helger.commons.collection.impl.ICommonsList<WebSiteResourceBundleSerialized>getResourceBundles(com.helger.commons.collection.impl.ICommonsList<WebSiteResourceWithCondition> aList, boolean bRegular) protected com.helger.commons.state.EChangeonRead(com.helger.xml.microdom.IMicroDocument aDoc) Methods inherited from class com.helger.dao.simple.AbstractSimpleDAO
beforeWriteToFile, getFilenameProvider, getInitCount, getIO, getLastFilename, getLastInitDateTime, getLastReadDateTime, getLastWriteDateTime, getReadCount, getSafeFile, getWriteCount, getXMLWriterSettings, initialRead, markAsChanged, modifyWriteData, onFilenameChange, onInit, toString, triggerExceptionHandlersRead, triggerExceptionHandlersWrite, writeToFileOnPendingChangesMethods inherited from class com.helger.dao.AbstractDAO
beginWithoutAutoSave, checkFileAccess, endWithoutAutoSave, exceptionHandlersRead, exceptionHandlersWrite, hasPendingChanges, internalHasPendingChanges, internalIsAutoSaveEnabled, internalSetPendingChanges, isAutoSaveEnabled, isSilentMode, setSilentModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.dao.IAutoSaveAware
performWithoutAutoSave, performWithoutAutoSave, performWithoutAutoSaveThrowing, performWithoutAutoSaveThrowingMethods inherited from interface com.helger.dao.IDAO
isReloadable, reload
-
Constructor Details
-
WebSiteResourceBundleManager
- Throws:
com.helger.dao.DAOException
-
-
Method Details
-
onRead
@Nonnull protected com.helger.commons.state.EChange onRead(@Nonnull com.helger.xml.microdom.IMicroDocument aDoc) - Specified by:
onReadin classcom.helger.dao.simple.AbstractSimpleDAO
-
createWriteData
- Specified by:
createWriteDatain classcom.helger.dao.simple.AbstractSimpleDAO
-
getAllResourceBundles
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsMap<String,WebSiteResourceBundleSerialized> getAllResourceBundles() -
getAllResourceBundlesSerialized
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<WebSiteResourceBundleSerialized> getAllResourceBundlesSerialized() -
getResourceBundleOfID
Get the serialized resource bundle with the passed ID.- Parameters:
sBundleID- The bundle ID to be resolved. May benull.- Returns:
nullif no such bundle exists.
-
containsResourceBundleOfID
Check if the passed resource bundle ID is contained.- Parameters:
sBundleID- The bundle ID to be checked. May benull.- Returns:
trueif the passed bundle exists,falseotherwise.
-
getResourceBundles
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<WebSiteResourceBundleSerialized> getResourceBundles(@Nonnull @Nonempty com.helger.commons.collection.impl.ICommonsList<WebSiteResourceWithCondition> aList, boolean bRegular) - Specified by:
getResourceBundlesin interfaceIWebSiteResourceBundleProvider
-