public class Subscription extends Object implements Serializable
Constructor and Description |
---|
Subscription(String path,
Principal principal,
SubscribableEvent event,
boolean cascade)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 subscriptionpublic 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()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA