You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2010/08/23 20:08:42 UTC
svn commit: r988237 [24/24] - in /incubator/lcf/trunk:
modules/connectors/activedirectory/connector/org/apache/acf/authorities/authorities/activedirectory/
modules/connectors/documentum/connector/org/apache/acf/crawler/authorities/DCTM/
modules/connect...
Modified: incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/FPSEPublish.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/FPSEPublish.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/FPSEPublish.java (original)
+++ incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/FPSEPublish.java Mon Aug 23 18:08:32 2010
@@ -67,7 +67,7 @@ public class FPSEPublish
public FPSEPublish(String serverProtocol, String serverName, int serverPort, String serverLocation,
String userName, String password, String domainName)
- throws LCFException
+ throws ACFException
{
this.serverProtocol = serverProtocol;
this.serverName = serverName;
@@ -78,14 +78,14 @@ public class FPSEPublish
this.userName = userName;
this.passWord = password;
this.domainName = domainName;
- String fileName = LCF.getProperty("org.apache.acf.sharepoint.wsddpath");
+ String fileName = ACF.getProperty("org.apache.acf.sharepoint.wsddpath");
if (fileName == null)
- throw new LCFException("Missing org.apache.acf.sharepoint.wsddpath property!",LCFException.SETUP_ERROR);
+ throw new ACFException("Missing org.apache.acf.sharepoint.wsddpath property!",ACFException.SETUP_ERROR);
this.configuration = new FileProvider(fileName);
}
public void close()
- throws LCFException
+ throws ACFException
{
}
@@ -106,7 +106,7 @@ public class FPSEPublish
}
protected void UrlToWebUrl(String uri)
- throws LCFException
+ throws ACFException
{
String actualURL = getBaseUrl() + "/" + uri;
try
@@ -120,20 +120,20 @@ public class FPSEPublish
webUrl = GetReturnValue(response, "webUrl").replaceAll(" ","%20");
if (webUrl == null)
- throw new LCFException("Null web url for document described by '"+uri+"'");
+ throw new ACFException("Null web url for document described by '"+uri+"'");
fileUrl = GetReturnValue(response, "fileUrl");
if (fileUrl == null)
- throw new LCFException("Null file url for document described by '"+uri+"'");
+ throw new ACFException("Null file url for document described by '"+uri+"'");
// System.out.println("File url = "+fileUrl);
}
catch (MalformedURLException e)
{
- throw new LCFException("Malformed URL: '"+actualURL+"'",e);
+ throw new ACFException("Malformed URL: '"+actualURL+"'",e);
}
}
public void removeDocument(String url)
- throws LCFException
+ throws ACFException
{
try
{
@@ -155,16 +155,16 @@ public class FPSEPublish
}
catch (UnsupportedEncodingException e)
{
- throw new LCFException("Unsupported encoding",e);
+ throw new ACFException("Unsupported encoding",e);
}
catch (IOException e)
{
- throw new LCFException("IO exception",e);
+ throw new ACFException("IO exception",e);
}
}
public void writeDocument(String url, String fileName, String metaInfo)
- throws LCFException
+ throws ACFException
{
try
{
@@ -218,20 +218,20 @@ public class FPSEPublish
}
catch (FileNotFoundException e)
{
- throw new LCFException("File not found",e);
+ throw new ACFException("File not found",e);
}
catch (UnsupportedEncodingException e)
{
- throw new LCFException("Unsupported encoding",e);
+ throw new ACFException("Unsupported encoding",e);
}
catch (IOException e)
{
- throw new LCFException("IO exception",e);
+ throw new ACFException("IO exception",e);
}
}
public void checkinDocument(String uri)
- throws LCFException
+ throws ACFException
{
UrlToWebUrl(uri);
@@ -244,13 +244,13 @@ public class FPSEPublish
}
catch (UnsupportedEncodingException e)
{
- throw new LCFException("Unsupported encoding",e);
+ throw new ACFException("Unsupported encoding",e);
}
}
public void addUser( String siteUrl, String lib, String user)
- throws LCFException
+ throws ACFException
{
try
{
@@ -261,16 +261,16 @@ public class FPSEPublish
}
catch (org.apache.axis.AxisFault e)
{
- throw new LCFException("Error adding user '"+user+"' to '"+siteUrl+"' library '"+lib+"'; axis fault: "+e.dumpToString(),e);
+ throw new ACFException("Error adding user '"+user+"' to '"+siteUrl+"' library '"+lib+"'; axis fault: "+e.dumpToString(),e);
}
catch (Exception e)
{
- throw new LCFException("Error adding user '"+user+"' to '"+siteUrl+"' library '"+lib+"'",e);
+ throw new ACFException("Error adding user '"+user+"' to '"+siteUrl+"' library '"+lib+"'",e);
}
}
public void delUser( String siteUrl, String lib, String user)
- throws LCFException
+ throws ACFException
{
try
{
@@ -281,16 +281,16 @@ public class FPSEPublish
}
catch (org.apache.axis.AxisFault e)
{
- throw new LCFException("Error removing user '"+user+"' to '"+siteUrl+"' library '"+lib+"'; axis fault: "+e.dumpToString(),e);
+ throw new ACFException("Error removing user '"+user+"' to '"+siteUrl+"' library '"+lib+"'; axis fault: "+e.dumpToString(),e);
}
catch (Exception e)
{
- throw new LCFException("Error removing user '"+user+"' from '"+siteUrl+"' library '"+lib+"'",e);
+ throw new ACFException("Error removing user '"+user+"' from '"+siteUrl+"' library '"+lib+"'",e);
}
}
public void addSiteUser( String siteUrl, String alias, String displayName, String email, String group)
- throws LCFException
+ throws ACFException
{
try
{
@@ -309,18 +309,18 @@ public class FPSEPublish
}
catch (org.apache.axis.AxisFault e)
{
- throw new LCFException("Error adding site user '"+alias+"' to site '"+siteUrl+"' in group '" + group + "'; axis fault: "+e.dumpToString(),e);
+ throw new ACFException("Error adding site user '"+alias+"' to site '"+siteUrl+"' in group '" + group + "'; axis fault: "+e.dumpToString(),e);
}
}
}
catch (Exception e)
{
- throw new LCFException("Error adding site user '"+alias+"' to '"+siteUrl,e);
+ throw new ACFException("Error adding site user '"+alias+"' to '"+siteUrl,e);
}
}
public void delSiteUser( String siteUrl, String alias )
- throws LCFException
+ throws ACFException
{
try
{
@@ -331,17 +331,17 @@ public class FPSEPublish
}
catch (org.apache.axis.AxisFault e)
{
- throw new LCFException("Error removing site user '"+alias+"' from '"+siteUrl+"'; axis fault: "+e.dumpToString(),e);
+ throw new ACFException("Error removing site user '"+alias+"' from '"+siteUrl+"'; axis fault: "+e.dumpToString(),e);
}
catch (Exception e)
{
- throw new LCFException("Error removing site user '"+alias+"' from '"+siteUrl+"'",e);
+ throw new ACFException("Error removing site user '"+alias+"' from '"+siteUrl+"'",e);
}
}
public void setDocsMetaInfo(String uri, String metaInfo)
- throws LCFException
+ throws ACFException
{
try
{
@@ -354,12 +354,12 @@ public class FPSEPublish
}
catch (UnsupportedEncodingException e)
{
- throw new LCFException("Unsupported encoding",e);
+ throw new ACFException("Unsupported encoding",e);
}
}
private String SendRequest(String uri, String postBody)
- throws LCFException
+ throws ACFException
{
try
@@ -383,7 +383,7 @@ public class FPSEPublish
}
catch (Exception e)
{
- throw new LCFException("Error sending request to '"+uri+"'",e);
+ throw new ACFException("Error sending request to '"+uri+"'",e);
}
}
Modified: incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/RemoveDoc.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/RemoveDoc.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/RemoveDoc.java (original)
+++ incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/RemoveDoc.java Mon Aug 23 18:08:32 2010
@@ -50,7 +50,7 @@ public class RemoveDoc
}
System.err.println("Successfully deleted");
}
- catch (LCFException e)
+ catch (ACFException e)
{
e.printStackTrace(System.err);
System.exit(2);
Modified: incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/RemoveUserFromLibrary.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/RemoveUserFromLibrary.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/RemoveUserFromLibrary.java (original)
+++ incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/RemoveUserFromLibrary.java Mon Aug 23 18:08:32 2010
@@ -50,7 +50,7 @@ public class RemoveUserFromLibrary
}
System.err.println("Successfully removed user");
}
- catch (LCFException e)
+ catch (ACFException e)
{
e.printStackTrace(System.err);
System.exit(2);
Modified: incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/RemoveUserFromSite.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/RemoveUserFromSite.java?rev=988237&r1=988236&r2=988237&view=diff
==============================================================================
--- incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/RemoveUserFromSite.java (original)
+++ incubator/lcf/trunk/tests/sharepoint-testing-package/org/apache/acf/crawler/connectors/sharepoint/RemoveUserFromSite.java Mon Aug 23 18:08:32 2010
@@ -50,7 +50,7 @@ public class RemoveUserFromSite
}
System.err.println("Successfully removed site user");
}
- catch (LCFException e)
+ catch (ACFException e)
{
e.printStackTrace(System.err);
System.exit(2);