com.vmware.vcloud.sdk.maas
Class Notification

java.lang.Object
  extended by com.vmware.vcloud.sdk.maas.Notification

Deprecated. API 5.1, SDK 5.1

public class Notification
extends Object

Helper class to access the AMQP Notification delivered by vCloud Director using vCloud API.

Since:
API 1.5, SDK 1.5
See Also:
NotificationType

Method Summary
 com.vmware.vcloud.api.rest.schema.EntityLinkType getBlockingTaskLink()
          Deprecated. If the notification is for blocking operation, returns the blocking request link.
 com.vmware.vcloud.api.rest.schema.EntityLinkType getEntityLink()
          Deprecated. Returns the entity link.
 EntityType getEntityLinkType()
          Deprecated. Returns the notification entity link type.
static Notification getNotification(String notificationMessage, Map<String,Object> notificationHeaders)
          Deprecated. Creating the Notification Helper.
 EventType getNotificationEventType()
          Deprecated. Returns the notification event type.
 Map<String,Object> getNotificationHeaders()
          Deprecated. Returns the Notification Headers.
 com.vmware.vcloud.api.rest.schema.EntityLinkType getOrgLink()
          Deprecated. Returns the organization link.
 com.vmware.vcloud.api.rest.schema.extension.NotificationType getResource()
          Deprecated. Returns the actual NotificationType as defined in the schema.
 com.vmware.vcloud.api.rest.schema.EntityLinkType getTaskOwnerLink()
          Deprecated. Returns the taskOwner link.
 EntityType getTaskOwnerLinkType()
          Deprecated. Returns the notification task owner link type.
 com.vmware.vcloud.api.rest.schema.EntityLinkType getUserLink()
          Deprecated. Returns the user link.
 Boolean isBlockingTask()
          Deprecated. Check if this Notification is a Blocking task.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUserLink

public com.vmware.vcloud.api.rest.schema.EntityLinkType getUserLink()
                                                             throws VCloudException
Deprecated. 
Returns the user link. The user link contains the vCloud ID for the user. This can be used in User.getUserById(com.vmware.vcloud.sdk.VcloudClient, String)

Returns:
EntityLinkType
Throws:
VCloudException

getOrgLink

public com.vmware.vcloud.api.rest.schema.EntityLinkType getOrgLink()
                                                            throws VCloudException
Deprecated. 
Returns the organization link. The organization link contains the vCloud ID for the organization. This can be used in Organization.getOrganizationById(com.vmware.vcloud.sdk.VcloudClient, String)

Returns:
EntityLinkType
Throws:
VCloudException

getTaskOwnerLink

public com.vmware.vcloud.api.rest.schema.EntityLinkType getTaskOwnerLink()
                                                                  throws VCloudException
Deprecated. 
Returns the taskOwner link. The taskOwner link contains the vCloud ID of the taskOwner. The task owner can be a vapp, vapptemplate, user etc. Use the getTaskOwnerLinkType() in identifying the type of task owner link entity.

Returns:
EntityLinkType
Throws:
VCloudException

getEntityLink

public com.vmware.vcloud.api.rest.schema.EntityLinkType getEntityLink()
                                                               throws VCloudException
Deprecated. 
Returns the entity link. The entity link contains the vCloud ID of the vcloud entity. The entity can be a vapp, vapptemplate, user, organization etc. Use the getEntityLinkType() in identifying the type of entity.

Returns:
EntityLinkType
Throws:
VCloudException
See Also:
getEntityLinkType()

getNotification

public static Notification getNotification(String notificationMessage,
                                           Map<String,Object> notificationHeaders)
Deprecated. 
Creating the Notification Helper.

Parameters:
notificationMessage - - The payload/xml notification message from the AMQP message String
notificationHeaders - - notification headers received along with the notification payload/xml message Map<String, Object >
Returns:
Notification

getResource

public com.vmware.vcloud.api.rest.schema.extension.NotificationType getResource()
Deprecated. 
Returns the actual NotificationType as defined in the schema.

Returns:
NotificationType

getNotificationHeaders

public Map<String,Object> getNotificationHeaders()
                                          throws VCloudException
Deprecated. 
Returns the Notification Headers.

Returns:
Map<String, Object>
Throws:
VCloudException

isBlockingTask

public Boolean isBlockingTask()
                       throws VCloudException
Deprecated. 
Check if this Notification is a Blocking task.

Returns:
Boolean
Throws:
VCloudException

getBlockingTaskLink

public com.vmware.vcloud.api.rest.schema.EntityLinkType getBlockingTaskLink()
                                                                     throws VCloudException
Deprecated. 
If the notification is for blocking operation, returns the blocking request link. This blocking task link contains the vcloud id of the blockingTask. This id can be used in the BlockingTask.getBlockingTaskById(com.vmware.vcloud.sdk.VcloudClient, String)

Returns:
EntityLinkType
Throws:
VCloudException

getNotificationEventType

public EventType getNotificationEventType()
                                   throws VCloudException
Deprecated. 
Returns the notification event type.

Returns:
EventType
Throws:
VCloudException

getEntityLinkType

public EntityType getEntityLinkType()
                             throws VCloudException
Deprecated. 
Returns the notification entity link type.

Returns:
EntityType
Throws:
VCloudException
See Also:
getEntityLink()

getTaskOwnerLinkType

public EntityType getTaskOwnerLinkType()
                                throws VCloudException
Deprecated. 
Returns the notification task owner link type.

Returns:
EntityType
Throws:
VCloudException
See Also:
getTaskOwnerLink()


Copyright © 2016. All Rights Reserved.