LibreOffice Module ucb (master) 1
|
#include <cmis_content.hxx>
Public Member Functions | |
Content (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, libcmis::ObjectPtr 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 () 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 |
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 (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 Types | |
typedef rtl::Reference< Content > | ContentRef |
typedef std::vector< ContentRef > | ContentRefList |
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, std::u16string_view 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 | |
ContentProvider * | m_pProvider |
libcmis::Session * | m_pSession |
libcmis::ObjectPtr | m_pObject |
OUString | m_sObjectPath |
OUString | m_sObjectId |
OUString | m_sURL |
cmis::URL | m_aURL |
bool | m_bTransient |
bool | 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< ContentProviderImplHelper > | m_xProvider |
sal_uInt32 | m_nCommandId |
Definition at line 62 of file cmis_content.hxx.
|
private |
Definition at line 96 of file cmis_content.hxx.
|
private |
Definition at line 97 of file cmis_content.hxx.
cmis::Content::Content | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
ContentProvider * | pProvider, | ||
const css::uno::Reference< css::ucb::XContentIdentifier > & | Identifier, | ||
libcmis::ObjectPtr | pObject = libcmis::ObjectPtr() |
||
) |
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 | ||
) |
css::ucb::ContentCreationException |
|
overridevirtual |
Definition at line 298 of file cmis_content.cxx.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 1888 of file cmis_content.cxx.
References SAL_INFO.
|
overridevirtualnoexcept |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 1709 of file cmis_content.cxx.
|
private |
css::uno::Exception |
Definition at line 1147 of file cmis_content.cxx.
References cmis::URL::asString(), ucbhelper::cancelCommandExecution(), m_sURL, o3tl::runtimeToOUString(), SAL_INFO, cmis::URL::setObjectId(), cmis::URL::setObjectPath(), sId, and STD_TO_OUSTR.
|
private |
css::uno::Exception |
Definition at line 1030 of file cmis_content.cxx.
References cmis::URL::asString(), ucbhelper::cancelCommandExecution(), comphelper::getProcessComponentContext(), m_sURL, ucbhelper::Content::openStream(), OUSTR_TO_STDSTR, pOut, SAL_INFO, cmis::URL::setObjectId(), cmis::URL::setObjectPath(), sId, and STD_TO_OUSTR.
|
private |
css::uno::Exception |
Definition at line 1101 of file cmis_content.cxx.
References cmis::URL::asString(), ucbhelper::cancelCommandExecution(), m_sURL, o3tl::runtimeToOUString(), SAL_INFO, cmis::URL::setObjectId(), cmis::URL::setObjectPath(), sId, and STD_TO_OUSTR.
|
staticprivate |
|
overridevirtual |
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
|
private |
|
private |
css::uno::Exception |
Definition at line 1210 of file cmis_content.cxx.
References ucbhelper::cancelCommandExecution(), i, o3tl::runtimeToOUString(), SAL_INFO, and STD_TO_OUSTR.
|
private |
Definition at line 597 of file cmis_content.cxx.
|
overridevirtual |
Implements cmis::ChildrenProvider.
Definition at line 2026 of file cmis_content.cxx.
References cmis::URL::asString(), aURL, m_sURL, m_xContext, SAL_INFO, cmis::URL::setObjectId(), cmis::URL::setObjectPath(), cmis::URL::setUsername(), sId, STD_TO_OUSTR, and INetURLObject::WithCharset.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 1736 of file cmis_content.cxx.
References a, cmis::CMIS_FILE_TYPE, cmis::CMIS_FOLDER_TYPE, and cppu::getCaughtException().
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 1725 of file cmis_content.cxx.
libcmis::ObjectPtr const & cmis::Content::getObject | ( | const css::uno::Reference< css::ucb::XCommandEnvironment > & | xEnv | ) |
css::uno::RuntimeException | |
css::ucb::CommandFailedException | |
libcmis::Exception |
Definition at line 501 of file cmis_content.cxx.
References INetURLObject::GetMainURL(), INetURLObject::getName(), INetURLObject::LAST_SEGMENT, m_sURL, m_xContext, INetURLObject::NONE, OUSTR_TO_STDSTR, INetURLObject::removeSegment(), SAL_INFO, sName, and INetURLObject::WithCharset.
|
private |
Definition at line 449 of file cmis_content.cxx.
References aProperties, and type.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 1687 of file cmis_content.cxx.
References cmis::URL::asString(), INetURLObject::getSegmentCount(), INetURLObject::GetURLPath(), m_sURL, INetURLObject::removeSegment(), SAL_INFO, cmis::URL::setObjectPath(), and INetURLObject::WithCharset.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
|
private |
|
private |
Definition at line 302 of file cmis_content.cxx.
References ucbhelper::InternetProxyServer::aName, cmis::AuthProvider::authenticationQuery(), ucbhelper::cancelCommandExecution(), INetURLObject::GetHost(), INetURLObject::GetPort(), INetURLObject::GetProtocol(), ucbhelper::InternetProxyDecider::getProxy(), cmis::AuthProvider::getRefreshToken(), INetURLObject::GetScheme(), m_aURL, m_xContext, ucbhelper::InternetProxyServer::nPort, OUSTR_TO_STDSTR, SAL_INFO, and cmis::AuthProvider::storeRefreshToken().
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 1730 of file cmis_content.cxx.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 1929 of file cmis_content.cxx.
References a, CPPU_TYPE_REF, cppu::getCaughtException(), and cppu::OTypeCollection::getTypes().
|
private |
css::uno::Exception |
|
private |
|
private |
css::uno::Exception | |
libcmis::Exception |
|
overridevirtual |
Definition at line 1894 of file cmis_content.cxx.
css::uno::Sequence< css::ucb::ContentInfo > cmis::Content::queryCreatableContentsInfo | ( | const css::uno::Reference< css::ucb::XCommandEnvironment > & | xEnv | ) |
css::uno::RuntimeException |
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
|
overridevirtualnoexcept |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 1714 of file cmis_content.cxx.
|
private |
Definition at line 2073 of file cmis_content.cxx.
References get().
|
private |
|
private |
css::uno::Exception |
libcmis::ObjectPtr cmis::Content::updateProperties | ( | const css::uno::Any & | iCmisProps, |
const css::uno::Reference< css::ucb::XCommandEnvironment > & | xEnv | ||
) |
Definition at line 604 of file cmis_content.cxx.
References aProperties, OUSTR_TO_STDSTR, and SAL_INFO.
|
private |
Definition at line 73 of file cmis_content.hxx.
|
private |
Definition at line 77 of file cmis_content.hxx.
|
private |
Definition at line 76 of file cmis_content.hxx.
|
private |
Definition at line 69 of file cmis_content.hxx.
|
private |
Definition at line 79 of file cmis_content.hxx.
|
private |
Definition at line 78 of file cmis_content.hxx.
|
private |
Definition at line 67 of file cmis_content.hxx.
|
private |
Definition at line 68 of file cmis_content.hxx.
|
private |
Definition at line 71 of file cmis_content.hxx.
|
private |
Definition at line 70 of file cmis_content.hxx.
|
private |
Definition at line 72 of file cmis_content.hxx.