Examples of LockedException


Examples of org.acegisecurity.LockedException

                                "Username {0} not found"));
                    }

                    // account is expired
                    if (!targetUser.isAccountNonLocked()) {
                        throw new LockedException(messages.getMessage(
                                "SwitchUserProcessingFilter.locked",
                                "User account is locked"));
                    }

                    // user is disabled
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.LockedException

            javax.jcr.lock.Lock lock = node.getLock();
            String lockOwner = lock.getLockOwner();

            if (!session.getUserID().equals(lockOwner)) {
                final String path = lock.getNode().getPath();
                throw new LockedException(lockOwner, path);
            }
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.LockedException

            javax.jcr.lock.Lock lock = getLockManager().getLock(absPath);
            String lockOwner = lock.getLockOwner();

            if (!session.getUserID().equals(lockOwner)) {
                final String path = lock.getNode().getPath();
                throw new LockedException(lockOwner, path);
            }
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.LockedException

            // session already has lock token
            String[] lockTokens = null;
            try {
                lockTokens = getLockManager().getLockTokens();
            } catch (UnsupportedRepositoryOperationException ex) {
                throw new LockedException(session.getUserID(), path);
            } catch (RepositoryException ex) {
                throw new org.apache.jackrabbit.ocm.exception.RepositoryException(ex.getMessage(), ex);
            }
            if (lockTokens != null) {
                for (int i = 0; i < lockTokens.length; i++) {
                    if (lockTokens[i].equals(lockToken)) {
                        // we are already holding a lock
                        break;
                    }
                }
            } else {
                try {
                    getLockManager().addLockToken(lockToken);
                } catch (UnsupportedRepositoryOperationException ex) {
                    throw new LockedException(session.getUserID(), path);
                } catch (RepositoryException ex) {
                    throw new org.apache.jackrabbit.ocm.exception.RepositoryException(ex.getMessage(), ex);
                }
            }
        }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.LockedException

            javax.jcr.lock.Lock lock = node.getLock();
            String lockOwner = lock.getLockOwner();

            if (!session.getUserID().equals(lockOwner)) {
                final String path = lock.getNode().getPath();
                throw new LockedException(lockOwner, path);
            }
        }
    }
View Full Code Here

Examples of org.beangle.security.auth.LockedException

public class AccountStatusChecker implements UserDetailChecker {

  protected TextResource textResource;

  public void check(UserDetail user) {
    if (user.isAccountLocked()) { throw new LockedException(textResource.getText(
        "AbstractUserDetailsAuthenticationProvider.locked", "User account is locked"), user); }

    if (!user.isEnabled()) { throw new DisabledException(textResource.getText(
        "AbstractUserDetailsAuthenticationProvider.disabled", "User is disabled"), user); }
View Full Code Here

Examples of org.beangle.security.auth.LockedException

    this.postAuthenticationChecker = postAuthenticationChecks;
  }

  private class DefaultPreAuthenticationChecker implements UserDetailChecker {
    public void check(UserDetail user) {
      if (user.isAccountLocked()) { throw new LockedException(null, user); }

      if (!user.isEnabled()) { throw new DisabledException(null, user); }

      if (user.isAccountExpired()) { throw new AccountExpiredException(null, user); }
    }
View Full Code Here

Examples of org.beangle.security.auth.LockedException

    this.textResource = textResource;
  }

  private class DefaultPreAuthenticationChecker implements UserDetailChecker {
    public void check(UserDetail user) {
      if (user.isAccountLocked()) { throw new LockedException(textResource.getText(
          "AbstractUserDetailsAuthenticationProvider.locked", "User account is locked"),
          user); }

      if (!user.isEnabled()) { throw new DisabledException(textResource.getText(
          "AbstractUserDetailsAuthenticationProvider.disabled", "User is disabled"), user); }
View Full Code Here

Examples of org.beangle.security.auth.LockedException

public class AccountStatusChecker implements UserDetailChecker {

  protected TextResource textResource;

  public void check(UserDetail user) {
    if (user.isAccountLocked()) { throw new LockedException(textResource.getText(
        "AbstractUserDetailsAuthenticationProvider.locked", "User account is locked"), user); }

    if (!user.isEnabled()) { throw new DisabledException(textResource.getText(
        "AbstractUserDetailsAuthenticationProvider.disabled", "User is disabled"), user); }
View Full Code Here

Examples of org.beangle.security.auth.LockedException

public class AccountStatusChecker implements UserDetailChecker {

  protected TextResource textResource;

  public void check(UserDetail user) {
    if (user.isAccountLocked()) { throw new LockedException(textResource.getText(
        "AbstractUserDetailsAuthenticationProvider.locked", "User account is locked"), user); }

    if (!user.isEnabled()) { throw new DisabledException(textResource.getText(
        "AbstractUserDetailsAuthenticationProvider.disabled", "User is disabled"), user); }
View Full Code Here
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.