Exemple #1
0
 protected LinkRepresentation CreateDetailsLink() => LinkRepresentation.Create(OidStrategy, new MemberRelType(new UriMtHelper(OidStrategy, Req, ActionContext)), Flags);
Exemple #2
0
 protected LinkRepresentation CreateSelfLink() => LinkRepresentation.Create(OidStrategy, self, Flags);
Exemple #3
0
 private LinkRepresentation CreateSelfLink()
 {
     return(LinkRepresentation.Create(OidStrategy, self, Flags));
 }
Exemple #4
0
 private LinkRepresentation CreateDetailsLink()
 {
     return(LinkRepresentation.Create(OidStrategy, new MemberRelType(new UriMtHelper(OidStrategy, req, actionContext)), Flags));
 }
Exemple #5
0
 private LinkRepresentation CreateModifyLink() =>
 LinkRepresentation.Create(OidStrategy, new MemberRelType(RelValues.Modify, GetHelper())
 {
     Method = RelMethod.Put
 }, Flags,
                           new OptionalProperty(JsonPropertyNames.Arguments, MapRepresentation.Create(new OptionalProperty(JsonPropertyNames.Value, null, typeof(object)))));
Exemple #6
0
 private LinkRepresentation CreateReturnTypeLink()
 {
     return(LinkRepresentation.Create(OidStrategy, new DomainTypeRelType(RelValues.ReturnType, new UriMtHelper(OidStrategy, req, actionContext.Specification)), Flags));
 }
Exemple #7
0
 protected LinkRepresentation CreateValueLink(IObjectFacade no)
 {
     return(LinkRepresentation.Create(OidStrategy, new ValueRelType(PropertyContext.Property, new UriMtHelper(OidStrategy, Req, no)), Flags,
                                      new OptionalProperty(JsonPropertyNames.Title, RestUtils.SafeGetTitle(no))));
 }
Exemple #8
0
 private LinkRepresentation CreateClearLink() => LinkRepresentation.Create(OidStrategy, new MemberRelType(RelValues.Clear, GetHelper())
 {
     Method = RelMethod.Delete
 }, Flags);
        private LinkRepresentation CreateAttachmentLink()
        {
            string title = GetAttachmentFileName(PropertyContext);

            return(LinkRepresentation.Create(OidStrategy, new AttachmentRelType(GetHelper()), Flags, new OptionalProperty(JsonPropertyNames.Title, title)));
        }
 private LinkRepresentation CreateUpLink()
 {
     return(LinkRepresentation.Create(OidStrategy, new ObjectRelType(RelValues.Up, objectUri), Flags));
 }
 private LinkRepresentation CreateCollectionValueLink()
 {
     return(LinkRepresentation.Create(OidStrategy, new CollectionValueRelType(GetHelper()), Flags));
 }
 private LinkRepresentation CreateValueLink(INakedObjectSurface no)
 {
     return(LinkRepresentation.Create(new ValueRelType(propertyContext.Property, new UriMtHelper(req, no)), Flags,
                                      new OptionalProperty(JsonPropertyNames.Title, RestUtils.SafeGetTitle(no))));
 }
 private LinkRepresentation CreateCollectionValueLink()
 {
     return(LinkRepresentation.Create(new CollectionValueRelType(new UriMtHelper(req, propertyContext)), Flags));
 }
Exemple #14
0
 private LinkRepresentation CreateElementTypeLink()
 {
     return(LinkRepresentation.Create(new DomainTypeRelType(RelValues.ElementType, new UriMtHelper(req, actionContext.ElementSpecification)), Flags));
 }
 protected LinkRepresentation CreateDetailsLink() => LinkRepresentation.Create(OidStrategy, new MemberRelType(helper), Flags);