![]() |
C++
1.4.6
CloudBackend Software Development Kit - SDK API for C++
|
Public Member Functions | |
virtual void | move (CBE::container_id_t destinationContainerId, CBE::ItemDelegatePtr delegate) |
virtual void | rename (const std::string &name, CBE::ItemDelegatePtr delegate) |
virtual void | remove (CBE::ItemDelegatePtr delegate) |
virtual void | download (const std::string &path, CBE::TransferDownloadDelegatePtr delegate) |
virtual void | download (CBE::TransferDownloadDelegatePtr delegate) |
virtual void | downloadStream (const std::string &path, CBE::Stream stream, CBE::TransferDownloadDelegatePtr delegate) |
virtual void | updateKeyValues (CBE::ItemDelegatePtr delegate, std::map< std::string, std::pair< std::string, bool >> metadata=metadata_type()) |
virtual void | getStreams (CBE::ItemDelegatePtr delegate) |
virtual std::vector< CBE::Stream > | streams () const |
virtual std::string | getMimeType () const |
virtual uint64_t | length () const |
virtual CBE::object_t | getObjectType () const |
virtual std::map< std::string, std::pair< std::string, bool > > | keyValues () |
virtual void | setACL (std::map< CBE::user_id_t, CBE::permission_status_t > ACL, CBE::ShareDelegatePtr delegate) |
virtual void | getACL (CBE::ShareDelegatePtr delegate) |
virtual void | share (user_id_t toUserGroup, std::string description, CBE::ShareDelegatePtr delegate) |
virtual void | unShare (uint64_t shareId, CBE::ShareDelegatePtr delegate) |
std::string | url () |
![]() | |
virtual std::map< uint64_t, std::vector< CBE::ShareData > > | getShareIds () const |
virtual CBE::share_id_t | getShareFromUserId (user_id_t userId) |
virtual CBE::user_id_t | getUserFromShareId (user_id_t shareId) |
virtual std::string | aclTag () const |
virtual std::string | description () const |
virtual CBE::item_id_t | id () const |
virtual CBE::container_id_t | parentId () const |
virtual CBE::container_id_t | oldParentId () const |
virtual std::string | name () const |
virtual std::string | path () const |
virtual CBE::user_id_t | ownerId () const |
virtual CBE::container_id_t | driveId () const |
virtual std::string | username () const |
virtual bool | idLoaded () const |
virtual bool | dataLoaded () const |
virtual CBE::date_t | created () const |
virtual CBE::date_t | updated () const |
virtual CBE::date_t | deleted () const |
virtual CBE::item_t | type () const |
virtual bool | operator< (const CBE::Item &other) const |
std::map< uint64_t, CBE::permission_status_t > | ACLMap () const |
virtual | ~Item () |
|
virtual |
Move object to either a container or the root container:
destinationContainerId | is the numeric destination container Id. |
delegate | is a shared pointer to the an ItemEventProtocol that the user has implemented. The pointer is defined in Types.h. |
|
virtual |
Rename object:
name | string name of the object. |
delegate | is a shared pointer to an ItemEventProtocol that the user has implemented. The pointer is defined in Types.h. |
|
virtual |
Remove the object from cloud and local cache.
delegate | is a shared pointer to an ItemEventProtocol that the user has implemented. The pointer is defined in Types.h. |
|
virtual |
Download object with path from a container to local:
path | to where it will be downloaded. |
delegate | is a shared pointer to a TransferEventProtocol that the user has implemented. The pointer is defined in Types.h. |
|
virtual |
Download object with binary data from contair and passes it to the delegate.
This is data is on the heap and you are responsible for calling delete on it, though we may change it to a shared pointer in the future.
delegate | is a shared pointer to a TransferEventProtocol that the user has implemented. The pointer is defined in Types.h. |
|
virtual |
Downloads the stream # with stream id, to a path of the your choice. To get which streams are added on a object use getStream.
path | Selects which path you want to download the stream to. |
streamId | Get which stream you want by first calling getStream and then choose which one to download. |
delegate | is a shared pointer to a TransferEventProtocol that the user has implemented. The pointer is defined in Types.h. |
|
virtual |
Adds keyValue data to the existing object, if data has the same name it will be overwritten else itt will add to the existing keyValue on the object.
delegate | is a shared pointer to an ItemEventProtocol that the user has implemented. The pointer is defined in Types.h. |
metadata | (Optional) Metadata is a map with the keyValue (key), the associated value of that key and if it is indexed or not |
|
virtual |
Returns the streams attached to the Object, use object->_streams after this call to use the streams e.g in downloadStream.
delegate | is a shared pointer to a ItemEventProtocol that the user has implemented. The pointer is defined in Types.h. |
|
virtual |
Returns the currently loaded stream / streams attached to the object. (NB if getStreams has not been called then streams() will return NULL).
|
virtual |
Returns the mime type of the object e.g xml/text or jpg e.t.c
|
virtual |
Returns the binary length/size of the object.
|
virtual |
Returns the Object type currently Other | GroupInvite | ShareInvite
|
virtual |
Returns all the keyValues
|
virtual |
set the Access control list for the object.
ACL | is a std::map of uint64_t and signed int (userId and permission), simply setting the permission you want to a valid user id that you want. CBE::permission_status_t is defined in Types.h. |
delegate | is a shared pointer to the class in wich you implement CBE::ShareDelegate, which is defined in Types.h and is a shared pointer to an ShareEventProtocol. |
|
virtual |
get the Access Control List for the Object.
delegate | is a shared pointer to the class in wich you implement CBE::ShareDelegate, which is defined in Types.h and is a shared pointer to an ShareEventProtocol. |
|
virtual |
Share Object to a user. Notifies the user that a share has occured so that the user can check what permissions they have been given. Shareing gives read permissions as of right now but might change in the future.
toUserGroup | takes a user id or group id (lastly named is for the future) and share to. |
description | names the specific share between you and the user/group. |
delegate | is a shared pointer to the class in wich you implement CBE::ShareDelegate, which is defined in Types.h and is a shared pointer to an ShareEventProtocol. |
|
virtual |
unShare the object to a specific shareId created when sharing. Each share is unique between user/group and the one sharing. This is represented with a unique share id.
shareId | is as mentioned the unique id for a share between the owner and other user/group. |
delegate | is a shared pointer to the class in wich you implement CBE::ShareDelegate, which is defined in Types.h and is a shared pointer to an ShareEventProtocol. |