public class DefaultLocationHistoryMapper extends Object implements LocationHistoryMapper
Constructor and Description |
---|
DefaultLocationHistoryMapper(AppLauncherLayoutManager appLauncherLayoutManager,
info.magnolia.context.Context context) |
Modifier and Type | Method and Description |
---|---|
String |
getFragment(Location location)
Returns the text representation of the location or null if the location isn't handled.
|
Location |
getLocation(String fragment)
Returns the location represented by the fragment or null if the fragment is invalid or does not match a supported location.
|
public DefaultLocationHistoryMapper(AppLauncherLayoutManager appLauncherLayoutManager, info.magnolia.context.Context context)
public Location getLocation(String fragment)
LocationHistoryMapper
getLocation
in interface LocationHistoryMapper
public String getFragment(Location location)
LocationHistoryMapper
getFragment
in interface LocationHistoryMapper
Copyright © 2015 Magnolia International Ltd.. All rights reserved.