org.olat.core.util.notifications
Class SubscriptionContext

java.lang.Object
  extended by org.olat.core.util.notifications.SubscriptionContext

public class SubscriptionContext
extends java.lang.Object

Description:

Initial Date: 25.10.2004

Author:
Felix Jost

Constructor Summary
SubscriptionContext(OLATResourceable ores, java.lang.String subidentifier)
          Create a new subscription context.
SubscriptionContext(java.lang.String resName, java.lang.Long resId, java.lang.String subidentifier)
          Create a new subscription context
 
Method Summary
 java.lang.Long getResId()
           
 java.lang.String getResName()
           
 java.lang.String getSubidentifier()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubscriptionContext

public SubscriptionContext(java.lang.String resName,
                           java.lang.Long resId,
                           java.lang.String subidentifier)
Create a new subscription context

Parameters:
resName - not null, unique identifier for this context use something like: OresHelper.calculateTypeName(DropboxController.class);
resId - not null, resource id like OLATResourcable.getResourceId()
subidentifier - not null, when context is from course use CourseNode.getIdent()

SubscriptionContext

public SubscriptionContext(OLATResourceable ores,
                           java.lang.String subidentifier)
Create a new subscription context. Calls the other constructor by calculating the unique name and the resource id out of the OLATResourcable

Parameters:
ores, -
subidentifier - not null, when context is from course use CourseNode.getIdent()
Method Detail

getResId

public java.lang.Long getResId()
Returns:
resId

getResName

public java.lang.String getResName()
Returns:
resName

getSubidentifier

public java.lang.String getSubidentifier()
Returns:
subidentifier

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()