Modified: manifoldcf/branches/CONNECTORS-731/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/authorities/BaseAuthorityConnector.java URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-731/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/authorities/BaseAuthorityConnector.java?rev=1499733&r1=1499732&r2=1499733&view=diff ============================================================================== --- manifoldcf/branches/CONNECTORS-731/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/authorities/BaseAuthorityConnector.java (original) +++ manifoldcf/branches/CONNECTORS-731/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/authorities/BaseAuthorityConnector.java Thu Jul 4 12:37:10 2013 @@ -34,6 +34,13 @@ public abstract class BaseAuthorityConne { public static final String _rcsid = "@(#)$Id: BaseAuthorityConnector.java 988245 2010-08-23 18:39:35Z kwright $"; + protected static final AuthorizationResponse RESPONSE_UNREACHABLE = new AuthorizationResponse(new String[]{GLOBAL_DENY_TOKEN}, + AuthorizationResponse.RESPONSE_UNREACHABLE); + protected static final AuthorizationResponse RESPONSE_USERNOTFOUND = new AuthorizationResponse(new String[]{GLOBAL_DENY_TOKEN}, + AuthorizationResponse.RESPONSE_USERNOTFOUND); + protected static final AuthorizationResponse RESPONSE_USERUNAUTHORIZED = new AuthorizationResponse(new String[]{GLOBAL_DENY_TOKEN}, + AuthorizationResponse.RESPONSE_USERUNAUTHORIZED); + /** Obtain the access tokens for a given user name. *@param userName is the user name or identifier. *@return the response tokens (according to the current authority).
Modified: manifoldcf/branches/CONNECTORS-731/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/interfaces/IAuthorityConnector.java URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-731/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/interfaces/IAuthorityConnector.java?rev=1499733&r1=1499732&r2=1499733&view=diff ============================================================================== --- manifoldcf/branches/CONNECTORS-731/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/interfaces/IAuthorityConnector.java (original) +++ manifoldcf/branches/CONNECTORS-731/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/interfaces/IAuthorityConnector.java Thu Jul 4 12:37:10 2013 @@ -32,6 +32,9 @@ import java.io.*; public interface IAuthorityConnector extends IConnector { + /** This is the global deny token. This should be ingested with all documents. */ + public static final String GLOBAL_DENY_TOKEN = "DEAD_AUTHORITY"; + /** Obtain the access tokens for a given Active Directory user name. *@param userName is the user name or identifier. *@return the response tokens (according to the current authority). Modified: manifoldcf/branches/CONNECTORS-731/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/IRepositoryConnector.java URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-731/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/IRepositoryConnector.java?rev=1499733&r1=1499732&r2=1499733&view=diff ============================================================================== --- manifoldcf/branches/CONNECTORS-731/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/IRepositoryConnector.java (original) +++ manifoldcf/branches/CONNECTORS-731/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/IRepositoryConnector.java Thu Jul 4 12:37:10 2013 @@ -104,6 +104,9 @@ public interface IRepositoryConnector ex public static final int JOBMODE_ONCEONLY = IJobDescription.TYPE_SPECIFIED; public static final int JOBMODE_CONTINUOUS = IJobDescription.TYPE_CONTINUOUS; + /** This is the global deny token. This should be ingested with all documents. */ + public static final String GLOBAL_DENY_TOKEN = "DEAD_AUTHORITY"; + /** Tell the world what model this connector uses for addSeedDocuments(). * This must return a model value as specified above. The connector does not have to be connected * for this method to be called.
