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
-
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, wait
Methods 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:
getFallbackTargetId
in interfaceTargetIdManager
- Throws:
IllegalStateException
-
getAvailableTargetIds
Returns the available target IDs defined in the current site configuration. If not defined, andIllegalStateException
is thrown.- Specified by:
getAvailableTargetIds
in interfaceTargetIdManager
-