The mailet/MailetContext exposed these methods to determine if server/user is local -------------------------------------------------------------------------- 1) Collection getServerNames();
The mailet/MailetContext exposed these methods to determine if server/user is local
--------------------------------------------------------------------------
1)
Collection getServerNames();

2)
Collection getLocalUsers();


Changed API to have these methods instead
------------------------------------------------------------------
1)
/** Checks if a server is considered local by the mailet context. */
boolean isLocalServer(String name);


2)
/** Checks if a user account is considered local by the mailet context. */
boolean isLocalUser(String userAccount);



The advantage are
------------------------------------------
- allows the MailetContext to hide and possibly plugin alternate strategy
for the local server name and user check.
- The entire collection is never exposed, only a way to ask if an entity
exists in the collection. This could have scalability benefits.


git-svn-id: 88158f914d5603334254b4adf21dfd50ec107162@107446 13f79535-47bb-0310-9956-ffa450edef68

rouazana/james,rouazana/james,chibenwa/james,aduprat/james,rouazana/james,chibenwa/james,aduprat/james,aduprat/james,chibenwa/james,chibenwa/james,rouazana/james,aduprat/james