@Singleton public class AppLauncherLayoutManagerImpl extends Object implements AppLauncherLayoutManager
AppLauncherLayoutManager
implementation.Constructor and Description |
---|
AppLauncherLayoutManagerImpl(AppDescriptorRegistry appDescriptorRegistry,
info.magnolia.event.EventBus systemEventBus,
javax.inject.Provider<info.magnolia.i18nsystem.I18nizer> i18nizerProvider) |
Modifier and Type | Method and Description |
---|---|
AppLauncherLayout |
getLayoutForCurrentUser()
Deprecated.
|
AppLauncherLayout |
getLayoutForUser(info.magnolia.cms.security.User user)
Returns the
AppLauncherLayout for the specified user. |
void |
setLayout(AppLauncherLayoutDefinition layout)
Called to update the launcher layout when it has been changed in the repository.
|
@Inject public AppLauncherLayoutManagerImpl(AppDescriptorRegistry appDescriptorRegistry, @Named(value="system") info.magnolia.event.EventBus systemEventBus, javax.inject.Provider<info.magnolia.i18nsystem.I18nizer> i18nizerProvider)
@Deprecated public AppLauncherLayout getLayoutForCurrentUser()
AppLauncherLayoutManager
AppLauncherLayoutManager.getLayoutForUser(info.magnolia.cms.security.User)
provided
for the user currently set in the Context
.getLayoutForCurrentUser
in interface AppLauncherLayoutManager
public AppLauncherLayout getLayoutForUser(info.magnolia.cms.security.User user)
AppLauncherLayoutManager
AppLauncherLayout
for the specified user. The following principles apply:
AppDescriptorRegistry
are not included;AppDescriptor
references for quick access.getLayoutForUser
in interface AppLauncherLayoutManager
user
- user objectpublic void setLayout(AppLauncherLayoutDefinition layout)
AppLauncherLayoutManager
setLayout
in interface AppLauncherLayoutManager
Copyright © 2019 Magnolia International Ltd.. All rights reserved.