Class CustomerUsersCollectionOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<String>
com.microsoft.store.partnercenter.customerusers.CustomerUsersCollectionOperations
- All Implemented Interfaces:
ICustomerUserCollection,IEntireEntityCollectionRetrievalOperations<CustomerUser,SeekBasedResourceCollection<CustomerUser>>,IEntityCreateOperations<CustomerUser,CustomerUser>,IPartnerComponent<String>,IPartnerComponentString
public class CustomerUsersCollectionOperations extends BasePartnerComponent<String> implements ICustomerUserCollection
-
Constructor Summary
Constructors Constructor Description CustomerUsersCollectionOperations(IPartner rootPartnerOperations, String customerId)Initializes a new instance of the CustomerUsersCollectionOperations class. -
Method Summary
Modifier and Type Method Description ICustomerUserbyId(String userId)Retrieves the customer user operations for the specified user.CustomerUsercreate(CustomerUser newCustomerUser)Creates a new user.SeekBasedResourceCollection<CustomerUser>get()Retrieves all the customer users.SeekBasedResourceCollection<CustomerUser>query(IQuery customerUsersQuery)Queries customer users associated to the partner's customers.Methods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent
getContext, getPartnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
Constructor Details
-
CustomerUsersCollectionOperations
Initializes a new instance of the CustomerUsersCollectionOperations class.- Parameters:
rootPartnerOperations- The root partner operations instance.customerId- The customer identifier.
-
-
Method Details
-
create
Creates a new user.- Specified by:
createin interfaceICustomerUserCollection- Specified by:
createin interfaceIEntityCreateOperations<CustomerUser,CustomerUser>- Parameters:
newCustomerUser- The user to be created.- Returns:
- The newly created user.
-
get
Retrieves all the customer users.- Specified by:
getin interfaceICustomerUserCollection- Specified by:
getin interfaceIEntireEntityCollectionRetrievalOperations<CustomerUser,SeekBasedResourceCollection<CustomerUser>>- Returns:
- All the customer users.
-
byId
Retrieves the customer user operations for the specified user.- Specified by:
byIdin interfaceICustomerUserCollection- Parameters:
userId- The user identifier.- Returns:
- The customer user operations for the specified user.
-
query
Queries customer users associated to the partner's customers.- Specified by:
queryin interfaceICustomerUserCollection- Parameters:
customerUsersQuery- A query to apply onto customer users. CheckQueryFactoryto see how to build queries.- Returns:
- Customer user collection.
-