27#include <MemoryX/interface/core/EntityBase.h>
28#include <MemoryX/interface/memorytypes/MemoryEntities.h>
57 std::string
getId()
const;
75 void setEntity(
const EntityBasePtr& entity);
104 bool preserveOriginalFName =
false)
const;
~AbstractEntityWrapper() override
EntityBasePtr getEntity() const
Get the stored name of the stored entity.
std::string getName() const
Get the name of the stored entity.
void setEntity(const EntityBasePtr &entity)
Replace the stored entity with a new one.
std::string getId() const
Get the identifier of the stored entity.
AbstractFileEntityWrapper(GridFileManagerPtr fileManager)
GridFileManagerPtr fileManager
std::string cacheAttributeFile(const std::string &attrName, bool preserveOriginalFName=false) const
void cleanUpAttributeFiles(EntityAttributeBasePtr oldAttr, EntityAttributeBasePtr newAttr)
cleanUpAttributeFiles compares the files attached to the two given attributes and removes the files o...
void removeAttributeFiles(const memoryx::EntityAttributeBasePtr &attr)
removes all files of an attribute from the gridfs
GridFileManager provides utility functions for working with files in Mongo GridFS and links to them s...
IceInternal::Handle< AbstractEntityWrapper > AbstractEntityWrapperPtr
Typedef of AbstractEntityWrapperPtr as IceUtil::Handle<AbstractEntityWrapper> for convenience.
std::shared_ptr< GridFileManager > GridFileManagerPtr