@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2022-09-29T14:57:31.808Z") public class DefaultSubscription extends AbstractInstanceResource<Subscription> implements Subscription
propertiesreadLock, writeLock| Constructor and Description |
|---|
DefaultSubscription(InternalDataStore dataStore) |
DefaultSubscription(InternalDataStore dataStore,
Map<String,Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getChannels() |
Map<String,Object> |
getLinks() |
NotificationType |
getNotificationType() |
Map<String,Property> |
getPropertyDescriptors() |
Class<? extends Resource> |
getResourceClass()
Returns the class this resource represents.
|
Subscription |
getRoleSubscriptionByNotificationType(String roleTypeOrRoleId,
String notificationType)
Get subscriptions of a Custom Role with a specific notification type
When roleType Get subscriptions of a Role with a specific notification type.
|
SubscriptionStatus |
getStatus() |
Subscription |
getUserSubscriptionByNotificationType(String userId,
String notificationType)
Get the subscription of a User with a specific notification type
Get the subscriptions of a User with a specific notification type.
|
SubscriptionList |
listRoleSubscriptions(String roleTypeOrRoleId)
List all subscriptions of a Custom Role
When roleType List all subscriptions of a Role.
|
SubscriptionList |
listUserSubscriptions(String userId)
List subscriptions of a User
List subscriptions of a User.
|
Subscription |
setChannels(List<String> channels) |
Subscription |
setNotificationType(NotificationType notificationType) |
Subscription |
setStatus(SubscriptionStatus status) |
void |
subscribeRoleSubscriptionByNotificationType(String roleTypeOrRoleId,
String notificationType)
Subscribe a Custom Role to a specific notification type
When roleType Subscribes a Role to a specific notification type.
|
void |
subscribeUserSubscriptionByNotificationType(String userId,
String notificationType)
Subscribe to a specific notification type
Subscribes a User to a specific notification type.
|
void |
unsubscribeRoleSubscriptionByNotificationType(String roleTypeOrRoleId,
String notificationType)
Unsubscribe a Custom Role from a specific notification type
When roleType Unsubscribes a Role from a specific notification type.
|
void |
unsubscribeUserSubscriptionByNotificationType(String userId,
String notificationType)
Unsubscribe from a specific notification type
Unsubscribes a User from a specific notification type.
|
delete, saveclear, containsKey, containsValue, createPropertyDescriptorMap, createPropertyDescriptorMap, entrySet, equals, get, getDataStore, getDeletedPropertyNames, getInternalProperties, getParamsFromHref, getProperty, getPropertyNames, getResourceHref, getResourceListProperty, getResourceProperty, getUpdatedPropertyNames, hashCode, hasProperty, isDirty, isEmpty, isPrintableProperty, keySet, materialize, put, putAll, remove, setInternalProperties, setProperty, setProperty, setResourceHref, size, toString, valuesgetBoolean, getBoolean, getBooleanProperty, getCharArray, getDateProperty, getDoubleProperty, getDoubleProperty, getEnumListProperty, getEnumProperty, getEnumProperty, getInt, getInteger, getIntegerList, getIntProperty, getIntProperty, getListProperty, getListProperty, getMap, getMapProperty, getNonEmptyMap, getNullableBoolean, getNullableBooleanProperty, getNumber, getNumberList, getString, getString, getStringList, getStringProperty, setProperty, setPropertyclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetResourceHref, setResourceHrefgetBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringListclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic DefaultSubscription(InternalDataStore dataStore)
public DefaultSubscription(InternalDataStore dataStore, Map<String,Object> properties)
public Map<String,Property> getPropertyDescriptors()
getPropertyDescriptors in class AbstractResourcepublic Class<? extends Resource> getResourceClass()
AbstractInstanceResourceFoo, in this case this method may return Foo.class.
(Defaults to getClass().)getResourceClass in class AbstractInstanceResource<Subscription>public Map<String,Object> getLinks()
getLinks in interface Subscriptionpublic List<String> getChannels()
getChannels in interface Subscriptionpublic Subscription setChannels(List<String> channels)
setChannels in interface Subscriptionpublic NotificationType getNotificationType()
getNotificationType in interface Subscriptionpublic Subscription setNotificationType(NotificationType notificationType)
setNotificationType in interface Subscriptionpublic SubscriptionStatus getStatus()
getStatus in interface Subscriptionpublic Subscription setStatus(SubscriptionStatus status)
setStatus in interface Subscription@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2022-09-29T14:57:31.808Z", comments="GET - /api/v1/users/{userId}/subscriptions/{notificationType}") public Subscription getUserSubscriptionByNotificationType(String userId, String notificationType)
getUserSubscriptionByNotificationType in interface SubscriptionuserId - (required)notificationType - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2022-09-29T14:57:31.808Z", comments="POST - /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/subscribe") public void subscribeRoleSubscriptionByNotificationType(String roleTypeOrRoleId, String notificationType)
subscribeRoleSubscriptionByNotificationType in interface SubscriptionroleTypeOrRoleId - (required)notificationType - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2022-09-29T14:57:31.808Z", comments="POST - /api/v1/users/{userId}/subscriptions/{notificationType}/subscribe") public void subscribeUserSubscriptionByNotificationType(String userId, String notificationType)
subscribeUserSubscriptionByNotificationType in interface SubscriptionuserId - (required)notificationType - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2022-09-29T14:57:31.808Z", comments="GET - /api/v1/roles/{roleTypeOrRoleId}/subscriptions") public SubscriptionList listRoleSubscriptions(String roleTypeOrRoleId)
listRoleSubscriptions in interface SubscriptionroleTypeOrRoleId - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2022-09-29T14:57:31.808Z", comments="POST - /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/unsubscribe") public void unsubscribeRoleSubscriptionByNotificationType(String roleTypeOrRoleId, String notificationType)
unsubscribeRoleSubscriptionByNotificationType in interface SubscriptionroleTypeOrRoleId - (required)notificationType - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2022-09-29T14:57:31.808Z", comments="GET - /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}") public Subscription getRoleSubscriptionByNotificationType(String roleTypeOrRoleId, String notificationType)
getRoleSubscriptionByNotificationType in interface SubscriptionroleTypeOrRoleId - (required)notificationType - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2022-09-29T14:57:31.808Z", comments="POST - /api/v1/users/{userId}/subscriptions/{notificationType}/unsubscribe") public void unsubscribeUserSubscriptionByNotificationType(String userId, String notificationType)
unsubscribeUserSubscriptionByNotificationType in interface SubscriptionuserId - (required)notificationType - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2022-09-29T14:57:31.808Z", comments="GET - /api/v1/users/{userId}/subscriptions") public SubscriptionList listUserSubscriptions(String userId)
listUserSubscriptions in interface SubscriptionuserId - (required)Copyright © 2017–2022 Okta. All rights reserved.