Author: norman Date: Thu Oct 6 06:43:39 2011 New Revision: 1179521 URL: http://svn.apache.org/viewvc?rev=1179521&view=rev Log: Replace tabs with spaces and add a getter which can be used by sub-classes to access the MailboxPathLocker
Modified: james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMessageManager.java Modified: james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMessageManager.java URL: http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMessageManager.java?rev=1179521&r1=1179520&r2=1179521&view=diff ============================================================================== --- james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMessageManager.java (original) +++ james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMessageManager.java Thu Oct 6 06:43:39 2011 @@ -122,6 +122,15 @@ public class StoreMessageManager<Id> imp /** + * Return the {@link MailboxPathLocker} + * + * @return locker + */ + protected MailboxPathLocker getLocker() { + return locker; + } + + /** * Return the {@link MailboxEventDispatcher} for this Mailbox * * @return dispatcher @@ -144,24 +153,27 @@ public class StoreMessageManager<Id> imp /** - * Return {@link Flags} which are permanent stored by the mailbox. By default this are the following flags: - * <br> - * {@link Flag#ANSWERED}, {@link Flag#DELETED}, {@link Flag#DRAFT}, {@link Flag#FLAGGED}, {@link Flag#RECENT}, {@link Flag#SEEN} - * <br> - * - * Which in fact does not allow to permanent store user flags / keywords. - * - * If the sub-class does allow to store "any" user flag / keyword it MUST override this method and add {@link Flag#USER} to the list - * of returned {@link Flags}. If only a special set of user flags / keywords should be allowed just add them directly. + * Return {@link Flags} which are permanent stored by the mailbox. By + * default this are the following flags: <br> + * {@link Flag#ANSWERED}, {@link Flag#DELETED}, {@link Flag#DRAFT}, + * {@link Flag#FLAGGED}, {@link Flag#RECENT}, {@link Flag#SEEN} <br> + * + * Which in fact does not allow to permanent store user flags / keywords. + * + * If the sub-class does allow to store "any" user flag / keyword it MUST + * override this method and add {@link Flag#USER} to the list of returned + * {@link Flags}. If only a special set of user flags / keywords should be + * allowed just add them directly. * * @param session * @return flags */ protected Flags getPermanentFlags(MailboxSession session) { - - // Return a new flags instance to make sure the static declared flags instance will not get modified later. - // - // See MAILBOX-109 + + // Return a new flags instance to make sure the static declared flags + // instance will not get modified later. + // + // See MAILBOX-109 return new Flags(MINIMAL_PERMANET_FLAGS); } --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org