Package org.frankframework.filesystem
Class MsalClientAdapter.GraphClient
java.lang.Object
org.frankframework.filesystem.MsalClientAdapter.GraphClient
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
MsalClientAdapter
Silly wrapper to create a clean SDK
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
copyMailMessage
(MailMessage file, MailFolder destinationFolder) void
createMailFolder
(MailFolder mailFolder, String folderName) void
deleteMailFolder
(MailFolder folderToDelete) void
deleteMailMessage
(MailMessage file) void
execute
(org.apache.http.client.methods.HttpRequestBase httpRequestBase) <T> T
getMailFolders
(String email) getMailFolders
(MailFolder folder) getMailMessage
(MailMessage file) getMailMessages
(MailFolder folder) getMailMessages
(MailFolder folder, int limit) moveMailMessage
(MailMessage file, MailFolder destinationFolder)
-
Constructor Details
-
GraphClient
-
-
Method Details
-
execute
public void execute(org.apache.http.client.methods.HttpRequestBase httpRequestBase) throws IOException - Throws:
IOException
-
execute
public <T> T execute(org.apache.http.client.methods.HttpRequestBase httpRequestBase, Class<T> dto) throws IOException - Throws:
IOException
-
getMailFolders
- Throws:
IOException
-
getMailFolders
- Throws:
IOException
-
getMailMessages
- Throws:
IOException
-
getMailMessages
- Throws:
IOException
-
createMailFolder
- Throws:
IOException
-
deleteMailFolder
- Throws:
IOException
-
deleteMailMessage
- Throws:
IOException
-
getMailMessage
- Throws:
IOException
-
moveMailMessage
public MailMessage moveMailMessage(MailMessage file, MailFolder destinationFolder) throws IOException - Throws:
IOException
-
copyMailMessage
public MailMessage copyMailMessage(MailMessage file, MailFolder destinationFolder) throws IOException - Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-