store/PrototypeEntry

Methods

commit() → {Promise.<Entry>}

Description:
  • Create a new entry according to the information specified in the prototype entry.

Source:
See:
  • EntryStore#createEntry
Returns:
Type
Promise.<Entry>

commitCachedExternalMetadata()

Description:
  • Allowed as a way to save cached external metadata for an entry that is assumed to exist with a given entry id.

Source:

commitMetadata()

Description:
  • Allowed as a way to save metadata for an entry that is assumed to exist with a given entry id.

Source:

create() → {Promise.<Entry>}

Source:
Deprecated:
  • use commit instead.
Returns:
Type
Promise.<Entry>

getParentList() → {Entry}

Description:
  • Get the parent list (as an entry) for this PrototypeEntry.

Source:
Returns:
Type
Entry

getResource() → {Resource}

Description:
  • Direct access method for the resource instance for prorotypeEntries.

Source:
Returns:
Type
Resource

getSpecificId() → {string}

Description:
  • Get the suggested entry id for this PrototypeEntry

Source:
Returns:
Type
string

setACL() → {PrototypeEntry}

Description:
  • Exposes the setACL method from EntryInfo on PrototypeEntry and makes it chainable.

Source:
Returns:
  • to allow the method call to be chained.
Type
PrototypeEntry

setEntryType() → {PrototypeEntry}

Description:
  • Makes it possible to change the EntryType (which is not allowed on existing entries).

Source:
Returns:
  • to allow the method call to be chained.
Type
PrototypeEntry

setExternalMetadataURI() → {PrototypeEntry}

Description:
  • Exposes the setExternalMetadataURI method from EntryInfo on this class and makes it chainable.

Source:
Returns:
  • to allow the method call to be chained.
Type
PrototypeEntry

setGraphType() → {PrototypeEntry}

Description:
  • Makes it possible to change the GraphType (which is not allowed on existing entries).

Source:
Returns:
  • to allow the method call to be chained.
Type
PrototypeEntry

setParentList(parentListEntry) → {PrototypeEntry}

Description:
  • When creating new entries a single parent list can be specified, hence we need a way to set it in PrototypeEntry.

Source:
Parameters:
Name Type Description
parentListEntry Entry
Returns:
  • to allow the method call to be chained.
Type
PrototypeEntry

setResourceType() → {PrototypeEntry}

Description:
  • Makes it possible to change the ResourceType (which is not allowed on existing entries).

Source:
Returns:
  • to allow the method call to be chained.
Type
PrototypeEntry

setResourceURI() → {PrototypeEntry}

Description:
  • Exposes the setResourceURI method from EntryInfo on this class and makes it chainable.

Source:
Returns:
  • to allow the method call to be chained.
Type
PrototypeEntry