|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.livecycle.crc.sharepoint.client.MSSharePointContentRepositoryConnectorServiceClient
public class MSSharePointContentRepositoryConnectorServiceClient
The MSSharePointContentRepositoryConnectorServiceClient
class enables you to create a
Java object that can invoke operations supported by the Microsoft SharePoint Content Repository Connector service.
Constructor Summary | |
---|---|
MSSharePointContentRepositoryConnectorServiceClient(ServiceClientFactory serviceFactory)
Create a MSSharePointContentRepositoryConnectorServiceClient using the given service factory |
|
MSSharePointContentRepositoryConnectorServiceClient(ServiceClientFactory serviceFactory,
java.lang.String serviceName)
Create a MSSharePointContentRepositoryConnectorServiceClient using the given service factory
and specified service name |
Method Summary | |
---|---|
SearchQueryResultType |
advancedSearch(LoginSettings loginSettings,
java.lang.String siteUrl,
java.lang.String documentLibraryName,
java.lang.String folderUrl,
java.lang.String keyword,
java.lang.String customScope,
SearchFilter searchFilter)
Queries at a given Microsoft SharePoint site with paginated results. |
boolean |
cancelFileCheckOut(LoginSettings loginSettings,
java.lang.String siteUrl,
java.lang.String documentLibraryName,
java.lang.String fileUrl)
Cancels the check-out of the document identified by the file URL. |
boolean |
checkInFile(LoginSettings loginSettings,
java.lang.String siteUrl,
java.lang.String documentLibraryName,
java.lang.String fileUrl,
java.lang.Boolean isMajor,
java.lang.String comment)
Checks-in an existing file to the SharePoint server. |
boolean |
checkOutFile(LoginSettings loginSettings,
java.lang.String siteUrl,
java.lang.String documentLibraryName,
java.lang.String fileUrl)
Check-out a document identified by the file URL, from the SharePoint repository. |
CreateDocumentResultType |
createDocument(LoginSettings loginSettings,
java.lang.String siteUrl,
java.lang.String documentLibraryName,
Document inputDoc,
java.lang.String folderUrl,
java.lang.String newFileName,
java.lang.Boolean updateInSameTransaction,
java.util.Map properties)
Creates a new document in a SharePoint Document library. |
java.lang.String |
createFolder(LoginSettings loginSettings,
java.lang.String siteUrl,
java.lang.String documentLibraryName,
java.lang.String folderUrl,
java.lang.String newFolderName)
Creates a new folder in SharePoint document library. |
void |
delete(LoginSettings loginSettings,
java.lang.String siteUrl,
java.lang.String documentLibraryName,
java.lang.String fileUrl)
Deletes a file or folder, if it exists. |
java.util.Map |
getProperties(LoginSettings loginSettings,
java.lang.String siteUrl,
java.lang.String documentLibraryName,
java.lang.String fileUrl)
Returns all the properties of a document from a SharePoint document library. |
Document |
retrieveDocumentContent(LoginSettings loginSettings,
java.lang.String siteUrl,
java.lang.String documentLibraryName,
java.lang.String fileUrl)
Retrieves Document content as a com.adobe.Document object. |
SearchQueryResultType |
search(LoginSettings loginSettings,
java.lang.String siteUrl,
java.lang.String documentLibraryName,
java.lang.String folderUrl,
java.lang.String keyword,
java.lang.String customScope,
int maxResults)
Queries at a given Microsoft SharePoint site. |
java.lang.String |
setDocumentContent(LoginSettings loginSettings,
java.lang.String siteUrl,
java.lang.String documentLibraryName,
Document inputDoc,
java.lang.String fileUrl)
Updates the content of an existing document. |
void |
updateProperties(LoginSettings loginSettings,
java.lang.String siteUrl,
java.lang.String documentLibraryName,
java.lang.String fileUrl,
java.lang.Boolean updateInSameTransaction,
java.util.Map propertiesMap)
Updates the properties of an existing document. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MSSharePointContentRepositoryConnectorServiceClient(ServiceClientFactory serviceFactory)
MSSharePointContentRepositoryConnectorServiceClient
using the given service factory
serviceFactory
- A ServiceClientFactory
that contains connection properties.
For information about connection properties, see Invoking LiveCycle Services.public MSSharePointContentRepositoryConnectorServiceClient(ServiceClientFactory serviceFactory, java.lang.String serviceName)
MSSharePointContentRepositoryConnectorServiceClient
using the given service factory
and specified service name
serviceFactory
- A ServiceClientFactory
that contains connection properties.serviceName
- The name of the MS SharePoint Content Repository Connector service.Method Detail |
---|
public boolean checkInFile(LoginSettings loginSettings, java.lang.String siteUrl, java.lang.String documentLibraryName, java.lang.String fileUrl, java.lang.Boolean isMajor, java.lang.String comment) throws SharePointConnectorException
IMSSharePointContentRepositoryConnectorServiceClient
isMajor
set to true
updates the major versionisMajor
set to false
updates the minor versionisMajor
set to NULL
throws an exception
indicating that there might be an error in the input parameter
isMajor
set to true
updates the major version.isMajor
set to false
updates the major version.isMajor
set to NULL
keeps the same version.
isMajor
parameter does not have any effect on the check-in operation.
checkInFile
in interface IMSSharePointContentRepositoryConnectorServiceClient
loginSettings
- Required. Configuration settings required to connect to the Microsoft SharePoint site.siteUrl
- Required. Microsoft SharePoint site URL.documentLibraryName
- Required. Document Library name.fileUrl
- Required. Relative URL for an existing file. If the file does not exist an exception is thrown.isMajor
- Optional. A flag that indicates how the version of the document is updated.comment
- Optional. Comment associated with the check-in.
true
, if the file is checked-in (the file was checked-out before this operation).
false
, if the file is not checked-in (because the file is already checked-in).
SharePointConnectorException
- Authentication failure.public boolean checkOutFile(LoginSettings loginSettings, java.lang.String siteUrl, java.lang.String documentLibraryName, java.lang.String fileUrl) throws SharePointConnectorException
IMSSharePointContentRepositoryConnectorServiceClient
false
. If not already checked-out, the file is checked-out
to the user, and the method returns true
.
checkOutFile
in interface IMSSharePointContentRepositoryConnectorServiceClient
loginSettings
- Required. Configuration settings required to connect to the Microsoft SharePoint site.siteUrl
- Required. Microsoft SharePoint site URL.documentLibraryName
- Required. Document Library name.fileUrl
- Required. Relative URL for an existing file. If the file does not exist, an exception is thrown.
true
),
or if the file is already checked-out to the user(false
).
SharePointConnectorException
- Authentication failure.public java.lang.String createFolder(LoginSettings loginSettings, java.lang.String siteUrl, java.lang.String documentLibraryName, java.lang.String folderUrl, java.lang.String newFolderName) throws SharePointConnectorException
IMSSharePointContentRepositoryConnectorServiceClient
createFolder
in interface IMSSharePointContentRepositoryConnectorServiceClient
loginSettings
- Required. Configuration settings required to connect to the Microsoft SharePoint site.siteUrl
- Required. Microsoft SharePoint site URL.documentLibraryName
- Required. Document Library name.folderUrl
- Optional. Parent folder URL. If you want to create a folder directly
within a document library, leave this paramter as blank.newFolderName
- Optional. Name of the new folder. The folder name should not be prefixed or suffixed with
forward slash or backward slash.
folderURL
+ "/
" + newFolderName
.
SharePointConnectorException
- Authentication failure.public void delete(LoginSettings loginSettings, java.lang.String siteUrl, java.lang.String documentLibraryName, java.lang.String fileUrl) throws SharePointConnectorException
IMSSharePointContentRepositoryConnectorServiceClient
delete
in interface IMSSharePointContentRepositoryConnectorServiceClient
loginSettings
- Required. Configuration settings required to connect to the Microsoft SharePoint site.siteUrl
- Required. Microsoft SharePoint site URL.documentLibraryName
- Required. Document Library name.fileUrl
- Required. Relative URL of an existing file or folder. The URL should not be prefixed or suffixed with
forward slash or backward slash. No exception is thrown if the folder does not exist.
SharePointConnectorException
- Authentication failure.public java.util.Map getProperties(LoginSettings loginSettings, java.lang.String siteUrl, java.lang.String documentLibraryName, java.lang.String fileUrl) throws SharePointConnectorException
IMSSharePointContentRepositoryConnectorServiceClient
getProperties
in interface IMSSharePointContentRepositoryConnectorServiceClient
loginSettings
- Required. Configuration settings required to connect to the Microsoft SharePoint site.siteUrl
- Required. Microsoft SharePoint site URL.documentLibraryName
- Required. Document Library name.fileUrl
- Required. Relative URL of an existing file. If the file does not exist, an exception is thrown.
map
containing name-value pairs of document properties.
SharePointConnectorException
- Authentication failure.public Document retrieveDocumentContent(LoginSettings loginSettings, java.lang.String siteUrl, java.lang.String documentLibraryName, java.lang.String fileUrl) throws SharePointConnectorException
IMSSharePointContentRepositoryConnectorServiceClient
com.adobe.Document
object.
retrieveDocumentContent
in interface IMSSharePointContentRepositoryConnectorServiceClient
loginSettings
- Required. Configuration settings required to connect to the Microsoft SharePoint site.siteUrl
- Required. Microsoft SharePoint site URL.documentLibraryName
- Required. Document Library name.fileUrl
- Required. Relative URL of an existing file. If the file does not exist, an exception is thrown.
Document
object with the content of the document specified in fileURL
.
SharePointConnectorException
- Authentication failure.public java.lang.String setDocumentContent(LoginSettings loginSettings, java.lang.String siteUrl, java.lang.String documentLibraryName, Document inputDoc, java.lang.String fileUrl) throws SharePointConnectorException
IMSSharePointContentRepositoryConnectorServiceClient
setDocumentContent
in interface IMSSharePointContentRepositoryConnectorServiceClient
loginSettings
- Required. Configuration settings required to connect to the Microsoft SharePoint site.siteUrl
- Required. Microsoft SharePoint site URL.documentLibraryName
- Required. Document Library name.inputDoc
- Required. Document
object representing the new content of the file.fileUrl
- Required. Relative URL of an existing file. If the file does not exist, an exception is thrown.
SharePointConnectorException
- Authentication failure.public void updateProperties(LoginSettings loginSettings, java.lang.String siteUrl, java.lang.String documentLibraryName, java.lang.String fileUrl, java.lang.Boolean updateInSameTransaction, java.util.Map propertiesMap) throws SharePointConnectorException
IMSSharePointContentRepositoryConnectorServiceClient
updateProperties
in interface IMSSharePointContentRepositoryConnectorServiceClient
loginSettings
- Required. Configuration settings required to connect to the Microsoft SharePoint site.siteUrl
- Required. Microsoft SharePoint site URL.documentLibraryName
- Required. Document Library name.fileUrl
- Required. Relative URL of an existing file. If the file does not exist, an exception is thrown.updateInSameTransaction
- Optional. Flag that specifies whether to set all or none of the properties.propertiesMap
- Required. A hash map containing name-value pairs of file properties.
SharePointConnectorException
- Authentication failure.public SearchQueryResultType search(LoginSettings loginSettings, java.lang.String siteUrl, java.lang.String documentLibraryName, java.lang.String folderUrl, java.lang.String keyword, java.lang.String customScope, int maxResults) throws SharePointConnectorException
IMSSharePointContentRepositoryConnectorServiceClient
search
in interface IMSSharePointContentRepositoryConnectorServiceClient
loginSettings
- Required. Configuration settings required to connect to the Microsoft SharePoint site.siteUrl
- Required. Microsoft SharePoint site URL.documentLibraryName
- Optional. Document library name. Specify a document library name
if you want the search to be restricted to a specific document library.folderUrl
- Optional. Parent folder URL. Specify a folder URL if you want your search to be
restricted to the specific document library and its subfolders only.keyword
- Required. Keyword to search for in SharePoint.customScope
- Optional. Name of the custom scope used to perform the search operation.
When specified, results returned are those custom scope results that satisfy all the four criteria of:
SiteUrl
,documentLibraryName
,folderURL
,customScope
.maxResults
- Optional. Maximum results to return after search. Default value is 10.
SearchQueryResultType
which contains the total search counts, total available, search status
(Successful or UnSuccessful) and a list of searchDocuments. Each search document represents one document
in SharePoint with following information about it:
isDocument
propertymaxResults
if the value of search counts is lesser than the
value of total available.
SharePointConnectorException
- Authentication failure.public SearchQueryResultType advancedSearch(LoginSettings loginSettings, java.lang.String siteUrl, java.lang.String documentLibraryName, java.lang.String folderUrl, java.lang.String keyword, java.lang.String customScope, SearchFilter searchFilter) throws SharePointConnectorException
IMSSharePointContentRepositoryConnectorServiceClient
advancedSearch
in interface IMSSharePointContentRepositoryConnectorServiceClient
loginSettings
- Required. Configuration settings required to connect to the Microsoft SharePoint site.siteUrl
- Required. Microsoft SharePoint site URL.documentLibraryName
- Optional. Document library name. Specify a document library name
if you want the search to be restricted to a specific document library.folderUrl
- Optional. Parent folder URL. Specify a folder URL if you want your search to be
restricted to the specific document library and its subfolders only.keyword
- Required. Keyword to search for in SharePoint.customScope
- Optional. Name of the custom scope used to perform the search operation.
When specified, results returned are those custom scope results that satisfy all the four criteria of:
SiteUrl
,documentLibraryName
,folderURL
,customScope
.searchFilter
- Optional. An Object of type SearchFilter
which allows a paginated search.
The SearchFilter comprises of the following properties which are all optional.
SortByProperty
- sorting the search results returned by the querySearchQueryResultType
which contains the total search counts, total available, search status
(Successful or UnSuccessful) and a list of searchDocuments. Each search document represents one document
in SharePoint with following information about it:
isDocument
propertycount
if the value of search counts is lesser than the
value of total available.
SharePointConnectorException
- Authentication failure.public boolean cancelFileCheckOut(LoginSettings loginSettings, java.lang.String siteUrl, java.lang.String documentLibraryName, java.lang.String fileUrl) throws SharePointConnectorException
IMSSharePointContentRepositoryConnectorServiceClient
false
and performs no further actions. If the file is already checked-out,
this operation reverts the check-out operation and returns true
.
cancelFileCheckOut
in interface IMSSharePointContentRepositoryConnectorServiceClient
loginSettings
- Required. Configuration settings required to connect to the Microsoft SharePoint site.siteUrl
- Required. Microsoft SharePoint site URL.documentLibraryName
- Required. Document Library name.fileUrl
- Required. Relative URL for an existing file. If the file does not exist an exception is thrown.
true
),
or if the file was not checked-out (false
)
SharePointConnectorException
- Authentication failure.public CreateDocumentResultType createDocument(LoginSettings loginSettings, java.lang.String siteUrl, java.lang.String documentLibraryName, Document inputDoc, java.lang.String folderUrl, java.lang.String newFileName, java.lang.Boolean updateInSameTransaction, java.util.Map properties) throws SharePointConnectorException
IMSSharePointContentRepositoryConnectorServiceClient
updateProperties
instead.
createDocument
in interface IMSSharePointContentRepositoryConnectorServiceClient
loginSettings
- Required. Configuration settings required to connect to the Microsoft SharePoint site.siteUrl
- Required. Microsoft SharePoint site URL.documentLibraryName
- Required. Document Library name.inputDoc
- Required. Contents of the file being created.folderUrl
- Optional. Parent folder of the new document.
If the new document is required to be created directly at the document library level,
do not provide a value for this parameter.newFileName
- Required. Name of the new file. This name is also used to identify if the file exists or not.updateInSameTransaction
- Optional. Flag that specifies whether to set either all or none of the properties.
When set to True
, either all properties or none are set (No properties
are set if even a single property fails to be set). When set to False
,
all correct properties are set, and incorrect properties are not set.properties
- Optional. A hash map containing name-value pair of document properties.
CreateDocumentResultType
. CreateDocumentResultType is a complex
object containing:
absoluteUrl
. The absolute URL of the created file.relativeURL
. The relative URL of the of the created file.
The relative URL is relative to the document library, and does not contain
the siteUrl
and the documentLibraryName
fileUploadSuccess
. A flag that indicates if the operation to
create the document was a success or not.SharePointConnectorException
- Authentication failure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |