| BaseRESTService Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: CMS.WebServices
 Syntax
Syntaxpublic class BaseRESTService
The BaseRESTService type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | BaseRESTService | 
 Properties
Properties| Name | Description | |
|---|---|---|
|  | AllowedObjectTypes | 
            Gets the list of allowed object types separated by semicolon. Empty string means all object types are allowed.
             | 
|  | AllowedSensitiveColumns | 
            If true, global administrators will be able to work with sensitive columns (such as UserPassword) via REST service. Other users than global administrators cannot work with these columns regardless this setting value.
             | 
|   | CultureName | 
            Name of culture used for REST requests.
             | 
|   | CurrentBaseUri | 
            Gets current base URI of the REST service
             | 
|  | CurrentSite | 
            Gets current site object received from the domain.
             | 
|  | CurrentSiteName | 
            Gets current site name (retrieved from domain accessed).
             | 
|  | CurrentUser | 
            Gets current user object received from auth cookie.
             | 
|  | CurrentUserName | 
            Gets current user name received from auth cookie.
             | 
|  | DefaultEncoding | 
            Returns default Encoding from settings.
             | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | CheckQueryStringParameters | 
            Checks WHERE, ORDER BY and COLUMNS query string parameters so non-admin users cannot use malicious code (= SQL injection protection).
             | 
|  | 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.
             | 
|  | 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.
             | 
 See Also
See Also