/*
 * Copyright 2004-2014 ICEsoft Technologies Canada Corp.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the
 * License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an "AS
 * IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

package org.icefaces.samples.showcase.view.navigation;

import org.icefaces.samples.showcase.example.core.overview.CoreSuiteOverviewBean;
import org.icefaces.samples.showcase.example.core.defaultAction.DefaultActionBean;
import org.icefaces.samples.showcase.example.core.focusManager.FocusManagerBean;
import org.icefaces.samples.showcase.example.core.idleMonitor.IdleMonitorBean;
import org.icefaces.samples.showcase.example.core.navigationNotifier.NavigationNotifierBean;
import org.icefaces.samples.showcase.example.core.push.PushBean;
import org.icefaces.samples.showcase.example.core.redirect.RedirectBean;
import org.icefaces.samples.showcase.example.core.refresh.RefreshBean;

import org.icefaces.samples.showcase.metadata.annotation.Menu;
import org.icefaces.samples.showcase.metadata.annotation.MenuLink;

import javax.annotation.PostConstruct;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;
import java.io.Serializable;

@Menu(
        title = "menu.core.title", menuLinks = {
                @MenuLink(title = "menu.core.coreSuiteOverview.title", isDefault = true, exampleBeanName = CoreSuiteOverviewBean.BEAN_NAME),
                @MenuLink(title = "menu.core.defaultAction.title", exampleBeanName = DefaultActionBean.BEAN_NAME),
                @MenuLink(title = "menu.core.focusManager.title", exampleBeanName = FocusManagerBean.BEAN_NAME),
                @MenuLink(title = "menu.core.idleMonitor.title", exampleBeanName = IdleMonitorBean.BEAN_NAME),
                @MenuLink(title = "menu.core.navigationNotifier.title", exampleBeanName = NavigationNotifierBean.BEAN_NAME),
                @MenuLink(title = "menu.core.push.title", exampleBeanName = PushBean.BEAN_NAME),
                @MenuLink(title = "menu.core.redirect.title", exampleBeanName = RedirectBean.BEAN_NAME),
                @MenuLink(title = "menu.core.refresh.title", exampleBeanName = RefreshBean.BEAN_NAME)
        })
@ManagedBean(name = CoreMenu.BEAN_NAME)
@ApplicationScoped
public class CoreMenu extends org.icefaces.samples.showcase.metadata.context.Menu<CoreMenu>
        implements Serializable {

    public static final String BEAN_NAME = "coreMenu";

    public CoreMenu() {
        super(CoreMenu.class);
    }

    @PostConstruct
    public void initMetaData() {
        super.initMetaData();
    }

    public String getBeanName() {
        return BEAN_NAME;
    }
}
