info.magnolia.ui.api.app.launcherlayout
Class AppLauncherLayoutManagerImpl

java.lang.Object
  extended by info.magnolia.ui.api.app.launcherlayout.AppLauncherLayoutManagerImpl
All Implemented Interfaces:
AppLauncherLayoutManager

@Singleton
public class AppLauncherLayoutManagerImpl
extends Object
implements AppLauncherLayoutManager

Default AppLauncherLayoutManager implementation.


Constructor Summary
AppLauncherLayoutManagerImpl(AppDescriptorRegistry appDescriptorRegistry, info.magnolia.event.EventBus systemEventBus, info.magnolia.i18nsystem.I18nizer i18nizer)
           
 
Method Summary
 AppLauncherLayout getLayoutForCurrentUser()
          Returns the AppLauncherLayout for the current user.
 void setLayout(AppLauncherLayoutDefinition layout)
          Called to update the launcher layout when it has been changed in the repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppLauncherLayoutManagerImpl

@Inject
public AppLauncherLayoutManagerImpl(AppDescriptorRegistry appDescriptorRegistry,
                                           @Named(value="system")
                                           info.magnolia.event.EventBus systemEventBus,
                                           info.magnolia.i18nsystem.I18nizer i18nizer)
Method Detail

getLayoutForCurrentUser

public AppLauncherLayout getLayoutForCurrentUser()
Description copied from interface: AppLauncherLayoutManager
Returns the AppLauncherLayout for the current user. Empty groups or groups where the current user doesn't have access to any of the apps are not returned. Disabled apps, apps that the user does not have access to and apps that are not present in the AppDescriptorRegistry are not included. The returned object is also populated with AppDescriptor references for quick access.

Specified by:
getLayoutForCurrentUser in interface AppLauncherLayoutManager

setLayout

public void setLayout(AppLauncherLayoutDefinition layout)
Description copied from interface: AppLauncherLayoutManager
Called to update the launcher layout when it has been changed in the repository.

Specified by:
setLayout in interface AppLauncherLayoutManager


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.