Package org.cyclos.impl.utils
Class PushNotificationEventContext<T>
- java.lang.Object
-
- org.cyclos.impl.utils.PushNotificationEventContext<T>
-
- All Implemented Interfaces:
Serializable
public class PushNotificationEventContext<T> extends Object implements Serializable
The context for a push notification event. It will be matched against subscriptions to deliver the event.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PushNotificationEventContext()
-
Method Summary
-
-
-
Method Detail
-
accountStatus
public static PushNotificationEventContext<AccountWithStatusVO> accountStatus(Long accountId)
Creates an account status change event
-
deviceConfirmationFeedback
public static PushNotificationEventContext<DeviceConfirmationFeedbackPushNotificationData> deviceConfirmationFeedback(Long userId, String deviceConfirmationId)
Creates a context for a device confirmation feedback
-
forEvent
public static <T> PushNotificationEventContext<T> forEvent(PushNotificationEvent<T> event)
Creates a context for a generic event to an user
-
identityProviderCallback
public static PushNotificationEventContext<IdentityProviderCallbackResult> identityProviderCallback(Long userId, String requestId)
Creates a context for an identity provider callback
-
loggedOut
public static PushNotificationEventContext<Void> loggedOut(String sessionToken)
Creates a context for a logout event of a given session
-
permissionsChanged
public static PushNotificationEventContext<Void> permissionsChanged(String sessionToken)
Creates a context for an permissions change
-
ticket
public static PushNotificationEventContext<TicketVO> ticket(Long ownerId, String ticketNumber)
Creates a context for a ticket status change
-
user
public static <T> PushNotificationEventContext<T> user(PushNotificationEventType<T> type, Long userId)
Creates a context for a generic event to an user
-
getAccountId
public Long getAccountId()
-
getDeviceConfirmationId
public String getDeviceConfirmationId()
-
getIdentityProviderRequestId
public String getIdentityProviderRequestId()
-
getSessionToken
public String getSessionToken()
-
getTicketNumber
public String getTicketNumber()
-
getType
public PushNotificationEventType<T> getType()
-
getUserId
public Long getUserId()
-
newEvent
public PushNotificationEvent<T> newEvent(T data)
-
-