com.calfater.mailcarbon.impl.manager.folder
Interface IFolderManager

All Known Implementing Classes:
FolderManager

public interface IFolderManager

The Interface IFolderManager.

Author:
Sebastien Borie

Method Summary
 boolean canProcess(javax.mail.Folder folder)
          A Folder can be processed if it has not been already fully copied and it doesn't failed to copy too many times.
 void clear()
          Clear the list of already copied folders
 void done(javax.mail.Folder folder)
          Informs the FolderManager that the folder is fully copied.
 void failed(javax.mail.Folder folder)
          Tells the FolderManager that an error occurred while copying/creating the folder.
 java.util.List<java.lang.String> getFolders()
          Gets the folders.
 int getMaxAttempts()
          Gets the max attempts.
 void reset(javax.mail.Folder folder)
          Reset.
 void setFolders(java.util.List<java.lang.String> folderList)
          Sets the folders.
 

Method Detail

done

void done(javax.mail.Folder folder)
Informs the FolderManager that the folder is fully copied.

Parameters:
folder - the folder

failed

void failed(javax.mail.Folder folder)
Tells the FolderManager that an error occurred while copying/creating the folder.

Parameters:
folder - the folder

canProcess

boolean canProcess(javax.mail.Folder folder)
A Folder can be processed if it has not been already fully copied and it doesn't failed to copy too many times.

Parameters:
folder - the folder
Returns:
true if the folder can be processed.

reset

void reset(javax.mail.Folder folder)
Reset.

Parameters:
folder - the folder

getFolders

java.util.List<java.lang.String> getFolders()
Gets the folders.

Returns:
the folders

setFolders

void setFolders(java.util.List<java.lang.String> folderList)
Sets the folders.

Parameters:
folderList - the new folders

getMaxAttempts

int getMaxAttempts()
Gets the max attempts.

Returns:
the max attempts

clear

void clear()
Clear the list of already copied folders



Copyright © 2010. All Rights Reserved.