GraphClient
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.ms.System.IDisposable, java.io.Closeable
public abstract class GraphClient implements System.IDisposable, Closeable
Provides access to MS Exchange Server (Office365) by using REST API.
Methods
Method | Description |
---|---|
close() | |
dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
equals(Object arg0) | |
getClass() | |
getClient(IMultipleServicesTokenProvider tokenProvider) | Initializes a new instance of the GraphClient based class |
getClient(IMultipleServicesTokenProvider tokenProvider, String tenantId) | Initializes a new instance of the GraphClient based class |
getClient(ITokenProvider tokenProvider) | Initializes a new instance of the GraphClient based class |
getClient(ITokenProvider tokenProvider, String tenantId) | Initializes a new instance of the GraphClient based class |
getEndpoint() | Gets or sets Endpoint URL. |
getMultipleServicesTokenProvider() | Gets or sets an object allows to retrieve OAuth access token. |
getProxy() | Gets or sets data to proxy access to Exchange server. |
getResource() | Gets or sets resource type. |
getResourceId() | Gets or sets resource id. |
getTenantId() | Gets or sets tenant identifier |
getTimeout() | Gets or sets the number of milliseconds to wait before the operation times out. |
getTokenProvider() | Gets or sets an object allows to retrieve OAuth access token. |
hashCode() | |
notify() | |
notifyAll() | |
setEndpoint(String value) | Gets or sets Endpoint URL. |
setMultipleServicesTokenProvider(IMultipleServicesTokenProvider value) | Gets or sets an object allows to retrieve OAuth access token. |
setProxy(System.Net.IWebProxy value) | Gets or sets data to proxy access to Exchange server. |
setResource(int value) | Gets or sets resource type. |
setResourceId(String value) | Gets or sets resource id. |
setTenantId(String value) | Gets or sets tenant identifier |
setTimeout(int value) | Gets or sets the number of milliseconds to wait before the operation times out. |
setTokenProvider(ITokenProvider value) | Gets or sets an object allows to retrieve OAuth access token. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
close()
public void close()
dispose()
public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getClient(IMultipleServicesTokenProvider tokenProvider)
public static IGraphClient getClient(IMultipleServicesTokenProvider tokenProvider)
Initializes a new instance of the GraphClient based class
Parameters:
Parameter | Type | Description |
---|---|---|
tokenProvider | IMultipleServicesTokenProvider | Token provider allows to retrieve OAuth access token |
Returns: IGraphClient - Returns IGraphClient object
getClient(IMultipleServicesTokenProvider tokenProvider, String tenantId)
public static IGraphClient getClient(IMultipleServicesTokenProvider tokenProvider, String tenantId)
Initializes a new instance of the GraphClient based class
Parameters:
Parameter | Type | Description |
---|---|---|
tokenProvider | IMultipleServicesTokenProvider | Token provider allows to retrieve OAuth access token |
tenantId | java.lang.String | A tenant is representation of an organization. It’s a dedicated instance of Azure AD that an organization or app developer receives when the organization or app developer, creates a relationship with Microsoft like signing up for Azure, Microsoft Intune, or Microsoft 365. |
Returns: IGraphClient - Returns IGraphClient object
getClient(ITokenProvider tokenProvider)
public static IGraphClient getClient(ITokenProvider tokenProvider)
Initializes a new instance of the GraphClient based class
Parameters:
Parameter | Type | Description |
---|---|---|
tokenProvider | ITokenProvider | Token provider allows to retrieve OAuth access token |
Returns: IGraphClient - Returns IGraphClient object
getClient(ITokenProvider tokenProvider, String tenantId)
public static IGraphClient getClient(ITokenProvider tokenProvider, String tenantId)
Initializes a new instance of the GraphClient based class
Parameters:
Parameter | Type | Description |
---|---|---|
tokenProvider | ITokenProvider | Token provider allows to retrieve OAuth access token |
tenantId | java.lang.String | A tenant is representation of an organization. It’s a dedicated instance of Azure AD that an organization or app developer receives when the organization or app developer, creates a relationship with Microsoft like signing up for Azure, Microsoft Intune, or Microsoft 365. |
Returns: IGraphClient - Returns IGraphClient object
getEndpoint()
public String getEndpoint()
Gets or sets Endpoint URL.
Returns: java.lang.String
getMultipleServicesTokenProvider()
public IMultipleServicesTokenProvider getMultipleServicesTokenProvider()
Gets or sets an object allows to retrieve OAuth access token.
Returns: IMultipleServicesTokenProvider
getProxy()
public System.Net.IWebProxy getProxy()
Gets or sets data to proxy access to Exchange server.
Returns: com.aspose.ms.System.Net.IWebProxy
getResource()
public int getResource()
Gets or sets resource type.
Returns: int
getResourceId()
public String getResourceId()
Gets or sets resource id. For instance for users it may be user principal name (UPN) or user id
Returns: java.lang.String
getTenantId()
public String getTenantId()
Gets or sets tenant identifier
Returns: java.lang.String
getTimeout()
public int getTimeout()
Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).
Returns: int
getTokenProvider()
public ITokenProvider getTokenProvider()
Gets or sets an object allows to retrieve OAuth access token.
Returns: ITokenProvider
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setEndpoint(String value)
public void setEndpoint(String value)
Gets or sets Endpoint URL.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setMultipleServicesTokenProvider(IMultipleServicesTokenProvider value)
public void setMultipleServicesTokenProvider(IMultipleServicesTokenProvider value)
Gets or sets an object allows to retrieve OAuth access token.
Parameters:
Parameter | Type | Description |
---|---|---|
value | IMultipleServicesTokenProvider |
setProxy(System.Net.IWebProxy value)
public void setProxy(System.Net.IWebProxy value)
Gets or sets data to proxy access to Exchange server.
Parameters:
Parameter | Type | Description |
---|---|---|
value | com.aspose.ms.System.Net.IWebProxy |
setResource(int value)
public void setResource(int value)
Gets or sets resource type.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setResourceId(String value)
public void setResourceId(String value)
Gets or sets resource id. For instance for users it may be user principal name (UPN) or user id
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setTenantId(String value)
public void setTenantId(String value)
Gets or sets tenant identifier
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setTimeout(int value)
public void setTimeout(int value)
Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setTokenProvider(ITokenProvider value)
public void setTokenProvider(ITokenProvider value)
Gets or sets an object allows to retrieve OAuth access token.
Parameters:
Parameter | Type | Description |
---|---|---|
value | ITokenProvider |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |