ImagingTools Core SDK
Protected Member Functions | Protected Attributes | List of all members
imtrepo::CFileRepositoryComp

#include <CFileRepositoryComp.h>

Inheritance diagram for imtrepo::CFileRepositoryComp:
imtrepo::IFileObjectCollection imtbase::IObjectCollection imtrepo::IFileCollectionInfo imtbase::IObjectCollectionInfo imtbase::ICollectionInfo

Protected Member Functions

virtual istd::IChangeableUniquePtr CreateDataObject (const QByteArray &typeId) const
 
virtual istd::IChangeableUniquePtr CreateObjectFromFile (const QString &filePath, const QByteArray &typeId) const
 
bool IsPathInsideRepository (const QString &filePath) const
 
virtual idoc::MetaInfoPtr CreateItemMetaInfo (const QString &dataObjectFilePath, const QByteArray &typeId) const
 
virtual QString CalculateFolderPathInRepository (const QString &localFilePath, const QString &resourceName, const QByteArray &typeId, ilog::IMessageConsumer *messageConsumerPtr) const
 

Protected Attributes

ResourceTypeConstraintsModel m_resourceTypeConstraints
 

Additional Inherited Members

- Public Types inherited from imtbase::IObjectCollection
enum  OperationalFlags {
  OF_SUPPORT_RENAME = 1 , OF_SUPPORT_INSERT = 2 , OF_SUPPORT_DELETE = 4 , OF_SUPPORT_EDIT = 8 ,
  OF_SUPPORT_USING = 16 , OF_SUPPORT_PAGINATION = 32 , OF_ALL = OF_SUPPORT_RENAME | OF_SUPPORT_INSERT | OF_SUPPORT_DELETE | OF_SUPPORT_EDIT | OF_SUPPORT_USING | OF_SUPPORT_PAGINATION
}
 
- Public Types inherited from imtbase::ICollectionInfo
enum  ChangeFlags {
  CF_ADDED = 10000 , CF_ELEMENT_RENAMED , CF_ELEMENT_DESCRIPTION_CHANGED , CF_ELEMENT_STATE ,
  CF_REMOVED , CF_RESTORED , CF_LAST
}
 
enum  ElementInfoType { EIT_NAME , EIT_DESCRIPTION , EIT_ENABLED , EIT_USER = 1000 }
 
enum  MetaInfoType {
  MIT_INSERTION_USER = idoc::IDocumentMetaInfo::MIT_USER + 10000 , MIT_INSERTION_TIME , MIT_LAST_OPERATION_USER , MIT_LAST_OPERATION_TIME ,
  MIT_PREVIEW_THUMBNAIL , MIT_REVISION = idoc::IDocumentMetaInfo::MIT_USER + 20000
}
 
- Public Types inherited from imtrepo::IFileCollectionInfo
enum  FileCollectionLayout { FCL_FLAT , FCL_FOLDER }
 
- Public Member Functions inherited from imtbase::IObjectCollection
template<typename Interface >
const Interface * GetObjectPtr (const Id &objectId) const
 
virtual void ResetObjectIds ()
 

Detailed Description

Base class of the file collection. General implementation

Definition at line 40 of file CFileRepositoryComp.h.

Member Function Documentation

◆ CalculateFolderPathInRepository()

virtual QString imtrepo::CFileRepositoryComp::CalculateFolderPathInRepository ( const QString &  localFilePath,
const QString &  resourceName,
const QByteArray &  typeId,
ilog::IMessageConsumer *  messageConsumerPtr 
) const
protectedvirtual

Calculate path in file collection for the local file path

◆ CreateDataObject()

virtual istd::IChangeableUniquePtr imtrepo::CFileRepositoryComp::CreateDataObject ( const QByteArray &  typeId) const
protectedvirtual

Create data object for the given type.

◆ CreateItemMetaInfo()

virtual idoc::MetaInfoPtr imtrepo::CFileRepositoryComp::CreateItemMetaInfo ( const QString &  dataObjectFilePath,
const QByteArray &  typeId 
) const
protectedvirtual

Create meta-info object for a given file in the file collection.

Returns
The instance of the meta-information object, or NULL of no meta-info was created for the given file.

◆ CreateObjectFromFile()

virtual istd::IChangeableUniquePtr imtrepo::CFileRepositoryComp::CreateObjectFromFile ( const QString &  filePath,
const QByteArray &  typeId 
) const
protectedvirtual

Create object data from the file.

◆ IsPathInsideRepository()

bool imtrepo::CFileRepositoryComp::IsPathInsideRepository ( const QString &  filePath) const
protected

Check if the path to the file is inside of repository folder.

Member Data Documentation

◆ m_resourceTypeConstraints

ResourceTypeConstraintsModel imtrepo::CFileRepositoryComp::m_resourceTypeConstraints
protected

Supported types of the objects in the collection.

Definition at line 244 of file CFileRepositoryComp.h.