Package org.apache.james.mailbox.exception

Examples of org.apache.james.mailbox.exception.UnsupportedRightException


            case w_Write:
                return w_Write_MASK;
            case x_DeleteMailbox:
                return x_DeleteMailbox_MASK;
            default:
                throw new UnsupportedRightException(flag);
            }
        }
View Full Code Here


        }

        public Rfc4314Rights(int value) throws UnsupportedRightException {
            if ((value >> FIELD_COUNT) != 0) {
                throw new UnsupportedRightException();
            }
            this.value = value;
        }
View Full Code Here

                    case ckx_det:
                        v |= k_CreateMailbox_MASK;
                        v |= x_DeleteMailbox_MASK;
                        break;
                    case NO_COMPATIBILITY:
                        throw new UnsupportedRightException(flag);
                    default:
                        throw new IllegalStateException("Unexpected enum member: " + CompatibilityMode.class.getName() + "." + compatibilityMode.name());
                    }
                    break;
                case d_ObsoleteDelete:
                    switch (compatibilityMode) {
                    case ck_detx:
                        v |= e_PerformExpunge_MASK;
                        v |= t_DeleteMessages_MASK;
                        v |= x_DeleteMailbox_MASK;
                        break;
                    case ckx_det:
                        v |= e_PerformExpunge_MASK;
                        v |= t_DeleteMessages_MASK;
                        break;
                    case NO_COMPATIBILITY:
                        throw new UnsupportedRightException(flag);
                    default:
                        throw new IllegalStateException("Unexpected enum member: " + CompatibilityMode.class.getName() + "." + compatibilityMode.name());
                    }
                    break;
                default:
View Full Code Here

                case ck_detx:
                    return (value & k_CreateMailbox_MASK) != 0;
                case ckx_det:
                    return (value & (k_CreateMailbox_MASK | x_DeleteMailbox_MASK)) != 0;
                case NO_COMPATIBILITY:
                    throw new UnsupportedRightException(flag);
                default:
                    throw new IllegalStateException("Unexpected enum member: " + CompatibilityMode.class.getName() + "." + compatibilityMode.name());
                }
            case d_ObsoleteDelete:
                switch (compatibilityMode) {
                case ck_detx:
                    return (value & (e_PerformExpunge_MASK | t_DeleteMessages_MASK | x_DeleteMailbox_MASK)) != 0;
                case ckx_det:
                    return (value & (e_PerformExpunge_MASK | t_DeleteMessages_MASK)) != 0;
                case NO_COMPATIBILITY:
                    throw new UnsupportedRightException(flag);
                default:
                    throw new IllegalStateException("Unexpected enum member: " + CompatibilityMode.class.getName() + "." + compatibilityMode.name());
                }
            default:
                return (value | flagMaskLookup(flag)) != 0;
View Full Code Here

TOP

Related Classes of org.apache.james.mailbox.exception.UnsupportedRightException

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.