Package org.apache.james.managesieve.api

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


        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

        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

        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

        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

        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

        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

        {
            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

        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

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

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.