Examples of LockedException


Examples of com.adito.vfs.webdav.LockedException

        Collection<Lock> locks = locksByHandle_.get(handle);
        if (exclusive && exclusiveLocks_.containsKey(key)) {
            ExclusiveLock lock = exclusiveLocks_.get(key);
            if (!lock.isLockOwner(session))
                throw new LockedException("File is currently locked exclusively by session " + lock.getSession());
        } else if (nonExclusiveLocks_.containsKey(key)) {
            NonExclusiveLock lock = nonExclusiveLocks_.get(key);
            if (exclusive && !lock.isLockOwner(session))
                throw new LockedException("Cannot lock file exclusivley; there are currently " + lock.getSessions().size()
                                + " sessions using it non-exclusivley");
            lock.incrementLock(session);
        } else if (exclusive) {
            ExclusiveLock lock = new ExclusiveLock(resource, session, handle);
            exclusiveLocks_.put(key, lock);
View Full Code Here

Examples of com.jeecms.common.security.LockedException

*          ltaylor $
*/
public class AccountStatusUserDetailsChecker implements UserDetailsChecker {
  public void check(UserDetails user) throws AccountStatusException {
    if (!user.isAccountNonLocked()) {
      throw new LockedException();
    }

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

Examples of com.uic.ase.proj.xbn.util.LockedException

    <P>Equal to <CODE>throw new <A HREF="~JD~lx~EJD~">LockedException</A>(<A HREF="~JD~xbno~EJD~#getXMsgPrefix()">getXMsgPrefix</A>() + s_funcBody)</CODE></P>

    @param  s_funcBody  The throwing function name and error message body.
   **/
  protected final void throwLX(String s_funcBody)  {
    throw new LockedException(getXMsgPrefix() + s_funcBody);
  }
View Full Code Here

Examples of com.uic.ase.proj.xbn.util.LockedException

    <P>If s_name is null, this equals <CODE>throw new <A HREF="~JD~lx~EJD~">LockedException</A>(<A HREF="~JD~xbno~EJD~#getXMsgPrefix()">getXMsgPrefix</A>() + s_callingFunc + ":  " + s_lockedMsg))</CODE></P>
   **/
  protected final void throwLX(String s_callingFunc, String s_name, String s_lockedMsg)  {
    String sNamePart = ((s_name == null?  sES  :  " [name=" + s_name + "]");
    throw new LockedException(getXMsgPrefix() + s_callingFunc + sNamePart + ":  " + s_lockedMsg);
  }
View Full Code Here

Examples of org.acegisecurity.LockedException

      }
      Assert.notNull(user, "retrieveUser returned null - a violation of the interface contract");
    }

    if (!user.isAccountNonLocked()) {
      throw new LockedException(messages.getMessage( "AbstractUserDetailsAuthenticationProvider.locked", "User account is locked"));
    }

    if (!user.isEnabled()) {
      if (authentication instanceof CustomUsernamePasswordAuthenticationToken) {
        throw new CustomAuthenticationException("该证书绑定帐号还未启用或者已禁用!", CustomAuthenticationException.CODE_CA, -1);
View Full Code Here

Examples of org.acegisecurity.LockedException

            throw new AccountExpiredException(messages.getMessage("AbstractUserDetailsAuthenticationProvider.expired",
                    "Account expired"));
        }

        if (!user.isAccountNonLocked()) {
            throw new LockedException(messages.getMessage("AbstractUserDetailsAuthenticationProvider.locked",
                    "Account locked"));
        }

        if (!user.isCredentialsNonExpired()) {
            throw new CredentialsExpiredException(messages.getMessage(
View Full Code Here

Examples of org.acegisecurity.LockedException

    }

    private class DefaultPreAuthenticationChecks implements UserDetailsChecker {
        public void check(UserDetails user) {
            if (!user.isAccountNonLocked()) {
                throw new LockedException(messages.getMessage("AbstractUserDetailsAuthenticationProvider.locked",
                        "User account is locked"), user);
            }

            if (!user.isEnabled()) {
                throw new DisabledException(messages.getMessage("AbstractUserDetailsAuthenticationProvider.disabled",
View Full Code Here

Examples of org.acegisecurity.LockedException

    protected MessageSourceAccessor messages = AcegiMessageSource.getAccessor();

    public void check(UserDetails user) {
        if (!user.isAccountNonLocked()) {
            throw new LockedException(messages.getMessage("UserDetailsService.locked", "User account is locked"), user);
        }

        if (!user.isEnabled()) {
            throw new DisabledException(messages.getMessage("UserDetailsService.disabled", "User is disabled"), user);
        }
View Full Code Here

Examples of org.acegisecurity.LockedException

                    new Object[] {username}, "Username {0} not found"));
        }

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

        // user is disabled
        if (!targetUser.isEnabled()) {
            throw new DisabledException(messages.getMessage("SwitchUserProcessingFilter.disabled", "User is disabled"));
View Full Code Here

Examples of org.acegisecurity.LockedException

            Assert.notNull(user,
                "retrieveUser returned null - a violation of the interface contract");
        }

        if (!user.isAccountNonLocked()) {
            throw new LockedException(messages.getMessage(
                    "AbstractUserDetailsAuthenticationProvider.locked",
                    "User account is locked"));
        }

        if (!user.isEnabled()) {
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.