![]() |
SDK
2.1.4
CloudBackend Software Development Kit - SDK API for C++
|
Holder of a set of data, can represent a table row. More...
#include <Object.h>
Friends | |
class | CloudBackend |
class | Container |
Additional Inherited Members | |
![]() | |
Item (std::shared_ptr< Impl > pImpl) | |
template<class ImplT > | |
ImplT & | castImpl () const |
Holder of a set of data, can represent a table row.
Pointer to cbe::delegate::object::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::object::MoveDelegate::ErrorInfo
Pointer to cbe::delegate::object::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::object::RenameDelegate::ErrorInfo
Pointer to cbe::delegate::object::RenameDelegate 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::object::RemoveDelegate::ErrorInfo
Pointer to cbe::delegate::DownloadDelegate 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 version of methods:
Pointer to cbe::delegate::DownloadBinaryDelegate that is passed into asynchronous version of method download()
Forms the type of the error
return parameter for the synchronous version of methods:
Pointer to cbe::delegate::UploadDelegate that is passed into asynchronous version of method uploadStream()
See delegate::object::UploadDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of methods:
Pointer to cbe::delegate::UpdateKeyValuesDelegate that is passed into asynchronous version of method updateKeyValues()
See delegate::object::UpdateKeyValuesDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method updateKeyValues()
See delegate::UpdateKeyValuesDelegate::ErrorInfo
Pointer to cbe::delegate::GetStreamsDelegate that is passed into asynchronous version of method getStream()
using cbe::Object::Streams = cbe::Streams |
Collection of Stream objects.
See cbe::Streams
Forms the type of the error
return parameter for the synchronous version of method getStreams(GetStreamsError&)
See delegate::GetStreamsDelegate::ErrorInfo
Pointer to cbe::delegate::AclDelegate that is passed into asynchronous version of method getAcl()
See delegate::object::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::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::ShareDelegate that is passed into asynchronous version of method share()
See delegate::object::ShareDelegate::Exception
Forms the type of the error
return parameter for the synchronous version of method share()
See delegate::ShareDelegate::ErrorInfo
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::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
void cbe::Object::move | ( | cbe::ContainerId | dstId, |
MoveDelegatePtr | delegate | ||
) |
Relocates an object to a different container.
Asynchronous version of this service function.
dstId | Id of the destination container. |
delegate | Pointer to a delegate::object::MoveDelegate instance that is implemented by the user. |
cbe::Object cbe::Object::move | ( | cbe::ContainerId | dstId | ) |
Synchronous version of move(cbe::ContainerId,MoveDelegatePtr) , and throws an exception, MoveException, in case of a failed call.
See move(cbe::ContainerId,MoveDelegatePtr)
MoveException |
cbe::util::Optional<cbe::Object> cbe::Object::move | ( | cbe::ContainerId | dstId, |
MoveError & | error | ||
) |
Synchronous version of move(cbe::ContainerId,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(cbe::ContainerId,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::Object::rename | ( | const std::string & | name, |
RenameDelegatePtr | delegate | ||
) |
Rename object.
Asynchronous version of this service function.
name | string name of the object. |
delegate | Pointer to a delegate::object::RenameDelegate instance that is implemented by the user. |
cbe::Object cbe::Object::rename | ( | const std::string & | name | ) |
Synchronous version of rename(const std::string&,RenameDelegatePtr) , and throws an exception, RenameException, in case of a failed call.
See rename(const std::string&,RenameDelegatePtr)
RenameException |
cbe::util::Optional<cbe::Object> cbe::Object::rename | ( | const std::string & | name, |
RenameError & | error | ||
) |
Synchronous version of rename(const std::string&,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(const std::string&,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::Object::remove | ( | RemoveDelegatePtr | delegate | ) |
Remove the object from cloud and locally.
Asynchronous version of this service function.
delegate | Pointer to a delegate::object::RemoveDelegate instance that is implemented by the user. |
delegate::object::RemoveSuccess cbe::Object::remove | ( | ) |
Synchronous version of remove(RemoveDelegatePtr) , and throws an exception, RemoveException, in case of a failed call.
See remove(RemoveDelegatePtr)
RemoveException |
cbe::util::Optional<delegate::object::RemoveSuccess> cbe::Object::remove | ( | RemoveError & | error | ) |
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. void cbe::Object::download | ( | const std::string & | path, |
DownloadDelegatePtr | delegate | ||
) |
Download the data of current object to the the local file system.
Asynchronous version of this service function.
The data will be contained in file, named after the name of current object (method name()), to the location given by parameter path
.
path | Folder location, on the local file system, of the file to be downloaded. This string must end with a slash ("/"). |
delegate | Pointer to a delegate::DownloadDelegate instance that is implemented by the user. |
delegate::DownloadSuccess cbe::Object::download | ( | const std::string & | path, |
delegate::ProgressEventFn && | progressEventFn | ||
) |
Synchronous version of download(const std::string&,DownloadDelegatePtr) , and throws an exception, DownloadException, in case of a failed call.
See download(const std::string&,DownloadDelegatePtr)
progressEventFn | Callback function that is called for each memory chunk downloaded. The callback function will be executed the calling thread's context. Also see cbe::delegate::ProgressEventFn. For the other parameters, see download(const std::string&,DownloadDelegatePtr) |
DownloadException |
delegate::DownloadSuccess cbe::Object::download | ( | const std::string & | path | ) |
Same as download(const std::string&,delegate::ProgressEventFn&&), but without the parameter, progressEventFn
.
cbe::util::Optional<delegate::DownloadSuccess> cbe::Object::download | ( | const std::string & | path, |
delegate::ProgressEventFn && | progressEventFn, | ||
DownloadError & | error | ||
) |
Similar to synchronous method download(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 download(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 DownloadError object passed in will we be populated with the error information. For the other parameters, see download(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<delegate::DownloadSuccess> cbe::Object::download | ( | const std::string & | path, |
DownloadError & | error | ||
) |
Same as download(const std::string&,delegate::ProgressEventFn&&,DownloadError&) , but without the parameter, progressEventFn
.
void cbe::Object::download | ( | std::size_t && | sizeLimit, |
DownloadBinaryDelegatePtr | delegate | ||
) |
Download the binary data associated with current object.
Asynchronous version of this service function.
The data, delivered as a BLOB (Binary Large OBject), via parameter data
in the the callback method cbe::delegate::DownloadBinaryDelegate::onDownloadBinarySuccess().
delegate | Pointer to a delegate::DownloadBinaryDelegate instance that is implemented by the user. |
sizeLimit | Blocks anything larger than the size limit the user inputs. Prevents accidental downloads of too large objects on to the device. |
delegate::DownloadBinarySuccess cbe::Object::download | ( | std::size_t && | sizeLimit, |
delegate::ProgressEventFn && | progressEventFn | ||
) |
Synchronous version of download(DownloadBinaryDelegatePtr) , and throws an exception, DownloadBinaryException, in case of a failed call.
See download(DownloadBinaryDelegatePtr)
progressEventFn | See download(const std::string&,delegate::ProgressEventFn&&). For the other parameters, see download(DownloadBinaryDelegatePtr) |
DownloadBinaryException |
delegate::DownloadBinarySuccess cbe::Object::download | ( | std::size_t && | sizeLimit | ) |
Same as download(delegate::ProgressEventFn&&) , but without the parameter, progressEventFn
.
cbe::util::Optional<delegate::DownloadBinarySuccess> cbe::Object::download | ( | std::size_t && | sizeLimit, |
delegate::ProgressEventFn && | progressEventFn, | ||
DownloadBinaryError & | error | ||
) |
Similar to synchronous method download(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 download(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 DownloadError object passed in will we be populated with the error information. For the other parameters, see download(delegate::ProgressEventFn&&) |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter. cbe::util::Optional<delegate::DownloadBinarySuccess> cbe::Object::download | ( | std::size_t && | sizeLimit, |
DownloadBinaryError & | error | ||
) |
Same as download(delegate::ProgressEventFn&&,DownloadBinaryError&) , but without the parameter, progressEventFn
.
void cbe::Object::downloadStream | ( | const std::string & | path, |
cbe::Stream | stream, | ||
DownloadDelegatePtr | delegate | ||
) |
Download a stream of an Object to local filesystem.
Asynchronous version of this service function.
path | Folder location, on the local file system, of the file to be downloaded. This string must end with a slash ("/"). |
stream | Get which stream you want by first calling getStream() and then choose which one to download. |
delegate | Pointer to a delegate::DownloadDelegate instance that is implemented by the user. |
delegate::DownloadSuccess cbe::Object::downloadStream | ( | const std::string & | path, |
cbe::Stream | stream, | ||
delegate::ProgressEventFn && | progressEventFn | ||
) |
Synchronous version of downloadStream(const std::string&,cbe::Stream,DownloadDelegatePtr) , and throws an exception, DownloadException, in case of a failed call.
See downloadStream(DownloadDelegatePtr)
progressEventFn | See download(const std::string&,delegate::ProgressEventFn&&). For the other parameters, see downloadStream(DownloadDelegatePtr) |
DownloadException |
delegate::DownloadSuccess cbe::Object::downloadStream | ( | const std::string & | path, |
cbe::Stream | stream | ||
) |
Same as downloadStream(const std::string&,cbe::Stream,delegate::ProgressEventFn&&) , but without the parameter, progressEventFn
.
cbe::util::Optional<delegate::DownloadSuccess> cbe::Object::downloadStream | ( | const std::string & | path, |
cbe::Stream | stream, | ||
delegate::ProgressEventFn && | progressEventFn, | ||
DownloadError & | error | ||
) |
Similar to synchronous method downloadStream(const std::string&,cbe::Stream,DownloadDelegatePtr) , 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 downloadStream(const std::string&,cbe::Stream,DownloadDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the DownloadError object passed in will we be populated with the error information. For the other parameters, see downloadStream(const std::string&,cbe::Stream,DownloadDelegatePtr) |
false
— indicates a failed call, and the error information is passed out via the error
out/return parameter.cbe::util::Optional<delegate::DownloadSuccess> cbe::Object::downloadStream | ( | const std::string & | path, |
cbe::Stream | stream, | ||
DownloadError & | error | ||
) |
Same as downloadStream(const std::string&,cbe::Stream,delegate::ProgressEventFn&&,DownloadError&) , but without the parameter, progressEventFn
.
void cbe::Object::uploadStream | ( | const std::string & | filePath, |
cbe::StreamId | streamId, | ||
UploadDelegatePtr | delegate | ||
) |
Upload a file for adding a new or replacing existing stream attached to this object.
Asynchronous version of this service function.
Requires that method getStreams(GetStreamsDelegatePtr) is called to identify all streams associated with current object.
filePath | Fully qualified file name. I.e., the path, relative or absolute, including file name. |
streamId | If the stream id already exists, it will be overwritten. |
delegate | Pointer to a delegate::UploadDelegate instance that is implemented by the user. |
cbe::Object cbe::Object::uploadStream | ( | const std::string & | filePath, |
cbe::StreamId | streamId, | ||
delegate::ProgressEventFn && | progressEventFn | ||
) |
Synchronous version of uploadStream(const std::string&,cbe::StreamId,UploadDelegatePtr) , and throws an exception, UploadException, in case of a failed call.
See uploadStream(const std::string&,cbe::StreamId,UploadDelegatePtr)
progressEventFn | See download(const std::string&,delegate::ProgressEventFn&&). For the other parameters, see uploadStream(const std::string&,cbe::StreamId,UploadDelegatePtr) |
UploadException |
cbe::Object cbe::Object::uploadStream | ( | const std::string & | filePath, |
cbe::StreamId | streamId | ||
) |
Same as uploadStream(const std::string&,cbe::StreamId,delegate::ProgressEventFn&&) , but without the parameter, progressEventFn
.
cbe::util::Optional<cbe::Object> cbe::Object::uploadStream | ( | const std::string & | filePath, |
cbe::StreamId | streamId, | ||
delegate::ProgressEventFn && | progressEventFn, | ||
UploadError & | error | ||
) |
Similar to synchronous method uploadStream(const std::string&,cbe::StreamId,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 uploadStream(const std::string&,cbe::StreamId,UploadDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the DownloadError object passed in will we be populated with the error information. For the other parameters, see uploadStream(const std::string&,cbe::StreamId,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::Object::uploadStream | ( | const std::string & | filePath, |
cbe::StreamId | streamId, | ||
UploadError & | error | ||
) |
Same as uploadStream(const std::string&,cbe::StreamId,delegate::ProgressEventFn&&,UploadError&) , but without the parameter, progressEventFn
.
void cbe::Object::updateKeyValues | ( | KeyValues | keyValues, |
UpdateKeyValuesDelegatePtr | delegate | ||
) |
Adds key/value pair data to the object.
Asynchronous version of this service function.
keyValues | Map of key/value pairs (metadata). |
delegate | Pointer to a delegate::UpdateKeyValuesDelegate instance that is implemented by the user. |
void cbe::Object::updateKeyValues | ( | UpdateKeyValuesDelegatePtr | delegate | ) |
Deletes all key/value pairs of data to the object.
Same as updateKeyValues(KeyValues,UpdateKeyValuesDelegatePtr), but without the keyValues
parameter.
cbe::Object cbe::Object::updateKeyValues | ( | KeyValues | keyValues | ) |
Synchronous [exception] Adds key/value pair data to the object.
Synchronous version of updateKeyValues(KeyValues,UpdateKeyValuesDelegatePtr) , and throws an exception, UpdateKeyValuesException, in case of a failed call.
See updateKeyValues(UpdateKeyValuesDelegatePtr)
UpdateKeyValuesException |
cbe::Object cbe::Object::updateKeyValues | ( | ) |
Synchronous [exception] Deletes all key/value pairs of data to the object.
Same as updateKeyValues(KeyValues), but without the keyValues
parameter.
cbe::util::Optional<cbe::Object> cbe::Object::updateKeyValues | ( | KeyValues | keyValues, |
UpdateKeyValuesError & | error | ||
) |
Synchronous [non-throwing] Adds key/value pair data to the object.
Synchronous version of updateKeyValues(KeyValues,UpdateKeyValuesDelegatePtr) , 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 updateKeyValues(KeyValues, UpdateKeyValuesDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the UpdateKeyValuesError 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::util::Optional<cbe::Object> cbe::Object::updateKeyValues | ( | UpdateKeyValuesError & | error | ) |
Synchronous [non-throwing] Deletes all key/value pairs of data to the object.
Same as updateKeyValues(KeyValues,UpdateKeyValuesError&), but without the keyValues
parameter.
void cbe::Object::getStreams | ( | GetStreamsDelegatePtr | delegate | ) |
Downloads the streams meta data associated with current object to the SDK's cache.
Asynchronous version of this service function.
The meta data i delivered as cbe::Streams via the delegate callback method cbe::delegate::GetStreamsDelegate::onGetStreamsSuccess()
Further, the actual stream data are retrieved through method downloadStream(const std::string&,cbe::Stream,DownloadDelegatePtr).
uploadStream()
delegate | Pointer to a delegate::GetStreamsDelegate instance that is implemented by the user. |
Streams cbe::Object::getStreams | ( | ) |
Synchronous version of getStreams(GetStreamsDelegatePtr) , and throws an exception, #GetStreamException, in case of a failed call.
See getStreams(GetStreamsDelegatePtr)
cbe::util::Optional<Streams> cbe::Object::getStreams | ( | GetStreamsError & | error | ) |
Synchronous version of getStreams(GetStreamsDelegatePtr) , 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 getStreams(GetStreamsDelegatePtr)
[out] | error | Return parameter containing the error information in case of a failed call. An empty return value will indicate failure, and the GetStreamsError 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.std::string cbe::Object::getMimeType | ( | ) | const |
Returns the mime type of the object.
E.g., application/pdf, audio/wav, image/jpg, text/xml, video/mp4 etc.
cbe::object_t cbe::Object::getObjectType | ( | ) | const |
Returns the Object type.
See cbe::ObjectType.
void cbe::Object::getAcl | ( | GetAclDelegatePtr | delegate | ) |
Returns the Access Control List for current Object.
Asynchronous version of this service function.
delegate | Pointer to a delegate::AclDelegate instance that is implemented by the user. |
cbe::AclMap cbe::Object::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::Object::getAcl | ( | GetAclError & | error | ) |
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::Object::setAcl | ( | cbe::AclMap | aclMap, |
SetAclDelegatePtr | delegate | ||
) |
Sets the Access Control List for current object.
Asynchronous version of this service function.
aclMap | The desired permission for current object. |
delegate | Pointer to a delegate::AclDelegate instance that is implemented by the user. |
cbe::AclMap cbe::Object::setAcl | ( | cbe::AclMap | aclMap | ) |
Synchronous version of setAcl(cbe::AclMap,SetAclDelegatePtr) , and throws an exception, SetAclException, in case of a failed call.
See setAcl(cbe::AclMap,SetAclDelegatePtr)
SetAclException |
cbe::util::Optional<cbe::AclMap> cbe::Object::setAcl | ( | cbe::AclMap | aclMap, |
SetAclError & | error | ||
) |
Synchronous version of setAcl(cbe::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(cbe::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::Object::share | ( | cbe::UserId | toUserGroup, |
std::string | description, | ||
ShareDelegatePtr | delegate | ||
) |
Share current object to a user.
Asynchronous version of this service function.
Notifies the user that a share has ocurred so that the user can check what permissions the have been given. Sharing 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 | Pointer to a delegate::ShareDelegatePtr instance that is implemented by the user. |
delegate::ShareSuccess cbe::Object::share | ( | cbe::UserId | toUserGroup, |
std::string | description | ||
) |
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::ShareSuccess> cbe::Object::share | ( | cbe::UserId | toUserGroup, |
std::string | description, | ||
ShareError & | error | ||
) |
Synchronous version of share(cbe::UserId,std::string,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(cbe::UserId,std::string,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::Object::unShare | ( | cbe::ShareId | shareId, |
UnShareDelegatePtr | delegate | ||
) |
Unshare the object to a specific shareId created when sharing.
Asynchronous version of this service function.
Each share is unique between user/group and the one sharing. This is represented with a unique share id.
shareId | 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::UnShareSuccess cbe::Object::unShare | ( | cbe::ShareId | shareId | ) |
Synchronous version of unShare(cbe::ShareId,UnShareDelegatePtr) , and throws an exception, UnShareException, in case of a failed call.
See unShare(cbe::ShareId,UnShareDelegatePtr)
UnShareException |
cbe::util::Optional<delegate::UnShareSuccess> cbe::Object::unShare | ( | cbe::ShareId | shareId, |
UnShareError & | error | ||
) |
Synchronous version of unShare(cbe::ShareId,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(cbe::ShareId,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::Object::publish | ( | cbe::PublishAccess | security, |
cbe::PublishVisibility | privacy, | ||
std::string | description, | ||
std::string | password, | ||
PublishDelegatePtr | delegate | ||
) |
Publishes current object to any user.
Asynchronous version of this service function.
Can be revoked with unPublish()
security | A cbe::PublishAccess enum |
privacy | A cbe::WebShareVisibility enum |
description | Free text |
password | Password |
delegate | Pointer to a delegate::PublishDelegate instance that is implemented by the user. |
delegate::PublishSuccess cbe::Object::publish | ( | cbe::PublishAccess | security, |
cbe::PublishVisibility | privacy, | ||
std::string | description, | ||
std::string | password | ||
) |
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(cbe::PublishAccess,cbe::PublishVisibility,std::string,std::string,PublishDelegatePtr)
PublishException |
cbe::util::Optional<delegate::PublishSuccess> cbe::Object::publish | ( | cbe::PublishAccess | security, |
cbe::PublishVisibility | privacy, | ||
std::string | description, | ||
std::string | password, | ||
PublishError & | error | ||
) |
Synchronous version of publish(cbe::PublishAccess,cbe::PublishVisibility,std::string,std::string,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(cbe::PublishAccess,cbe::PublishVisibility,std::string,std::string,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::Object::unPublish | ( | UnPublishDelegatePtr | delegate | ) |
UnPublishes current object.
Asynchronous version of this service function.
Revokes previous publish().
delegate | Pointer to a delegate::UnPublishDelegate instance that is implemented by the user. |
delegate::UnPublishSuccess cbe::Object::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::Object::unPublish | ( | UnPublishError & | error | ) |
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::Object::unSubscribe | ( | UnSubscribeDelegatePtr | delegate | ) |
UnSubscribes from this object.
Asynchronous version of this service function.
Revokes the subscription previously established with cbe::SubscribeManager::subscribe()
delegate | Pointer to a delegate::UnSubscribeDelegate instance that is implemented by the user. |
delegate::UnSubscribeSuccess cbe::Object::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::Object::unSubscribe | ( | UnSubscribeError & | error | ) |
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.