|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.serverSide.tracker.SubscriptionsCollection
public class SubscriptionsCollection
Represents serializable subscriptions collection.
| Constructor Summary | |
|---|---|
SubscriptionsCollection()
Constructor. |
|
SubscriptionsCollection(java.lang.String serializedSubscription)
Creates subscriptions collection from the string |
|
| Method Summary | |
|---|---|
java.util.Collection<EventSubscription> |
getSubscriptions()
Returns subscriptions collection |
int |
getTotalNumberOfEvents(EventTracker tracker)
Returns total number of events corresponding to contained subscriptions |
java.lang.String |
serialize()
Serializes this collection of subscriptions to string |
void |
subscribeOnBuildTypeEvent(TrackerEventType event,
java.lang.String buildTypeId)
Adds subscription on build configuration related event for specified build configuration |
void |
subscribeOnEvent(TrackerEventType event)
Adds subscription on an event |
void |
subscribeOnProjectEvent(TrackerEventType event,
java.lang.String projectId)
Adds subscription on project related event for specified project |
void |
subscribeOnUserEvent(TrackerEventType event,
long userId)
Adds subscription on user related event for specified user |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubscriptionsCollection()
public SubscriptionsCollection(@NotNull
java.lang.String serializedSubscription)
throws java.lang.IllegalArgumentException
serializedSubscription - serialized collection of subscriptions
java.lang.IllegalArgumentException - if deserialization failed| Method Detail |
|---|
public void subscribeOnProjectEvent(@NotNull
TrackerEventType event,
@NotNull
java.lang.String projectId)
event - eventprojectId - project id
public void subscribeOnBuildTypeEvent(@NotNull
TrackerEventType event,
@NotNull
java.lang.String buildTypeId)
event - eventbuildTypeId - build configuration id
public void subscribeOnUserEvent(@NotNull
TrackerEventType event,
long userId)
event - eventuserId - id of the user
public void subscribeOnEvent(@NotNull
TrackerEventType event)
event - eventpublic java.lang.String serialize()
public java.util.Collection<EventSubscription> getSubscriptions()
public int getTotalNumberOfEvents(@NotNull
EventTracker tracker)
tracker - event tracker
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||