Class: ECHODataObject
Defined in: | src/ECHODataObject.coffee |
Inherits: | ECHOObject |
Overview
An ECHODataObject is an abstract data object. Particular data objects are implemented based on this class.
Direct Known Subclasses
ECHO.ContentsCategoryObject ECHO.Members.GroupObject ECHO.Members.MemberObject ECHO.Members ECHOContentsObject ECHODistributedObject
Variables Summary
Variable inherited from ECHOObject
Class Method Summary
- . (? extends ECHODataObject) factory(data) Factory method of particular data objects.
Instance Method Summary
- # (ECHO.Promise) fetch() Fetches data from the remote server in a background thread. 非同期通信によるデータ取得。
- # (ECHO.Promise) push() Pushes data to the remote server in a background thread. 非同期通信による保存。
- # (ECHO.Promise) delete() Deletes an object from the remote server in a background thread. 非同期通信による削除。
- # (Object) get(key) Returns the value mapped by key, or null if no such mapping exists.
- # (void) put(key, value) Maps key to value, clobbering any existing key/value mapping with the same key.
- # (ECHO.ACL) getACL() Gets the current ACLObject of this object このオブジェクトに設定されているACLを取得する。
- # (void) setNewACL(newACL) Sets the new ACLObject. 新しいACLをセットする。サーバーへ反映させるには、保存処理を行ってください。
- # (void) _copyData(data) Private Copies data from an object
- # (void) _convertContentsInCopyData(val)
- # (Object) _buildRequestContents() Private Builds a request contents object.
- # (void) _convertContentsInBuildRequest(val)
Inherited Method Summary
Methods inherited from
ECHOObject
Class Method Details
.
(? extends ECHODataObject)
factory(data)
Factory method of particular data objects.
Constructor Details
#
(void)
constructor(instanceId, resourceType, refid = null, data = null)
Constructs a new ECHODataObject based on an existing one on the remote server.
Instance Method Details
#
(ECHO.Promise)
fetch()
Fetches data from the remote server in a background thread. 非同期通信によるデータ取得。
#
(ECHO.Promise)
push()
Pushes data to the remote server in a background thread. 非同期通信による保存。
#
(ECHO.Promise)
delete()
Deletes an object from the remote server in a background thread. 非同期通信による削除。
#
(Object)
get(key)
Returns the value mapped by key, or null if no such mapping exists.
#
(void)
put(key, value)
Maps key to value, clobbering any existing key/value mapping with the same key.
#
(ECHO.ACL)
getACL()
Gets the current ACLObject of this object このオブジェクトに設定されているACLを取得する。
#
(void)
setNewACL(newACL)
Sets the new ACLObject. 新しいACLをセットする。サーバーへ反映させるには、保存処理を行ってください。
#
(void)
_copyData(data)
Private
Copies data from an object
#
(void)
_convertContentsInCopyData(val)
#
(Object)
_buildRequestContents()
Private
Builds a request contents object.
#
(void)
_convertContentsInBuildRequest(val)