org.rhq.core.domain.content
Class ResourceChannel

java.lang.Object
  extended by org.rhq.core.domain.content.ResourceChannel
All Implemented Interfaces:
Serializable

public class ResourceChannel
extends Object
implements Serializable

This is the many-to-many entity that correlates a channel with one of its subscribers. It is an explicit relationship mapping entity between Channel and Resource.

See Also:
Serialized Form

Field Summary
static String DELETE_BY_CHANNEL_ID
           
static String DELETE_BY_RESOURCE_ID
           
static String DELETE_BY_RESOURCES
           
 
Constructor Summary
protected ResourceChannel()
           
  ResourceChannel(Resource resource, Channel channel)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getCreatedTime()
          This is the epoch time when this mapping was first created; in other words, when the resource was subscribed to the channel.
 ResourceChannelPK getResourceChannelPK()
           
 int hashCode()
           
 void setResourceChannelPK(ResourceChannelPK pk)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DELETE_BY_RESOURCES

public static final String DELETE_BY_RESOURCES
See Also:
Constant Field Values

DELETE_BY_RESOURCE_ID

public static final String DELETE_BY_RESOURCE_ID
See Also:
Constant Field Values

DELETE_BY_CHANNEL_ID

public static final String DELETE_BY_CHANNEL_ID
See Also:
Constant Field Values
Constructor Detail

ResourceChannel

protected ResourceChannel()

ResourceChannel

public ResourceChannel(Resource resource,
                       Channel channel)
Method Detail

getResourceChannelPK

public ResourceChannelPK getResourceChannelPK()

setResourceChannelPK

public void setResourceChannelPK(ResourceChannelPK pk)

getCreatedTime

public long getCreatedTime()
This is the epoch time when this mapping was first created; in other words, when the resource was subscribed to the channel.

Returns:
the time the resource was subscribed to the channel

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.