com.microsoft.store.partnercenter.customerusers.ICustomerUserCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of partnercenter Show documentation
Show all versions of partnercenter Show documentation
SDK for accessing Microsoft Partner Center API.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See the LICENSE file in the project root for full license information.
package com.microsoft.store.partnercenter.customerusers;
import com.microsoft.store.partnercenter.IPartnerComponentString;
import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations;
import com.microsoft.store.partnercenter.genericoperations.IEntityCreateOperations;
import com.microsoft.store.partnercenter.models.SeekBasedResourceCollection;
import com.microsoft.store.partnercenter.models.query.IQuery;
import com.microsoft.store.partnercenter.models.users.CustomerUser;
/**
* Represents the behavior of the customers users
*/
public interface ICustomerUserCollection
extends IPartnerComponentString, IEntityCreateOperations,
IEntireEntityCollectionRetrievalOperations>
{
/**
* Gets a single customer user operations.
*
* @param userId The user identifier.
* @return The customer user operations for the specified user.
*/
ICustomerUser byId(String userId);
/**
* Queries users associated to the customer.
* - Count queries are not supported by this operation.
* - You can set page size, filter and sort option.
* - You can navigate to other pages by specifying a seek query with the seek operation and the continuation
* token sent by the previous operation.
*
* @param customerUsersQuery A query to apply onto customer users. Check {@link com.microsoft.store.partnercenter.models.query.QueryFactory} to see how to build queries.
* @return The requested customer users.
*/
SeekBasedResourceCollection query(IQuery customerUsersQuery);
/**
* Create a new user for the customer.
*
* @param newEntity The user object containing details for the new user to be created.
* @return User entity
*/
CustomerUser create(CustomerUser newEntity);
/**
* Retrieves all the customer users.
*
* @return All the customer users.
*/
SeekBasedResourceCollection get();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy