org.springframework.social.partnercenter.api.agreement.AgreementMetaDataTemplate Maven / Gradle / Ivy
package org.springframework.social.partnercenter.api.agreement;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.ResponseEntity;
import org.springframework.social.partnercenter.api.PagingResourceTemplate;
import org.springframework.social.partnercenter.api.PartnerCenterResponse;
import org.springframework.social.partnercenter.http.client.RestResource;
public class AgreementMetaDataTemplate extends PagingResourceTemplate implements AgreementMetaDataOperations {
private RestResource restResource;
public AgreementMetaDataTemplate(RestResource restResource, boolean isAuthorized) {
super(restResource, isAuthorized, new ParameterizedTypeReference>() {});
this.restResource = restResource;
}
@Override
public ResponseEntity> getAgreementMetadatas() {
return restResource.request()
.pathSegment("agreements")
.get(new ParameterizedTypeReference>() {});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy