Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize #44

Merged
merged 2 commits into from Apr 6, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/java/com/ripariandata/timberwolf/App.java
Expand Up @@ -21,10 +21,10 @@
import com.ripariandata.timberwolf.conf4j.ConfigFileException;
import com.ripariandata.timberwolf.conf4j.ConfigFileMissingException;
import com.ripariandata.timberwolf.conf4j.ConfigFileParser;
import com.ripariandata.timberwolf.exchange.ExchangeMailStore;
import com.ripariandata.timberwolf.exchange.ExchangeRuntimeException;
import com.ripariandata.timberwolf.exchange.HttpErrorException;
import com.ripariandata.timberwolf.exchange.ServiceCallException;
import com.ripariandata.timberwolf.mail.exchange.ExchangeMailStore;
import com.ripariandata.timberwolf.mail.exchange.ExchangeRuntimeException;
import com.ripariandata.timberwolf.mail.exchange.HttpErrorException;
import com.ripariandata.timberwolf.mail.exchange.ServiceCallException;
import com.ripariandata.timberwolf.services.LdapFetcher;
import com.ripariandata.timberwolf.services.PrincipalFetchException;
import com.ripariandata.timberwolf.services.PrincipalFetcher;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf;
package com.ripariandata.timberwolf.mail;

import com.ripariandata.timberwolf.writer.UserFolderSyncStateStorage;

Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf;
package com.ripariandata.timberwolf.mail;

/**
* MailboxItem represents a generic item from a mailbox.
Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import java.util.Iterator;

Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.ripariandata.timberwolf.writer.UserFolderSyncStateStorage;
import com.ripariandata.timberwolf.writer.console.InMemoryUserFolderSyncStateStorage;
Expand Down
Expand Up @@ -15,14 +15,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;


import com.microsoft.schemas.exchange.services.x2006.types.ArrayOfRecipientsType;
import com.microsoft.schemas.exchange.services.x2006.types.EmailAddressType;
import com.microsoft.schemas.exchange.services.x2006.types.MessageType;
import com.microsoft.schemas.exchange.services.x2006.types.SingleRecipientType;
import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailboxItem;

import java.text.DateFormat;

Expand Down
Expand Up @@ -15,10 +15,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.ripariandata.timberwolf.MailStore;
import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailStore;
import com.ripariandata.timberwolf.mail.MailboxItem;
import com.ripariandata.timberwolf.writer.UserFolderSyncStateStorage;

import java.util.Iterator;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import org.slf4j.Logger;

Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.microsoft.schemas.exchange.services.x2006.messages.FindFolderResponseType;
import com.microsoft.schemas.exchange.services.x2006.messages.FindFolderType;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.microsoft.schemas.exchange.services.x2006.messages.ArrayOfResponseMessagesType;
import com.microsoft.schemas.exchange.services.x2006.messages.FindFolderResponseMessageType;
Expand Down
Expand Up @@ -15,10 +15,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.microsoft.schemas.exchange.services.x2006.types.DistinguishedFolderIdNameType;
import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailboxItem;
import java.util.Iterator;
import java.util.Queue;
import org.slf4j.Logger;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.microsoft.schemas.exchange.services.x2006.types.FolderIdType;
import com.microsoft.schemas.exchange.services.x2006.types.NonEmptyArrayOfBaseFolderIdsType;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.microsoft.schemas.exchange.services.x2006.messages.GetItemResponseType;
import com.microsoft.schemas.exchange.services.x2006.messages.GetItemType;
Expand All @@ -24,7 +24,7 @@
import com.microsoft.schemas.exchange.services.x2006.types.DefaultShapeNamesType;
import com.microsoft.schemas.exchange.services.x2006.types.MessageType;
import com.microsoft.schemas.exchange.services.x2006.types.NonEmptyArrayOfBaseItemIdsType;
import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailboxItem;
import java.util.List;
import java.util.Vector;
import org.slf4j.Logger;
Expand Down
Expand Up @@ -15,9 +15,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailboxItem;
import java.util.Iterator;
import java.util.Vector;
import org.slf4j.Logger;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

/**
* Exception that gets thrown when an HTTP request returns
Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import java.net.HttpURLConnection;

Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import java.io.IOException;

Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.microsoft.schemas.exchange.services.x2006.messages.ResponseCodeType;
import org.slf4j.Logger;
Expand Down
Expand Up @@ -15,9 +15,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailboxItem;
import java.util.Iterator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.microsoft.schemas.exchange.services.x2006.messages.ArrayOfResponseMessagesType;
import com.microsoft.schemas.exchange.services.x2006.messages.ResponseCodeType;
Expand Down
Expand Up @@ -15,9 +15,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailboxItem;
import java.util.Iterator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Expand Up @@ -19,4 +19,4 @@
* This package handles managing the connection to an Exchange instance,
* as well as associated functions for mailbox item retrieval.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;
22 changes: 22 additions & 0 deletions src/main/java/com/ripariandata/timberwolf/mail/package-info.java
@@ -0,0 +1,22 @@
/**
* Copyright 2012 Riparian Data
* http://www.ripariandata.com
* contact@ripariandata.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Package provides the interfaces and implementations for accessing mail
* datastores and reading their email.
*/
package com.ripariandata.timberwolf.mail;
Expand Up @@ -17,7 +17,7 @@
*/
package com.ripariandata.timberwolf.writer;

import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailboxItem;

/**
* MailWriter is an object that can take some MailboxItems and write them into
Expand Down
Expand Up @@ -17,7 +17,7 @@
*/
package com.ripariandata.timberwolf.writer.console;

import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailboxItem;
import com.ripariandata.timberwolf.writer.MailWriter;

/**
Expand Down
Expand Up @@ -17,7 +17,7 @@
*/
package com.ripariandata.timberwolf.writer.hbase;

import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailboxItem;
import com.ripariandata.timberwolf.writer.MailWriter;

import java.util.ArrayList;
Expand Down
Expand Up @@ -17,7 +17,7 @@
*/
package com.ripariandata.timberwolf.writer.hive;

import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailboxItem;
import com.ripariandata.timberwolf.writer.MailWriter;

import java.io.IOException;
Expand Down
Expand Up @@ -17,7 +17,7 @@
*/
package com.ripariandata.timberwolf.writer.hive;

import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailboxItem;
import com.ripariandata.timberwolf.writer.MailWriter;

import java.io.IOException;
Expand Down
Expand Up @@ -17,7 +17,7 @@
*/
package com.ripariandata.timberwolf.integrated;

import com.ripariandata.timberwolf.exchange.RequiredEmail;
import com.ripariandata.timberwolf.mail.exchange.RequiredEmail;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
Expand Down
Expand Up @@ -18,12 +18,12 @@
package com.ripariandata.timberwolf.integrated;

import com.microsoft.schemas.exchange.services.x2006.types.DistinguishedFolderIdNameType;
import com.ripariandata.timberwolf.exchange.ExchangePump;
import com.ripariandata.timberwolf.exchange.ExchangePump.FailedToDeleteMessage;
import com.ripariandata.timberwolf.exchange.ExchangePump.FailedToFindMessage;
import com.ripariandata.timberwolf.exchange.ExchangePump.MessageId;
import com.ripariandata.timberwolf.exchange.RequiredEmail;
import com.ripariandata.timberwolf.exchange.RequiredFolder;
import com.ripariandata.timberwolf.mail.exchange.ExchangePump;
import com.ripariandata.timberwolf.mail.exchange.ExchangePump.FailedToDeleteMessage;
import com.ripariandata.timberwolf.mail.exchange.ExchangePump.FailedToFindMessage;
import com.ripariandata.timberwolf.mail.exchange.ExchangePump.MessageId;
import com.ripariandata.timberwolf.mail.exchange.RequiredEmail;
import com.ripariandata.timberwolf.mail.exchange.RequiredFolder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
Expand Down
Expand Up @@ -19,14 +19,14 @@

import com.microsoft.schemas.exchange.services.x2006.types.DistinguishedFolderIdNameType;
import com.ripariandata.timberwolf.Auth;
import com.ripariandata.timberwolf.MailStore;
import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.exchange.ExchangeMailStore;
import com.ripariandata.timberwolf.exchange.ExchangePump;
import com.ripariandata.timberwolf.exchange.ExchangePump.FailedToCreateMessage;
import com.ripariandata.timberwolf.exchange.ExchangePump.FailedToFindMessage;
import com.ripariandata.timberwolf.exchange.ExchangePump.FailedToMoveMessage;
import com.ripariandata.timberwolf.exchange.RequiredFolder;
import com.ripariandata.timberwolf.mail.MailStore;
import com.ripariandata.timberwolf.mail.MailboxItem;
import com.ripariandata.timberwolf.mail.exchange.ExchangeMailStore;
import com.ripariandata.timberwolf.mail.exchange.ExchangePump;
import com.ripariandata.timberwolf.mail.exchange.ExchangePump.FailedToCreateMessage;
import com.ripariandata.timberwolf.mail.exchange.ExchangePump.FailedToFindMessage;
import com.ripariandata.timberwolf.mail.exchange.ExchangePump.FailedToMoveMessage;
import com.ripariandata.timberwolf.mail.exchange.RequiredFolder;
import com.ripariandata.timberwolf.services.LdapFetcher;
import com.ripariandata.timberwolf.services.PrincipalFetchException;
import com.ripariandata.timberwolf.writer.MailWriter;
Expand Down
Expand Up @@ -15,15 +15,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.microsoft.schemas.exchange.services.x2006.types.ArrayOfRecipientsType;
import com.microsoft.schemas.exchange.services.x2006.types.BodyType;
import com.microsoft.schemas.exchange.services.x2006.types.EmailAddressType;
import com.microsoft.schemas.exchange.services.x2006.types.ItemIdType;
import com.microsoft.schemas.exchange.services.x2006.types.MessageType;
import com.microsoft.schemas.exchange.services.x2006.types.SingleRecipientType;
import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailboxItem;

import java.util.Calendar;

Expand Down
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ripariandata.timberwolf.exchange;
package com.ripariandata.timberwolf.mail.exchange;

import com.microsoft.schemas.exchange.services.x2006.messages.ArrayOfResponseMessagesType;
import com.microsoft.schemas.exchange.services.x2006.messages.FindFolderResponseMessageType;
Expand All @@ -27,7 +27,7 @@
import com.microsoft.schemas.exchange.services.x2006.types.FolderIdType;
import com.microsoft.schemas.exchange.services.x2006.types.FolderType;
import com.microsoft.schemas.exchange.services.x2006.types.MessageType;
import com.ripariandata.timberwolf.MailboxItem;
import com.ripariandata.timberwolf.mail.MailboxItem;
import com.ripariandata.timberwolf.writer.UserFolderSyncStateStorage;
import com.ripariandata.timberwolf.writer.console.InMemoryUserFolderSyncStateStorage;
import java.io.IOException;
Expand All @@ -39,7 +39,7 @@
import org.junit.Before;
import org.junit.Test;

import static com.ripariandata.timberwolf.exchange.IsXmlBeansRequest.likeThis;
import static com.ripariandata.timberwolf.mail.exchange.IsXmlBeansRequest.likeThis;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
Expand Down