com.silverpeas.subscribe.service
Class AbstractSubscriptionResource<T extends WAPrimaryKey>

java.lang.Object
  extended by com.silverpeas.subscribe.service.AbstractSubscriptionResource<T>
All Implemented Interfaces:
SubscriptionResource
Direct Known Subclasses:
ComponentSubscriptionResource, NodeSubscriptionResource, PKSubscriptionResource

public abstract class AbstractSubscriptionResource<T extends WAPrimaryKey>
extends Object
implements SubscriptionResource

User: Yohann Chastagnier Date: 20/02/13


Constructor Summary
protected AbstractSubscriptionResource(String id, SubscriptionResourceType type, T pk)
          Default constructor.
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
          Gets the identifier of the resource aimed by subscription
 String getInstanceId()
          Gets the instance identifier of component
 T getPK()
          Gets the Silverpeas Primary Key of the aimed resource
 SubscriptionResourceType getType()
          Gets the type of the resource aimed by the subscription
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSubscriptionResource

protected AbstractSubscriptionResource(String id,
                                       SubscriptionResourceType type,
                                       T pk)
Default constructor.

Parameters:
id -
type -
pk -
Method Detail

getId

public String getId()
Gets the identifier of the resource aimed by subscription

Specified by:
getId in interface SubscriptionResource
Returns:

getType

public SubscriptionResourceType getType()
Gets the type of the resource aimed by the subscription

Specified by:
getType in interface SubscriptionResource
Returns:

getInstanceId

public String getInstanceId()
Description copied from interface: SubscriptionResource
Gets the instance identifier of component

Specified by:
getInstanceId in interface SubscriptionResource
Returns:

getPK

public T getPK()
Gets the Silverpeas Primary Key of the aimed resource

Specified by:
getPK in interface SubscriptionResource
Returns:

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2016 Silverpeas. All Rights Reserved.