Class AbstractSubscriptionResource<T extends WAPrimaryKey>
- java.lang.Object
-
- org.silverpeas.core.subscription.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
Constructors Modifier Constructor Description protected
AbstractSubscriptionResource(String id, SubscriptionResourceType type, T pk)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getId()
Gets the identifier of the resource aimed by subscriptionString
getInstanceId()
Gets the instance identifier of the component instance that handles the resource in Silverpeas.T
getPK()
Gets the Silverpeas Primary Key of the aimed resourceSubscriptionResourceType
getType()
Gets the type of the resource aimed by the subscriptionint
hashCode()
-
-
-
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 interfaceSubscriptionResource
- Returns:
-
getType
public SubscriptionResourceType getType()
Gets the type of the resource aimed by the subscription- Specified by:
getType
in interfaceSubscriptionResource
- Returns:
-
getInstanceId
public String getInstanceId()
Description copied from interface:SubscriptionResource
Gets the instance identifier of the component instance that handles the resource in Silverpeas.- Specified by:
getInstanceId
in interfaceSubscriptionResource
- Returns:
- the unique identifier of a component instance.
-
getPK
public T getPK()
Gets the Silverpeas Primary Key of the aimed resource- Specified by:
getPK
in interfaceSubscriptionResource
- Returns:
-
-