All Downloads are FREE. Search and download functionalities are using the official Maven repository.

microsoft.dynamics.crm.entity.collection.request.RelationshipCollectionRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
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.Relationship;
import microsoft.dynamics.crm.entity.request.RelationshipRequest;
import microsoft.dynamics.crm.entity.request.RelationshipattributeRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;

public class RelationshipCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public RelationshipCollectionRequest(ContextPath contextPath) {
        super(contextPath, Relationship.class, cp -> new RelationshipRequest(cp), SchemaInfo.INSTANCE);
        this.contextPath = contextPath;
    }

    public RelationshipattributeCollectionRequest relationship_relationshipattribute() {
        return new RelationshipattributeCollectionRequest(contextPath.addSegment("relationship_relationshipattribute"));
    }

    public RelationshipattributeRequest relationship_relationshipattribute(String relationshipattributeid) {
        return new RelationshipattributeRequest(contextPath.addSegment("relationship_relationshipattribute").addKeys(new NameValue(relationshipattributeid.toString())));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy