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

instanceId resourceType refid

Class Method Summary

Instance Method Summary

Inherited Method Summary

Methods inherited from ECHOObject

#getRequestUrl

Class Method Details

. (? extends ECHODataObject) factory(data)

Factory method of particular data objects.

Parameters:

  • data ( Object ) a source object

Returns:

  • ? extends ECHODataObject

Constructor Details

# (void) constructor(instanceId, resourceType, refid = null, data = null)

Constructs a new ECHODataObject based on an existing one on the remote server.

Parameters:

  • instanceId ( String ) the reference ID of the instance to which the object has belonged
  • resourceType ( String ) the type of this object
  • refid ( String ) the reference ID of the existing one
  • data ( Object ) a source object to copy

Instance Method Details

# (ECHO.Promise) fetch()

Fetches data from the remote server in a background thread. 非同期通信によるデータ取得。

Returns:

# (ECHO.Promise) push()

Pushes data to the remote server in a background thread. 非同期通信による保存。

Throws:

Returns:

# (ECHO.Promise) delete()

Deletes an object from the remote server in a background thread. 非同期通信による削除。

Returns:

# (Object) get(key)

Returns the value mapped by key, or null if no such mapping exists.

Parameters:

  • key ( String )

Returns:

  • Object

# (void) put(key, value)

Maps key to value, clobbering any existing key/value mapping with the same key.

Parameters:

  • key ( String )
  • value ( Object )

# (ECHO.ACL) getACL()

Gets the current ACLObject of this object このオブジェクトに設定されているACLを取得する。

Returns:

# (void) setNewACL(newACL)

Sets the new ACLObject. 新しいACLをセットする。サーバーへ反映させるには、保存処理を行ってください。

Parameters:

# (void) _copyData(data) Private

Copies data from an object

Parameters:

  • data ( Object ) the source object

# (void) _convertContentsInCopyData(val)

# (Object) _buildRequestContents() Private

Builds a request contents object.

Throws:

Returns:

  • Object

# (void) _convertContentsInBuildRequest(val)

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: