Java VaadinSecurity类代码示例

本文整理汇总了Java中org.vaadin.spring.security.VaadinSecurity的典型用法代码示例。如果您正苦于以下问题:Java VaadinSecurity类的具体用法?Java VaadinSecurity怎么用?Java VaadinSecurity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Java VaadinSecurity类代码示例

VaadinSecurity类属于org.vaadin.spring.security包,在下文中一共展示了VaadinSecurity类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: MainScreen

import org.vaadin.spring.security.VaadinSecurity; //导入依赖的package包/类
@Autowired
public MainScreen(final VaadinSecurity vaadinSecurity, SpringViewProvider springViewProvider, ValoSideBar sideBar) {
    HorizontalLayout layout = new HorizontalLayout();
    layout.setSizeFull();
    setCompositionRoot(layout);
    setSizeFull();

    // By adding a security item filter, only views that are accessible to the user will show up in the side bar.
    sideBar.setItemFilter(new VaadinSecurityItemFilter(vaadinSecurity));
    layout.addComponent(sideBar);

    CssLayout viewContainer = new CssLayout();
    viewContainer.setSizeFull();
    layout.addComponent(viewContainer);
    layout.setExpandRatio(viewContainer, 1f);

    Navigator navigator = new Navigator(UI.getCurrent(), viewContainer);
    // Without an AccessDeniedView, the view provider would act like the restricted views did not exist at all.
    springViewProvider.setAccessDeniedViewClass(AccessDeniedView.class);
    navigator.addProvider(springViewProvider);
    navigator.setErrorView(ErrorView.class);
    navigator.navigateTo(navigator.getState());
} 
开发者ID:peholmst,项目名称:vaadin4spring,代码行数:24,代码来源:MainScreen.java

示例2: AbstractHawkbitLoginUI

import org.vaadin.spring.security.VaadinSecurity; //导入依赖的package包/类
@Autowired
protected AbstractHawkbitLoginUI(final ApplicationContext context, final VaadinSecurity vaadinSecurity,
        final VaadinMessageSource i18n, final UiProperties uiProperties,
        final MultitenancyIndicator multiTenancyIndicator) {
    this.context = context;
    this.vaadinSecurity = vaadinSecurity;
    this.i18n = i18n;
    this.uiProperties = uiProperties;
    this.multiTenancyIndicator = multiTenancyIndicator;
} 
开发者ID:eclipse,项目名称:hawkbit,代码行数:11,代码来源:AbstractHawkbitLoginUI.java

示例3: invokeAwareInterfaces

import org.vaadin.spring.security.VaadinSecurity; //导入依赖的package包/类
private void invokeAwareInterfaces(Object bean) {

        if ( bean instanceof Aware ) {

            if ( bean instanceof VaadinSecurityAware ) {
                ((VaadinSecurityAware) bean).setVaadinSecurity(this.applicationContext.getBean(VaadinSecurity.class));
            }

            if ( bean instanceof VaadinSecurityContextAware ) {
                ((VaadinSecurityContextAware) bean).setVaadinSecurityContext(this.applicationContext.getBean(VaadinSecurityContext.class));
            }
        }

    } 
开发者ID:peholmst,项目名称:vaadin4spring,代码行数:15,代码来源:VaadinSecurityAwareProcessor.java

示例4: LogoutOperation

import org.vaadin.spring.security.VaadinSecurity; //导入依赖的package包/类
@Autowired
public LogoutOperation(VaadinSecurity vaadinSecurity) {
	this.vaadinSecurity = vaadinSecurity;
} 
开发者ID:Horuss,项目名称:bbplay,代码行数:5,代码来源:LogoutOperation.java

示例5: MyLoginUI

import org.vaadin.spring.security.VaadinSecurity; //导入依赖的package包/类
@Autowired
MyLoginUI(final ApplicationContext context, final VaadinSecurity vaadinSecurity, final VaadinMessageSource i18n,
        final UiProperties uiProperties, final MultitenancyIndicator multiTenancyIndicator) {
    super(context, vaadinSecurity, i18n, uiProperties, multiTenancyIndicator);
} 
开发者ID:eclipse,项目名称:hawkbit,代码行数:6,代码来源:MyLoginUI.java

示例6: setVaadinSecurity

import org.vaadin.spring.security.VaadinSecurity; //导入依赖的package包/类
@Override
public void setVaadinSecurity(VaadinSecurity vaadinSecurity) {
    security = vaadinSecurity;
} 
开发者ID:peholmst,项目名称:vaadin4spring,代码行数:5,代码来源:SecuredViewAccessControl.java

示例7: setVaadinSecurity

import org.vaadin.spring.security.VaadinSecurity; //导入依赖的package包/类
@Override
public void setVaadinSecurity(VaadinSecurity vaadinSecurity) {
    this.security = vaadinSecurity;
} 
开发者ID:peholmst,项目名称:vaadin4spring,代码行数:5,代码来源:PreAuthorizeViewInstanceAccessControl.java

示例8: vaadinSecurity

import org.vaadin.spring.security.VaadinSecurity; //导入依赖的package包/类
@Bean(name = VAADIN_SECURITY_BEAN)
abstract VaadinSecurity vaadinSecurity(); 
开发者ID:peholmst,项目名称:vaadin4spring,代码行数:3,代码来源:AbstractVaadinSecurityConfiguration.java

示例9: LogoutOperation

import org.vaadin.spring.security.VaadinSecurity; //导入依赖的package包/类
@Autowired
public LogoutOperation(VaadinSecurity vaadinSecurity) {
    this.vaadinSecurity = vaadinSecurity;
} 
开发者ID:peholmst,项目名称:vaadin4spring,代码行数:5,代码来源:LogoutOperation.java

示例10: LoginScreen

import org.vaadin.spring.security.VaadinSecurity; //导入依赖的package包/类
@Autowired
public LoginScreen(VaadinSecurity vaadinSecurity, EventBus.SessionEventBus eventBus) {
    this.vaadinSecurity = vaadinSecurity;
    this.eventBus = eventBus;
    initLayout();
} 
开发者ID:peholmst,项目名称:vaadin4spring,代码行数:7,代码来源:LoginScreen.java

示例11: VaadinSecurityItemFilter

import org.vaadin.spring.security.VaadinSecurity; //导入依赖的package包/类
/**
 * Creates a new instance of {@code VaadinSecurityItemFilter}.
 *
 * @param vaadinSecurity an instance of {@link org.vaadin.spring.security.VaadinSecurity}.
 */
public VaadinSecurityItemFilter(VaadinSecurity vaadinSecurity) {
    this.vaadinSecurity = vaadinSecurity;
} 
开发者ID:peholmst,项目名称:vaadin4spring,代码行数:9,代码来源:VaadinSecurityItemFilter.java

本文标签属性:

示例:示例的拼音

代码:代码转换器

java:javascript什么意思

VaadinSecurity:VaadinSecurity

上一篇:现实主义是什么意思(现实主义是什么意思)(什么是现实主义)
下一篇:有什么好看的都市情感剧?(超级好看的都市剧)(5部好看的都市情感剧)

为您推荐