|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sas.hls.messaging.subscription.Subscription
public class Subscription
The client representation of a subscription
Constructor Summary | |
---|---|
Subscription(String path,
Principal principal,
SubscribableEvent event,
boolean cascade)
Constructor |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Indicate whether some other object is "equal to" this one. |
String |
getPath()
Get the path of the object for the subscription |
Principal |
getPrincipal()
Get the principal for the subscription |
SubscribableEvent |
getSubscriptionEvent()
Get the event subscribing to |
int |
hashCode()
Return a hash code value for the object. |
boolean |
isCascade()
Gets whether the subscription cascades |
void |
setCascade(boolean cascade)
Sets whether the subscription will cascade |
void |
setPath(String path)
Set the path of the object for the subscription |
void |
setPrincipal(Principal principal)
Set the principal for the subscription |
void |
setSubscriptionEvent(SubscribableEvent event)
Set the event subscribing to |
String |
toString()
Return a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Subscription(String path, Principal principal, SubscribableEvent event, boolean cascade)
path
- The path of the object to which is being subscribedprincipal
- The principal who is being subscribedevent
- The subscribable eventcascade
- Whether child items should be included in the subscriptionMethod Detail |
---|
public String getPath()
public void setPath(String path)
path
- The path of the object for the subscriptionpublic Principal getPrincipal()
public void setPrincipal(Principal principal)
principal
- the principal for this subscriptionpublic SubscribableEvent getSubscriptionEvent()
public void setSubscriptionEvent(SubscribableEvent event)
event
- the event subscribing topublic boolean isCascade()
public void setCascade(boolean cascade)
cascade
- whether the subscription will cascadepublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |