MixERP.Net.Api.Policy.HttpActionController Class Reference

Provides a direct HTTP access to perform various tasks such as adding, editing, and removing Http Actions. More...

Inheritance diagram for MixERP.Net.Api.Policy.HttpActionController:

Public Member Functions

EntityView GetEntityView ()
 Creates meta information of "http action" entity. More...
 
long Count ()
 Counts the number of http actions. More...
 
IEnumerable< MixERP.Net.Entities.Policy.HttpActionGet ()
 Returns collection of http action for export. More...
 
MixERP.Net.Entities.Policy.HttpAction Get (string httpActionCode)
 Returns an instance of http action. More...
 
IEnumerable< MixERP.Net.Entities.Policy.HttpActionGet ([FromUri] string[] httpActionCodes)
 
IEnumerable< MixERP.Net.Entities.Policy.HttpActionGetPagedResult ()
 Creates a paginated collection containing 25 http actions on each page, sorted by the property HttpActionCode. More...
 
IEnumerable< MixERP.Net.Entities.Policy.HttpActionGetPagedResult (long pageNumber)
 Creates a paginated collection containing 25 http actions on each page, sorted by the property HttpActionCode. More...
 
long CountWhere ([FromBody]dynamic filters)
 Counts the number of http actions using the supplied filter(s). More...
 
IEnumerable< MixERP.Net.Entities.Policy.HttpActionGetWhere (long pageNumber, [FromBody]dynamic filters)
 Creates a filtered and paginated collection containing 25 http actions on each page, sorted by the property HttpActionCode. More...
 
long CountFiltered (string filterName)
 Counts the number of http actions using the supplied filter name. More...
 
IEnumerable< MixERP.Net.Entities.Policy.HttpActionGetFiltered (long pageNumber, string filterName)
 Creates a filtered and paginated collection containing 25 http actions on each page, sorted by the property HttpActionCode. More...
 
IEnumerable< DisplayFieldGetDisplayFields ()
 Displayfield is a lightweight key/value collection of http actions. More...
 
IEnumerable< PetaPoco.CustomFieldGetCustomFields ()
 A custom field is a user defined field for http actions. More...
 
IEnumerable< PetaPoco.CustomFieldGetCustomFields (string resourceId)
 A custom field is a user defined field for http actions. More...
 
void AddOrEdit ([FromBody]Newtonsoft.Json.Linq.JArray form)
 Adds or edits your instance of HttpAction class. More...
 
void Add (MixERP.Net.Entities.Policy.HttpAction httpAction)
 Adds your instance of HttpAction class. More...
 
void Edit (string httpActionCode, [FromBody] MixERP.Net.Entities.Policy.HttpAction httpAction)
 Edits existing record with your instance of HttpAction class. More...
 
List< object > BulkImport ([FromBody]dynamic collection)
 Adds or edits multiple instances of HttpAction class. More...
 
void Delete (string httpActionCode)
 Deletes an existing instance of HttpAction class via HttpActionCode. More...
 

Properties

long LoginId [get]
 
int UserId [get]
 
int OfficeId [get]
 
string Catalog [get]
 

Detailed Description

Provides a direct HTTP access to perform various tasks such as adding, editing, and removing Http Actions.

Member Function Documentation

void MixERP.Net.Api.Policy.HttpActionController.Add ( MixERP.Net.Entities.Policy.HttpAction  httpAction)

Adds your instance of HttpAction class.

Parameters
httpActionYour instance of http actions class to add.
void MixERP.Net.Api.Policy.HttpActionController.AddOrEdit ( [FromBody] Newtonsoft.Json.Linq.JArray  form)

Adds or edits your instance of HttpAction class.

Parameters
httpActionYour instance of http actions class to add or edit.
List<object> MixERP.Net.Api.Policy.HttpActionController.BulkImport ( [FromBody] dynamic  collection)

Adds or edits multiple instances of HttpAction class.

Parameters
collectionYour collection of HttpAction class to bulk import.
Returns
Returns list of imported httpActionCodes.
Exceptions
MixERPExceptionThrown when your any HttpAction class in the collection is invalid or malformed.
long MixERP.Net.Api.Policy.HttpActionController.Count ( )

Counts the number of http actions.

Returns
Returns the count of the http actions.
long MixERP.Net.Api.Policy.HttpActionController.CountFiltered ( string  filterName)

Counts the number of http actions using the supplied filter name.

Parameters
filterNameThe named filter.
Returns
Returns the count of filtered http actions.
long MixERP.Net.Api.Policy.HttpActionController.CountWhere ( [FromBody] dynamic  filters)

Counts the number of http actions using the supplied filter(s).

Parameters
filtersThe list of filter conditions.
Returns
Returns the count of filtered http actions.
void MixERP.Net.Api.Policy.HttpActionController.Delete ( string  httpActionCode)

Deletes an existing instance of HttpAction class via HttpActionCode.

Parameters
httpActionCodeEnter the value for HttpActionCode in order to find and delete the existing record.
void MixERP.Net.Api.Policy.HttpActionController.Edit ( string  httpActionCode,
[FromBody] MixERP.Net.Entities.Policy.HttpAction  httpAction 
)

Edits existing record with your instance of HttpAction class.

Parameters
httpActionYour instance of HttpAction class to edit.
httpActionCodeEnter the value for HttpActionCode in order to find and edit the existing record.
IEnumerable<MixERP.Net.Entities.Policy.HttpAction> MixERP.Net.Api.Policy.HttpActionController.Get ( )

Returns collection of http action for export.

Returns
MixERP.Net.Entities.Policy.HttpAction MixERP.Net.Api.Policy.HttpActionController.Get ( string  httpActionCode)

Returns an instance of http action.

Parameters
httpActionCodeEnter HttpActionCode to search for.
Returns
IEnumerable<PetaPoco.CustomField> MixERP.Net.Api.Policy.HttpActionController.GetCustomFields ( )

A custom field is a user defined field for http actions.

Returns
Returns an enumerable custom field collection of http actions.
IEnumerable<PetaPoco.CustomField> MixERP.Net.Api.Policy.HttpActionController.GetCustomFields ( string  resourceId)

A custom field is a user defined field for http actions.

Returns
Returns an enumerable custom field collection of http actions.
IEnumerable<DisplayField> MixERP.Net.Api.Policy.HttpActionController.GetDisplayFields ( )

Displayfield is a lightweight key/value collection of http actions.

Returns
Returns an enumerable key/value collection of http actions.
EntityView MixERP.Net.Api.Policy.HttpActionController.GetEntityView ( )

Creates meta information of "http action" entity.

Returns
Returns the "http action" meta information to perform CRUD operation.
IEnumerable<MixERP.Net.Entities.Policy.HttpAction> MixERP.Net.Api.Policy.HttpActionController.GetFiltered ( long  pageNumber,
string  filterName 
)

Creates a filtered and paginated collection containing 25 http actions on each page, sorted by the property HttpActionCode.

Parameters
pageNumberEnter the page number to produce the resultset.
filterNameThe named filter.
Returns
Returns the requested page from the collection using the supplied filters.
IEnumerable<MixERP.Net.Entities.Policy.HttpAction> MixERP.Net.Api.Policy.HttpActionController.GetPagedResult ( )

Creates a paginated collection containing 25 http actions on each page, sorted by the property HttpActionCode.

Returns
Returns the first page from the collection.
IEnumerable<MixERP.Net.Entities.Policy.HttpAction> MixERP.Net.Api.Policy.HttpActionController.GetPagedResult ( long  pageNumber)

Creates a paginated collection containing 25 http actions on each page, sorted by the property HttpActionCode.

Parameters
pageNumberEnter the page number to produce the resultset.
Returns
Returns the requested page from the collection.
IEnumerable<MixERP.Net.Entities.Policy.HttpAction> MixERP.Net.Api.Policy.HttpActionController.GetWhere ( long  pageNumber,
[FromBody] dynamic  filters 
)

Creates a filtered and paginated collection containing 25 http actions on each page, sorted by the property HttpActionCode.

Parameters
pageNumberEnter the page number to produce the resultset.
filtersThe list of filter conditions.
Returns
Returns the requested page from the collection using the supplied filters.

The documentation for this class was generated from the following file: