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 > const &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 (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 css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () override
 
virtual void SAL_CALL release () 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 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

ContentProvider *const m_pProvider
 
URL const 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 48 of file cmis_repo_content.hxx.

Constructor & Destructor Documentation

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 > const &  aRepos = std::vector< libcmis::RepositoryPtr > ( ) 
)
Exceptions
css::ucb::ContentCreationException

Definition at line 51 of file cmis_repo_content.cxx.

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

Referenced by getChildren().

cmis::RepoContent::~RepoContent ( )
overridevirtual

Definition at line 69 of file cmis_repo_content.cxx.

Member Function Documentation

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

Implements ucbhelper::ContentImplHelper.

Definition at line 367 of file cmis_repo_content.cxx.

References SAL_INFO.

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

Definition at line 73 of file cmis_repo_content.cxx.

Referenced by execute().

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

Implements ucbhelper::ContentImplHelper.

Definition at line 271 of file cmis_repo_content.cxx.

References SAL_N_ELEMENTS.

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

Implements ucbhelper::ContentImplHelper.

Definition at line 322 of file cmis_repo_content.cxx.

References CMIS_REPO_TYPE.

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

Reimplemented from ucbhelper::ContentImplHelper.

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

Implements ucbhelper::ContentImplHelper.

Definition at line 311 of file cmis_repo_content.cxx.

OUString cmis::RepoContent::getParentURL ( )
overridevirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 300 of file cmis_repo_content.cxx.

References SAL_INFO.

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

Implements ucbhelper::ContentImplHelper.

Definition at line 248 of file cmis_repo_content.cxx.

References SAL_N_ELEMENTS.

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

Definition at line 229 of file cmis_repo_content.cxx.

References getRepositories(), m_aRepositories, m_sRepositoryId, and STD_TO_OUSTR.

Referenced by getPropertyValues().

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

Implements ucbhelper::ContentImplHelper.

Definition at line 316 of file cmis_repo_content.cxx.

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

Reimplemented from ucbhelper::ContentImplHelper.

Definition at line 373 of file cmis_repo_content.cxx.

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

Member Data Documentation

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

Definition at line 56 of file cmis_repo_content.hxx.

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

URL const cmis::RepoContent::m_aURL
private

Definition at line 53 of file cmis_repo_content.hxx.

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

ContentProvider* const cmis::RepoContent::m_pProvider
private

Definition at line 52 of file cmis_repo_content.hxx.

Referenced by getChildren().

OUString cmis::RepoContent::m_sRepositoryId
private

Definition at line 54 of file cmis_repo_content.hxx.

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


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