Examples of ManageSieveRuntimeException


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

            ScriptNotFoundException, IsActiveException {
        authenticationCheck();
        try {
            _repository.deleteScript(getUser(), name);
        } catch (StorageException ex) {
            throw new ManageSieveRuntimeException(ex);
        } catch (UserNotFoundException ex) {
            // Should not happen as the UserListener should ensure the session user is defined in the repository
            throw new ManageSieveRuntimeException(ex);
        }
    }
View Full Code Here

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

        String script = null;
        try {
            script = _repository.getScript(getUser(), name);
        } catch (UserNotFoundException ex) {
            // Should not happen as the UserListener should ensure the session user is defined in the repository
            throw new ManageSieveRuntimeException(ex);
        }
        return script;
    }
View Full Code Here

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

        authenticationCheck();
        try {
            _repository.haveSpace(getUser(), name, size);
        } catch (UserNotFoundException ex) {
            // Should not happen as the UserListener should ensure the session user is defined in the repository
            throw new ManageSieveRuntimeException(ex);
        }
    }
View Full Code Here

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

        List<ScriptSummary> summaries = null;
        try {
            summaries = _repository.listScripts(getUser());
        } catch (UserNotFoundException ex) {
            // Should not happen as the UserListener should ensure the session user is defined in the repository
            throw new ManageSieveRuntimeException(ex);
        }
        return summaries;
    }
View Full Code Here

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

        List<String> warnings = _parser.parse(content);      
        try {
            _repository.putScript(getUser(), name, content);
        } catch (UserNotFoundException ex) {
            // Should not happen as the UserListener should ensure the session user is defined in the repository
            throw new ManageSieveRuntimeException(ex);
        } catch (StorageException ex) {
            throw new ManageSieveRuntimeException(ex);
        }
        return warnings;
    }
View Full Code Here

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

        authenticationCheck();
        try {
            _repository.renameScript(getUser(), oldName, newName);
        } catch (UserNotFoundException ex) {
            // Should not happen as the UserListener should ensure the session user is defined in the repository
            throw new ManageSieveRuntimeException(ex);
        } catch (StorageException ex) {
            throw new ManageSieveRuntimeException(ex);
        }
    }
View Full Code Here

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

        authenticationCheck();
        try {
            _repository.setActive(getUser(), name);
        } catch (UserNotFoundException ex) {
            // Should not happen as the UserListener should ensure the session user is defined in the repository
            throw new ManageSieveRuntimeException(ex);
        } catch (StorageException ex) {
            throw new ManageSieveRuntimeException(ex);
        }
    }  
View Full Code Here

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

        {
            try {
                _repository.addUser(user);
            } catch (DuplicateUserException ex) {
                // Should never happen as we checked first!
                throw new ManageSieveRuntimeException(ex);
            } catch (StorageException ex) {
                throw new ManageSieveRuntimeException(ex);
            }
        }
    }
View Full Code Here

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

        try {
            script = _repository.getActive(getUser());
        } catch (UserNotFoundException ex) {
            // Should not happen as the UserListener should ensure the session
            // user is defined in the repository
            throw new ManageSieveRuntimeException(ex);
        }
        return script;
    }
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.