Package com.okta.sdk.resource.api
Class UserLinkedObjectApi
java.lang.Object
com.okta.sdk.resource.api.UserLinkedObjectApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]",
comments="Generator version: 7.15.0")
public class UserLinkedObjectApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassignLinkedObjectValueForPrimary(String userIdOrLogin, String primaryRelationshipName, String primaryUserId) Assign a linked object value for primary Assigns the first user as the `associated` and the second user as the `primary` for the specified relationship.voidassignLinkedObjectValueForPrimary(String userIdOrLogin, String primaryRelationshipName, String primaryUserId, Map<String, String> additionalHeaders) Assign a linked object value for primary Assigns the first user as the `associated` and the second user as the `primary` for the specified relationship.voiddeleteLinkedObjectForUser(String userIdOrLogin, String relationshipName) Delete a linked object value Deletes any existing relationship between the `associated` and `primary` user.voiddeleteLinkedObjectForUser(String userIdOrLogin, String relationshipName, Map<String, String> additionalHeaders) Delete a linked object value Deletes any existing relationship between the `associated` and `primary` user.protected static com.fasterxml.jackson.databind.ObjectMapperlistLinkedObjectsForUser(String userIdOrLogin, String relationshipName) List the primary or all of the associated linked object values Lists either the `self` link for the primary user or all associated users in the relationship specified by `relationshipName`.listLinkedObjectsForUser(String userIdOrLogin, String relationshipName, Map<String, String> additionalHeaders) List the primary or all of the associated linked object values Lists either the `self` link for the primary user or all associated users in the relationship specified by `relationshipName`.listLinkedObjectsForUserPaged(String userIdOrLogin, String relationshipName) List the primary or all of the associated linked object values (Paginated) Lists either the `self` link for the primary user or all associated users in the relationship specified by `relationshipName`.listLinkedObjectsForUserPaged(String userIdOrLogin, String relationshipName, Map<String, String> additionalHeaders) List the primary or all of the associated linked object values (Paginated with additional headers) Lists either the `self` link for the primary user or all associated users in the relationship specified by `relationshipName`.voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
UserLinkedObjectApi
public UserLinkedObjectApi() -
UserLinkedObjectApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
assignLinkedObjectValueForPrimary
public void assignLinkedObjectValueForPrimary(String userIdOrLogin, String primaryRelationshipName, String primaryUserId) throws ApiException Assign a linked object value for primary Assigns the first user as the `associated` and the second user as the `primary` for the specified relationship. If the first user is already associated with a different `primary` for this relationship, the previous link is removed. A linked object relationship can specify only one primary user for an associated user.- Parameters:
userIdOrLogin- If for the `self` link, this is the ID of the user for whom you want to get the primary user ID. If for the `associated` relation, this is the user ID or login value of the user assigned the associated relationship. This can be `me` to represent the current session user. (required)primaryRelationshipName- Name of the `primary` relationship being assigned (required)primaryUserId- User ID to be assigned to the `primary` relationship for the `associated` user (required)- Throws:
ApiException- if fails to make API call
-
assignLinkedObjectValueForPrimary
public void assignLinkedObjectValueForPrimary(String userIdOrLogin, String primaryRelationshipName, String primaryUserId, Map<String, String> additionalHeaders) throws ApiExceptionAssign a linked object value for primary Assigns the first user as the `associated` and the second user as the `primary` for the specified relationship. If the first user is already associated with a different `primary` for this relationship, the previous link is removed. A linked object relationship can specify only one primary user for an associated user.- Parameters:
userIdOrLogin- If for the `self` link, this is the ID of the user for whom you want to get the primary user ID. If for the `associated` relation, this is the user ID or login value of the user assigned the associated relationship. This can be `me` to represent the current session user. (required)primaryRelationshipName- Name of the `primary` relationship being assigned (required)primaryUserId- User ID to be assigned to the `primary` relationship for the `associated` user (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
deleteLinkedObjectForUser
public void deleteLinkedObjectForUser(String userIdOrLogin, String relationshipName) throws ApiException Delete a linked object value Deletes any existing relationship between the `associated` and `primary` user. For the `associated` user, this is specified by the ID. The `primary` name specifies the relationship. The operation is successful if the relationship is deleted. The operation is also successful if the specified user isn't in the `associated` relationship for any instance of the specified `primary` and thus, no relationship is found.- Parameters:
userIdOrLogin- If for the `self` link, this is the ID of the user for whom you want to get the primary user ID. If for the `associated` relation, this is the user ID or login value of the user assigned the associated relationship. This can be `me` to represent the current session user. (required)relationshipName- Name of the `primary` or `associated` relationship being queried (required)- Throws:
ApiException- if fails to make API call
-
deleteLinkedObjectForUser
public void deleteLinkedObjectForUser(String userIdOrLogin, String relationshipName, Map<String, String> additionalHeaders) throws ApiExceptionDelete a linked object value Deletes any existing relationship between the `associated` and `primary` user. For the `associated` user, this is specified by the ID. The `primary` name specifies the relationship. The operation is successful if the relationship is deleted. The operation is also successful if the specified user isn't in the `associated` relationship for any instance of the specified `primary` and thus, no relationship is found.- Parameters:
userIdOrLogin- If for the `self` link, this is the ID of the user for whom you want to get the primary user ID. If for the `associated` relation, this is the user ID or login value of the user assigned the associated relationship. This can be `me` to represent the current session user. (required)relationshipName- Name of the `primary` or `associated` relationship being queried (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
listLinkedObjectsForUser
public List<ResponseLinks> listLinkedObjectsForUser(String userIdOrLogin, String relationshipName) throws ApiException List the primary or all of the associated linked object values Lists either the `self` link for the primary user or all associated users in the relationship specified by `relationshipName`. If the specified user isn't associated in any relationship, an empty array is returned. Use `me` instead of `id` to specify the current session user.- Parameters:
userIdOrLogin- If for the `self` link, this is the ID of the user for whom you want to get the primary user ID. If for the `associated` relation, this is the user ID or login value of the user assigned the associated relationship. This can be `me` to represent the current session user. (required)relationshipName- Name of the `primary` or `associated` relationship being queried (required)- Returns:
- List<ResponseLinks>
- Throws:
ApiException- if fails to make API call
-
listLinkedObjectsForUser
public List<ResponseLinks> listLinkedObjectsForUser(String userIdOrLogin, String relationshipName, Map<String, String> additionalHeaders) throws ApiExceptionList the primary or all of the associated linked object values Lists either the `self` link for the primary user or all associated users in the relationship specified by `relationshipName`. If the specified user isn't associated in any relationship, an empty array is returned. Use `me` instead of `id` to specify the current session user.- Parameters:
userIdOrLogin- If for the `self` link, this is the ID of the user for whom you want to get the primary user ID. If for the `associated` relation, this is the user ID or login value of the user assigned the associated relationship. This can be `me` to represent the current session user. (required)relationshipName- Name of the `primary` or `associated` relationship being queried (required)additionalHeaders- additionalHeaders for this call- Returns:
- List<ResponseLinks>
- Throws:
ApiException- if fails to make API call
-
listLinkedObjectsForUserPaged
public Iterable<ResponseLinks> listLinkedObjectsForUserPaged(String userIdOrLogin, String relationshipName) List the primary or all of the associated linked object values (Paginated) Lists either the `self` link for the primary user or all associated users in the relationship specified by `relationshipName`. If the specified user isn't associated in any relationship, an empty array is returned. Use `me` instead of `id` to specify the current session user. This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.- Parameters:
userIdOrLogin- If for the `self` link, this is the ID of the user for whom you want to get the primary user ID. If for the `associated` relation, this is the user ID or login value of the user assigned the associated relationship. This can be `me` to represent the current session user. (required)relationshipName- Name of the `primary` or `associated` relationship being queried (required)- Returns:
- Iterable<ResponseLinks> lazy iterable over all pages
-
listLinkedObjectsForUserPaged
public Iterable<ResponseLinks> listLinkedObjectsForUserPaged(String userIdOrLogin, String relationshipName, Map<String, String> additionalHeaders) List the primary or all of the associated linked object values (Paginated with additional headers) Lists either the `self` link for the primary user or all associated users in the relationship specified by `relationshipName`. If the specified user isn't associated in any relationship, an empty array is returned. Use `me` instead of `id` to specify the current session user. This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
userIdOrLogin- If for the `self` link, this is the ID of the user for whom you want to get the primary user ID. If for the `associated` relation, this is the user ID or login value of the user assigned the associated relationship. This can be `me` to represent the current session user. (required)relationshipName- Name of the `primary` or `associated` relationship being queried (required)additionalHeaders- additional headers for this call- Returns:
- Iterable<ResponseLinks> lazy iterable over all pages
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-