public class MyProfileRESTServices extends Object
| Constructor and Description |
|---|
MyProfileRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
VoidResponse |
addToMyAssets(String serverName,
String userId,
String assetGUID,
NullRequestBody nullRequestBody)
Add an asset to the identified user's list of favorite assets.
|
AssetListResponse |
getMyAssets(String serverName,
String userId,
int startFrom,
int pageSize)
Return a list of assets that the specified user has added to their favorites list.
|
PersonalProfileResponse |
getMyProfile(String serverName,
String userId)
Return the profile for this user.
|
VoidResponse |
removeFromMyAssets(String serverName,
String userId,
String assetGUID,
NullRequestBody nullRequestBody)
Remove an asset from identified user's list of favorite assets.
|
VoidResponse |
updateMyProfile(String serverName,
String userId,
MyProfileRequestBody requestBody)
Create or update the profile for the requesting user.
|
public PersonalProfileResponse getMyProfile(String serverName, String userId)
serverName - name of the server instances for this requestuserId - userId of the user making the request.public VoidResponse updateMyProfile(String serverName, String userId, MyProfileRequestBody requestBody)
serverName - name of the server instances for this requestuserId - the name of the calling user.requestBody - properties for the new profile.public AssetListResponse getMyAssets(String serverName, String userId, int startFrom, int pageSize)
serverName - name of the server instances for this requestuserId - userId of user making request.startFrom - index of the list ot start from (0 for start)pageSize - maximum number of elements to return.public VoidResponse addToMyAssets(String serverName, String userId, String assetGUID, NullRequestBody nullRequestBody)
serverName - name of the server instances for this requestuserId - userId of user making request.assetGUID - unique identifier of the asset.nullRequestBody - null request bodypublic VoidResponse removeFromMyAssets(String serverName, String userId, String assetGUID, NullRequestBody nullRequestBody)
serverName - name of the server instances for this requestuserId - userId of user making request.assetGUID - unique identifier of the asset.nullRequestBody - null request bodyCopyright © 2018–2020 ODPi. All rights reserved.