BaseRESTService Class |
Namespace: CMS.WebServices
public class BaseRESTService
The BaseRESTService type exposes the following members.
Name | Description | |
---|---|---|
BaseRESTService |
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, ExportObjectSettings) |
Returns Uri of given object type.
| |
GetObjectUri(GeneralizedInfo, ExportObjectSettings) |
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(BaseInfo, PermissionsEnum) | Obsolete.
Returns true if current user is granted with specified permission to process operation on the given objecttype.
| |
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.
| |
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.
|
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
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.
| |
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.
|