![]() |
SDK
2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
|
A set made up of Container and Object. More...
#include <Item.h>
Public Member Functions | |
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... | |
Protected Member Functions | |
Item (std::shared_ptr< Impl > pImpl) | |
template<class ImplT > | |
ImplT & | castImpl () const |
Friends | |
class | CloudBackend |
class | Container |
class | Object |
class | PublishManager |
class | QueryResult |
class | SubscribeManager |
std::ostream & | operator<< (std::ostream &os, const Item &item) |
A set made up of Container and Object.
Class for an Item. This is class is the base class of Objects and Containers.
AclMap cbe::Item::aclMap | ( | ) | const |
Retrieve the map of the permissions the users and groups for this item.
std::string cbe::Item::aclTag | ( | ) | const |
the ACL of the item
cbe::Date cbe::Item::created | ( | ) | const |
Returns the creation date in Unix epoch time.
bool cbe::Item::dataLoaded | ( | ) | const |
if data was loaded
cbe::Date cbe::Item::deleted | ( | ) | const |
Returns the deleted date, if applicable (i.e. is in the bin), in Unix epoch time
std::string cbe::Item::description | ( | ) | const |
A item text description where applicable
cbe::ContainerId cbe::Item::driveId | ( | ) | const |
Returns which drive number the container resides on.
Publish cbe::Item::getPublished | ( | ) | const |
Gets the publish information
cbe::ShareId cbe::Item::getShareFromUserId | ( | cbe::UserId | userId | ) |
Get the shareId by reference of userId
cbe::ShareIds cbe::Item::getShareIds | ( | ) | const |
a map of share ids for this item
Subscribe cbe::Item::getSubscribe | ( | ) | const |
Gets the subscribe information
cbe::UserId cbe::Item::getUserFromShareId | ( | cbe::UserId | shareId | ) |
Get the userId reference of shareId
bool cbe::Item::hasPublished | ( | ) | const |
Checks if it has published info and if getPublished()
returns a valid object.
bool cbe::Item::hasSubscribe | ( | ) | const |
Checks if it has subscribe info and if getSubscribe()
returns a valid object.
cbe::ItemId cbe::Item::id | ( | ) | const |
Returns an Items id.
bool cbe::Item::idLoaded | ( | ) | const |
if the query did get a resultset.
std::string cbe::Item::name | ( | ) | const |
Returns the name of the item.
cbe::ContainerId cbe::Item::oldParentId | ( | ) | const |
Returns the id of the Items old parent container id in cases where the item has just been moved.
|
explicit |
Checks if the inherited instance is real.
An "unreal" instance implies typically a failed event.
Relies on the Default
constructor
cbe::DefaultCtor
true
: is real false
: unreal; got nullptr; if current instance is unbound/undefined. I.e., if it is only default constructed. cbe::UserId cbe::Item::ownerId | ( | ) | const |
Returns the owner id number.
cbe::ContainerId cbe::Item::parentId | ( | ) | const |
Returns the id of the Items parent container id.
std::string cbe::Item::path | ( | ) | const |
Returns the path if applicable.
cbe::ItemType cbe::Item::type | ( | ) | const |
cbe::Date cbe::Item::updated | ( | ) | const |
Returns the updated date/time in Unix epoch time
std::string cbe::Item::username | ( | ) | const |
Returns the username of the owner if applicable.