![]() |
SDK
2.1.4
CloudBackend Software Development Kit - SDK API for C++
|
A collection of Item, can also represent a table or folder. More...
#include <Container.h>
Public Member Functions | |
cbe::Container | createContainer (const std::string &name, CreateContainerDelegatePtr delegate) |
Create a container. More... | |
cbe::Container | createContainer (const std::string &name) |
Synchronous [exception] createContainer. More... | |
cbe::util::Optional< cbe::Container > | createContainer (const std::string &name, CreateContainerError &error) |
Synchronous [non-throwing] createContainer. More... | |
void | move (cbe::ContainerId dstId, MoveDelegatePtr delegate) |
Move a container to a different parent. More... | |
cbe::Container | move (cbe::ContainerId dstId) |
Synchronous [exception] move. More... | |
cbe::util::Optional< cbe::Container > | move (cbe::ContainerId dstId, MoveError &error) |
Synchronous [non-throwing] move. More... | |
void | rename (const std::string &name, RenameDelegatePtr delegate) |
Change the name of the container. More... | |
cbe::Container | rename (const std::string &name) |
Synchronous [exception] rename. More... | |
cbe::util::Optional< cbe::Container > | rename (const std::string &name, RenameError &error) |
Synchronous [non-throwing] rename. More... | |
void | remove (RemoveDelegatePtr delegate) |
Delete the container. More... | |
delegate::container::RemoveSuccess | remove () |
Synchronous [exception] remove/delete. More... | |
cbe::util::Optional< delegate::container::RemoveSuccess > | remove (RemoveError &error) |
Synchronous [non-throwing] remove/delete. More... | |
cbe::Object | createObject (std::string name, cbe::KeyValues keyValues, CreateObjectDelegatePtr delegate) |
Create a new object. More... | |
cbe::Object | createObject (std::string name, CreateObjectDelegatePtr delegate) |
cbe::Object | createObject (std::string name, cbe::KeyValues keyValues) |
Synchronous [exception] createObject. More... | |
cbe::util::Optional< cbe::Object > | createObject (std::string name, cbe::KeyValues keyValues, CreateObjectError &error) |
Synchronous [non-throwing] createObject. More... | |
cbe::Object | upload (const std::string &filePath, UploadDelegatePtr delegate) |
Upload object to container with file given by filePath . More... | |
cbe::Object | upload (const std::string &name, const std::string &path, UploadDelegatePtr delegate) |
Create an object in current container by uploading a file. More... | |
cbe::Object | upload (const std::string &name, std::uint64_t length, const char *byteData, UploadDelegatePtr delegate) |
Upload from local memory to an object. More... | |
cbe::Object | upload (const std::string &filePath, delegate::ProgressEventFn &&progressEventFn) |
Synchronous [exception] upload. More... | |
cbe::Object | upload (const std::string &filePath) |
Synchronous [exception] upload. More... | |
cbe::Object | upload (const std::string &name, const std::string &path, delegate::ProgressEventFn &&progressEventFn) |
Synchronous [exception] upload with progress. More... | |
cbe::Object | upload (const std::string &name, const std::string &path) |
Synchronous [exception] upload. More... | |
cbe::Object | upload (const std::string &name, std::uint64_t length, const char *byteData, delegate::ProgressEventFn &&progressEventFn) |
Synchronous [exception] upload from memory with progress. More... | |
cbe::Object | upload (const std::string &name, std::uint64_t length, const char *byteData) |
Synchronous [exception] upload from memory. More... | |
cbe::util::Optional< cbe::Object > | upload (const std::string &filePath, delegate::ProgressEventFn &&progressEventFn, UploadError &error) |
Synchronous [non-throwing] upload with progress. More... | |
cbe::util::Optional< cbe::Object > | upload (const std::string &filePath, UploadError &error) |
Synchronous [non-throwing] upload. More... | |
cbe::util::Optional< cbe::Object > | upload (const std::string &name, const std::string &path, delegate::ProgressEventFn &&progressEventFn, UploadError &error) |
Synchronous [non-throwing] upload with progress. More... | |
cbe::util::Optional< cbe::Object > | upload (const std::string &name, const std::string &path, UploadError &error) |
Synchronous [non-throwing] upload. More... | |
cbe::util::Optional< cbe::Object > | upload (const std::string &name, std::uint64_t length, const char *byteData, delegate::ProgressEventFn &&progressEventFn, UploadError &error) |
Synchronous [non-throwing] upload from memory with progress. More... | |
cbe::util::Optional< cbe::Object > | upload (const std::string &name, std::uint64_t length, const char *byteData, UploadError &error) |
Synchronous [non-throwing] upload from memory. More... | |
cbe::QueryChain | query (QueryDelegatePtr queryDelegate) |
Select list of objects. More... | |
cbe::QueryChain | query (Filter filter, QueryDelegatePtr delegate) |
Select list of objects using filter. More... | |
cbe::QueryChainExt | query (delegate::QueryJoinDelegatePtr delegate) |
Select list of objects, for join. More... | |
cbe::QueryChainExt | query (Filter filter, delegate::QueryJoinDelegatePtr delegate) |
Select list of objects using filter, for join. More... | |
cbe::QueryChainSync | query () |
Synchronous [exception] Select list of objects. More... | |
cbe::QueryChainSync | query (Filter filter) |
Synchronous [exception] Select list of objects using filter. More... | |
cbe::QueryChainSync | query (QueryJoinError &error) |
Synchronous [non-throwing] Select list of objects, for join. More... | |
cbe::QueryChainSync | query (Filter filter, QueryJoinError &error) |
Synchronous [non-throwing] Select list of objects using filter, for join. More... | |
cbe::QueryChain | queryWithPath (std::string relativePath, QueryDelegatePtr delegate) |
Select list of objects in hierarchy. More... | |
cbe::QueryResult | queryWithPath (std::string relativePath) |
Synchronous [exception] queryWithPath. More... | |
cbe::util::Optional< cbe::QueryResult > | queryWithPath (std::string relativePath, queryWithPathError &error) |
Synchronous [non-throwing] queryWithPath. More... | |
cbe::QueryResult | search (std::string tags, QueryDelegatePtr delegate) |
Search by tags. More... | |
cbe::QueryResult | search (std::string tags) |
Synchronous [exception] search. More... | |
cbe::util::Optional< cbe::QueryResult > | search (std::string tags, SearchError &error) |
Synchronous [non-throwing] search. More... | |
cbe::QueryResult | search (cbe::Filter filter, QueryDelegatePtr delegate) |
Search using filter. More... | |
cbe::QueryResult | search (cbe::Filter) |
Synchronous [exception] search using filter. More... | |
cbe::util::Optional< cbe::QueryResult > | search (cbe::Filter filter, SearchError &error) |
Synchronous [non-throwing] search. More... | |
void | setAcl (cbe::AclMap aclMap, SetAclDelegatePtr delegate) |
set ACL. More... | |
cbe::AclMap | setAcl (cbe::AclMap aclMap) |
Synchronous [exception] setAcl. More... | |
cbe::util::Optional< cbe::AclMap > | setAcl (cbe::AclMap aclMap, SetAclError &error) |
Synchronous [non-throwing] setAcl. More... | |
void | getAcl (GetAclDelegatePtr delegate) |
Retrieves its ACL map. More... | |
cbe::AclMap | getAcl () |
Synchronous [exception] getAcl. More... | |
cbe::util::Optional< cbe::AclMap > | getAcl (GetAclError &error) |
Synchronous [non-throwing] getAcl. More... | |
void | share (cbe::UserId toUserGroup, std::string description, ShareDelegatePtr delegate) |
Make accessible by other user. More... | |
delegate::ShareDelegate::Success | share (cbe::UserId toUserGroup, std::string description) |
Synchronous [exception] share. More... | |
cbe::util::Optional< delegate::ShareDelegate::Success > | share (cbe::UserId toUserGroup, std::string description, ShareError &error) |
Synchronous [non-throwing] share. More... | |
void | unShare (cbe::ShareId shareId, UnShareDelegatePtr delegate) |
Revoke a previous share. More... | |
delegate::UnShareDelegate::Success | unShare (cbe::ShareId shareId) |
Synchronous [exception] unShare. More... | |
cbe::util::Optional< delegate::UnShareDelegate::Success > | unShare (cbe::ShareId shareId, UnShareError &error) |
Synchronous [non-throwing] unShare. More... | |
void | publish (cbe::PublishAccess security, cbe::PublishVisibility privacy, std::string description, std::string password, PublishDelegatePtr delegate) |
Publishes a container and its content to any user. More... | |
delegate::PublishSuccess | publish (cbe::PublishAccess security, cbe::PublishVisibility privacy, std::string description, std::string password) |
Synchronous [exception] publish. More... | |
cbe::util::Optional< delegate::PublishSuccess > | publish (cbe::PublishAccess security, cbe::PublishVisibility privacy, std::string description, std::string password, PublishError &error) |
Synchronous [non-throwing] publish. More... | |
void | unPublish (UnPublishDelegatePtr delegate) |
UnPublishes this container. More... | |
delegate::UnPublishSuccess | unPublish () |
Synchronous [exception] unPublish. More... | |
cbe::util::Optional< delegate::UnPublishSuccess > | unPublish (UnPublishError &error) |
Synchronous [non-throwing] unPublish. More... | |
void | unSubscribe (UnSubscribeDelegatePtr delegate) |
UnSubscribes from this container. More... | |
delegate::UnSubscribeSuccess | unSubscribe () |
Synchronous [exception] unSubscribe. More... | |
cbe::util::Optional< delegate::UnSubscribeSuccess > | unSubscribe (UnSubscribeError &error) |
Synchronous [non-throwing] unSubscribe. More... | |
Container (cbe::DefaultCtor) | |
![]() | |
cbe::ShareIds | getShareIds () const |
cbe::ShareId | getShareFromUserId (cbe::UserId userId) |
cbe::UserId | getUserFromShareId (cbe::UserId shareId) |
std::string | aclTag () const |
std::string | description () const |
cbe::ItemId | id () const |
cbe::ContainerId | parentId () const |
cbe::ContainerId | oldParentId () const |
std::string | name () const |
std::string | path () const |
cbe::UserId | ownerId () const |
cbe::ContainerId | driveId () const |
std::string | username () const |
bool | idLoaded () const |
bool | dataLoaded () const |
cbe::Date | created () const |
cbe::Date | updated () const |
cbe::Date | deleted () const |
cbe::ItemType | type () const |
bool | hasPublished () const |
Publish | getPublished () const |
bool | hasSubscribe () const |
Subscribe | getSubscribe () const |
bool | operator< (const cbe::Item &rh) const |
AclMap | aclMap () const |
operator bool () const | |
Checks if the inherited instance is real. More... | |
Friends | |
class | Account |
class | CloudBackend |
class | Database |
class | Filter |
class | Group |
class | QueryChain |
Additional Inherited Members | |
![]() | |
Item (std::shared_ptr< Impl > pImpl) | |
template<class ImplT > | |
ImplT & | castImpl () const |
A collection of Item, can also represent a table or folder.
Pointer to cbe::delegate::CreateContainerDelegate that is passed into asynchronous version of method createContainer()
See delegate::container::CreateContainerDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method createContainer()
See delegate::CreateContainerDelegate::ErrorInfo
Pointer to cbe::delegate::MoveDelegate that is passed into asynchronous version of method move()
Forms the type of the error
return parameter for the synchronous version of method move()
See delegate::container::MoveDelegate::ErrorInfo
Pointer to cbe::delegate::container::RenameDelegate that is passed into asynchronous version of method rename()
Forms the type of the error
return parameter for the synchronous version of method rename()
See delegate::container::RenameDelegate::ErrorInfo
Pointer to cbe::delegate::RemoveDelegate that is passed into asynchronous version of method remove()
Forms the type of the error
return parameter for the synchronous version of method remove()
See delegate::RemoveDelegate::ErrorInfo
Pointer to cbe::delegate::CreateObjectDelegate that is passed into asynchronous version of method createObject()
See delegate::object::CreateObjectDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method createObject()
See delegate::CreateObjectDelegate::ErrorInfo
Pointer to cbe::delegate::UploadDelegate that is passed into asynchronous version of methods:
The exception type thrown by the synchronous version of methods:
Forms the type of the error
return parameter for the synchronous versions of methods:
Pointer to cbe::delegate::QueryDelegatePtr that is passed into asynchronous version of method query()
using cbe::Container::QueryJoinDelegatePtr = std::shared_ptr<delegate::QueryJoinDelegate> |
Pointer to cbe::delegate::QueryJoinDelegate that is passed into asynchronous version of method query()
See delegate::object::queryWithPathDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method queryWithPath()
See delegate::queryWithPathDelegate::ErrorInfo
See delegate::container::QueryDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method search()
See delegate::QueryDelegate::ErrorInfo
Pointer to cbe::delegate::AclDelegate that is passed into asynchronous version of method setAcl()
See delegate::object::AclDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method setAcl()
See delegate::AclDelegate::ErrorInfo
Pointer to cbe::delegate::AclDelegate that is passed into asynchronous version of method getAcl()
See delegate::container::AclDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method getAcl()
See delegate::AclDelegate::ErrorInfo
Pointer to cbe::delegate::ShareDelegate that is passed into asynchronous version of method share()
See delegate::container::ShareDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method share()
See delegate::ShareDelegate::ErrorInfo
using cbe::Container::UnShareDelegatePtr = std::shared_ptr<delegate::UnShareDelegate> |
Pointer to cbe::delegate::UnShareDelegate that is passed into asynchronous version of method unShare()
See delegate::object::UnShareDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method unShare()
See delegate::UnShareDelegate::ErrorInfo
Pointer to cbe::delegate::PublishDelegate that is passed into asynchronous version of method publish()
See delegate::object::PublishDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method publish()
See delegate::PublishDelegate::ErrorInfo
Pointer to cbe::delegate::UnPublishDelegatePtr that is passed into asynchronous version of method unPublish()
Pointer to cbe::delegate::UnPublishDelegate that is passed into asynchronous version of method unPublish() See delegate::object::UnPublishDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method unPublish()
See delegate::UnPublishDelegate::ErrorInfo
Pointer to cbe::delegate::UnSubscribeDelegate that is passed into asynchronous version of method unSubscribe()
See delegate::object::UnSubscribeDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method unSubscribe()
See delegate::UnSubscribeDelegate::ErrorInfo
cbe::Container cbe::Container::createContainer | ( | const std::string & | name, |
CreateContainerDelegatePtr | delegate | ||
) |
Create a container.
Creates a container inside this container to be used for adding objects.
name | Name of the container to be created. |
delegate | Pointer to a delegate::CreateContainerDelegate instance that is implemented by the user. |
cbe::Container cbe::Container::createContainer | ( | const std::string & | name | ) |
Synchronous [exception] createContainer.
Synchronous version of createContainer(const std::string&, CreateContainerDelegatePtr), and throws an exception, CreateContainerException, in case of a failed call.
See createContainer(CreateContainerDelegatePtr)
CreateContainerException |
cbe::util::Optional<cbe::Container> cbe::Container::createContainer | ( | const std::string & | name, |
CreateContainerError & | error | ||
) |
Synchronous [non-throwing] createContainer.
Synchronous version of createContainer(const std::string&, CreateContainerDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See createContainer(const std::string& , CreateContainerDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the CreateContainerError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. void cbe::Container::move | ( | cbe::ContainerId | dstId, |
MoveDelegatePtr | delegate | ||
) |
Move a container to a different parent.
Used to move container with its content to user specified location e.g., other container or to root container.
dstId | id of the container to which it should be moved to. |
delegate | Pointer to a delegate::container::MoveDelegate instance that is implemented by the user. |
cbe::Container cbe::Container::move | ( | cbe::ContainerId | dstId | ) |
Synchronous [exception] move.
Synchronous version of move(cbe::ContainerId, MoveDelegatePtr) , and throws an exception, MoveException, in case of a failed call.
See move(MoveDelegatePtr)
MoveException |
cbe::util::Optional<cbe::Container> cbe::Container::move | ( | cbe::ContainerId | dstId, |
MoveError & | error | ||
) |
Synchronous [non-throwing] move.
Synchronous version of move(dstId, MoveDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See move(dstId, MoveDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the MoveError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. void cbe::Container::rename | ( | const std::string & | name, |
RenameDelegatePtr | delegate | ||
) |
Change the name of the container.
Rename the container.
name | New name of the container. |
delegate | Pointer to a delegate::container::RenameDelegate instance that is implemented by the user. |
cbe::Container cbe::Container::rename | ( | const std::string & | name | ) |
Synchronous [exception] rename.
Synchronous version of rename(const std::string&, RenameDelegatePtr) , and throws an exception, RenameException, in case of a failed call.
See rename(RenameDelegatePtr)
RenameException |
cbe::util::Optional<cbe::Container> cbe::Container::rename | ( | const std::string & | name, |
RenameError & | error | ||
) |
Synchronous [non-throwing] rename.
Synchronous version of rename(name, RenameDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See rename(name, RenameDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the RenameError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. void cbe::Container::remove | ( | RemoveDelegatePtr | delegate | ) |
Delete the container.
Removes/deletes the container and all its content.
delegate | Pointer to a delegate::container::RemoveDelegate instance that is implemented by the user. |
delegate::container::RemoveSuccess cbe::Container::remove | ( | ) |
Synchronous [exception] remove/delete.
Synchronous version of remove(RemoveDelegatePtr) , and throws an exception, RemoveException, in case of a failed call.
See remove(RemoveDelegatePtr)
RemoveException |
cbe::util::Optional<delegate::container::RemoveSuccess> cbe::Container::remove | ( | RemoveError & | error | ) |
Synchronous [non-throwing] remove/delete.
Synchronous version of remove(RemoveDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See remove(RemoveDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the RemoveError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. cbe::Object cbe::Container::createObject | ( | std::string | name, |
cbe::KeyValues | keyValues, | ||
CreateObjectDelegatePtr | delegate | ||
) |
Create a new object.
Creates an object with indexed tags or indexed tags + non indexed tags a.k.a. metadata, key/value pairs.
name | Name of the object. |
keyValues | Optional map of key/value pairs (metadata). |
delegate | Pointer to a delegate::CreateObjectDelegate instance that is implemented by the user. |
cbe::Object cbe::Container::createObject | ( | std::string | name, |
CreateObjectDelegatePtr | delegate | ||
) |
Same as createObject(std::string, cbe::KeyValues, CreateObjectDelegatePtr), but without the keyValues
parameter.
cbe::Object cbe::Container::createObject | ( | std::string | name, |
cbe::KeyValues | keyValues | ||
) |
Synchronous [exception] createObject.
Synchronous version of createObject(std::string, cbe::KeyValues, CreateObjectDelegatePtr) , and throws an exception, CreateObjectException, in case of a failed call.
See createObject(CreateObjectDelegatePtr)
CreateObjectException |
cbe::util::Optional<cbe::Object> cbe::Container::createObject | ( | std::string | name, |
cbe::KeyValues | keyValues, | ||
CreateObjectError & | error | ||
) |
Synchronous [non-throwing] createObject.
Synchronous version of createObject(name, keyValues, CreateObjectDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See createObject(name, keyValues, CreateObjectDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the CreateObjectError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. cbe::Object cbe::Container::upload | ( | const std::string & | filePath, |
UploadDelegatePtr | delegate | ||
) |
Upload object to container with file given by filePath
.
See upload(const std::string&,const std::string& path,UploadDelegatePtr)
filePath | Fully qualified file name. I.e., the path, relative or absolute, including file name. |
cbe::Object cbe::Container::upload | ( | const std::string & | name, |
const std::string & | path, | ||
UploadDelegatePtr | delegate | ||
) |
Create an object in current container by uploading a file.
Object is named by name
, residing at path
.
The object being created is instantly returned with a temporary id. When the response is retrieved from from the server, via callback method onUploadSuccess() the object will be updated with its final unique id.
name | Name of local file name. The object, that is created, will be given the same name. |
path | Path to local folder where the file is located. The can be relative or absolute and must end with a slash (/). |
delegate | Pointer to a delegate::UploadDelegate instance that is implemented by the user. |
cbe::Object cbe::Container::upload | ( | const std::string & | name, |
std::uint64_t | length, | ||
const char * | byteData, | ||
UploadDelegatePtr | delegate | ||
) |
Upload from local memory to an object.
name | name that the uploaded object will get |
length | size of file in Bytes |
byteData | (char pointer to an array containing the data). |
delegate | Pointer to a delegate::UploadDelegate instance that is implemented by the user. |
cbe::Object cbe::Container::upload | ( | const std::string & | filePath, |
delegate::ProgressEventFn && | progressEventFn | ||
) |
Synchronous [exception] upload.
Synchronous version of upload(const std::string&,UploadDelegatePtr) , and throws an exception, UploadException, in case of a failed call.
See upload(const std::string&,UploadDelegatePtr)
progressEventFn | Callback function that is called for each memory chunk uploaded. The callback function will be executed the calling thread's context. Also see cbe::delegate::ProgressEventFn. For the other parameters, see upload(const std::string&,UploadDelegatePtr) |
UploadException |
cbe::Object cbe::Container::upload | ( | const std::string & | filePath | ) |
Synchronous [exception] upload.
Same as upload(const std::string&,delegate::ProgressEventFn&&), but without the parameter, progressEventFn
.
cbe::Object cbe::Container::upload | ( | const std::string & | name, |
const std::string & | path, | ||
delegate::ProgressEventFn && | progressEventFn | ||
) |
Synchronous [exception] upload with progress.
Synchronous version of upload(const std::string&,const std::string&,UploadDelegatePtr) , and throws an exception, UploadException, in case of a failed call.
See upload(const std::string&,const std::string&,UploadDelegatePtr)
progressEventFn | See upload(const std::string&,delegate::ProgressEventFn&&). For the other parameters, see upload(const std::string&,UploadDelegatePtr) |
UploadException |
cbe::Object cbe::Container::upload | ( | const std::string & | name, |
const std::string & | path | ||
) |
Synchronous [exception] upload.
Same as upload(const std::string&, const std::string&, delegate::ProgressEventFn&&, UploadError&) , but without the parameter, progressEventFn
.
cbe::Object cbe::Container::upload | ( | const std::string & | name, |
std::uint64_t | length, | ||
const char * | byteData, | ||
delegate::ProgressEventFn && | progressEventFn | ||
) |
Synchronous [exception] upload from memory with progress.
Synchronous version of upload(const std::string&,std::uint64_t,const char*,UploadDelegatePtr) , and throws an exception, UploadException, in case of a failed call.
See upload(const std::string&,std::uint64_t,const char*,UploadDelegatePtr)
progressEventFn | See upload(const std::string&,delegate::ProgressEventFn&&). For the other parameters, see upload(const std::string&,UploadDelegatePtr) |
UploadException |
cbe::Object cbe::Container::upload | ( | const std::string & | name, |
std::uint64_t | length, | ||
const char * | byteData | ||
) |
Synchronous [exception] upload from memory.
Same as upload(const std::string&,std::uint64_t,const char*,delegate::ProgressEventFn&&) , but without the parameter, progressEventFn
.
cbe::util::Optional<cbe::Object> cbe::Container::upload | ( | const std::string & | filePath, |
delegate::ProgressEventFn && | progressEventFn, | ||
UploadError & | error | ||
) |
Synchronous [non-throwing] upload with progress.
Similar to synchronous method upload(const std::string&,delegate::ProgressEventFn&&) , but throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See upload(const std::string&,delegate::ProgressEventFn&&)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the UploadError object passed in will we be populated with the error information. For the other parameters, see upload(const std::string&,delegate::ProgressEventFn&&) |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter.cbe::util::Optional<cbe::Object> cbe::Container::upload | ( | const std::string & | filePath, |
UploadError & | error | ||
) |
Synchronous [non-throwing] upload.
Same as upload(const std::string&,delegate::ProgressEventFn&&,UploadError&) , but without the parameter, progressEventFn
.
cbe::util::Optional<cbe::Object> cbe::Container::upload | ( | const std::string & | name, |
const std::string & | path, | ||
delegate::ProgressEventFn && | progressEventFn, | ||
UploadError & | error | ||
) |
Synchronous [non-throwing] upload with progress.
Similar to synchronous method upload(const std::string&,const std::string&,delegate::ProgressEventFn&&) , but throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See upload(const std::string&, const std::string&, delegate::ProgressEventFn&&)
[out] | error | See upload(const std::string&, delegate::ProgressEventFn&&, UploadError&). For the other parameters, see upload(const std::string&, const std::string&, delegate::ProgressEventFn&&) |
cbe::util::Optional<cbe::Object> cbe::Container::upload | ( | const std::string & | name, |
const std::string & | path, | ||
UploadError & | error | ||
) |
Synchronous [non-throwing] upload.
Same as upload(const std::string&, const std::string&, delegate::ProgressEventFn&&, UploadError&) , but without the parameter, progressEventFn
.
cbe::util::Optional<cbe::Object> cbe::Container::upload | ( | const std::string & | name, |
std::uint64_t | length, | ||
const char * | byteData, | ||
delegate::ProgressEventFn && | progressEventFn, | ||
UploadError & | error | ||
) |
Synchronous [non-throwing] upload from memory with progress.
Similar to synchronous method upload(const std::string&, std::uint64_t, const char*, delegate::ProgressEventFn&&) , but throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See upload(const std::string&, std::uint64_t, const char*, delegate::ProgressEventFn&&)
[out] | error | See upload(const std::string&, delegate::ProgressEventFn&&, UploadError&). |
cbe::util::Optional<cbe::Object> cbe::Container::upload | ( | const std::string & | name, |
std::uint64_t | length, | ||
const char * | byteData, | ||
UploadError & | error | ||
) |
Synchronous [non-throwing] upload from memory.
Same as upload(const std::string&, std::uint64_t, const char*, delegate::ProgressEventFn&&, UploadError&) , but without the parameter, progressEventFn
.
cbe::QueryChain cbe::Container::query | ( | QueryDelegatePtr | queryDelegate | ) |
Select list of objects.
In line with function CloudBackend::query(ContainerId, QueryDelegatePtr), but with its ContainerId
parameter excluded.
cbe::QueryChain cbe::Container::query | ( | Filter | filter, |
QueryDelegatePtr | delegate | ||
) |
Select list of objects using filter.
In line with function CloudBackend::query(ContainerId, Filter, QueryDelegatePtr), but with its ContainerId
parameter excluded.
cbe::QueryChainExt cbe::Container::query | ( | delegate::QueryJoinDelegatePtr | delegate | ) |
Select list of objects, for join.
In line with function CloudBackend::query(ContainerId, delegate::QueryJoinDelegatePtr), but with its ContainerId
parameter excluded.
cbe::QueryChainExt cbe::Container::query | ( | Filter | filter, |
delegate::QueryJoinDelegatePtr | delegate | ||
) |
Select list of objects using filter, for join.
In line with function CloudBackend::query(ContainerId, Filter, delegate::QueryJoinDelegatePtr), but with its ContainerId
parameter excluded.
cbe::QueryChainSync cbe::Container::query | ( | ) |
Synchronous [exception] Select list of objects.
In line with function CloudBackend::query(ContainerId), but with its ContainerId
parameter excluded.
QueryException |
cbe::QueryChainSync cbe::Container::query | ( | Filter | filter | ) |
Synchronous [exception] Select list of objects using filter.
In line with function CloudBackend::query(ContainerId, Filter), but with its ContainerId
parameter excluded.
QueryException |
cbe::QueryChainSync cbe::Container::query | ( | QueryJoinError & | error | ) |
Synchronous [non-throwing] Select list of objects, for join.
In line with function CloudBackend::query(ContainerId, QueryJoinError&), but with its ContainerId
parameter excluded.
cbe::QueryChainSync cbe::Container::query | ( | Filter | filter, |
QueryJoinError & | error | ||
) |
Synchronous [non-throwing] Select list of objects using filter, for join.
In line with function CloudBackend::query(ContainerId, Filter, QueryJoinError&), but with its ContainerId
parameter excluded.
cbe::QueryChain cbe::Container::queryWithPath | ( | std::string | relativePath, |
QueryDelegatePtr | delegate | ||
) |
Select list of objects in hierarchy.
Pointer to cbe::delegate::queryWithPathDelegate that is passed into asynchronous version of method queryWithPath()
Queries the container with a given relative path, returns container with objects.
E.g. /Documents/Pictures will return objects and subContainers for Pictures.
relativePath | container path, e.g. /Documents/Pictures |
delegate | Pointer to a delegate::QueryDelegate instance that is implemented by the user. |
cbe::QueryResult cbe::Container::queryWithPath | ( | std::string | relativePath | ) |
Synchronous [exception] queryWithPath.
Synchronous version of queryWithPath(relativePath, queryWithPathDelegatePtr) , and throws an exception, queryWithPathException, in case of a failed call.
See queryWithPath(queryWithPathDelegatePtr)
queryWithPathException |
cbe::util::Optional<cbe::QueryResult> cbe::Container::queryWithPath | ( | std::string | relativePath, |
queryWithPathError & | error | ||
) |
Synchronous [non-throwing] queryWithPath.
Synchronous version of queryWithPath(relativePath, queryWithPathDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See queryWithPath(relativePath, queryWithPathDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the queryWithPathError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. cbe::QueryResult cbe::Container::search | ( | std::string | tags, |
QueryDelegatePtr | delegate | ||
) |
Search by tags.
Pointer to cbe::delegate::QueryDelegate that is passed into asynchronous version of method search()
Search the whole container for tags related to Objects in the container structure.
E.g. Key = Name, Value Contract/Object/Song => Name:Contract1.
Search handles tags in combination of conjunctions of keys and/or key values separated by |.
E.g. Name:*|Country:Sweden|Country:Norway, this would search for objects with key Name of any value and where key Country is either Sweden or Norway.
tags | is a string of key tags or key:value pairs that are separated by |. |
delegate | Pointer to a delegate::QueryDelegate instance that is implemented by the user. |
cbe::QueryResult cbe::Container::search | ( | std::string | tags | ) |
Synchronous [exception] search.
Synchronous version of search(std::string, QueryDelegatePtr) , and throws an exception, SearchException, in case of a failed call.
See search(QueryDelegatePtr)
SearchException |
cbe::util::Optional<cbe::QueryResult> cbe::Container::search | ( | std::string | tags, |
SearchError & | error | ||
) |
Synchronous [non-throwing] search.
Synchronous version of search(tags, QueryDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See search(tags, QueryDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the SearchError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. cbe::QueryResult cbe::Container::search | ( | cbe::Filter | filter, |
QueryDelegatePtr | delegate | ||
) |
Search using filter.
Search the whole container with sub-containers related to Objects in the container hierarchy structure.
E.g. Key = Name, Value Contract/Object/Song => Name:Contract1.
Search handles tags in combination / conjunction of keys and/or key values separated by |.
E.g. Name:*|Country:Sweden|Country:Norway, this would search for objects with key Name of any value and where key Country is either Sweden or Norway.
filter | is a cbe::Filter on which you can set how you want data to be ordered when searching. Remember to set the queryString to be keys/tags or key:value pairs that are separated by |. |
delegate | Pointer to a delegate::QueryDelegate instance that is implemented by the user. |
cbe::QueryResult cbe::Container::search | ( | cbe::Filter | ) |
Synchronous [exception] search using filter.
Pointer to cbe::delegate::SearchDelegate that is passed into asynchronous version of method search()
Synchronous version of search(cbe::Filter, SearchDelegatePtr) , and throws an exception, SearchException, in case of a failed call.
See search(cbe::Filter, SearchDelegatePtr)
SearchException |
cbe::util::Optional<cbe::QueryResult> cbe::Container::search | ( | cbe::Filter | filter, |
SearchError & | error | ||
) |
Synchronous [non-throwing] search.
Synchronous version of search(filter, SearchDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See search(filter, SearchDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the SearchError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. void cbe::Container::setAcl | ( | cbe::AclMap | aclMap, |
SetAclDelegatePtr | delegate | ||
) |
set ACL.
Set the Access Control List ACL
for the container. For containers set does set the whole container tree, so all its sub items as well. Remember this is set and not update so every time you set all ids that should be there should be added.
aclMap | The desired permissions for current container. |
delegate | Pointer to a delegate::AclDelegate instance that is implemented by the user. |
cbe::AclMap cbe::Container::setAcl | ( | cbe::AclMap | aclMap | ) |
Synchronous [exception] setAcl.
Synchronous version of setAcl(cbe::AclMap, SetAclDelegatePtr) , and throws an exception, SetAclException, in case of a failed call.
See setAcl(SetAclDelegatePtr)
SetAclException |
cbe::util::Optional<cbe::AclMap> cbe::Container::setAcl | ( | cbe::AclMap | aclMap, |
SetAclError & | error | ||
) |
Synchronous [non-throwing] setAcl.
Synchronous version of setAcl(aclMap, SetAclDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See setAcl(aclMap, SetAclDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the SetAclError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. void cbe::Container::getAcl | ( | GetAclDelegatePtr | delegate | ) |
Retrieves its ACL map.
get the Access Control List ACL
of the Container.
delegate | Pointer to a delegate::AclDelegate instance that is implemented by the user. |
cbe::AclMap cbe::Container::getAcl | ( | ) |
Synchronous [exception] getAcl.
Synchronous version of getAcl(GetAclDelegatePtr) , and throws an exception, GetAclException, in case of a failed call.
See getAcl(GetAclDelegatePtr)
GetAclException |
cbe::util::Optional<cbe::AclMap> cbe::Container::getAcl | ( | GetAclError & | error | ) |
Synchronous [non-throwing] getAcl.
Synchronous version of getAcl(GetAclDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See getAcl(GetAclDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the GetAclError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. void cbe::Container::share | ( | cbe::UserId | toUserGroup, |
std::string | description, | ||
ShareDelegatePtr | delegate | ||
) |
Make accessible by other user.
Shares a container and its content to a user. This provides the user the ability to access what has been shared to them via the listAvailableShares command. To allow users to view and change shared information see ACL
.
toUserGroup | takes a user id or group id to share to. |
description | names the specific share between you and the user/group. |
delegate | Pointer to a delegate::ShareDelegate instance that is implemented by the user. |
delegate::ShareDelegate::Success cbe::Container::share | ( | cbe::UserId | toUserGroup, |
std::string | description | ||
) |
Synchronous [exception] share.
Synchronous version of share(cbe::UserId, std::string, ShareDelegatePtr) , and throws an exception, ShareException, in case of a failed call.
See share(ShareDelegatePtr)
ShareException |
cbe::util::Optional<delegate::ShareDelegate::Success> cbe::Container::share | ( | cbe::UserId | toUserGroup, |
std::string | description, | ||
ShareError & | error | ||
) |
Synchronous [non-throwing] share.
Synchronous version of share(toUserGroup, description, ShareDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See share(toUserGroup, description, ShareDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the ShareError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. void cbe::Container::unShare | ( | cbe::ShareId | shareId, |
UnShareDelegatePtr | delegate | ||
) |
Revoke a previous share.
unShare the container 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 | Pointer to a delegate::UnShareDelegate instance that is implemented by the user. |
delegate::UnShareDelegate::Success cbe::Container::unShare | ( | cbe::ShareId | shareId | ) |
Synchronous [exception] unShare.
Synchronous version of unShare(UnShareDelegatePtr) , and throws an exception, UnShareException, in case of a failed call.
See unShare(UnShareDelegatePtr)
UnShareException |
cbe::util::Optional<delegate::UnShareDelegate::Success> cbe::Container::unShare | ( | cbe::ShareId | shareId, |
UnShareError & | error | ||
) |
Synchronous [non-throwing] unShare.
Synchronous version of unShare(UnShareDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See unShare(UnShareDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the UnShareError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. void cbe::Container::publish | ( | cbe::PublishAccess | security, |
cbe::PublishVisibility | privacy, | ||
std::string | description, | ||
std::string | password, | ||
PublishDelegatePtr | delegate | ||
) |
Publishes a container and its content to any user.
Asynchronous version of this service function.
Can be revoked with unPublish()
security | A cbe::PublishAccess enum |
privacy | A cbe::PublishVisibility enum |
description | Free text |
password | Password |
delegate | Pointer to a delegate::PublishDelegate instance that is implemented by the user. |
delegate::PublishSuccess cbe::Container::publish | ( | cbe::PublishAccess | security, |
cbe::PublishVisibility | privacy, | ||
std::string | description, | ||
std::string | password | ||
) |
Synchronous [exception] publish.
Synchronous version of publish(cbe::PublishAccess, cbe::PublishVisibility, std::string, std::string, PublishDelegatePtr) , and throws an exception, PublishException, in case of a failed call.
See publish(PublishDelegatePtr)
PublishException |
cbe::util::Optional<delegate::PublishSuccess> cbe::Container::publish | ( | cbe::PublishAccess | security, |
cbe::PublishVisibility | privacy, | ||
std::string | description, | ||
std::string | password, | ||
PublishError & | error | ||
) |
Synchronous [non-throwing] publish.
Synchronous version of publish(security, privacy, description, password, PublishDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See publish(security, privacy, description, password, PublishDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the PublishError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. void cbe::Container::unPublish | ( | UnPublishDelegatePtr | delegate | ) |
UnPublishes this container.
Asynchronous version of this service function.
Revokes previous publish().
delegate | Gets notified when the container has been unPublished (or if there was an error) |
delegate::UnPublishSuccess cbe::Container::unPublish | ( | ) |
Synchronous [exception] unPublish.
Synchronous version of unPublish(UnPublishDelegatePtr) , and throws an exception, UnPublishException, in case of a failed call.
See unPublish(UnPublishDelegatePtr)
UnPublishException |
cbe::util::Optional<delegate::UnPublishSuccess> cbe::Container::unPublish | ( | UnPublishError & | error | ) |
Synchronous [non-throwing] unPublish.
Synchronous version of unPublish(UnPublishDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See unPublish(UnPublishDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the UnPublishError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. void cbe::Container::unSubscribe | ( | UnSubscribeDelegatePtr | delegate | ) |
UnSubscribes from this container.
Asynchronous version of this service function.
Revokes the subscription previously established with cbe::SubscribeManager::subscribe()
delegate | Gets notified when the container has been unSubscribed (or if there was an error) |
delegate::UnSubscribeSuccess cbe::Container::unSubscribe | ( | ) |
Synchronous [exception] unSubscribe.
Synchronous version of unSubscribe(UnSubscribeDelegatePtr) , and throws an exception, UnSubscribeException, in case of a failed call.
See unSubscribe(UnSubscribeDelegatePtr)
UnSubscribeException |
cbe::util::Optional<delegate::UnSubscribeSuccess> cbe::Container::unSubscribe | ( | UnSubscribeError & | error | ) |
Synchronous [non-throwing] unSubscribe.
Synchronous version of unSubscribe(UnSubscribeDelegatePtr) , and throws no exception on error, instead the out/return parameter error
is used to provide the error information in connection with a failed call.
See unSubscribe(UnSubscribeDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the UnSubscribeError object passed in will we be populated with the error information. |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter.