manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1791506 - in /manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src: main/java/org/apache/manifoldcf/authorities/authorities/nuxeo/ main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/ test/java/org/apache/manifoldcf/au...
Date Sat, 15 Apr 2017 12:57:57 GMT
Author: kwright
Date: Sat Apr 15 12:57:57 2017
New Revision: 1791506

URL: http://svn.apache.org/viewvc?rev=1791506&view=rev
Log:
Limit scope of public methods

Added:
    manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/authorities/
    manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/authorities/nuxeo/
    manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/authorities/nuxeo/NuxeoAuthorityTest.java
      - copied, changed from r1791505, manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/nuxeo/tests/NuxeoAuthorityTest.java
    manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/NuxeoConnectorTest.java
      - copied, changed from r1791505, manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/tests/NuxeoConnectorTest.java
Removed:
    manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/nuxeo/
    manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/tests/
Modified:
    manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/nuxeo/NuxeoAuthorityConnector.java
    manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/NuxeoRepositoryConnector.java

Modified: manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/nuxeo/NuxeoAuthorityConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/nuxeo/NuxeoAuthorityConnector.java?rev=1791506&r1=1791505&r2=1791506&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/nuxeo/NuxeoAuthorityConnector.java
(original)
+++ manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/nuxeo/NuxeoAuthorityConnector.java
Sat Apr 15 12:57:57 2017
@@ -86,23 +86,10 @@ public class NuxeoAuthorityConnector ext
     super();
   }
 
-  public void setNuxeoClient(NuxeoClient nuxeoClient) {
+  void setNuxeoClient(NuxeoClient nuxeoClient) {
     this.nuxeoClient = nuxeoClient;
   }
 
-  // Close the connection.
-  public void disconenct() throws ManifoldCFException {
-    if (nuxeoClient != null)
-      nuxeoClient = null;
-
-    protocol = null;
-    host = null;
-    port = null;
-    path = null;
-    username = null;
-    password = null;
-  }
-
   /** CONNECTION **/
 
   // Makes connection to server
@@ -200,7 +187,7 @@ public class NuxeoAuthorityConnector ext
    * 
    * @throws ManifoldCFException
    */
-  public String getUrl() throws ManifoldCFException {
+  String getUrl() throws ManifoldCFException {
     int portInt;
     if (port != null && port.length() > 0) {
       try {
@@ -361,7 +348,7 @@ public class NuxeoAuthorityConnector ext
     }
   }
 
-  public List<String> getGroupsByUser(String username) {
+  List<String> getGroupsByUser(String username) {
 
     List<String> authorities = null;
 

Modified: manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/NuxeoRepositoryConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/NuxeoRepositoryConnector.java?rev=1791506&r1=1791505&r2=1791506&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/NuxeoRepositoryConnector.java
(original)
+++ manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/NuxeoRepositoryConnector.java
Sat Apr 15 12:57:57 2017
@@ -145,7 +145,7 @@ public class NuxeoRepositoryConnector ex
     super();
   }
 
-  public void setNuxeoClient(NuxeoClient nuxeoClient) {
+  void setNuxeoClient(NuxeoClient nuxeoClient) {
     this.nuxeoClient = nuxeoClient;
   }
 
@@ -352,7 +352,7 @@ public class NuxeoRepositoryConnector ex
    * 
    * @throws ManifoldCFException
    */
-  public String getUrl() throws ManifoldCFException {
+  String getUrl() throws ManifoldCFException {
     int portInt;
     if (port != null && port.length() > 0) {
       try {
@@ -448,7 +448,7 @@ public class NuxeoRepositoryConnector ex
    * @param start
    * @return Documents
    */
-  public Documents getDocsByDate(NuxeoClient nuxeoClient, String date, List<String>
domains,
+  Documents getDocsByDate(NuxeoClient nuxeoClient, String date, List<String> domains,
       List<String> documentsType, int limit, int start) {
 
     String query = "";
@@ -851,7 +851,7 @@ public class NuxeoRepositoryConnector ex
     Messages.outputResourceWithVelocity(out, locale, EDIT_SPEC_HEADER_FORWARD, paramMap);
   }
 
-  public static class NuxeoSpecification {
+  static class NuxeoSpecification {
 
     private List<String> domains;
     private List<String> documentsType;

Copied: manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/authorities/nuxeo/NuxeoAuthorityTest.java
(from r1791505, manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/nuxeo/tests/NuxeoAuthorityTest.java)
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/authorities/nuxeo/NuxeoAuthorityTest.java?p2=manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/authorities/nuxeo/NuxeoAuthorityTest.java&p1=manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/nuxeo/tests/NuxeoAuthorityTest.java&r1=1791505&r2=1791506&rev=1791506&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/nuxeo/tests/NuxeoAuthorityTest.java
(original)
+++ manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/authorities/nuxeo/NuxeoAuthorityTest.java
Sat Apr 15 12:57:57 2017
@@ -1,7 +1,20 @@
 /**
- * 
- */
-package org.apache.manifoldcf.authorities.nuxeo.tests;
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.manifoldcf.authorities.authorities.nuxeo;
 
 import org.apache.manifoldcf.authorities.authorities.nuxeo.NuxeoAuthorityConnector;
 import org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse;

Copied: manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/NuxeoConnectorTest.java
(from r1791505, manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/tests/NuxeoConnectorTest.java)
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/NuxeoConnectorTest.java?p2=manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/NuxeoConnectorTest.java&p1=manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/tests/NuxeoConnectorTest.java&r1=1791505&r2=1791506&rev=1791506&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/tests/NuxeoConnectorTest.java
(original)
+++ manifoldcf/branches/CONNECTORS-1290-3/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/NuxeoConnectorTest.java
Sat Apr 15 12:57:57 2017
@@ -1,7 +1,20 @@
 /**
- * 
- */
-package org.apache.manifoldcf.crawler.connectors.nuxeo.tests;
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.manifoldcf.crawler.connectors.nuxeo;
 
 import static org.junit.Assert.assertEquals;
 import static org.mockito.Matchers.anyLong;



Mime
View raw message