public class SPSProxyHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SPSProxyHelper.ListsWS
SharePoint Lists Service Wrapper Class
|
protected static class |
SPSProxyHelper.MCPermissionsWS
MC Permissions Service Wrapper Class
|
protected static class |
SPSProxyHelper.PermissionsWS
SharePoint Permissions Service Wrapper Class
|
protected static class |
SPSProxyHelper.ResourceProvider
Implementation of EngineConfiguration that we'll use to get the wsdd file from a
local resource.
|
protected static class |
SPSProxyHelper.StsAdapterWS
SharePoint StsAdapter (List Data Services) Service Wrapper Class
|
protected static class |
SPSProxyHelper.UserGroupWS
SharePoint UserGroup Service Wrapper Class
|
protected static class |
SPSProxyHelper.VersionsWS
SharePoint Versions Service Wrapper Class
|
protected static class |
SPSProxyHelper.WebsWS
SharePoint Webs Service Wrapper Class
|
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTPCLIENT_PROPERTY |
protected static Pattern |
subsPattern |
| Constructor and Description |
|---|
SPSProxyHelper(String serverUrl,
String serverLocation,
String decodedServerLocation,
String userName,
String password,
Class resourceClass,
String configFileName,
org.apache.http.client.HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
protected static com.microsoft.schemas.sharepoint.soap.GetListItemsQuery |
buildMatchQuery(String fieldName,
String type,
String value)
Build a query XML object that matches a specified field and value pair.
|
protected static com.microsoft.schemas.sharepoint.soap.GetListItemsQueryOptions |
buildNonPagingQueryOptions()
Build queryOptions XML object that specifies no paging value.
|
protected static com.microsoft.schemas.sharepoint.soap.GetListItemsQuery |
buildOrderedQuery(String indexedColumn)
Build a query XML object that orders by an indexed column, for paging.
|
protected static com.microsoft.schemas.sharepoint.soap.GetListItemsQueryOptions |
buildPagingQueryOptions(String pageNextString)
Build queryOptions XML object that specifies a paging value.
|
protected static com.microsoft.schemas.sharepoint.soap.GetListItemsViewFields |
buildViewFields(String[] fieldNames)
Build viewFields XML for the ListItems call.
|
boolean |
checkConnection(String site,
boolean sps30) |
String[] |
getACLs(String site,
String guid,
boolean activeDirectoryAuthority)
Get the acls for a document library.
|
List<NameValue> |
getAttachmentNames(String site,
String listName,
String itemID)
Gets a list of attachment URLs, given a site, list name, and list item ID.
|
boolean |
getChildren(IFileStream fileStream,
String site,
String guid,
boolean dspStsWorks) |
String |
getDocLibID(String parentSite,
String parentSiteDecoded,
String docLibrary) |
String[] |
getDocumentACLs(String site,
String file,
boolean activeDirectoryAuthority)
Get the acls for a document.
|
List<NameValue> |
getDocumentLibraries(String parentSite,
String parentSiteDecoded)
Gets a list of document libraries given a parent site
|
Map<String,String> |
getFieldList(String site,
String listName)
Gets a list of field names of the given document library
|
Map<String,String> |
getFieldValues(String[] fieldNames,
String site,
String docLibrary,
String docId,
boolean dspStsWorks)
Gets a list of field values of the given document
|
String |
getListID(String parentSite,
String parentSiteDecoded,
String listName) |
List<NameValue> |
getLists(String parentSite,
String parentSiteDecoded)
Gets a list of lists given a parent site
|
List<NameValue> |
getSites(String parentSite)
Gets a list of sites given a parent site
|
XMLDoc |
getVersions(String site,
String docPath) |
protected static String |
valueMunge(String value)
Substitute progid where found
|
public static final String HTTPCLIENT_PROPERTY
protected static Pattern subsPattern
public String[] getACLs(String site, String guid, boolean activeDirectoryAuthority) throws ManifoldCFException, ServiceInterruption
site - guid - is the list/library GUIDExceptionManifoldCFExceptionServiceInterruptionpublic String[] getDocumentACLs(String site, String file, boolean activeDirectoryAuthority) throws ManifoldCFException, ServiceInterruption
site - is the encoded subsite pathfile - is the encoded file url (not including protocol or server or location, but including encoded subsite, library and folder/file path)ManifoldCFExceptionServiceInterruptionpublic boolean getChildren(IFileStream fileStream, String site, String guid, boolean dspStsWorks) throws ManifoldCFException, ServiceInterruption
site - docLibrary - ManifoldCFExceptionServiceInterruptionpublic String getDocLibID(String parentSite, String parentSiteDecoded, String docLibrary) throws ServiceInterruption, ManifoldCFException
parentSite - docLibrary - ManifoldCFExceptionServiceInterruptionpublic String getListID(String parentSite, String parentSiteDecoded, String listName) throws ServiceInterruption, ManifoldCFException
parentSite - list - nameManifoldCFExceptionServiceInterruptionpublic XMLDoc getVersions(String site, String docPath) throws ServiceInterruption, ManifoldCFException
site - docPath - ManifoldCFExceptionServiceInterruptionpublic boolean checkConnection(String site, boolean sps30) throws ManifoldCFException, ServiceInterruption
MalformedURLExceptionjavax.xml.rpc.ServiceExceptionRemoteExceptionManifoldCFExceptionServiceInterruptionpublic List<NameValue> getAttachmentNames(String site, String listName, String itemID) throws ManifoldCFException, ServiceInterruption
public Map<String,String> getFieldList(String site, String listName) throws ManifoldCFException, ServiceInterruption
site - list/library - nameManifoldCFExceptionServiceInterruptionpublic Map<String,String> getFieldValues(String[] fieldNames, String site, String docLibrary, String docId, boolean dspStsWorks) throws ManifoldCFException, ServiceInterruption
fieldNames - site - docId - ManifoldCFExceptionServiceInterruptionpublic List<NameValue> getSites(String parentSite) throws ManifoldCFException, ServiceInterruption
parentSite - the site to search for subsites, empty string for rootManifoldCFExceptionServiceInterruptionpublic List<NameValue> getDocumentLibraries(String parentSite, String parentSiteDecoded) throws ManifoldCFException, ServiceInterruption
parentSite - the site to search for document libraries, empty string for rootManifoldCFExceptionServiceInterruptionpublic List<NameValue> getLists(String parentSite, String parentSiteDecoded) throws ManifoldCFException, ServiceInterruption
parentSite - the site to search for lists, empty string for rootManifoldCFExceptionServiceInterruptionprotected static com.microsoft.schemas.sharepoint.soap.GetListItemsViewFields buildViewFields(String[] fieldNames) throws ManifoldCFException
ManifoldCFExceptionprotected static com.microsoft.schemas.sharepoint.soap.GetListItemsQuery buildMatchQuery(String fieldName, String type, String value) throws ManifoldCFException
ManifoldCFExceptionprotected static com.microsoft.schemas.sharepoint.soap.GetListItemsQuery buildOrderedQuery(String indexedColumn) throws ManifoldCFException
ManifoldCFExceptionprotected static com.microsoft.schemas.sharepoint.soap.GetListItemsQueryOptions buildPagingQueryOptions(String pageNextString) throws ManifoldCFException
ManifoldCFExceptionprotected static com.microsoft.schemas.sharepoint.soap.GetListItemsQueryOptions buildNonPagingQueryOptions()
throws ManifoldCFException
ManifoldCFException