microsoft.dynamics.crm.entity.collection.request.EntityMetadataCollectionRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-client-microsoft-dynamics Show documentation
Show all versions of odata-client-microsoft-dynamics Show documentation
Java client as template for Microsoft Dynamics organisation endpoints
package microsoft.dynamics.crm.entity.collection.request;
import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;
import microsoft.dynamics.crm.entity.EntityMetadata;
import microsoft.dynamics.crm.entity.request.AttributeMetadataRequest;
import microsoft.dynamics.crm.entity.request.EntityKeyMetadataRequest;
import microsoft.dynamics.crm.entity.request.EntityMetadataRequest;
import microsoft.dynamics.crm.entity.request.ManyToManyRelationshipMetadataRequest;
import microsoft.dynamics.crm.entity.request.OneToManyRelationshipMetadataRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;
public class EntityMetadataCollectionRequest extends CollectionPageEntityRequest{
protected ContextPath contextPath;
public EntityMetadataCollectionRequest(ContextPath contextPath) {
super(contextPath, EntityMetadata.class, cp -> new EntityMetadataRequest(cp), SchemaInfo.INSTANCE);
this.contextPath = contextPath;
}
public AttributeMetadataCollectionRequest attributes() {
return new AttributeMetadataCollectionRequest(contextPath.addSegment("Attributes"));
}
public AttributeMetadataRequest attributes(String metadataId) {
return new AttributeMetadataRequest(contextPath.addSegment("Attributes").addKeys(new NameValue(metadataId.toString())));
}
public ManyToManyRelationshipMetadataCollectionRequest manyToManyRelationships2() {
return new ManyToManyRelationshipMetadataCollectionRequest(contextPath.addSegment("ManyToManyRelationships2"));
}
public ManyToManyRelationshipMetadataRequest manyToManyRelationships2(String metadataId) {
return new ManyToManyRelationshipMetadataRequest(contextPath.addSegment("ManyToManyRelationships2").addKeys(new NameValue(metadataId.toString())));
}
public OneToManyRelationshipMetadataCollectionRequest manyToOneRelationships2() {
return new OneToManyRelationshipMetadataCollectionRequest(contextPath.addSegment("ManyToOneRelationships2"));
}
public OneToManyRelationshipMetadataRequest manyToOneRelationships2(String metadataId) {
return new OneToManyRelationshipMetadataRequest(contextPath.addSegment("ManyToOneRelationships2").addKeys(new NameValue(metadataId.toString())));
}
public OneToManyRelationshipMetadataCollectionRequest oneToManyRelationships2() {
return new OneToManyRelationshipMetadataCollectionRequest(contextPath.addSegment("OneToManyRelationships2"));
}
public OneToManyRelationshipMetadataRequest oneToManyRelationships2(String metadataId) {
return new OneToManyRelationshipMetadataRequest(contextPath.addSegment("OneToManyRelationships2").addKeys(new NameValue(metadataId.toString())));
}
public EntityKeyMetadataCollectionRequest keys() {
return new EntityKeyMetadataCollectionRequest(contextPath.addSegment("Keys"));
}
public EntityKeyMetadataRequest keys(String metadataId) {
return new EntityKeyMetadataRequest(contextPath.addSegment("Keys").addKeys(new NameValue(metadataId.toString())));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy