Class: List
Defined in: | src/lists.coffee |
Overview
A representation of collections of objects stored in a data-warehouse.
Lists can be created through the list upload mechanism (Service#createList) and the query saving mechanism (Query#saveAsList).
Instance Method Summary
- - (void) constructor(properties, service) Constructor Construct a new list.
- - (boolean) hasTag(t) Bound Whether or not this list has a certain tag.
- - (Promise<Query>) query(view = ['*']) Construct a query for data contained in this list.
- - (Promise<?>) del(cb) Delete this list on the server.
- - (void) _updateTags(err, tags) Bound
- - (Promise<Array<String>>) fetchTags(cb) Get the current set of tags for this list, and update this object so it reflects the current state of the server.
- - (Promise<Array<String>>) addTags(tags, cb) Add the given tags to the current set of tags for this list, and update this object so it reflects the current state of the server.
- - (Promise<Array<String>>) removeTags(tags, cb) Remove the given tags from the current set of tags for this list, and update this object so it reflects the current state of the server.
- - (Promise<Array<Object>>) contents(cb) Get the contents of this list.
- - (Promise<List>) rename(newName, cb) Rename this list.
- - (Promise<List>) copy(opts = {}, cb = (function() {})) Copy this list to an exact duplicate with a different name.
- - (Promise<Array<Object>>) enrichment(opts, cb) Fetch the results for a particular enrichment calculation against this list.
- - (Promise<>) shareWithUser(recipient, cb) Share this list with a recipient.
- - (Promise<>) inviteUserToShare(recipient, notify = true, cb = (function() {})) Invite a user to share this list.
Constructor Details
- (void) constructor(properties, service)
Construct a new list.
Instance Method Details
- (boolean) hasTag(t) (bound)
Whether or not this list has a certain tag.
- (Promise<Query>) query(view = ['*'])
Construct a query for data contained in this list.
- (Promise<?>) del(cb)
Delete this list on the server. The list should not be subsequently used.
- (void) _updateTags(err, tags) (bound)
- (Promise<Array<String>>) fetchTags(cb)
Get the current set of tags for this list, and update this object so it reflects the current state of the server.
- (Promise<Array<String>>) addTags(tags, cb)
Add the given tags to the current set of tags for this list, and update this object so it reflects the current state of the server.
- (Promise<Array<String>>) removeTags(tags, cb)
Remove the given tags from the current set of tags for this list, and update this object so it reflects the current state of the server.
- (Promise<Array<Object>>) contents(cb)
Get the contents of this list.
The dejoin function is used to ensure that all objects in the list are returned, and we don't miss out on any due to the implicit constraints of inner joins.
- (Promise<List>) rename(newName, cb)
Rename this list. Upon resolution of this actions promise, this object will have its name property set to the new value.
- (Promise<List>) copy(opts = {}, cb = (function() {}))
Copy this list to an exact duplicate with a different name.
This function will check that any name given does not collide with any other list you have access to, adding a suffix to avoid name clashes. This means you should probably check the yielded value to see what name it ended up with.
- (Promise<Array<Object>>) enrichment(opts, cb)
Fetch the results for a particular enrichment calculation against this list. See Service#enrichment.
Share this list with a recipient.
The recipient should exist as a user in the target InterMine instance.
Invite a user to share this list.