ReferenceAttachmentOptions
Inheritance: java.lang.Object
public class ReferenceAttachmentOptions
Represents configuration options for adding a reference attachment to a MAPI message.
Constructors
Constructor | Description |
---|---|
ReferenceAttachmentOptions(String sharedLink, String url, String providerName) | Initializes a new instance of the ReferenceAttachmentOptions class with the specified shared link, URL, and provider name. |
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getClass() | |
getOriginalPermissionType() | Gets or sets the original permission type for the reference attachment. |
getPermissionType() | Gets or sets the permission type for the reference attachment. |
getPreviewUrl() | Gets or sets the preview URL of the reference attachment. |
getProviderEndpointUrl() | Gets or sets the provider endpoint URL. |
getProviderName() | Gets or sets the name of the provider for the reference attachment. |
getSharedLink() | Gets or sets the shared link of the reference attachment. |
getThumbnailUrl() | Gets or sets the thumbnail URL of the reference attachment. |
getUrl() | Gets or sets the direct URL for accessing the reference attachment. |
hashCode() | |
isFolder() | Gets or sets a value indicating whether the reference attachment is a folder. |
notify() | |
notifyAll() | |
setFolder(boolean value) | Gets or sets a value indicating whether the reference attachment is a folder. |
setOriginalPermissionType(int value) | Gets or sets the original permission type for the reference attachment. |
setPermissionType(int value) | Gets or sets the permission type for the reference attachment. |
setPreviewUrl(String value) | Gets or sets the preview URL of the reference attachment. |
setProviderEndpointUrl(String value) | Gets or sets the provider endpoint URL. |
setProviderName(String value) | Gets or sets the name of the provider for the reference attachment. |
setSharedLink(String value) | Gets or sets the shared link of the reference attachment. |
setThumbnailUrl(String value) | Gets or sets the thumbnail URL of the reference attachment. |
setUrl(String value) | Gets or sets the direct URL for accessing the reference attachment. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
ReferenceAttachmentOptions(String sharedLink, String url, String providerName)
public ReferenceAttachmentOptions(String sharedLink, String url, String providerName)
Initializes a new instance of the ReferenceAttachmentOptions class with the specified shared link, URL, and provider name.
Parameters:
Parameter | Type | Description |
---|---|---|
sharedLink | java.lang.String | The shared link of the reference attachment. |
url | java.lang.String | The direct URL for accessing the reference attachment. |
providerName | java.lang.String | The name of the provider for the reference attachment. |
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
getOriginalPermissionType()
public final int getOriginalPermissionType()
Gets or sets the original permission type for the reference attachment. Used to specify the original permission level before any modifications. The default value is None .
Returns: int
getPermissionType()
public final int getPermissionType()
Gets or sets the permission type for the reference attachment. Indicates the level of access granted. The default value is AnyoneCanEdit .
Returns: int
getPreviewUrl()
public final String getPreviewUrl()
Gets or sets the preview URL of the reference attachment. This URL can be used to generate a preview of the resource, if supported by the provider. The default value is Empty .
Returns: java.lang.String
getProviderEndpointUrl()
public final String getProviderEndpointUrl()
Gets or sets the provider endpoint URL. Typically used for specifying the base URL of the cloud provider API. The default value is Empty .
Returns: java.lang.String
getProviderName()
public final String getProviderName()
Gets or sets the name of the provider for the reference attachment. Examples include “GoogleDrive”, “OneDrive”, etc.
Returns: java.lang.String
getSharedLink()
public final String getSharedLink()
Gets or sets the shared link of the reference attachment. This is the URL to the shared resource, such as a file on a cloud storage provider.
Returns: java.lang.String
getThumbnailUrl()
public final String getThumbnailUrl()
Gets or sets the thumbnail URL of the reference attachment. The URL points to a thumbnail image of the resource for visual representation. The default value is Empty .
Returns: java.lang.String
getUrl()
public final String getUrl()
Gets or sets the direct URL for accessing the reference attachment. This may point to the specific resource within the provider’s interface.
Returns: java.lang.String
hashCode()
public native int hashCode()
Returns: int
isFolder()
public final boolean isFolder()
Gets or sets a value indicating whether the reference attachment is a folder. The default value is false .
Returns: boolean
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setFolder(boolean value)
public final void setFolder(boolean value)
Gets or sets a value indicating whether the reference attachment is a folder. The default value is false .
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setOriginalPermissionType(int value)
public final void setOriginalPermissionType(int value)
Gets or sets the original permission type for the reference attachment. Used to specify the original permission level before any modifications. The default value is None .
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setPermissionType(int value)
public final void setPermissionType(int value)
Gets or sets the permission type for the reference attachment. Indicates the level of access granted. The default value is AnyoneCanEdit .
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setPreviewUrl(String value)
public final void setPreviewUrl(String value)
Gets or sets the preview URL of the reference attachment. This URL can be used to generate a preview of the resource, if supported by the provider. The default value is Empty .
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setProviderEndpointUrl(String value)
public final void setProviderEndpointUrl(String value)
Gets or sets the provider endpoint URL. Typically used for specifying the base URL of the cloud provider API. The default value is Empty .
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setProviderName(String value)
public final void setProviderName(String value)
Gets or sets the name of the provider for the reference attachment. Examples include “GoogleDrive”, “OneDrive”, etc.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setSharedLink(String value)
public final void setSharedLink(String value)
Gets or sets the shared link of the reference attachment. This is the URL to the shared resource, such as a file on a cloud storage provider.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setThumbnailUrl(String value)
public final void setThumbnailUrl(String value)
Gets or sets the thumbnail URL of the reference attachment. The URL points to a thumbnail image of the resource for visual representation. The default value is Empty .
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setUrl(String value)
public final void setUrl(String value)
Gets or sets the direct URL for accessing the reference attachment. This may point to the specific resource within the provider’s interface.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
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 |