Package org.apache.james.managesieve.api

Examples of org.apache.james.managesieve.api.IsActiveException


    public void deleteScript(final String user, final String name) throws UserNotFoundException,
            ScriptNotFoundException, IsActiveException, StorageException {
        synchronized (lock) {
            File file = getScriptFile(user, name);
            if (isActiveFile(user, file)) {
                throw new IsActiveException("User: " + user + "Script: " + name);
            }
            try {
                FileUtils.forceDelete(file);
            } catch (IOException ex) {
                throw new StorageException(ex);
View Full Code Here


        {
            throw new ScriptNotFoundException(name);
        }
        if (script.isActive())
        {
            throw new IsActiveException(name);
        }
        _repository.get(user).remove(name);
    }
View Full Code Here

TOP

Related Classes of org.apache.james.managesieve.api.IsActiveException

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.