コード例 #1
0
 protected LinkRepresentation CreateDetailsLink() => LinkRepresentation.Create(OidStrategy, new MemberRelType(new UriMtHelper(OidStrategy, Req, ActionContext)), Flags);
コード例 #2
0
 protected LinkRepresentation CreateSelfLink() => LinkRepresentation.Create(OidStrategy, self, Flags);
コード例 #3
0
 private LinkRepresentation CreateSelfLink()
 {
     return(LinkRepresentation.Create(OidStrategy, self, Flags));
 }
コード例 #4
0
 private LinkRepresentation CreateDetailsLink()
 {
     return(LinkRepresentation.Create(OidStrategy, new MemberRelType(new UriMtHelper(OidStrategy, req, actionContext)), Flags));
 }
コード例 #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)))));
コード例 #6
0
 private LinkRepresentation CreateReturnTypeLink()
 {
     return(LinkRepresentation.Create(OidStrategy, new DomainTypeRelType(RelValues.ReturnType, new UriMtHelper(OidStrategy, req, actionContext.Specification)), Flags));
 }
コード例 #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))));
 }
コード例 #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));
 }
コード例 #12
0
 private LinkRepresentation CreateValueLink(INakedObjectSurface no)
 {
     return(LinkRepresentation.Create(new ValueRelType(propertyContext.Property, new UriMtHelper(req, no)), Flags,
                                      new OptionalProperty(JsonPropertyNames.Title, RestUtils.SafeGetTitle(no))));
 }
コード例 #13
0
 private LinkRepresentation CreateCollectionValueLink()
 {
     return(LinkRepresentation.Create(new CollectionValueRelType(new UriMtHelper(req, propertyContext)), Flags));
 }
コード例 #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);