james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Charles (JIRA)" <server-...@james.apache.org>
Subject [jira] Commented: (IMAP-217) Remove methods findMailboxById and deleteAll from MailboxMapper
Date Wed, 22 Sep 2010 08:37:36 GMT

    [ https://issues.apache.org/jira/browse/IMAP-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913464#action_12913464
] 

Eric Charles commented on IMAP-217:
-----------------------------------

InMemoryMailboxSessionMapperFactory uses mapper.deleteAll
mailbox-memory project does not compile on my side.

    public void deleteAll() throws MailboxException {
        final MailboxMapper<Long> mapper = mailboxMapper;
        mapper.execute(new Mapper.VoidTransaction() {

            public void runVoid() throws MailboxException {
                mapper.deleteAll(); 
            }
            
        });
        ((InMemoryMessageMapper) messageMapper).deleteAll();
        ((InMemorySubscriptionMapper) subscriptionMapper).deleteAll();
    }


> Remove methods findMailboxById and deleteAll from MailboxMapper 
> ----------------------------------------------------------------
>
>                 Key: IMAP-217
>                 URL: https://issues.apache.org/jira/browse/IMAP-217
>             Project: JAMES Imap
>          Issue Type: Improvement
>          Components: Store
>    Affects Versions: 0.1, 0.2
>            Reporter: Fran├žois-Denis Gonthier
>            Assignee: Norman Maurer
>             Fix For: 0.2
>
>
> findMailboxById and deleteAll are either not really used, or totally unused.
> From Norman:
>  I just reviewed the code and you are right.. We should remove both
>  methods form the interface (KISS).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message