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

#include <cmis_repo_content.hxx>

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

Public Member Functions

 RepoContent (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, std::vector< libcmis::RepositoryPtr > &&aRepos=std::vector< libcmis::RepositoryPtr >())
 
virtual ~RepoContent () override
 
virtual css::uno::Sequence< css::beans::Property > getProperties (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
 
virtual css::uno::Sequence< css::ucb::CommandInfo > getCommands (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
 
virtual OUString getParentURL () override
 
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 std::vector< css::uno::Reference< css::ucb::XContent > > getChildren () override
 
- Public Member Functions inherited from ucbhelper::ContentImplHelper
 ContentImplHelper (css::uno::Reference< css::uno::XComponentContext > xContext, rtl::Reference< ContentProviderImplHelper > xProvider, css::uno::Reference< css::ucb::XContentIdentifier > Identifier)
 
virtual ~ContentImplHelper () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
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=0
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override=0
 
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 OUString SAL_CALL getContentType () override=0
 
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 css::uno::Any SAL_CALL execute (const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override=0
 
virtual void SAL_CALL abort (sal_Int32 CommandId) override=0
 
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 ()
 
virtual std::vector< css::uno::Reference< css::ucb::XContent > > getChildren ()=0
 

Private Member Functions

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)
 
void getRepositories (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
libcmis::RepositoryPtr getRepository (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 

Private Attributes

ContentProviderm_pProvider
 
URL m_aURL
 
OUString m_sRepositoryId
 
std::vector< libcmis::RepositoryPtr > m_aRepositories
 

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 47 of file cmis_repo_content.hxx.

Constructor & Destructor Documentation

◆ RepoContent()

cmis::RepoContent::RepoContent ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
ContentProvider pProvider,
const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier,
std::vector< libcmis::RepositoryPtr > &&  aRepos = std::vector< libcmis::RepositoryPtr > ( ) 
)
Exceptions
css::ucb::ContentCreationException

Definition at line 51 of file cmis_repo_content.cxx.

References cmis::URL::getObjectPath(), Identifier, m_aURL, m_aURL, m_sRepositoryId, ucbhelper::ContentImplHelper::m_xIdentifier, and SAL_INFO.

Referenced by getChildren().

◆ ~RepoContent()

cmis::RepoContent::~RepoContent ( )
overridevirtual

Definition at line 68 of file cmis_repo_content.cxx.

Member Function Documentation

◆ abort()

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

Implements ucbhelper::ContentImplHelper.

Definition at line 365 of file cmis_repo_content.cxx.

References SAL_INFO.

◆ execute()

uno::Any SAL_CALL cmis::RepoContent::execute ( const css::ucb::Command &  aCommand,
sal_Int32  CommandId,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  Environment 
)
overridevirtual

◆ getBadArgExcept()

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

Definition at line 72 of file cmis_repo_content.cxx.

Referenced by execute().

◆ getChildren()

std::vector< uno::Reference< ucb::XContent > > cmis::RepoContent::getChildren ( )
overridevirtual

◆ getCommands()

uno::Sequence< ucb::CommandInfo > cmis::RepoContent::getCommands ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 270 of file cmis_repo_content.cxx.

References SAL_N_ELEMENTS.

◆ getContentType()

OUString SAL_CALL cmis::RepoContent::getContentType ( )
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 320 of file cmis_repo_content.cxx.

References cmis::CMIS_REPO_TYPE.

◆ getImplementationId()

virtual css::uno::Sequence< sal_Int8 > SAL_CALL cmis::RepoContent::getImplementationId ( )
overridevirtual

Reimplemented from ucbhelper::ContentImplHelper.

◆ getImplementationName()

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

Implements ucbhelper::ContentImplHelper.

Definition at line 310 of file cmis_repo_content.cxx.

◆ getParentURL()

OUString cmis::RepoContent::getParentURL ( )
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 299 of file cmis_repo_content.cxx.

References SAL_INFO.

◆ getProperties()

uno::Sequence< beans::Property > cmis::RepoContent::getProperties ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 247 of file cmis_repo_content.cxx.

References SAL_N_ELEMENTS.

◆ getPropertyValues()

uno::Reference< sdbc::XRow > cmis::RepoContent::getPropertyValues ( const css::uno::Sequence< css::beans::Property > &  rProperties,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
private

◆ getRepositories()

void cmis::RepoContent::getRepositories ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
private

◆ getRepository()

libcmis::RepositoryPtr cmis::RepoContent::getRepository ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
private

Definition at line 228 of file cmis_repo_content.cxx.

References getRepositories(), m_aRepositories, and m_sRepositoryId.

Referenced by getPropertyValues().

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL cmis::RepoContent::getSupportedServiceNames ( )
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 315 of file cmis_repo_content.cxx.

◆ getTypes()

uno::Sequence< uno::Type > SAL_CALL cmis::RepoContent::getTypes ( )
overridevirtual

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 371 of file cmis_repo_content.cxx.

References CPPU_TYPE_REF, and cppu::OTypeCollection::getTypes().

Member Data Documentation

◆ m_aRepositories

std::vector< libcmis::RepositoryPtr > cmis::RepoContent::m_aRepositories
private

Definition at line 55 of file cmis_repo_content.hxx.

Referenced by getChildren(), getRepositories(), and getRepository().

◆ m_aURL

URL cmis::RepoContent::m_aURL
private

Definition at line 52 of file cmis_repo_content.hxx.

Referenced by getChildren(), getRepositories(), and RepoContent().

◆ m_pProvider

ContentProvider* cmis::RepoContent::m_pProvider
private

Definition at line 51 of file cmis_repo_content.hxx.

Referenced by getChildren().

◆ m_sRepositoryId

OUString cmis::RepoContent::m_sRepositoryId
private

Definition at line 53 of file cmis_repo_content.hxx.

Referenced by getChildren(), getRepository(), and RepoContent().


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