Package org.jboss.as.console.client.rbac

Source Code of org.jboss.as.console.client.rbac.UnauthorizedView

package org.jboss.as.console.client.rbac;

import com.google.gwt.user.client.ui.Widget;
import org.jboss.as.console.client.core.SuspendableViewImpl;
import org.jboss.as.console.client.layout.SimpleLayout;

/**
* @author Heiko Braun
* @date 7/2/13
*/
public class UnauthorizedView extends SuspendableViewImpl implements AuthorisationPresenter.MyView {

    private AuthorisationPresenter presenter;

    @Override
    public void setPresenter(AuthorisationPresenter presenter) {
        this.presenter = presenter;
    }

    @Override
    public Widget createWidget() {

        SimpleLayout layout = new SimpleLayout()
                .setTitle("Unauthorized")
                .setHeadline("Authorisation Required")
                .setDescription("You don't have the permissions to access this resource.");

        return layout.build();
    }
}
TOP

Related Classes of org.jboss.as.console.client.rbac.UnauthorizedView

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.