LibreOffice Module ucb (master)  1
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
cmis::Content Class Reference

#include <cmis_content.hxx>

Inheritance diagram for cmis::Content:
[legend]
Collaboration diagram for cmis::Content:
[legend]

Public Member Functions

 Content (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, libcmis::ObjectPtr const &pObject=libcmis::ObjectPtr())
 
 Content (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, bool bIsFolder)
 
virtual ~Content () override
 
virtual css::uno::Sequence< css::beans::Property > getProperties (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
 
libcmis::ObjectPtr updateProperties (const css::uno::Any &iCmisProps, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
virtual css::uno::Sequence< css::ucb::CommandInfo > getCommands (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
 
virtual OUString getParentURL () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual OUString SAL_CALL getContentType () override
 
virtual css::uno::Any SAL_CALL execute (const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override
 
virtual void SAL_CALL abort (sal_Int32 CommandId) override
 
virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL queryCreatableContentsInfo () override
 
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL createNewContent (const css::ucb::ContentInfo &Info) override
 
css::uno::Sequence< css::ucb::ContentInfo > queryCreatableContentsInfo (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
virtual std::vector< css::uno::Reference< css::ucb::XContent > > getChildren () override
 
libcmis::ObjectPtr const & getObject (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
- Public Member Functions inherited from ucbhelper::ContentImplHelper
 ContentImplHelper (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const rtl::Reference< ContentProviderImplHelper > &rxProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
 
virtual ~ContentImplHelper () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override
 
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL getIdentifier () override
 
virtual void SAL_CALL addContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override
 
virtual void SAL_CALL removeContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override
 
virtual sal_Int32 SAL_CALL createCommandIdentifier () override
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override
 
virtual void SAL_CALL addCommandInfoChangeListener (const css::uno::Reference< css::ucb::XCommandInfoChangeListener > &Listener) override
 
virtual void SAL_CALL removeCommandInfoChangeListener (const css::uno::Reference< css::ucb::XCommandInfoChangeListener > &Listener) override
 
virtual void SAL_CALL addProperty (const OUString &Name, sal_Int16 Attributes, const css::uno::Any &DefaultValue) override
 
virtual void SAL_CALL removeProperty (const OUString &Name) override
 
virtual void SAL_CALL addPropertySetInfoChangeListener (const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &Listener) override
 
virtual void SAL_CALL removePropertySetInfoChangeListener (const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &Listener) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent () override
 
virtual void SAL_CALL setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override
 
const rtl::Reference< ContentProviderImplHelper > & getProvider () const
 
- Public Member Functions inherited from cmis::ChildrenProvider
virtual ~ChildrenProvider ()
 

Private Types

typedef rtl::Reference< ContentContentRef
 
typedef std::vector< ContentRefContentRefList
 

Private Member Functions

bool isFolder (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void setCmisProperty (const std::string &rName, const std::string &rValue, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
css::uno::Any getBadArgExcept ()
 
css::uno::Reference< css::sdbc::XRow > getPropertyValues (const css::uno::Sequence< css::beans::Property > &rProperties, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
libcmis::Session * getSession (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
libcmis::ObjectTypePtr const & getObjectType (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
css::uno::Any open (const css::ucb::OpenCommandArgument2 &rArg, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void transfer (const css::ucb::TransferInfo &rTransferInfo, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void insert (const css::uno::Reference< css::io::XInputStream > &xInputStream, bool bReplaceExisting, const OUString &rMimeType, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
OUString checkIn (const css::ucb::CheckinArgument &rArg, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
OUString checkOut (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
OUString cancelCheckOut (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
css::uno::Sequence< css::uno::Any > setPropertyValues (const css::uno::Sequence< css::beans::PropertyValue > &rValues, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
css::uno::Sequence< css::document::CmisVersion > getAllVersions (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
bool feedSink (const css::uno::Reference< css::uno::XInterface > &aSink, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 

Static Private Member Functions

static void copyData (const css::uno::Reference< css::io::XInputStream > &xIn, const css::uno::Reference< css::io::XOutputStream > &xOut)
 

Private Attributes

ContentProviderm_pProvider
 
libcmis::Session * m_pSession
 
libcmis::ObjectPtr m_pObject
 
OUString m_sObjectPath
 
OUString m_sObjectId
 
OUString m_sURL
 
cmis::URL const m_aURL
 
bool m_bTransient
 
bool const m_bIsFolder
 
libcmis::ObjectTypePtr m_pObjectType
 
std::map< std::string, libcmis::PropertyPtr > m_pObjectProps
 

Additional Inherited Members

- Protected Member Functions inherited from ucbhelper::ContentImplHelper
css::uno::Reference< css::beans::XPropertySetInfo > getPropertySetInfo (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv, bool bCache=true)
 
css::uno::Reference< css::ucb::XCommandInfo > getCommandInfo (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv, bool bCache=true)
 
void notifyPropertiesChange (const css::uno::Sequence< css::beans::PropertyChangeEvent > &evt) const
 
void notifyPropertySetInfoChange (const css::beans::PropertySetInfoChangeEvent &evt) const
 
void notifyContentEvent (const css::ucb::ContentEvent &evt) const
 
void inserted ()
 
void deleted ()
 
bool exchange (const css::uno::Reference< css::ucb::XContentIdentifier > &rNewId)
 
css::uno::Reference< css::ucb::XPersistentPropertySet > getAdditionalPropertySet (bool bCreate)
 
bool renameAdditionalPropertySet (const OUString &rOldKey, const OUString &rNewKey)
 
bool copyAdditionalPropertySet (const OUString &rSourceKey, const OUString &rTargetKey)
 
bool removeAdditionalPropertySet ()
 
- Protected Attributes inherited from ucbhelper::ContentImplHelper
osl::Mutex m_aMutex
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::ucb::XContentIdentifier > m_xIdentifier
 
rtl::Reference< ContentProviderImplHelperm_xProvider
 
sal_uInt32 m_nCommandId
 

Detailed Description

Definition at line 61 of file cmis_content.hxx.

Member Typedef Documentation

Definition at line 95 of file cmis_content.hxx.

typedef std::vector< ContentRef > cmis::Content::ContentRefList
private

Definition at line 96 of file cmis_content.hxx.

Constructor & Destructor Documentation

cmis::Content::Content ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
ContentProvider pProvider,
const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier,
libcmis::ObjectPtr const &  pObject = libcmis::ObjectPtr() 
)
Exceptions
css::ucb::ContentCreationException
cmis::Content::Content ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
ContentProvider pProvider,
const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier,
bool  bIsFolder 
)
Exceptions
css::ucb::ContentCreationException
cmis::Content::~Content ( )
overridevirtual

Definition at line 300 of file cmis_content.cxx.

Member Function Documentation

void SAL_CALL cmis::Content::abort ( sal_Int32  CommandId)
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 1863 of file cmis_content.cxx.

References SAL_INFO.

void SAL_CALL cmis::Content::acquire ( )
throw (
)
overridevirtual

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 1685 of file cmis_content.cxx.

OUString cmis::Content::cancelCheckOut ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
private
OUString cmis::Content::checkIn ( const css::ucb::CheckinArgument &  rArg,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private
OUString cmis::Content::checkOut ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
private
static void cmis::Content::copyData ( const css::uno::Reference< css::io::XInputStream > &  xIn,
const css::uno::Reference< css::io::XOutputStream > &  xOut 
)
staticprivate
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL cmis::Content::createNewContent ( const css::ucb::ContentInfo &  Info)
overridevirtual
virtual css::uno::Any SAL_CALL cmis::Content::execute ( const css::ucb::Command &  aCommand,
sal_Int32  CommandId,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  Environment 
)
overridevirtual
bool cmis::Content::feedSink ( const css::uno::Reference< css::uno::XInterface > &  aSink,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private
uno::Sequence< document::CmisVersion > cmis::Content::getAllVersions ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
private
Exceptions
css::uno::Exception

Definition at line 1187 of file cmis_content.cxx.

References ucbhelper::cancelCommandExecution(), o3tl::runtimeToOUString(), SAL_INFO, and STD_TO_OUSTR.

uno::Any cmis::Content::getBadArgExcept ( )
private

Definition at line 573 of file cmis_content.cxx.

std::vector< uno::Reference< ucb::XContent > > cmis::Content::getChildren ( )
overridevirtual
virtual css::uno::Sequence< css::ucb::CommandInfo > cmis::Content::getCommands ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
overridevirtual
OUString SAL_CALL cmis::Content::getContentType ( )
overridevirtual
virtual css::uno::Sequence< sal_Int8 > SAL_CALL cmis::Content::getImplementationId ( )
overridevirtual

Reimplemented from ucbhelper::ContentImplHelper.

OUString SAL_CALL cmis::Content::getImplementationName ( )
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 1701 of file cmis_content.cxx.

libcmis::ObjectPtr const & cmis::Content::getObject ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
Exceptions
css::uno::RuntimeException
css::ucb::CommandFailedException
libcmis::Exception

Definition at line 478 of file cmis_content.cxx.

References INetURLObject::GetMainURL(), INetURLObject::getName(), INetURLObject::LAST_SEGMENT, m_sURL, m_xContext, INetURLObject::NONE, OUSTR_TO_STDSTR, INetURLObject::removeSegment(), sName, and INetURLObject::WithCharset.

libcmis::ObjectTypePtr const & cmis::Content::getObjectType ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
private

Definition at line 426 of file cmis_content.cxx.

OUString cmis::Content::getParentURL ( )
overridevirtual
virtual css::uno::Sequence< css::beans::Property > cmis::Content::getProperties ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
overridevirtual
css::uno::Reference< css::sdbc::XRow > cmis::Content::getPropertyValues ( const css::uno::Sequence< css::beans::Property > &  rProperties,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private
libcmis::Session * cmis::Content::getSession ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
private
uno::Sequence< OUString > SAL_CALL cmis::Content::getSupportedServiceNames ( )
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 1706 of file cmis_content.cxx.

uno::Sequence< uno::Type > SAL_CALL cmis::Content::getTypes ( )
overridevirtual
void cmis::Content::insert ( const css::uno::Reference< css::io::XInputStream > &  xInputStream,
bool  bReplaceExisting,
const OUString &  rMimeType,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private
Exceptions
css::uno::Exception
bool cmis::Content::isFolder ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
private
css::uno::Any cmis::Content::open ( const css::ucb::OpenCommandArgument2 &  rArg,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private
Exceptions
css::uno::Exception
libcmis::Exception
uno::Sequence< ucb::ContentInfo > SAL_CALL cmis::Content::queryCreatableContentsInfo ( )
overridevirtual

Definition at line 1869 of file cmis_content.cxx.

css::uno::Sequence< css::ucb::ContentInfo > cmis::Content::queryCreatableContentsInfo ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
Exceptions
css::uno::RuntimeException
virtual css::uno::Any SAL_CALL cmis::Content::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Reimplemented from ucbhelper::ContentImplHelper.

void SAL_CALL cmis::Content::release ( )
throw (
)
overridevirtual

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 1690 of file cmis_content.cxx.

void cmis::Content::setCmisProperty ( const std::string &  rName,
const std::string &  rValue,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private

Definition at line 2045 of file cmis_content.cxx.

css::uno::Sequence< css::uno::Any > cmis::Content::setPropertyValues ( const css::uno::Sequence< css::beans::PropertyValue > &  rValues,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private
void cmis::Content::transfer ( const css::ucb::TransferInfo &  rTransferInfo,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private
Exceptions
css::uno::Exception
libcmis::ObjectPtr cmis::Content::updateProperties ( const css::uno::Any &  iCmisProps,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)

Definition at line 580 of file cmis_content.cxx.

References OUSTR_TO_STDSTR, and SAL_INFO.

Member Data Documentation

cmis::URL const cmis::Content::m_aURL
private

Definition at line 72 of file cmis_content.hxx.

bool const cmis::Content::m_bIsFolder
private

Definition at line 76 of file cmis_content.hxx.

bool cmis::Content::m_bTransient
private

Definition at line 75 of file cmis_content.hxx.

libcmis::ObjectPtr cmis::Content::m_pObject
private

Definition at line 68 of file cmis_content.hxx.

std::map< std::string, libcmis::PropertyPtr > cmis::Content::m_pObjectProps
private

Definition at line 78 of file cmis_content.hxx.

libcmis::ObjectTypePtr cmis::Content::m_pObjectType
private

Definition at line 77 of file cmis_content.hxx.

ContentProvider* cmis::Content::m_pProvider
private

Definition at line 66 of file cmis_content.hxx.

libcmis::Session* cmis::Content::m_pSession
private

Definition at line 67 of file cmis_content.hxx.

OUString cmis::Content::m_sObjectId
private

Definition at line 70 of file cmis_content.hxx.

OUString cmis::Content::m_sObjectPath
private

Definition at line 69 of file cmis_content.hxx.

OUString cmis::Content::m_sURL
private

Definition at line 71 of file cmis_content.hxx.


The documentation for this class was generated from the following files: