POST | /RestApi/sitefinity/inlineediting/containersInfo |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ContainerInfoMessage
{
public String PageId = null;
public String PageTitle = null;
public ArrayList<ContainerInfoModel> ContainersInfo = null;
public String getPageId() { return PageId; }
public ContainerInfoMessage setPageId(String value) { this.PageId = value; return this; }
public String getPageTitle() { return PageTitle; }
public ContainerInfoMessage setPageTitle(String value) { this.PageTitle = value; return this; }
public ArrayList<ContainerInfoModel> getContainersInfo() { return ContainersInfo; }
public ContainerInfoMessage setContainersInfo(ArrayList<ContainerInfoModel> value) { this.ContainersInfo = value; return this; }
}
public static class ContainerInfoModel
{
public String ItemId = null;
public String ItemType = null;
public String DisplayType = null;
public String Provider = null;
public LifecycleStatusModel ItemStatus = null;
public Boolean IsPageControl = null;
public String DetailsViewUrl = null;
public ArrayList<FieldModel> Fields = null;
public String getItemId() { return ItemId; }
public ContainerInfoModel setItemId(String value) { this.ItemId = value; return this; }
public String getItemType() { return ItemType; }
public ContainerInfoModel setItemType(String value) { this.ItemType = value; return this; }
public String getDisplayType() { return DisplayType; }
public ContainerInfoModel setDisplayType(String value) { this.DisplayType = value; return this; }
public String getProvider() { return Provider; }
public ContainerInfoModel setProvider(String value) { this.Provider = value; return this; }
public LifecycleStatusModel getItemStatus() { return ItemStatus; }
public ContainerInfoModel setItemStatus(LifecycleStatusModel value) { this.ItemStatus = value; return this; }
public Boolean getIsPageControl() { return IsPageControl; }
public ContainerInfoModel setIsPageControl(Boolean value) { this.IsPageControl = value; return this; }
public String getDetailsViewUrl() { return DetailsViewUrl; }
public ContainerInfoModel setDetailsViewUrl(String value) { this.DetailsViewUrl = value; return this; }
public ArrayList<FieldModel> getFields() { return Fields; }
public ContainerInfoModel setFields(ArrayList<FieldModel> value) { this.Fields = value; return this; }
}
public static class LifecycleStatusModel
{
public String DisplayStatus = null;
public Boolean IsAdmin = null;
public Boolean IsEditable = null;
public Boolean IsStatusEditable = null;
public Boolean IsLocked = null;
public Boolean IsPublished = null;
public Boolean IsLockedByMe = null;
public String LockedByUsername = null;
public String WorkflowStatus = null;
public String getDisplayStatus() { return DisplayStatus; }
public LifecycleStatusModel setDisplayStatus(String value) { this.DisplayStatus = value; return this; }
public Boolean getIsAdmin() { return IsAdmin; }
public LifecycleStatusModel setIsAdmin(Boolean value) { this.IsAdmin = value; return this; }
public Boolean getIsEditable() { return IsEditable; }
public LifecycleStatusModel setIsEditable(Boolean value) { this.IsEditable = value; return this; }
public Boolean getIsStatusEditable() { return IsStatusEditable; }
public LifecycleStatusModel setIsStatusEditable(Boolean value) { this.IsStatusEditable = value; return this; }
public Boolean getIsLocked() { return IsLocked; }
public LifecycleStatusModel setIsLocked(Boolean value) { this.IsLocked = value; return this; }
public Boolean getIsPublished() { return IsPublished; }
public LifecycleStatusModel setIsPublished(Boolean value) { this.IsPublished = value; return this; }
public Boolean getIsLockedByMe() { return IsLockedByMe; }
public LifecycleStatusModel setIsLockedByMe(Boolean value) { this.IsLockedByMe = value; return this; }
public String getLockedByUsername() { return LockedByUsername; }
public LifecycleStatusModel setLockedByUsername(String value) { this.LockedByUsername = value; return this; }
public String getWorkflowStatus() { return WorkflowStatus; }
public LifecycleStatusModel setWorkflowStatus(String value) { this.WorkflowStatus = value; return this; }
}
public static class FieldModel
{
public String Name = null;
public String Required = null;
public String MinDate = null;
public String MaxDate = null;
public Integer MinLength = null;
public Integer MaxLength = null;
public String Pattern = null;
public Object MinValue = null;
public Object MaxValue = null;
public String RequiredViolationMessage = null;
public String MinLengthViolationMessage = null;
public String MaxLengthViolationMessage = null;
public String getName() { return Name; }
public FieldModel setName(String value) { this.Name = value; return this; }
public String getRequired() { return Required; }
public FieldModel setRequired(String value) { this.Required = value; return this; }
public String getMinDate() { return MinDate; }
public FieldModel setMinDate(String value) { this.MinDate = value; return this; }
public String getMaxDate() { return MaxDate; }
public FieldModel setMaxDate(String value) { this.MaxDate = value; return this; }
public Integer getMinLength() { return MinLength; }
public FieldModel setMinLength(Integer value) { this.MinLength = value; return this; }
public Integer getMaxLength() { return MaxLength; }
public FieldModel setMaxLength(Integer value) { this.MaxLength = value; return this; }
public String getPattern() { return Pattern; }
public FieldModel setPattern(String value) { this.Pattern = value; return this; }
public Object getMinValue() { return MinValue; }
public FieldModel setMinValue(Object value) { this.MinValue = value; return this; }
public Object getMaxValue() { return MaxValue; }
public FieldModel setMaxValue(Object value) { this.MaxValue = value; return this; }
public String getRequiredViolationMessage() { return RequiredViolationMessage; }
public FieldModel setRequiredViolationMessage(String value) { this.RequiredViolationMessage = value; return this; }
public String getMinLengthViolationMessage() { return MinLengthViolationMessage; }
public FieldModel setMinLengthViolationMessage(String value) { this.MinLengthViolationMessage = value; return this; }
public String getMaxLengthViolationMessage() { return MaxLengthViolationMessage; }
public FieldModel setMaxLengthViolationMessage(String value) { this.MaxLengthViolationMessage = value; return this; }
}
}
Java ContainerInfoMessage DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /RestApi/sitefinity/inlineediting/containersInfo HTTP/1.1
Host: www.asg.com.au
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ContainerInfoMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Services.InlineEditing.Messages">
<ContainersInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Services.InlineEditing">
<d2p1:ContainerInfoModel>
<d2p1:DetailsViewUrl>String</d2p1:DetailsViewUrl>
<d2p1:DisplayType>String</d2p1:DisplayType>
<d2p1:Fields>
<d2p1:FieldModel>
<d2p1:MaxDate>String</d2p1:MaxDate>
<d2p1:MaxLength>0</d2p1:MaxLength>
<d2p1:MaxLengthViolationMessage>String</d2p1:MaxLengthViolationMessage>
<d2p1:MaxValue />
<d2p1:MinDate>String</d2p1:MinDate>
<d2p1:MinLength>0</d2p1:MinLength>
<d2p1:MinLengthViolationMessage>String</d2p1:MinLengthViolationMessage>
<d2p1:MinValue />
<d2p1:Name>String</d2p1:Name>
<d2p1:Pattern>String</d2p1:Pattern>
<d2p1:Required>String</d2p1:Required>
<d2p1:RequiredViolationMessage>String</d2p1:RequiredViolationMessage>
</d2p1:FieldModel>
</d2p1:Fields>
<d2p1:IsPageControl>false</d2p1:IsPageControl>
<d2p1:ItemId>String</d2p1:ItemId>
<d2p1:ItemStatus>
<d2p1:DisplayStatus>String</d2p1:DisplayStatus>
<d2p1:IsAdmin>false</d2p1:IsAdmin>
<d2p1:IsEditable>false</d2p1:IsEditable>
<d2p1:IsLocked>false</d2p1:IsLocked>
<d2p1:IsLockedByMe>false</d2p1:IsLockedByMe>
<d2p1:IsPublished>false</d2p1:IsPublished>
<d2p1:IsStatusEditable>false</d2p1:IsStatusEditable>
<d2p1:LockedByUsername>String</d2p1:LockedByUsername>
<d2p1:WorkflowStatus>String</d2p1:WorkflowStatus>
</d2p1:ItemStatus>
<d2p1:ItemType>String</d2p1:ItemType>
<d2p1:Provider>String</d2p1:Provider>
</d2p1:ContainerInfoModel>
</ContainersInfo>
<PageId>String</PageId>
<PageTitle>String</PageTitle>
</ContainerInfoMessage>