@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00") public class DefaultSubscription extends AbstractInstanceResource<Subscription> implements Subscription
properties
readLock, 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, save
clear, 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, values
getBoolean, 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, setProperty
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
getResourceHref, setResourceHref
getBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringList
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public DefaultSubscription(InternalDataStore dataStore)
public DefaultSubscription(InternalDataStore dataStore, Map<String,Object> properties)
public Map<String,Property> getPropertyDescriptors()
getPropertyDescriptors
in class AbstractResource
public Class<? extends Resource> getResourceClass()
AbstractInstanceResource
Foo
, 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 Subscription
public List<String> getChannels()
getChannels
in interface Subscription
public Subscription setChannels(List<String> channels)
setChannels
in interface Subscription
public NotificationType getNotificationType()
getNotificationType
in interface Subscription
public Subscription setNotificationType(NotificationType notificationType)
setNotificationType
in interface Subscription
public SubscriptionStatus getStatus()
getStatus
in interface Subscription
public Subscription setStatus(SubscriptionStatus status)
setStatus
in interface Subscription
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/users/{userId}/subscriptions/{notificationType}") public Subscription getUserSubscriptionByNotificationType(String userId, String notificationType)
getUserSubscriptionByNotificationType
in interface Subscription
userId
- (required)notificationType
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/subscribe") public void subscribeRoleSubscriptionByNotificationType(String roleTypeOrRoleId, String notificationType)
subscribeRoleSubscriptionByNotificationType
in interface Subscription
roleTypeOrRoleId
- (required)notificationType
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/users/{userId}/subscriptions/{notificationType}/subscribe") public void subscribeUserSubscriptionByNotificationType(String userId, String notificationType)
subscribeUserSubscriptionByNotificationType
in interface Subscription
userId
- (required)notificationType
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/roles/{roleTypeOrRoleId}/subscriptions") public SubscriptionList listRoleSubscriptions(String roleTypeOrRoleId)
listRoleSubscriptions
in interface Subscription
roleTypeOrRoleId
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/unsubscribe") public void unsubscribeRoleSubscriptionByNotificationType(String roleTypeOrRoleId, String notificationType)
unsubscribeRoleSubscriptionByNotificationType
in interface Subscription
roleTypeOrRoleId
- (required)notificationType
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}") public Subscription getRoleSubscriptionByNotificationType(String roleTypeOrRoleId, String notificationType)
getRoleSubscriptionByNotificationType
in interface Subscription
roleTypeOrRoleId
- (required)notificationType
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/users/{userId}/subscriptions/{notificationType}/unsubscribe") public void unsubscribeUserSubscriptionByNotificationType(String userId, String notificationType)
unsubscribeUserSubscriptionByNotificationType
in interface Subscription
userId
- (required)notificationType
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/users/{userId}/subscriptions") public SubscriptionList listUserSubscriptions(String userId)
listUserSubscriptions
in interface Subscription
userId
- (required)Copyright © 2017–2023 Okta. All rights reserved.