BaseRESTService Methods |
The BaseRESTService type exposes the following members.
Name | Description | |
---|---|---|
DeleteObjectInternal |
Deletes given objects and returns it as a result.
| |
EnsureCorrectFormat(DataSet, String) |
Ensures correct serialization format of given DataSet.
| |
EnsureCorrectFormat(DataTable, String) |
Ensures correct serialization format of given DataTable.
| |
EnsureSensitiveColumns |
Clears sensitive column values if needed.
| |
GetCurrentSite |
Returns current site info according to domain in query string.
| |
GetCurrentSiteName |
Returns current site name.
| |
GetCurrentUser |
Returns current user.
| |
GetCurrentUserName |
Returns current user.
| |
GetDefaultEncoding |
Returns default encoding according to settings in Site Manager.
| |
GetExportSettings |
Creates ExportObjectSettings object from query string parameters.
| |
GetItemUri |
Returns Item Uri according to pattern.
| |
GetObjectByIDInternal(String, String) |
Returns object of given type with specified ID.
| |
GetObjectByIDInternal(String, String, Boolean) |
Returns object of given type with specified ID.
| |
GetObjectByNameInternal(String, String, String) |
Returns object of given type with specified name from specified site.
| |
GetObjectByNameInternal(String, String, String, Boolean) |
Returns object of given type with specified name from specified site.
| |
GetObjectDataSetFeed |
Returns SyndicationFeed of object dataset.
| |
GetObjects |
Returns list of objects of given type.
| |
GetObjectUri(String, TraverseObjectSettings) |
Returns Uri of given object type.
| |
GetObjectUri(GeneralizedInfo, TraverseObjectSettings) |
Returns Uri of given object type.
| |
GetQueryParam |
Returns query string parameter.
| |
GetRequestedEncoding |
Returns requested encoding or default encoding if none was specified.
| |
GetResponse |
Returns response for modifying methods - ID and GUID of the modified object.
| |
GetStream |
Returns proper stream from given object.
| |
GetTotalRecordsTable |
Returns table containing one column and one row with total records number.
| |
CheckQueryStringParameters |
Checks WHERE, ORDER BY and COLUMNS query string parameters so non-admin users cannot use malicious code (= SQL injection protection).
| |
IsAuthorizedForObject(String, String, PermissionsEnum) |
Returns true if current user is granted with specified permission to process operation on the given objecttype.
| |
IsAuthorizedForObject(BaseInfo, PermissionsEnum, String) |
Returns true if current user is granted with specified permission to process operation on the given objecttype.
| |
IsObjectTypeAllowed |
Returns true if given object type is allowed to be accessible by the service.
| |
ReturnForbiddenStatus |
Sets the response status to Forbidden.
| |
ReturnNotFoundStatus |
Sets the response status to Not found.
| |
ReturnSiteNotFoundStatus |
Sets the response status to Not found with a comment that the site does not exist.
| |
RewriteRESTUrl |
Handles the rewriting for REST service.
| |
SetFormat |
Sets the format according to content-type and querystring parameter (higher priority).
| |
SetObjectInternal |
Deletes given objects and returns it as a result.
| |
ToODATA |
Serializes given DataSet to ODATA.
| |
WrapJSONP |
Wraps JSON result to a JSONP callback method if specified.
|