com.microsoft.store.partnercenter.AggregatePartnerOperations 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.
//
// -----------------------------------------------------------------------
package com.microsoft.store.partnercenter;
import com.microsoft.store.partnercenter.requestcontext.IRequestContext;
import com.microsoft.store.partnercenter.requestcontext.RequestContextFactory;
/**
* Aggregate partner implementation.
*/
public class AggregatePartnerOperations
extends PartnerOperations
implements IAggregatePartner
{
/**
* Initializes a new instance of the AggregatePartnerOperations class.
*
* @param credentials The partner credentials.
*/
public AggregatePartnerOperations( IPartnerCredentials credentials )
{
super( credentials, RequestContextFactory.getInstance().create() );
}
/**
* Returns a partner operations object which uses the provided context when executing operations.
*
* @param context An operation context object.
* @return A partner operations object which uses the provided operation context.
*/
@Override
public IPartner with( IRequestContext context )
{
if ( context == null )
{
throw new IllegalArgumentException( "context null" );
}
return new PartnerOperations( this.getCredentials(), context );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy