Package org.zanata.webtrans.shared.auth

Examples of org.zanata.webtrans.shared.auth.AuthorizationError


        } catch (NotLoggedInException e) {
            ctx.rollback();
            throw new AuthenticationError(e);
        } catch (AuthorizationException e) {
            ctx.rollback();
            throw new AuthorizationError(e);
        } catch (Throwable e) {
            ctx.rollback();
            log.error("Error dispatching action: " + e, e);
            throw new ActionException(e);
        }
View Full Code Here


        } catch (NotLoggedInException e) {
            ctx.rollback();
            throw new AuthenticationError(e);
        } catch (AuthorizationException e) {
            ctx.rollback();
            throw new AuthorizationError(e);
        } catch (Throwable e) {
            ctx.rollback();
            log.error("Error dispatching action: " + e, e);
            throw new ActionException(e);
        }
View Full Code Here

            final AsyncCallback<R> callback) {
        if (action instanceof AbstractWorkspaceAction<?>) {
            AbstractWorkspaceAction<?> wsAction =
                    (AbstractWorkspaceAction<?>) action;
            if (userWorkspaceContext == null || identity == null) {
                callback.onFailure(new AuthorizationError(messages
                        .dispatcherSetupFailed()));
                return;
            }
            wsAction.setEditorClientId(identity.getEditorClientId());
            wsAction.setWorkspaceId(userWorkspaceContext.getWorkspaceContext()
View Full Code Here

            final A action, final R result, final AsyncCallback<Void> callback) {
        if (action instanceof AbstractWorkspaceAction<?>) {
            AbstractWorkspaceAction<?> wsAction =
                    (AbstractWorkspaceAction<?>) action;
            if (userWorkspaceContext == null || identity == null) {
                callback.onFailure(new AuthorizationError(messages
                        .dispatcherSetupFailed()));
                return;
            }
            wsAction.setEditorClientId(identity.getEditorClientId());
            wsAction.setWorkspaceId(userWorkspaceContext.getWorkspaceContext()
View Full Code Here

    public <A extends Action<R>, R extends Result> void execute(A action,
            AsyncCallback<R> callback) {

        if (action instanceof AbstractWorkspaceAction<?>) {
            if (this.userWorkspaceContext == null || this.identity == null) {
                callback.onFailure(new AuthorizationError(
                        "Dispatcher not initialized for WorkspaceActions"));
                return;
            }
            AbstractWorkspaceAction<?> wsAction =
                    (AbstractWorkspaceAction<?>) action;
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.auth.AuthorizationError

Copyright © 2018 www.massapicom. 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.