Portal

<back to all web services

BrowseAllContract

Requires Authentication
The following routes are available for this service:
POST/user/{userid}/allcontracts
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    public static class BrowseAllContract extends PaginationRequestBase implements IPost
    {
        public Integer UserId = null;
        
        public Integer getUserId() { return UserId; }
        public BrowseAllContract setUserId(Integer value) { this.UserId = value; return this; }
    }

    public static class PaginationRequestBase implements IGridView
    {
        public GridViewState GridViewState = null;
        
        public GridViewState getGridViewState() { return GridViewState; }
        public PaginationRequestBase setGridViewState(GridViewState value) { this.GridViewState = value; return this; }
    }

    public static class GridViewState
    {
        public GridViewColumnState ColumnState = null;
        public ArrayList<GridViewColumnFilter> ColumnFilters = null;
        public GridViewPagerState PagerState = null;
        public Boolean IsReturnCount = null;
        
        public GridViewColumnState getColumnState() { return ColumnState; }
        public GridViewState setColumnState(GridViewColumnState value) { this.ColumnState = value; return this; }
        public ArrayList<GridViewColumnFilter> getColumnFilters() { return ColumnFilters; }
        public GridViewState setColumnFilters(ArrayList<GridViewColumnFilter> value) { this.ColumnFilters = value; return this; }
        public GridViewPagerState getPagerState() { return PagerState; }
        public GridViewState setPagerState(GridViewPagerState value) { this.PagerState = value; return this; }
        public Boolean getIsReturnCount() { return IsReturnCount; }
        public GridViewState setIsReturnCount(Boolean value) { this.IsReturnCount = value; return this; }
    }

    public static class GridViewColumnState
    {
        public String FieldName = null;
        public GridSortDirection SortDirection = null;
        
        public String getFieldName() { return FieldName; }
        public GridViewColumnState setFieldName(String value) { this.FieldName = value; return this; }
        public GridSortDirection getSortDirection() { return SortDirection; }
        public GridViewColumnState setSortDirection(GridSortDirection value) { this.SortDirection = value; return this; }
    }

    public static enum GridSortDirection
    {
        @SerializedName("0") None(0),
        @SerializedName("1") Asc(1),
        @SerializedName("2") Desc(2);

        private final int value;
        GridSortDirection(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static class GridViewColumnFilter
    {
        public String FieldName = null;
        public String FilterValue = null;
        public FilterOperator Operator = null;
        
        public String getFieldName() { return FieldName; }
        public GridViewColumnFilter setFieldName(String value) { this.FieldName = value; return this; }
        public String getFilterValue() { return FilterValue; }
        public GridViewColumnFilter setFilterValue(String value) { this.FilterValue = value; return this; }
        public FilterOperator getOperator() { return Operator; }
        public GridViewColumnFilter setOperator(FilterOperator value) { this.Operator = value; return this; }
    }

    public static enum FilterOperator
    {
        @SerializedName("0") NotSet(0),
        @SerializedName("1") Equal(1),
        @SerializedName("2") Greater(2),
        @SerializedName("3") Less(3),
        @SerializedName("4") GreaterOrEqual(4),
        @SerializedName("5") LessOrEqual(5),
        @SerializedName("6") NotEqual(6),
        @SerializedName("7") IsNull(7),
        @SerializedName("8") IsNotNull(8),
        @SerializedName("9") Like(9),
        @SerializedName("10") NotLike(10),
        @SerializedName("11") Begins(11),
        @SerializedName("12") Ends(12),
        @SerializedName("13") In(13),
        @SerializedName("14") Between(14);

        private final int value;
        FilterOperator(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static class GridViewPagerState
    {
        public Integer SkipRowCount = null;
        public Integer PageRowCount = null;
        
        public Integer getSkipRowCount() { return SkipRowCount; }
        public GridViewPagerState setSkipRowCount(Integer value) { this.SkipRowCount = value; return this; }
        public Integer getPageRowCount() { return PageRowCount; }
        public GridViewPagerState setPageRowCount(Integer value) { this.PageRowCount = value; return this; }
    }

    public static class PaginationResponse<TenderSimple> extends ResponseBase
    {
        public PaginationResult<TenderSimple> Result = null;
        
        public PaginationResult<TenderSimple> getResult() { return Result; }
        public PaginationResponse<TenderSimple> setResult(PaginationResult<TenderSimple> value) { this.Result = value; return this; }
    }

    public static class ResponseBase
    {
        public ResponseStatus ResponseStatus = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ResponseBase setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class PaginationResult<TModel>
    {
        public Integer TotalRowCount = null;
        public ArrayList<TModel> Items = null;
        
        public Integer getTotalRowCount() { return TotalRowCount; }
        public PaginationResult<TModel> setTotalRowCount(Integer value) { this.TotalRowCount = value; return this; }
        public ArrayList<TModel> getItems() { return Items; }
        public PaginationResult<TModel> setItems(ArrayList<TModel> value) { this.Items = value; return this; }
    }

    public static class TenderSimple
    {
        public Integer TenderId = null;
        public String TenderIdentifier = null;
        public ProcedureType ProcedureType = null;
        public String Subject = null;
        public String TenderRoundName = null;
        public String SectionName = null;
        public Date Deadline = null;
        public TenderType TenderType = null;
        public TenderStatus TenderStatus = null;
        public Boolean IsUnderPublish = null;
        public Date PublishStartDateTime = null;
        public Date PublishEndDateTime = null;
        public Integer PublishedById = null;
        public Boolean IsProcurementEnabled = null;
        public Boolean IsComplianceEnabled = null;
        
        public Integer getTenderId() { return TenderId; }
        public TenderSimple setTenderId(Integer value) { this.TenderId = value; return this; }
        public String getTenderIdentifier() { return TenderIdentifier; }
        public TenderSimple setTenderIdentifier(String value) { this.TenderIdentifier = value; return this; }
        public ProcedureType getProcedureType() { return ProcedureType; }
        public TenderSimple setProcedureType(ProcedureType value) { this.ProcedureType = value; return this; }
        public String getSubject() { return Subject; }
        public TenderSimple setSubject(String value) { this.Subject = value; return this; }
        public String getTenderRoundName() { return TenderRoundName; }
        public TenderSimple setTenderRoundName(String value) { this.TenderRoundName = value; return this; }
        public String getSectionName() { return SectionName; }
        public TenderSimple setSectionName(String value) { this.SectionName = value; return this; }
        public Date getDeadline() { return Deadline; }
        public TenderSimple setDeadline(Date value) { this.Deadline = value; return this; }
        public TenderType getTenderType() { return TenderType; }
        public TenderSimple setTenderType(TenderType value) { this.TenderType = value; return this; }
        public TenderStatus getTenderStatus() { return TenderStatus; }
        public TenderSimple setTenderStatus(TenderStatus value) { this.TenderStatus = value; return this; }
        public Boolean getIsUnderPublish() { return IsUnderPublish; }
        public TenderSimple setIsUnderPublish(Boolean value) { this.IsUnderPublish = value; return this; }
        public Date getPublishStartDateTime() { return PublishStartDateTime; }
        public TenderSimple setPublishStartDateTime(Date value) { this.PublishStartDateTime = value; return this; }
        public Date getPublishEndDateTime() { return PublishEndDateTime; }
        public TenderSimple setPublishEndDateTime(Date value) { this.PublishEndDateTime = value; return this; }
        public Integer getPublishedById() { return PublishedById; }
        public TenderSimple setPublishedById(Integer value) { this.PublishedById = value; return this; }
        public Boolean getIsProcurementEnabled() { return IsProcurementEnabled; }
        public TenderSimple setIsProcurementEnabled(Boolean value) { this.IsProcurementEnabled = value; return this; }
        public Boolean getIsComplianceEnabled() { return IsComplianceEnabled; }
        public TenderSimple setIsComplianceEnabled(Boolean value) { this.IsComplianceEnabled = value; return this; }
    }

    public static enum ProcedureType
    {
        @SerializedName("0") Competition(0),
        @SerializedName("1") Simplified(1);

        private final int value;
        ProcedureType(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static enum TenderType
    {
        @SerializedName("0") Private(0),
        @SerializedName("1") Public(1);

        private final int value;
        TenderType(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static enum TenderStatus
    {
        @SerializedName("0") FirstRound(0),
        @SerializedName("1") SecondRound(1),
        @SerializedName("2") ThirdRound(2),
        @SerializedName("3") Successful(3),
        @SerializedName("4") UnSuccessful(4),
        @SerializedName("5") Revoked(5);

        private final int value;
        TenderStatus(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

}

Java BrowseAllContract DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /user/{userid}/allcontracts HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"UserId":0,"GridViewState":{"ColumnState":{"FieldName":"String","SortDirection":0},"ColumnFilters":[{"FieldName":"String","FilterValue":"String","Operator":0}],"PagerState":{"SkipRowCount":0,"PageRowCount":0},"IsReturnCount":false}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Result":{"TotalRowCount":0,"Items":[{"Id":0,"TenderId":0,"UserId":0,"TenderUserId":0,"Buyer":"String","Subject":"String","TenderIdentifier":"String","ContractIdentifier":"String","Status":0,"ConfirmationDeadline":"0001-01-01T00:00:00.0000000","CancellationDateTime":"0001-01-01T00:00:00.0000000","IsCancelled":false}]},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}