BaseRESTService MembersKentico 8.0 API Reference
The BaseRESTService type exposes the following members.
Constructors

  NameDescription
Public methodBaseRESTService
Back to Top
Methods

  NameDescription
Protected methodDeleteObjectInternal
Deletes given objects and returns it as a result.
Protected methodEnsureCorrectFormat(DataSet, String)
Ensures corrent serialization format of given DataSet.
Protected methodEnsureCorrectFormat(DataTable, String)
Ensures corrent serialization format of given DataTable.
Protected methodEnsureSensitiveColumns
Cleares sensitive column values if needed.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodStatic memberGetCurrentSite
Retuns current site info accoding 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.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
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 obejct type.
Protected methodStatic memberGetObjectUri(GeneralizedInfo, ExportObjectSettings)
Returns Uri of given obejct 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 methodGetSiteWhereCondition
Returns WHERE condition for site and combines it with original WHERE condition.
Protected methodGetStream
Returns proper stream from given object.
Protected methodGetTotalRecordsTable
Returns table containing one olumn and one row with total records number.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodCheckQueryStringParameters
Checks WHERE, ORDER BY and COLUMNS query string parameters so non-admin users cannot use malitious code (= SQL injection protection).
Protected methodIsAuthorizedForObject(BaseInfo, PermissionsEnum)
Returns true if current user is granted with specified permission to process operation on the given objecttype.
Protected methodIsAuthorizedForObject(String, String, PermissionsEnum)
Returns true if current user is granted with specified permission to process operation on the given objecttype.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodReturnForbiddenStatus
Sets the response status to Forbidden.
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.
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Protected methodStatic memberWrapJSONP
Wraps JSON result to a JSONP callback method if specified.
Back to Top
Extension Methods

  NameDescription
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to Top
Properties

  NameDescription
Public propertyAllowedObjectTypes
Gets the list of allowed object types separated by semicolon. Empty string means all object types are allowed.
Public propertyAllowedSensitiveColumns
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.
Protected propertyStatic memberCurrentBaseUri
Gets current base uri of the REST service
Protected propertyCurrentSite
Gets current site object recieved from the domain.
Protected propertyCurrentSiteName
Gets current site name (retrieved from domain accessed).
Protected propertyCurrentUser
Gets current user object recieved from auth cookie.
Protected propertyCurrentUserName
Gets current user name recieved from auth cookie.
Public propertyDefaultEncoding
Returns default Encoding from settings.
Back to Top
See Also