Class CustomerCollectionOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<String>
com.microsoft.store.partnercenter.BasePartnerComponentString
com.microsoft.store.partnercenter.customers.CustomerCollectionOperations
- All Implemented Interfaces:
ICustomerCollection,IEntireEntityCollectionRetrievalOperations<Customer,SeekBasedResourceCollection<Customer>>,IEntityCreateOperations<Customer,Customer>,IPartnerComponent<String>,IPartnerComponentString
public class CustomerCollectionOperations extends BasePartnerComponentString implements ICustomerCollection
The partner customers implementation.
-
Constructor Summary
Constructors Constructor Description CustomerCollectionOperations(IPartner rootPartnerOperations)Initializes a new instance of the CustomerCollectionOperations class. -
Method Summary
Modifier and Type Method Description ICustomerbyId(String customerId)Gets a single customer operations.Customercreate(Customer newCustomer)Creates a new customer.SeekBasedResourceCollection<Customer>get()Retrieves all customers associated to the partner.ICustomerRelationshipRequestgetRelationshipRequests()Obtains the customer relationship request operations.ICustomerUsageRecordCollectiongetUsageRecords()Obtains the customer usage record operations.SeekBasedResourceCollection<Customer>query(IQuery customersQuery)Queries customers associated to the partner.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
-
CustomerCollectionOperations
Initializes a new instance of the CustomerCollectionOperations class.- Parameters:
rootPartnerOperations- The root partner operations instance.
-
-
Method Details
-
getUsageRecords
Obtains the customer usage record operations.- Specified by:
getUsageRecordsin interfaceICustomerCollection- Returns:
- The customer usage record operations.
-
getRelationshipRequests
Obtains the customer relationship request operations.- Specified by:
getRelationshipRequestsin interfaceICustomerCollection- Returns:
- The customer relationship request operations.
-
byId
Gets a single customer operations.- Specified by:
byIdin interfaceICustomerCollection- Parameters:
customerId- The customer identifier.- Returns:
- The customer operations.
-
create
Creates a new customer.- Specified by:
createin interfaceIEntityCreateOperations<Customer,Customer>- Parameters:
newCustomer- The new customer information.- Returns:
- The customer information that was just created.
-
get
Retrieves all customers associated to the partner.- Specified by:
getin interfaceICustomerCollection- Specified by:
getin interfaceIEntireEntityCollectionRetrievalOperations<Customer,SeekBasedResourceCollection<Customer>>- Returns:
- All customers.
-
query
Queries customers associated to the partner. - Count queries are not supported by this operation. - You can set the page size or filter or do both at the same time. - Sort is not supported. - You can navigate to other pages by specifying a seek query with the seek operation and the continuation token sent by the previous operation.- Specified by:
queryin interfaceICustomerCollection- Parameters:
customersQuery- A query to apply onto customers. CheckQueryFactoryto see how to build queries.- Returns:
- The requested customers.
-