Click or drag to resize
BaseRESTService Methods

The BaseRESTService type exposes the following members.

Methods
  NameDescription
Protected methodDeleteObjectInternal
Deletes given objects and returns it as a result.
Protected methodEnsureCorrectFormat(DataSet, String)
Ensures correct serialization format of given DataSet.
Protected methodEnsureCorrectFormat(DataTable, String)
Ensures correct serialization format of given DataTable.
Protected methodEnsureSensitiveColumns
Clears sensitive column values if needed.
Public methodStatic memberGetCurrentSite
Returns current site info according to domain in query string.
Public methodStatic memberGetCurrentSiteName
Returns current site name.
Public methodStatic memberGetCurrentUser
Returns current user.
Public methodStatic memberGetCurrentUserName
Returns current user.
Public methodStatic memberGetDefaultEncoding
Returns default encoding according to settings in Site Manager.
Protected methodGetExportSettings
Creates ExportObjectSettings object from query string parameters.
Protected methodStatic memberGetItemUri
Returns Item Uri according to pattern.
Protected methodGetObjectByIDInternal(String, String)
Returns object of given type with specified ID.
Protected methodGetObjectByIDInternal(String, String, Boolean)
Returns object of given type with specified ID.
Protected methodGetObjectByNameInternal(String, String, String)
Returns object of given type with specified name from specified site.
Protected methodGetObjectByNameInternal(String, String, String, Boolean)
Returns object of given type with specified name from specified site.
Protected methodGetObjectDataSetFeed
Returns SyndicationFeed of object dataset.
Protected methodGetObjects
Returns list of objects of given type.
Protected methodStatic memberGetObjectUri(String, ExportObjectSettings)
Returns Uri of given object type.
Protected methodStatic memberGetObjectUri(GeneralizedInfo, ExportObjectSettings)
Returns Uri of given object type.
Protected methodStatic memberGetQueryParam
Returns query string parameter.
Public methodStatic memberGetRequestedEncoding
Returns requested encoding or default encoding if none was specified.
Protected methodGetResponse
Returns response for modifying methods - ID and GUID of the modified object.
Protected methodGetStream
Returns proper stream from given object.
Protected methodGetTotalRecordsTable
Returns table containing one column and one row with total records number.
Protected methodCheckQueryStringParameters
Checks WHERE, ORDER BY and COLUMNS query string parameters so non-admin users cannot use malicious code (= SQL injection protection).
Protected methodIsAuthorizedForObject(String, String, PermissionsEnum)
Returns true if current user is granted with specified permission to process operation on the given objecttype.
Protected methodIsAuthorizedForObject(BaseInfo, PermissionsEnum, String)
Returns true if current user is granted with specified permission to process operation on the given objecttype.
Protected methodIsObjectTypeAllowed
Returns true if given object type is allowed to be accessible by the service.
Protected methodReturnForbiddenStatus
Sets the response status to Forbidden.
Protected methodReturnNotFoundStatus
Sets the response status to Not found.
Protected methodReturnSiteNotFoundStatus
Sets the response status to Not found with a comment that the site does not exist.
Public methodStatic memberRewriteRESTUrl
Handles the rewriting for REST service.
Protected methodStatic memberSetFormat
Sets the format according to content-type and querystring parameter (higher priority).
Protected methodSetObjectInternal
Deletes given objects and returns it as a result.
Protected methodStatic memberToODATA
Serializes given DataSet to ODATA.
Protected methodStatic memberWrapJSONP
Wraps JSON result to a JSONP callback method if specified.
Top
See Also