Class AbstractTargetIdManager
- java.lang.Object
-
- org.craftercms.engine.targeting.impl.AbstractTargetIdManager
-
- All Implemented Interfaces:
TargetIdManager
- Direct Known Subclasses:
LocaleTargetIdManager
public abstract class AbstractTargetIdManager extends Object implements TargetIdManager
TargetIdManagerbase class, that provides basic implementations ofgetFallbackTargetId()andgetAvailableTargetIds().- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description AbstractTargetIdManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAvailableTargetIds()Returns the available target IDs defined in the current site configuration.StringgetFallbackTargetId()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
-
-
-
-
Method Detail
-
getFallbackTargetId
public String getFallbackTargetId() throws IllegalStateException
Returns the fallback ID defined in the current site configuration. If not defined, null is returned.- Specified by:
getFallbackTargetIdin interfaceTargetIdManager- Throws:
IllegalStateException
-
getAvailableTargetIds
public List<String> getAvailableTargetIds()
Returns the available target IDs defined in the current site configuration. If not defined, andIllegalStateExceptionis thrown.- Specified by:
getAvailableTargetIdsin interfaceTargetIdManager
-
-