ViewCreateStruct Class
Returns a structure used to create a new REST View. See ContentService.createView
Constructor
ViewCreateStruct
-
identifier
-
[type="ContentQuery"]
Parameters:
-
identifier
Stringunique view identifier
-
[type="ContentQuery"]
String optionalthe view type to create, the REST API currently supports only "ContentQuery" or "LocationQuery".
Item Index
Methods
- getCriteria deprecated
- getFilter
- getQuery
- setCriteria deprecated
- setFacetBuilders
- setFilter
- setLimitAndOffset
- setQuery
- setSortClauses
Methods
getCriteria
()
Object
deprecated
Gets the Criteria property
Returns:
the criteria property.
getFilter
()
Object
Gets the Filter property
Returns:
the Filter property.
getQuery
()
Object
Gets the Query property
Returns:
the query property.
setCriteria
()
deprecated
Sets the Criteria property
setFacetBuilders
()
Sets the FacetBuilders property
setFilter
()
Sets the Filter property
setLimitAndOffset
()
Sets the limit and offset properties
setQuery
()
Sets the Query property
setSortClauses
()
Sets the SortClauses property
Properties
_type
String
protected
Holds the view type
body
Object
Holds the body of the view create structs
Default: { ViewInput: { identifier: <identifier>, public: false, <type>: { Criteria: {}, SortClauses: {}, FacetBuilders: {}, }, } }
headers
Object
Holds the headers sent when creating a view
Default: { "Accept": "application/vnd.ez.api.View+json; version=1.1", "Content-Type": "application/vnd.ez.api.ViewInput+json; version=1.1" }