Class AbstractTargetIdManager
java.lang.Object
org.craftercms.engine.targeting.impl.AbstractTargetIdManager
- All Implemented Interfaces:
TargetIdManager
- Direct Known Subclasses:
LocaleTargetIdManager
TargetIdManager base class, that provides basic implementations of getFallbackTargetId() and
getAvailableTargetIds().- Author:
- avasquez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the available target IDs defined in the current site configuration.Returns the fallback ID defined in the current site configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.craftercms.engine.targeting.TargetIdManager
getCurrentTargetId
-
Constructor Details
-
AbstractTargetIdManager
public AbstractTargetIdManager()
-
-
Method Details
-
getFallbackTargetId
Returns the fallback ID defined in the current site configuration. If not defined, null is returned.- Specified by:
getFallbackTargetIdin interfaceTargetIdManager- Throws:
IllegalStateException
-
getAvailableTargetIds
Returns the available target IDs defined in the current site configuration. If not defined, andIllegalStateExceptionis thrown.- Specified by:
getAvailableTargetIdsin interfaceTargetIdManager
-