manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rh...@apache.org
Subject svn commit: r1770894 [2/3] - in /manifoldcf/branches/CONNECTORS-1290/connectors: ./ nuxeo/ nuxeo/connector/ nuxeo/connector/src/ nuxeo/connector/src/main/ nuxeo/connector/src/main/java/ nuxeo/connector/src/main/java/org/ nuxeo/connector/src/main/java/o...
Date Tue, 22 Nov 2016 23:11:09 GMT
Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Ace.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Ace.java?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Ace.java (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Ace.java Tue Nov 22 23:11:08 2016
@@ -0,0 +1,53 @@
+/**
+ * 
+ */
+package org.apache.manifoldcf.crawler.connectors.nuxeo.model;
+
+/**
+ * @author David Arroyo Escobar <arroyoescobardavid@gmail.com>
+ *
+ */
+public class Ace {
+
+	protected String name;
+	protected boolean granted;
+	protected String status;
+	/**
+	 * @return the name
+	 */
+	public String getName() {
+		return name;
+	}
+	/**
+	 * @param name the name to set
+	 */
+	public void setName(String name) {
+		this.name = name;
+	}
+	/**
+	 * @return the granted
+	 */
+	public boolean isGranted() {
+		return granted;
+	}
+	/**
+	 * @param granted the granted to set
+	 */
+	public void setGranted(boolean granted) {
+		this.granted = granted;
+	}
+	/**
+	 * @return the status
+	 */
+	public String getStatus() {
+		return status;
+	}
+	/**
+	 * @param status the status to set
+	 */
+	public void setStatus(String status) {
+		this.status = status;
+	}
+	
+	
+}

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Ace.java
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Acl.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Acl.java?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Acl.java (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Acl.java Tue Nov 22 23:11:08 2016
@@ -0,0 +1,89 @@
+/**
+ * 
+ */
+package org.apache.manifoldcf.crawler.connectors.nuxeo.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.manifoldcf.crawler.connectors.nuxeo.model.builder.NuxeoResourceBuilder;
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+
+/**
+ * @author David Arroyo Escobar <arroyoescobardavid@gmail.com>
+ *
+ */
+public class Acl extends Document {
+
+	public static final String KEY_ACL = "acl";
+	public static final String KEY_ACE = "ace";
+
+	public static final String KEY_NAME = "username";
+	public static final String KEY_GRANTED = "granted";
+	public static final String KEY_STATUS = "status";
+
+	protected List<Ace> aces = new ArrayList<Ace>();;
+
+	public List<Ace> getAces() {
+		return aces;
+	}
+
+	public static NuxeoResourceBuilder<? extends Acl> builder() {
+		return new AclBuilder();
+	}
+
+	public static class AclBuilder implements NuxeoResourceBuilder<Acl> {
+
+		public Acl fromJson(JSONObject jsonDocument) {
+			return fromJson(jsonDocument, new Acl());
+		}
+
+		public Acl fromJson(JSONObject jsonDocument, Acl acl) {
+
+			try {
+
+				JSONArray  aclArray = jsonDocument.getJSONArray(KEY_ACL);
+				
+				for (int i = 0; i < aclArray.length(); i++) {
+					JSONObject aclObj = aclArray.getJSONObject(i);
+					JSONArray aceArray = aclObj.getJSONArray(KEY_ACE);
+					
+					for (int j = 0; j < aceArray.length(); j++) {
+						Ace ace = new Ace();
+						JSONObject aceObj = aceArray.getJSONObject(j);
+						
+						ace.setName(aceObj.getString(KEY_NAME));
+						ace.setGranted(aceObj.getBoolean(KEY_GRANTED));
+						ace.setStatus(aceObj.getString(KEY_STATUS));
+						
+						acl.aces.add(ace);
+					}
+
+					
+				}
+				
+				return acl;
+
+			} catch (JSONException e) {
+				e.printStackTrace();
+			}
+
+			return new Acl();
+
+		}
+
+		/*
+		 * (non-Javadoc)
+		 * 
+		 * @see org.apache.manifoldcf.crawler.connectors.nuxeo.model.builder.
+		 * NuxeoResourceBuilder#getType()
+		 */
+		@Override
+		public Class<Acl> getType() {
+			return Acl.class;
+		}
+
+	}
+}

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Acl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Attachment.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Attachment.java?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Attachment.java (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Attachment.java Tue Nov 22 23:11:08 2016
@@ -0,0 +1,39 @@
+/**
+ * 
+ */
+package org.apache.manifoldcf.crawler.connectors.nuxeo.model;
+
+/**
+ * @author David Arroyo Escobar <arroyoescobardavid@gmail.com>
+ *
+ */
+public class Attachment{
+
+	public static final String ATT_KEY_FILE = "file";
+	public static final String ATT_KEY_NAME = "name";
+	public static final String ATT_KEY_MIME_TYPE = "mime-type";
+	public static final String ATT_KEY_URL = "data";
+	public static final String ATT_KEY_LENGTH = "length";
+	
+	protected String name;
+	protected String mime_type;
+	protected String url;
+	protected long length;
+	
+	public String getName() {
+		return name;
+	}
+
+	public String getMime_type() {
+		return mime_type;
+	}
+
+	public String getUrl() {
+		return url;
+	}
+	
+	public long getLength() {
+		return length;
+	}
+
+}
\ No newline at end of file

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Attachment.java
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Document.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Document.java?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Document.java (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Document.java Tue Nov 22 23:11:08 2016
@@ -0,0 +1,413 @@
+package org.apache.manifoldcf.crawler.connectors.nuxeo.model;
+
+import java.io.ByteArrayInputStream;
+import java.io.InputStream;
+import java.nio.charset.StandardCharsets;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.manifoldcf.core.common.DateParser;
+import org.apache.manifoldcf.crawler.connectors.nuxeo.model.builder.NuxeoResourceBuilder;
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+
+import com.google.common.collect.Maps;
+
+public class Document extends NuxeoResource {
+
+	public static final String DELETED = "deleted";
+	// KEYS
+	protected static final String KEY_UID = "uid";
+	protected static final String KEY_TITLE = "title";
+	protected static final String KEY_LAST_MODIFIED = "lastModified";
+	protected static final String KEY_STATE = "state";
+	protected static final String KEY_TYPE = "type";
+	protected static final String KEY_PATH = "path";
+	protected static final String KEY_MEDIATYPE = "mediaType";
+	protected static final String KEY_IS_CHECKED_OUT = "isCheckedOut";
+	protected static final String KEY_PARENT_REF = "parentRef";
+	protected static final String KEY_REPOSITORY = "repository";
+	protected static final String KEY_ATTACHMENTS = "atachments";
+
+	protected static final String KEY_PROPERTIES = "properties";
+
+	protected static final String DC_PREFFIX = "dc:";
+	protected static final String KEY_DC_DESCRIPTION = "description";
+	protected static final String KEY_DC_LANGUAGE = "language";
+	protected static final String KEY_DC_COVERAGE = "coverage";
+	protected static final String KEY_DC_VALID = "valid";
+	protected static final String KEY_DC_CREATOR = "creator";
+	protected static final String KEY_DC_CREATED = "created";
+	protected static final String KEY_DC_LAST_CONTRIBUTOR = "dc:lastContributor";
+	protected static final String KEY_DC_RIGHTS = "rights";
+	protected static final String KEY_DC_EXPIRED = "expired";
+	protected static final String KEY_DC_ISSUED = "issued";
+	protected static final String KEY_DC_NATURE = "nature";
+	protected static final String KEY_DC_SUBJECTS = "subjects";
+	protected static final String KEY_DC_CONTRIBUTORS = "contributors";
+	protected static final String KEY_DC_SOURCE = "source";
+	protected static final String KEY_DC_PUBLISHER = "publisher";
+
+	protected static final String NOTE_PREFFIX = "note:";
+	protected static final String NOTE_SAVE_PREFFIX = "note__";
+	protected static final String KEY_NOTE_NOTE = "note";
+	protected static final String KEY_NOTE_MYMETYPE = "mime_type";
+
+	protected static final String ATT_PREFFIX = "files:";
+	protected static final String ATT_MAIN_PREFFIX = "file:";
+	protected static final String ATT_CONTENT = "content";
+	protected static final String ATT_FILES = "files";
+
+	protected static final String DOCUMENT_SIZE = "size";
+
+	// Attributes
+	protected String uid;
+	protected String title;
+	protected Date lastModified;
+	protected String state;
+	protected String mediatype = "text/html; charset=utf-8";
+	protected long length;
+	protected String content;
+	protected String path;
+	protected String type;
+	protected Boolean isCheckedOut;
+	protected String parentRef;
+	protected String repository;
+
+	protected String description;
+	protected String language;
+	protected String coverage;
+	protected String valid;
+	protected String creator;
+	protected String created;
+	protected String lastContributor;
+	protected String rights;
+	protected String expired;
+	protected String issued;
+	protected String nature;
+	protected List<String> subjects = new ArrayList<>();
+	protected List<String> contributors = new ArrayList<>();
+	protected String source;
+	protected String publisher;
+
+	protected String note;
+	protected String noteMimeType;
+
+	protected List<Attachment> attachments = new ArrayList<>();
+
+	@SuppressWarnings("unused")
+	private JSONObject delegated;
+
+	public Document() {
+
+	}
+
+	// Getters
+	public String getUid() {
+		return uid;
+	}
+
+	public String getTitle() {
+		return title;
+	}
+
+	public Date getLastModified() {
+		return lastModified;
+	}
+
+	public String getState() {
+		return state;
+	}
+
+	public String getPath() {
+		return path;
+	}
+
+	public String getType() {
+		return type;
+	}
+
+	public String getMediatype() {
+		return this.mediatype;
+	}
+
+	public Boolean getIsCheckedOut() {
+		return isCheckedOut;
+	}
+
+	public String getParentRef() {
+		return parentRef;
+	}
+
+	public String getRepository() {
+		return repository;
+	}
+
+	public long getLenght() {
+		return this.length;
+	}
+
+	public String getContent() {
+		return content;
+	}
+
+	public String getDescription() {
+		return description;
+	}
+
+	public String getLanguage() {
+		return language;
+	}
+
+	public String getCoverage() {
+		return coverage;
+	}
+
+	public String getValid() {
+		return valid;
+	}
+
+	public String getCreator() {
+		return creator;
+	}
+
+	public String getCreated() {
+		return created;
+	}
+
+	public String getLastContributor() {
+		return lastContributor;
+	}
+
+	public String getRights() {
+		return rights;
+	}
+
+	public String getExpired() {
+		return expired;
+	}
+
+	public String getIssued() {
+		return issued;
+	}
+
+	public String getNature() {
+		return nature;
+	}
+
+	public List<String> getSubjects() {
+		return subjects;
+	}
+
+	public List<String> getContributors() {
+		return contributors;
+	}
+
+	public String getSource() {
+		return source;
+	}
+
+	public String getPublisher() {
+		return publisher;
+	}
+
+	public String getNote() {
+		return note;
+	}
+
+	public String getNoteMimeType() {
+		return noteMimeType;
+	}
+
+	public List<Attachment> getAttachments() {
+		return attachments;
+	}
+
+	public boolean hasContent() {
+		return this.length > 0 && this.content != null;
+	}
+
+	public InputStream getContentStream() {
+		String contentStream = content != null ? content : "";
+		return new ByteArrayInputStream(contentStream.getBytes(StandardCharsets.UTF_8));
+	}
+
+	public Map<String, Object> getMetadataAsMap() {
+		Map<String, Object> docMetadata = Maps.newHashMap();
+
+		docMetadata.put(KEY_UID, this.uid);
+		docMetadata.put(KEY_TITLE, this.title);
+		if (this.lastModified != null)
+			docMetadata.put(KEY_LAST_MODIFIED, DateParser.formatISO8601Date(this.lastModified));
+		docMetadata.put(KEY_STATE, this.state);
+		docMetadata.put(KEY_MEDIATYPE, this.mediatype);
+		docMetadata.put(KEY_TYPE, this.type);
+		docMetadata.put(KEY_PATH, this.path);
+		if (this.isCheckedOut != null)
+			docMetadata.put(KEY_IS_CHECKED_OUT, this.isCheckedOut.toString());
+		docMetadata.put(KEY_REPOSITORY, this.repository);
+		docMetadata.put(KEY_PARENT_REF, this.parentRef);
+
+		addIfNotEmpty(docMetadata, KEY_DC_DESCRIPTION, this.description);
+		addIfNotEmpty(docMetadata, KEY_DC_LANGUAGE, this.language);
+		addIfNotEmpty(docMetadata, KEY_DC_COVERAGE, this.coverage);
+		addIfNotEmpty(docMetadata, KEY_DC_VALID, this.valid);
+		addIfNotEmpty(docMetadata, KEY_DC_CREATOR, this.creator);
+		addIfNotEmpty(docMetadata, KEY_DC_LAST_CONTRIBUTOR, this.lastContributor);
+		addIfNotEmpty(docMetadata, KEY_DC_RIGHTS, this.rights);
+		addIfNotEmpty(docMetadata, KEY_DC_EXPIRED, this.expired);
+		addIfNotEmpty(docMetadata, KEY_DC_CREATED, this.created);
+		addIfNotEmpty(docMetadata, KEY_DC_ISSUED, this.issued);
+		addIfNotEmpty(docMetadata, KEY_DC_NATURE, this.nature);
+		addIfNotEmpty(docMetadata, KEY_DC_SOURCE, this.source);
+		addIfNotEmpty(docMetadata, KEY_DC_PUBLISHER, this.publisher);
+		addIfNotEmpty(docMetadata, KEY_DC_SUBJECTS, this.subjects);
+		addIfNotEmpty(docMetadata, KEY_DC_CONTRIBUTORS, this.contributors);
+		addIfNotEmpty(docMetadata, NOTE_SAVE_PREFFIX + KEY_NOTE_NOTE, this.note);
+		addIfNotEmpty(docMetadata, NOTE_SAVE_PREFFIX + KEY_NOTE_MYMETYPE, this.noteMimeType);
+
+		return docMetadata;
+	}
+
+	public void addIfNotEmpty(Map<String, Object> docMetadata, String key, Object obj) {
+		if (obj != null && ((obj instanceof String && !((String) obj).isEmpty()) || !(obj instanceof String))) {
+			docMetadata.put(key, obj);
+		}
+	}
+
+	public static NuxeoResourceBuilder<? extends Document> builder() {
+		return new DocumentBuilder();
+	}
+
+	public static class DocumentBuilder implements NuxeoResourceBuilder<Document> {
+
+		public Document fromJson(JSONObject jsonDocument) {
+			return fromJson(jsonDocument, new Document());
+		}
+
+		public Document fromJson(JSONObject jsonDocument, Document document) {
+
+			try {
+				String uid = jsonDocument.getString(KEY_UID);
+				String title = jsonDocument.getString(KEY_TITLE);
+				Date lastModified = DateParser.parseISO8601Date(jsonDocument.optString(KEY_LAST_MODIFIED, ""));
+				String state = jsonDocument.optString(KEY_STATE, "");
+				String path = jsonDocument.optString(KEY_PATH, "");
+				String type = jsonDocument.optString(KEY_TYPE, "");
+				Boolean isCheckedOut = jsonDocument.optBoolean(KEY_IS_CHECKED_OUT);
+				String repository = jsonDocument.optString(KEY_REPOSITORY, "");
+				String parentRef = jsonDocument.optString(KEY_PARENT_REF, "");
+
+				document.uid = uid;
+				document.title = title;
+				document.lastModified = lastModified;
+				document.state = state;
+				document.path = path;
+				document.type = type;
+				document.isCheckedOut = isCheckedOut;
+				document.repository = repository;
+				document.parentRef = parentRef;
+
+				document.length = (document.content != null) ? document.content.getBytes().length : 0;
+
+				JSONObject properties = (JSONObject) jsonDocument.opt(KEY_PROPERTIES);
+
+				if (properties != null) {
+
+					document.description = properties.optString(DC_PREFFIX + KEY_DC_DESCRIPTION);
+					document.language = properties.optString(DC_PREFFIX + KEY_DC_LANGUAGE);
+					document.coverage = properties.optString(DC_PREFFIX + KEY_DC_COVERAGE);
+					document.valid = properties.optString(DC_PREFFIX + KEY_DC_VALID);
+					document.creator = properties.optString(DC_PREFFIX + KEY_DC_CREATOR);
+					document.lastContributor = properties.optString(DC_PREFFIX + KEY_DC_LAST_CONTRIBUTOR);
+					document.rights = properties.optString(DC_PREFFIX + KEY_DC_RIGHTS);
+					document.expired = properties.optString(DC_PREFFIX + KEY_DC_EXPIRED);
+					document.created = properties.optString(DC_PREFFIX + KEY_DC_CREATED);
+					document.issued = properties.optString(DC_PREFFIX + KEY_DC_ISSUED);
+					document.nature = properties.optString(DC_PREFFIX + KEY_DC_NATURE);
+					document.source = properties.optString(DC_PREFFIX + KEY_DC_SOURCE);
+					document.publisher = properties.optString(DC_PREFFIX + KEY_DC_PUBLISHER);
+
+					JSONArray subjectsArray = properties.optJSONArray(DC_PREFFIX + KEY_DC_SUBJECTS);
+
+					if (subjectsArray != null)
+						for (int i = 0; i < subjectsArray.length(); i++) {
+							if (subjectsArray.optString(i) != null)
+								document.subjects.add(subjectsArray.getString(i));
+						}
+
+					JSONArray contributorsArray = properties.optJSONArray(DC_PREFFIX + KEY_DC_CONTRIBUTORS);
+
+					if (contributorsArray != null)
+						for (int i = 0; i < contributorsArray.length(); i++) {
+							if (contributorsArray.optString(i) != null)
+								document.contributors.add(contributorsArray.getString(i));
+						}
+
+					if (document.type.equalsIgnoreCase(DocumentType.NOTE.value())) {
+						document.note = properties.optString(NOTE_PREFFIX + KEY_NOTE_NOTE);
+						document.noteMimeType = properties.optString(NOTE_PREFFIX + KEY_NOTE_MYMETYPE);
+					}
+
+					JSONObject mainFile = properties.optJSONObject(ATT_MAIN_PREFFIX + ATT_CONTENT);
+
+					if (mainFile != null) {
+						Attachment att = new Attachment();
+
+						att.name = mainFile.optString(Attachment.ATT_KEY_NAME);
+						att.mime_type = mainFile.optString(Attachment.ATT_KEY_MIME_TYPE);
+						att.url = mainFile.optString(Attachment.ATT_KEY_URL);
+						att.length = mainFile.optLong(Attachment.ATT_KEY_LENGTH);
+
+						document.attachments.add(att);
+					}
+
+					JSONArray files = properties.optJSONArray(ATT_PREFFIX + ATT_FILES);
+
+					if (files != null)
+						for (int i = 0; i < files.length(); i++) {
+							if (files.optJSONObject(i) != null) {
+								Attachment att = new Attachment();
+
+								JSONObject fileObj = files.optJSONObject(i);
+								JSONObject file = fileObj.getJSONObject(Attachment.ATT_KEY_FILE);
+
+								att.name = file.optString(Attachment.ATT_KEY_NAME);
+								att.mime_type = file.optString(Attachment.ATT_KEY_MIME_TYPE);
+								att.url = file.optString(Attachment.ATT_KEY_URL);
+								att.length = file.optLong(Attachment.ATT_KEY_LENGTH);
+
+								document.attachments.add(att);
+							}
+
+						}
+				}
+
+				document.delegated = jsonDocument;
+
+				return document;
+
+			} catch (JSONException e) {
+				e.printStackTrace();
+			}
+
+			return new Document();
+
+		}
+
+		/*
+		 * (non-Javadoc)
+		 * 
+		 * @see org.apache.manifoldcf.crawler.connectors.nuxeo.model.builder.
+		 * NuxeoResourceBuilder#getType()
+		 */
+		@Override
+		public Class<Document> getType() {
+			return Document.class;
+		}
+
+	}
+}

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/Document.java
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/DocumentType.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/DocumentType.java?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/DocumentType.java (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/DocumentType.java Tue Nov 22 23:11:08 2016
@@ -0,0 +1,23 @@
+/**
+ * 
+ */
+package org.apache.manifoldcf.crawler.connectors.nuxeo.model;
+
+/**
+ * @author David Arroyo Escobar <arroyoescobardavid@gmail.com>
+ *
+ */
+public enum DocumentType {
+
+	NOTE("note"),FILE("file");
+	
+	private String value;
+	
+	DocumentType(String value){
+		this.value = value;
+	}
+	
+	public String value(){
+		return value;
+	}
+}

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/DocumentType.java
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/MutableAcl.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/MutableAcl.java?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/MutableAcl.java (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/MutableAcl.java Tue Nov 22 23:11:08 2016
@@ -0,0 +1,12 @@
+/**
+ * 
+ */
+package org.apache.manifoldcf.crawler.connectors.nuxeo.model;
+
+/**
+ * @author David Arroyo Escobar <arroyoescobardavid@gmail.com>
+ *
+ */
+public class MutableAcl extends Acl {
+
+}

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/MutableAcl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/MutableDocument.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/MutableDocument.java?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/MutableDocument.java (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/MutableDocument.java Tue Nov 22 23:11:08 2016
@@ -0,0 +1,32 @@
+/**
+ * 
+ */
+package org.apache.manifoldcf.crawler.connectors.nuxeo.model;
+
+import java.util.Date;
+
+/**
+ * @author David Arroyo Escobar <arroyoescobardavid@gmail.com>
+ *
+ */
+public class MutableDocument extends Document{
+
+	public MutableDocument(){
+		
+	}
+	
+	//Setters
+	public void setUid(String uid){
+		this.uid = uid;
+	}
+	
+	public void setTitle(String title){
+		this.title = title;
+	}
+	
+	public void setLastModified(Date lastModified){
+		this.lastModified = lastModified;
+	}
+
+
+}

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/MutableDocument.java
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/NuxeoResource.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/NuxeoResource.java?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/NuxeoResource.java (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/NuxeoResource.java Tue Nov 22 23:11:08 2016
@@ -0,0 +1,12 @@
+/**
+ * 
+ */
+package org.apache.manifoldcf.crawler.connectors.nuxeo.model;
+
+/**
+ * @author David Arroyo Escobar <arroyoescobardavid@gmail.com>
+ *
+ */
+public class NuxeoResource {
+
+}

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/NuxeoResource.java
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/NuxeoResponse.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/NuxeoResponse.java?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/NuxeoResponse.java (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/NuxeoResponse.java Tue Nov 22 23:11:08 2016
@@ -0,0 +1,92 @@
+/**
+ * 
+ */
+package org.apache.manifoldcf.crawler.connectors.nuxeo.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.manifoldcf.crawler.connectors.nuxeo.model.builder.NuxeoResourceBuilder;
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+
+/**
+ * @author David Arroyo Escobar <arroyoescobardavid@gmail.com>
+ *
+ */
+public class NuxeoResponse<T extends NuxeoResource> {
+
+	private List<T> results;
+	private int start;
+	private int limit;
+	private Boolean isLast;
+
+	public NuxeoResponse(List<T> resuts, int start, int limit, Boolean isLast) {
+		this.results = resuts;
+		this.start = start;
+		this.limit = limit;
+		this.isLast = isLast;
+	}
+
+	/**
+	 * @return the results
+	 */
+	public List<T> getResults() {
+		return results;
+	}
+
+	/**
+	 * @return the start
+	 */
+	public int getStart() {
+		return start;
+	}
+
+	/**
+	 * @return the limit
+	 */
+	public int getLimit() {
+		return limit;
+	}
+
+	/**
+	 * @return the isLast
+	 */
+	public Boolean isLast() {
+		return isLast;
+	}
+
+	public static <T extends NuxeoResource> NuxeoResponse<T> fromJson(JSONObject response,
+			NuxeoResourceBuilder<T> builder) {
+		List<T> resources = new ArrayList<T>();
+		
+		try{
+			JSONArray jsonArray = response.getJSONArray("entries");
+			
+			for(int i=0,size=jsonArray.length();i< size;i++){
+				JSONObject jsonDocument = jsonArray.getJSONObject(i);
+				T resource= (T) builder.fromJson(jsonDocument);
+				resources.add(resource);
+			}
+			int limit = response.getInt("pageSize");
+			int start = response.getInt("currentPageIndex");
+			String isNextPage = response.getString("isNextPageAvailable");
+			Boolean isLast =  false;
+			
+			if(isNextPage.equalsIgnoreCase("false")){
+				isLast = true;
+			}
+			
+			
+			
+			return new NuxeoResponse<>(resources, start, limit, isLast);
+			
+		}catch(JSONException e){
+			e.printStackTrace();
+		}
+		
+		return new NuxeoResponse<T>(new ArrayList<T>(), 0, 0, false);
+	}
+
+}

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/NuxeoResponse.java
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/builder/NuxeoResourceBuilder.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/builder/NuxeoResourceBuilder.java?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/builder/NuxeoResourceBuilder.java (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/builder/NuxeoResourceBuilder.java Tue Nov 22 23:11:08 2016
@@ -0,0 +1,21 @@
+/**
+ * 
+ */
+package org.apache.manifoldcf.crawler.connectors.nuxeo.model.builder;
+
+import org.apache.manifoldcf.crawler.connectors.nuxeo.model.NuxeoResource;
+import org.json.JSONObject;
+
+/**
+ * @author David Arroyo Escobar <arroyoescobardavid@gmail.com>
+ *
+ */
+public interface NuxeoResourceBuilder <T extends NuxeoResource> {
+	
+	T fromJson(JSONObject jsonDocument);
+	
+	T fromJson(JSONObject jsonDocument, T document);
+	
+	Class<T> getType();
+
+}

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/nuxeo/model/builder/NuxeoResourceBuilder.java
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/authorities/authorities/nuxeo/common_en_US.properties
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/authorities/authorities/nuxeo/common_en_US.properties?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/authorities/authorities/nuxeo/common_en_US.properties (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/authorities/authorities/nuxeo/common_en_US.properties Tue Nov 22 23:11:08 2016
@@ -0,0 +1,23 @@
+
+
+#Tabs
+NuxeoAuthorityConnector.Server = Server
+
+#Properties
+NuxeoAuthorityConnector.Protocol	= Protocol
+NuxeoAuthorityConnector.Host		= Host
+NuxeoAuthorityConnector.Port		= Port
+NuxeoAuthorityConnector.Path		= Path
+NuxeoAuthorityConnector.Username	= Username
+NuxeoAuthorityConnector.Password	= Password
+
+#Errors
+NuxeoAuthorityConnector.HostMustNotBeNull = Nuxeo host must not be null
+NuxeoAuthorityConnector.PasswordMustNotBeNull = Nuxeo password must not be null
+NuxeoAuthorityConnector.HostMustNotIncludeSlash = Nuxeo host must not include a '/' character
+NuxeoAuthorityConnector.PortMustBeAnInteger = Nuxeo port must be an integer
+NuxeoAuthorityConnector.PathMustNotBeNull = Nuxeo path must not be null
+NuxeoAuthorityConnector.PathMustBeginWithASlash = Nuxeo path must begin with '/' character
+
+#Buttons
+NuxeoAuthorityConnector.Add		= Add
\ No newline at end of file

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/authorities/authorities/nuxeo/common_en_US.properties
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/authorities/authorities/nuxeo/common_es_ES.properties
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/authorities/authorities/nuxeo/common_es_ES.properties?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/authorities/authorities/nuxeo/common_es_ES.properties (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/authorities/authorities/nuxeo/common_es_ES.properties Tue Nov 22 23:11:08 2016
@@ -0,0 +1,24 @@
+
+
+#Tabs
+NuxeoAuthorityConnector.Server 	= Servidor
+
+#Properties
+NuxeoAuthorityConnector.Protocol	= Protocolo
+NuxeoAuthorityConnector.Host		= Host
+NuxeoAuthorityConnector.Port		= Puerto
+NuxeoAuthorityConnector.Path		= Ruta
+NuxeoAuthorityConnector.Username	= Nombre de usuario
+NuxeoAuthorityConnector.Password	= Contraseña
+
+#Errors
+NuxeoAuthorityConnector.HostMustNotBeNull = El host de Nuxeo no debe ser nulo
+NuxeoAuthorityConnector.PasswordMustNotBeNull = La contraseña de nuxeo no debe ser nula.
+NuxeoAuthorityConnector.HostMustNotIncludeSlash = El host de Nuxeo no debe incluir el carácter '/'
+NuxeoAuthorityConnector.PortMustBeAnInteger = El puerto de Nuxeo debe ser un entero
+NuxeoAuthorityConnector.PathMustNotBeNull = La ruta de Nuxeo no debe ser nula
+NuxeoAuthorityConnector.PathMustBeginWithASlash = La ruta de Nuxeo debe comenzar por el carácter '/'
+
+#Buttons
+NuxeoAuthorityConnector.Add		= Añadir
+

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/authorities/authorities/nuxeo/common_es_ES.properties
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/nuxeo/common_en_US.properties
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/nuxeo/common_en_US.properties?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/nuxeo/common_en_US.properties (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/nuxeo/common_en_US.properties Tue Nov 22 23:11:08 2016
@@ -0,0 +1,44 @@
+
+
+#Configuration tabs
+NuxeoRepositoryConnector.Server	= Server
+
+#Specifications tabs
+NuxeoRepositoryConnector.Domains 	=	Domains
+NuxeoRepositoryConnector.DocumentsType = Documents type
+NuxeoRepositoryConnector.Documents = Documents
+
+
+#Properties
+NuxeoRepositoryConnector.Protocol	= Protocol
+NuxeoRepositoryConnector.Host		= Host
+NuxeoRepositoryConnector.Port		= Port
+NuxeoRepositoryConnector.Path		= Path
+NuxeoRepositoryConnector.Username	= Username
+NuxeoRepositoryConnector.Password	= Password
+
+#Errors
+NuxeoRepositoryConnector.HostMustNotBeNull 		 = Nuxeo host must not be null
+NuxeoRepositoryConnector.PasswordMustNotBeNull   = Nuxeo password must not be null
+NuxeoRepositoryConnector.HostMustNotIncludeSlash = Nuxeo host must not include a '/' character
+NuxeoRepositoryConnector.PortMustBeAnInteger 	 = Nuxeo port must be an integer
+NuxeoRepositoryConnector.PathMustNotBeNull 		 = Nuxeo path must not be null
+NuxeoRepositoryConnector.PathMustBeginWithASlash = Nuxeo path must begin with '/' character
+
+#Buttons
+NuxeoRepositoryConnector.Add			=	Add
+NuxeoRepositoryConnector.AddDomain  	=	Add domain
+NuxeoRepositoryConnector.AddDocumentType  	=	Add document type
+NuxeoRepositoryConnector.Delete			=	Delete
+NuxeoRepositoryConnector.DeleteDomain	=	Delete domain
+NuxeoRepositoryConnector.DeleteDocumentType	=	Delete document type
+
+
+NuxeoRepositoryConnector.NoDomainsConfigured	=	No domains configured. All domains will be crawled
+NuxeoRepositoryConnector.TypeInADomain			=	Type in a domain
+
+NuxeoRepositoryConnector.NoDocumentsTypeConfigured	=	No documents type configured. All documents type will be crawled
+NuxeoRepositoryConnector.TypeInADocumentType		=	Type in a document type
+
+NuxeoRepositoryConnector.ProcessTags= Process tags
+NuxeoRepositoryConnector.ProcessAttachments= Process attachments

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/nuxeo/common_en_US.properties
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/nuxeo/common_es_ES.properties
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/nuxeo/common_es_ES.properties?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/nuxeo/common_es_ES.properties (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/nuxeo/common_es_ES.properties Tue Nov 22 23:11:08 2016
@@ -0,0 +1,47 @@
+
+
+#Configuration tabs
+NuxeoRepositoryConnector.Server 	= Servidor
+NuxeoRepositoryConnector.DocumentsType = Tipos de documentos
+NuxeoRepositoryConnector.Documents = Documentos
+
+
+#Specifications tabs
+NuxeoRepositoryConnector.Domains 	= Dominios
+
+#Properties
+NuxeoRepositoryConnector.Protocol	= Protocolo
+NuxeoRepositoryConnector.Host		= Host
+NuxeoRepositoryConnector.Port		= Puerto
+NuxeoRepositoryConnector.Path		= Ruta
+NuxeoRepositoryConnector.Username	= Nombre de usuario
+NuxeoRepositoryConnector.Password	= Contraseña
+
+#Errors
+NuxeoRepositoryConnector.HostMustNotBeNull 		 = El host de Nuxeo no debe ser nulo
+NuxeoRepositoryConnector.PasswordMustNotBeNull 	 = La contraseña de nuxeo no debe ser nula.
+NuxeoRepositoryConnector.HostMustNotIncludeSlash = El host de Nuxeo no debe incluir el carácter '/'
+NuxeoRepositoryConnector.PortMustBeAnInteger 	 = El puerto de Nuxeo debe ser un entero
+NuxeoRepositoryConnector.PathMustNotBeNull 		 = La ruta de Nuxeo no debe ser nula
+NuxeoRepositoryConnector.PathMustBeginWithASlash = La ruta de Nuxeo debe comenzar por el carácter '/'
+
+#Buttons
+NuxeoRepositoryConnector.Add			=	Añadir
+NuxeoRepositoryConnector.AddDomain  	=	Añadir dominio
+NuxeoRepositoryConnector.AddDocumentType  	=	Añadir tipo de documento
+NuxeoRepositoryConnector.Delete			=	Borrar
+NuxeoRepositoryConnector.DeleteDomain	=	Borrar dominio
+NuxeoRepositoryConnector.DeleteDocumentType	=	Borrar tipo de documento
+
+
+NuxeoRepositoryConnector.NoDomainsConfigured	=	Sin dominios configurados. Todos los dominios se rastrearán.
+NuxeoRepositoryConnector.TypeInADomain			=	Escriba un dominio
+
+NuxeoRepositoryConnector.NoDocumentsTypeConfigured	=	Sin tipo de documentos configurados. Todos los tipos de documentos se rastrearán.
+NuxeoRepositoryConnector.TypeInADocumentType		=	Escriba un tipo de documento
+
+NuxeoRepositoryConnector.ProcessTags= Procesar etiquetas
+NuxeoRepositoryConnector.ProcessAttachments = Procesar archivos adjuntos
+
+
+

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/nuxeo/common_es_ES.properties
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/editConfiguration_conf.js
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/editConfiguration_conf.js?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/editConfiguration_conf.js (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/editConfiguration_conf.js Tue Nov 22 23:11:08 2016
@@ -0,0 +1,85 @@
+<script type="text/javascript">
+<!--
+function checkConfig()
+{
+  if (editconnection.nuxeo_port.value != "" && !isInteger(editconnection.nuxeo_port.value))
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.PortMustBeAnInteger'))");
+    editconnection.nuxeo_port.focus();
+    return false;
+  }
+
+  if (editconnection.nuxeo_host.value != "" && editconnection.nuxeo_host.value.indexOf("/") != -1)
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.HostMustNotIncludeSlash'))");
+    editconnection.nuxeo_host.focus();
+    return false;
+  }
+
+ if (editconnection.nuxeo_path.value != "" &&
+ !(editconnection.nuxeo_path.value.indexOf("/") == 0))
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.PathMustBeginWithASlash'))");
+ editconnection.nuxeo_path.focus();
+ return false;
+ }
+
+  return true;
+}
+ 
+function checkConfigForSave()
+{
+    
+  if (editconnection.nuxeo_host.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.HostMustNotBeNull'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Server'))");
+    editconnection.nuxeo_host.focus();
+    return false;
+  }
+  
+  if (editconnection.nuxeo_host.value != "" && editconnection.nuxeo_host.value.indexOf("/") != -1)
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.HostMustNotIncludeSlash'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Server'))");
+    editconnection.nuxeo_host.focus();
+    return false;
+  }
+
+  if (editconnection.nuxeo_port.value != "" && !isInteger(editconnection.nuxeo_port.value))
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.PortMustBeAnInteger'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Server'))");
+    editconnection.nuxeo_port.focus();
+    return false;
+  }
+  
+  if (editconnection.nuxeo_username.value != "" && editconnection.nuxeo_password.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.PasswordMustNotBeNull'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Server'))");
+    editconnection.nuxeo_password.focus();
+    return false;
+  }
+
+ if (editconnection.nuxeo_path.value == "")
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.PathMustNotBeNull'))");
+ SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Server'))");
+ editconnection.nuxeo_path.focus();
+ return false;
+ }
+  
+ if (editconnection.nuxeo_path.value != "" &&
+ !(editconnection.nuxeo_path.value.indexOf("/") == 0))
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.PathMustBeginWithASlash'))");
+ SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Server'))");
+ editconnection.nuxeo_path.focus();
+ return false;
+ }
+  
+  return true;
+}
+// -->
+</script>

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/editConfiguration_conf.js
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/editConfiguration_conf_server.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/editConfiguration_conf_server.html?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/editConfiguration_conf_server.html (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/editConfiguration_conf_server.html Tue Nov 22 23:11:08 2016
@@ -0,0 +1,81 @@
+ #if($TABNAME ==
+$ResourceBundle.getString('NuxeoAuthorityConnector.Server'))
+
+<table class="displaytable">
+	<tr>
+		<td class="separator" colspan="2"><hr /></td>
+	</tr>
+
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Protocol'))</nobr>
+		</td>
+		<td class="value">
+			<select size="2" name="nuxeo_protocol" />
+				#if($NUXEO_PROTOCOL == 'https')
+					<option value="http">http</option>
+					<option value="https" selected>https</option>
+				#else
+					<option value="http" selected>http</option>
+					<option value="https" >https</option>
+				#end 
+			</select>
+		</td>
+	</tr>
+
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Host'))</nobr>
+		</td>
+		<td class="value"><input size="32" type="text" id="nuxeo_host"
+			name="nuxeo_host" value="$Encoder.attributeEscape($NUXEO_HOST)" /></td>
+	</tr>
+
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Port'))</nobr>
+		</td>
+		<td class="value"><input size="5" type="text" id="nuxeo_port"
+			name="nuxeo_port" value="$Encoder.attributeEscape($NUXEO_PORT)" /></td>
+	</tr>
+
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Path'))</nobr>
+		</td>
+		<td class="value"><input size="32" type="text" id="nuxeo_path"
+			name="nuxeo_path" value="$Encoder.attributeEscape($NUXEO_PATH)" /></td>
+	</tr>
+
+	<tr>
+		<td class="separator" colspan="2"><hr /></td>
+	</tr>
+
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Username'))</nobr>
+		</td>
+		<td class="value"><input size="16" type="text"
+			id="nuxeo_username" name="nuxeo_username"
+			value="$Encoder.attributeEscape($NUXEO_USERNAME)" /></td>
+	</tr>
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Password'))</nobr>
+		</td>
+		<td class="value"><input size="16" type="password"
+			id="nuxeo_password" name="nuxeo_password"
+			value="" /></td>
+	</tr>
+</table>
+
+#else
+
+<input type="hidden" name="nuxeo_protocol"
+	value="$Encoder.attributeEscape($NUXEO_PROTOCOL)" />
+<input type="hidden" name="nuxeo_host"
+	value="$Encoder.attributeEscape($NUXEO_HOST)" />
+<input type="hidden" name="nuxeo_port"
+	value="$Encoder.attributeEscape($NUXEO_PORT)" />
+<input type="hidden" name="nuxeo_path"
+	value="$Encoder.attributeEscape($NUXEO_PATH)" />
+<input type="hidden" name="nuxeo_username"
+	value="$Encoder.attributeEscape($NUXEO_USERNAME)" />
+<input type="hidden" name="nuxeo_password"
+	value="$Encoder.attributeEscape($NUXEO_PASSWORD)" />
+
+#end

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/editConfiguration_conf_server.html
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/viewConfiguration_conf.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/viewConfiguration_conf.html?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/viewConfiguration_conf.html (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/viewConfiguration_conf.html Tue Nov 22 23:11:08 2016
@@ -0,0 +1,32 @@
+
+<table class="displayTable">
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Protocol'))</nobr>
+		</td>
+		<td><nobr>$Encoder.bodyEscape($NUXEO_PROTOCOL)</nobr></td>
+	</tr>
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Host'))</nobr>
+		</td>
+		<td><nobr>$Encoder.bodyEscape($NUXEO_HOST)</nobr></td>
+	</tr>
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Port'))</nobr>
+		</td>
+		<td><nobr>$Encoder.bodyEscape($NUXEO_PORT)</nobr></td>
+	</tr>
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Path'))</nobr>
+		</td>
+		<td><nobr>$Encoder.bodyEscape($NUXEO_PATH)</nobr></td>
+	</tr>
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Username'))</nobr>
+		</td>
+		<td><nobr>$Encoder.bodyEscape($NUXEO_USERNAME)</nobr></td>
+	</tr>
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoAuthorityConnector.Password'))</nobr>
+		</td>
+		<td><nobr>*****</nobr></td>
+</table>
\ No newline at end of file

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/authorities/authorities/nuxeo/viewConfiguration_conf.html
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editConfiguration_conf.js
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editConfiguration_conf.js?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editConfiguration_conf.js (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editConfiguration_conf.js Tue Nov 22 23:11:08 2016
@@ -0,0 +1,86 @@
+
+<script type="text/javascript">
+<!--
+function checkConfig()
+{
+  if (editconnection.nuxeo_port.value != "" && !isInteger(editconnection.nuxeo_port.value))
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.PortMustBeAnInteger'))");
+    editconnection.nuxeo_port.focus();
+    return false;
+  }
+
+  if (editconnection.nuxeo_host.value != "" && editconnection.nuxeo_host.value.indexOf("/") != -1)
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.HostMustNotIncludeSlash'))");
+    editconnection.nuxeo_host.focus();
+    return false;
+  }
+
+ if (editconnection.nuxeo_path.value != "" &&
+ !(editconnection.nuxeo_path.value.indexOf("/") == 0))
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.PathMustBeginWithASlash'))");
+ editconnection.nuxeo_path.focus();
+ return false;
+ }
+
+  return true;
+}
+ 
+function checkConfigForSave()
+{
+    
+  if (editconnection.nuxeo_host.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.HostMustNotBeNull'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Server'))");
+    editconnection.nuxeo_host.focus();
+    return false;
+  }
+  
+  if (editconnection.nuxeo_host.value != "" && editconnection.nuxeo_host.value.indexOf("/") != -1)
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.HostMustNotIncludeSlash'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Server'))");
+    editconnection.nuxeo_host.focus();
+    return false;
+  }
+
+  if (editconnection.nuxeo_port.value != "" && !isInteger(editconnection.nuxeo_port.value))
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.PortMustBeAnInteger'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Server'))");
+    editconnection.nuxeo_port.focus();
+    return false;
+  }
+
+  if (editconnection.nuxeo_username.value != "" && editconnection.nuxeo_password.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.PasswordMustNotBeNull'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Server'))");
+    editconnection.nuxeo_password.focus();
+    return false;
+  }
+  
+ if (editconnection.nuxeo_path.value == "")
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.PathMustNotBeNull'))");
+ SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Server'))");
+ editconnection.nuxeo_path.focus();
+ return false;
+ }
+  
+ if (editconnection.nuxeo_path.value != "" &&
+ !(editconnection.nuxeo_path.value.indexOf("/") == 0))
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.PathMustBeginWithASlash'))");
+ SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Server'))");
+ editconnection.nuxeo_path.focus();
+ return false;
+ }
+  
+  return true;
+}
+// -->
+</script>

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editConfiguration_conf.js
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editConfiguration_conf_server.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editConfiguration_conf_server.html?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editConfiguration_conf_server.html (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editConfiguration_conf_server.html Tue Nov 22 23:11:08 2016
@@ -0,0 +1,81 @@
+ #if($TABNAME ==
+$ResourceBundle.getString('NuxeoRepositoryConnector.Server'))
+
+<table class="displaytable">
+	<tr>
+		<td class="separator" colspan="2"><hr /></td>
+	</tr>
+
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Protocol'))</nobr>
+		</td>
+		<td class="value">
+			<select size="2" name="nuxeo_protocol" />
+				#if($NUXEO_PROTOCOL == 'https')
+					<option value="http">http</option>
+					<option value="https" selected>https</option>
+				#else
+					<option value="http" selected>http</option>
+					<option value="https" >https</option>
+				#end 
+			</select>
+		</td>
+	</tr>
+
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Host'))</nobr>
+		</td>
+		<td class="value"><input size="32" type="text" id="nuxeo_host"
+			name="nuxeo_host" value="$Encoder.attributeEscape($NUXEO_HOST)" /></td>
+	</tr>
+
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Port'))</nobr>
+		</td>
+		<td class="value"><input size="5" type="text" id="nuxeo_port"
+			name="nuxeo_port" value="$Encoder.attributeEscape($NUXEO_PORT)" /></td>
+	</tr>
+
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Path'))</nobr>
+		</td>
+		<td class="value"><input size="32" type="text" id="nuxeo_path"
+			name="nuxeo_path" value="$Encoder.attributeEscape($NUXEO_PATH)" /></td>
+	</tr>
+
+	<tr>
+		<td class="separator" colspan="2"><hr /></td>
+	</tr>
+
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Username'))</nobr>
+		</td>
+		<td class="value"><input size="16" type="text"
+			id="nuxeo_username" name="nuxeo_username"
+			value="$Encoder.attributeEscape($NUXEO_USERNAME)" /></td>
+	</tr>
+	<tr>
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Password'))</nobr>
+		</td>
+		<td class="value"><input size="16" type="password"
+			id="nuxeo_password" name="nuxeo_password"
+			value="" /></td>
+	</tr>
+</table>
+
+#else
+
+<input type="hidden" name="nuxeo_protocol"
+	value="$Encoder.attributeEscape($NUXEO_PROTOCOL)" />
+<input type="hidden" name="nuxeo_host"
+	value="$Encoder.attributeEscape($NUXEO_HOST)" />
+<input type="hidden" name="nuxeo_port"
+	value="$Encoder.attributeEscape($NUXEO_PORT)" />
+<input type="hidden" name="nuxeo_path"
+	value="$Encoder.attributeEscape($NUXEO_PATH)" />
+<input type="hidden" name="nuxeo_username"
+	value="$Encoder.attributeEscape($NUXEO_USERNAME)" />
+<input type="hidden" name="nuxeo_password"
+	value="" />
+
+#end

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editConfiguration_conf_server.html
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_conf.js
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_conf.js?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_conf.js (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_conf.js Tue Nov 22 23:11:08 2016
@@ -0,0 +1,50 @@
+
+<script type="text/javascript">
+
+function checkSpecificationForSave(){
+	return true;
+}
+
+function s${SeqNum}_SpecOp(n, opValue, anchorvalue)
+{
+  eval("editjob."+n+".value = \""+opValue+"\"");
+  postFormSetAnchor(anchorvalue);
+}
+
+//Domains
+function s${SeqNum}_SpecDeleteDomain(i)
+{
+	s${SeqNum}_SpecOp("s${SeqNum}_domainop_"+i,"Delete","domain_"+i);
+}
+
+function s${SeqNum}_SpecAddDomain(i)
+{
+  var x = i-1;
+  if (editjob["s${SeqNum}_domain"].value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.TypeInADomain'))");
+    editjob.s${SeqNum}_domain.focus();
+    return;
+  }
+  s${SeqNum}_SpecOp("s${SeqNum}_domainop","Add","domain_"+i);
+}
+
+//Documents
+function s${SeqNum}_SpecDeleteDocumentType(i)
+{
+	s${SeqNum}_SpecOp("s${SeqNum}_documentTypeop_"+i,"Delete","documentType_"+i);
+}
+
+function s${SeqNum}_SpecAddDocumentType(i)
+{
+  var x = i-1;
+  if (editjob["s${SeqNum}_documentType"].value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('NuxeoRepositoryConnector.TypeInADocumentType'))");
+    editjob.s${SeqNum}_documentType.focus();
+    return;
+  }
+  s${SeqNum}_SpecOp("s${SeqNum}_documentTypeop","Add","documentType_"+i);
+}
+
+</script>
\ No newline at end of file

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_conf.js
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDocuments.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDocuments.html?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDocuments.html (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDocuments.html Tue Nov 22 23:11:08 2016
@@ -0,0 +1,37 @@
+#if($TabName ==
+$ResourceBundle.getString('NuxeoRepositoryConnector.Documents') &&
+${SeqNum} == ${SelectedNum})
+
+<table class="displaytable">
+	<tr>
+		<td class="separator" colspan="2"><hr /></td>
+	</tr>
+
+	<tr>
+		<td class="description" colspan="2">
+			$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.ProcessTags'))
+		</td>
+		<td class="value"><input type="checkbox"
+			name="s${SeqNum}_process_tags" value="true"
+			#if($PROCESS_TAGS) checked 
+      #end /></td>
+	</tr>
+	<tr>
+		<td class="description" colspan="2">
+			$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.ProcessAttachments'))
+		</td>
+		<td class="value"><input type="checkbox"
+			name="s${SeqNum}_process_attachments" value="true"
+			#if($PROCESS_ATTACHMENTS) checked 
+      #end /></td>
+	</tr>
+</table>
+
+#else
+
+<input type="hidden" name="s${SeqNum}_process_tags"
+	value="$PROCESS_TAGS" />
+<input type="hidden" name="s${SeqNum}_process_attachments"
+	value="$PROCESS_ATTACHMENTS" />
+
+#end

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDocuments.html
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDocumentsType.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDocumentsType.html?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDocumentsType.html (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDocumentsType.html Tue Nov 22 23:11:08 2016
@@ -0,0 +1,57 @@
+
+#if($TabName == $ResourceBundle.getString('NuxeoRepositoryConnector.DocumentsType') && ${SeqNum} == ${SelectedNum})
+
+<table class="displaytable">
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+
+  #set($documentTypecounter = 0)
+  #foreach($documentType in $DOCUMENTSTYPE)
+
+  <tr>
+    <td class="description">
+      <input type="hidden" name="s${SeqNum}_documentTypeop_$documentTypecounter" value=""/>
+      <input type="hidden" name="s${SeqNum}_documentType_$documentTypecounter" value="$Encoder.attributeEscape($documentType)"/>
+      <a name="s${SeqNum}_tokendocumentType_$documentTypecounter">
+        <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Delete'))" onClick='Javascript:s${SeqNum}_SpecDeleteDocumentType($documentTypecounter)' alt="$Encoder.attributeEscape($ResourceBundle.getString('NuxeoRepositoryConnector.DeleteDocumentType'))$documentTypecounter"/>
+      </a>
+    </td>
+    <td class="value">$Encoder.bodyEscape($documentType)</td>
+  </tr>
+
+    #set($documentTypecounter = $documentTypecounter + 1)
+  #end
+
+  #set($nextdocumentType = $documentTypecounter + 1)
+
+  #if($documentTypecounter == 0)
+  <tr>
+    <td class="message" colspan="2">$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.NoDocumentsTypeConfigured'))</td>
+  </tr>
+  #end
+
+  <tr><td class="lightseparator" colspan="2"><hr/></td></tr>
+  
+  <tr>
+    <td class="description">
+      <input type="hidden" name="s${SeqNum}_documentsTypecount" value="$documentTypecounter"/>
+      <input type="hidden" name="s${SeqNum}_documentTypeop" value=""/>
+      <a name="documentType_$documentTypecounter">
+        <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Add'))" onClick='Javascript:s${SeqNum}_SpecAddDocumentType($nextdocumentType)' alt="$Encoder.attributeEscape($ResourceBundle.getString('NuxeoRepositoryConnector.AddDocumentType'))"/>
+      </a>
+    </td>
+    <td class="value">
+      <input type="text" size="30" name="s${SeqNum}_documentType" value=""/>
+    </td>
+  </tr>
+</table>
+
+#else
+
+  #set($documentTypecounter = 0)
+  #foreach($documentType in $DOCUMENTSTYPE)
+<input type="hidden" name="s${SeqNum}_documentType_$documentTypecounter" value="$Encoder.attributeEscape($documentType)"/>
+    #set($documentTypecounter = $documentTypecounter + 1)
+  #end
+<input type="hidden" name="s${SeqNum}_documentsTypecount" value="$documentTypecounter"/>
+
+#end
\ No newline at end of file

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDocumentsType.html
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDomains.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDomains.html?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDomains.html (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDomains.html Tue Nov 22 23:11:08 2016
@@ -0,0 +1,57 @@
+
+#if($TabName == $ResourceBundle.getString('NuxeoRepositoryConnector.Domains') && ${SeqNum} == ${SelectedNum})
+
+<table class="displaytable">
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+
+  #set($domaincounter = 0)
+  #foreach($domain in $DOMAINS)
+
+  <tr>
+    <td class="description">
+      <input type="hidden" name="s${SeqNum}_domainop_$domaincounter" value=""/>
+      <input type="hidden" name="s${SeqNum}_domain_$domaincounter" value="$Encoder.attributeEscape($domain)"/>
+      <a name="s${SeqNum}_tokendomain_$domaincounter">
+        <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Delete'))" onClick='Javascript:s${SeqNum}_SpecDeleteDomain($domaincounter)' alt="$Encoder.attributeEscape($ResourceBundle.getString('NuxeoRepositoryConnector.DeleteDomain'))$domaincounter"/>
+      </a>
+    </td>
+    <td class="value">$Encoder.bodyEscape($domain)</td>
+  </tr>
+
+    #set($domaincounter = $domaincounter + 1)
+  #end
+
+  #set($nextdomain = $domaincounter + 1)
+
+  #if($domaincounter == 0)
+  <tr>
+    <td class="message" colspan="2">$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.NoDomainsConfigured'))</td>
+  </tr>
+  #end
+
+  <tr><td class="lightseparator" colspan="2"><hr/></td></tr>
+  
+  <tr>
+    <td class="description">
+      <input type="hidden" name="s${SeqNum}_domainscount" value="$domaincounter"/>
+      <input type="hidden" name="s${SeqNum}_domainop" value=""/>
+      <a name="domain_$domaincounter">
+        <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Add'))" onClick='Javascript:s${SeqNum}_SpecAddDomain($nextdomain)' alt="$Encoder.attributeEscape($ResourceBundle.getString('NuxeoRepositoryConnector.AddDomain'))"/>
+      </a>
+    </td>
+    <td class="value">
+      <input type="text" size="30" name="s${SeqNum}_domain" value=""/>
+    </td>
+  </tr>
+</table>
+
+#else
+
+  #set($domaincounter = 0)
+  #foreach($domain in $DOMAINS)
+<input type="hidden" name="s${SeqNum}_domain_$domaincounter" value="$Encoder.attributeEscape($domain)"/>
+    #set($domaincounter = $domaincounter + 1)
+  #end
+<input type="hidden" name="s${SeqNum}_domainscount" value="$domaincounter"/>
+
+#end
\ No newline at end of file

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/editSpecification_confDomains.html
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/viewConfiguration_conf.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/viewConfiguration_conf.html?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/viewConfiguration_conf.html (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/viewConfiguration_conf.html Tue Nov 22 23:11:08 2016
@@ -0,0 +1,52 @@
+
+<table class="displayTable">
+
+	<tr>
+		<td class="description">
+			<nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Protocol'))</nobr>
+		</td>
+		<td>
+			<nobr>$Encoder.bodyEscape($NUXEO_PROTOCOL)</nobr>
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Host'))</nobr>
+		</td>
+		<td>
+			<nobr>$Encoder.bodyEscape($NUXEO_HOST)</nobr>
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Port'))</nobr>
+		</td>
+		<td>
+			<nobr>$Encoder.bodyEscape($NUXEO_PORT)</nobr>
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Path'))</nobr>
+		</td>
+		<td>
+			<nobr>$Encoder.bodyEscape($NUXEO_PATH)</nobr>
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Username'))</nobr>
+		</td>
+		<td>
+			<nobr>$Encoder.bodyEscape($NUXEO_USERNAME)</nobr>
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Password'))</nobr>
+		</td>
+		<td>
+			<nobr>*****</nobr>
+		</td>
+
+</table>
\ No newline at end of file

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/viewConfiguration_conf.html
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/viewSpecification_conf.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/viewSpecification_conf.html?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/viewSpecification_conf.html (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/viewSpecification_conf.html Tue Nov 22 23:11:08 2016
@@ -0,0 +1,39 @@
+
+<table class="displaytable">
+	<tr>
+		#if($DOMAINS.size() == 0)
+		<td class="message" colspan="2"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.NoDomainsConfigured'))</nobr>
+		</td> #else
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.Domains')):</nobr>
+		</td>
+		<td class="value">#set($domaincounter = 0) #foreach($domain in
+			$DOMAINS) <nobr>$Encoder.bodyEscape($domain)</nobr><br />
+			#set($domaincounter = $domaincounter + 1) #end
+		</td> #end
+	</tr>
+	<tr>
+		#if($DOCUMENTSTYPE.size() == 0)
+		<td class="message" colspan="2"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.NoDocumentsTypeConfigured'))</nobr>
+		</td> #else
+		<td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.DocumentsType')):</nobr>
+		</td>
+		<td class="value">#set($documentTypecounter = 0)
+			#foreach($documentType in $DOCUMENTSTYPE) <nobr>$Encoder.bodyEscape($documentType)</nobr><br />
+			#set($documentTypecounter = $documentTypecounter + 1) #end
+		</td> #end
+	</tr>
+	<tr>
+		<td class="description"><nobr>
+				$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.ProcessTags')):
+			</nobr></td>
+		<td class="value"><nobr>$Encoder.bodyEscape($PROCESS_TAGS)</nobr>
+		</td>
+	</tr>
+	<tr>
+		<td class="description"><nobr>
+				$Encoder.bodyEscape($ResourceBundle.getString('NuxeoRepositoryConnector.ProcessAttachments')):
+			</nobr></td>
+		<td class="value"><nobr>$Encoder.bodyEscape($PROCESS_ATTACHMENTS)</nobr>
+		</td>
+	</tr>
+</table>
\ No newline at end of file

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/nuxeo/viewSpecification_conf.html
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/nuxeo/tests/NuxeoAuthorityTest.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/nuxeo/tests/NuxeoAuthorityTest.java?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/nuxeo/tests/NuxeoAuthorityTest.java (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/nuxeo/tests/NuxeoAuthorityTest.java Tue Nov 22 23:11:08 2016
@@ -0,0 +1,72 @@
+/**
+ * 
+ */
+package org.apache.manifoldcf.authorities.nuxeo.tests;
+
+import org.apache.manifoldcf.authorities.authorities.nuxeo.NuxeoAuthorityConnector;
+import org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse;
+import org.apache.manifoldcf.authorities.interfaces.IAuthorityConnector;
+import org.apache.manifoldcf.crawler.connectors.nuxeo.client.NuxeoClient;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import static org.junit.Assert.assertEquals;
+
+import org.mockito.Mock;
+import static org.mockito.Mockito.when;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import static org.mockito.Matchers.anyString;
+
+import org.mockito.runners.MockitoJUnitRunner;
+
+/**
+ * @author David Arroyo Escobar <arroyoescobardavid@gmail.com>
+ *
+ */
+@RunWith(MockitoJUnitRunner.class)
+public class NuxeoAuthorityTest {
+
+	@Mock
+	private NuxeoClient client;
+
+	private NuxeoAuthorityConnector authorityConnector;
+
+	@Before
+	public void setup() throws Exception {
+		authorityConnector = new NuxeoAuthorityConnector();
+		authorityConnector.setNuxeoClient(client);
+	}
+
+	@Test
+	public void check() throws Exception {
+		when(client.checkAuth()).thenReturn(true);
+		assertEquals(authorityConnector.check(), "Connection working");
+	}
+
+	@Test
+	public void checkUserNotFound() throws Exception {
+		when(client.getUserAuthorities(anyString())).thenReturn(new ArrayList<String>());
+		AuthorizationResponse response = authorityConnector.getAuthorizationResponse(anyString());
+		String[] tokens = response.getAccessTokens();
+		
+		assertEquals(tokens.length, 1);
+		assertEquals(tokens[0], IAuthorityConnector.GLOBAL_DENY_TOKEN);
+		assertEquals(response.getResponseStatus(), AuthorizationResponse.RESPONSE_USERNOTFOUND);
+	}
+
+	@Test
+	public void checkuserFound() throws Exception {
+		List<String> tokensList = new ArrayList<String>();
+		tokensList.add("token");
+		when(client.getUserAuthorities(anyString())).thenReturn(tokensList);
+		AuthorizationResponse response = authorityConnector.getAuthorizationResponse(anyString());
+		
+		String[] tokens = response.getAccessTokens();
+		assertEquals(tokens.length, 1);
+		assertEquals(tokens[0], tokensList.get(0));
+		assertEquals(response.getResponseStatus(), AuthorizationResponse.RESPONSE_OK);
+	}
+}

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/authorities/nuxeo/tests/NuxeoAuthorityTest.java
------------------------------------------------------------------------------
    svn:executable = *

Added: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/tests/AbstractTest.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/tests/AbstractTest.java?rev=1770894&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/tests/AbstractTest.java (added)
+++ manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/tests/AbstractTest.java Tue Nov 22 23:11:08 2016
@@ -0,0 +1,34 @@
+/**
+ * 
+ */
+package org.apache.manifoldcf.crawler.connectors.nuxeo.tests;
+
+import org.apache.manifoldcf.crawler.connectors.nuxeo.NuxeoRepositoryConnector;
+import org.apache.manifoldcf.crawler.connectors.nuxeo.client.NuxeoClient;
+import org.junit.After;
+import org.junit.Before;
+import org.mockito.Mock;
+
+/**
+ * @author David Arroyo Escobar <arroyoescobardavid@gmail.com>
+ *
+ */
+public abstract class AbstractTest {
+
+	@Mock
+	public NuxeoClient client;
+
+	public NuxeoRepositoryConnector repositoryConnector;
+
+	@Before
+	public void setup() throws Exception {
+		repositoryConnector = new NuxeoRepositoryConnector();
+		repositoryConnector.setNuxeoClient(client);
+	}
+
+	@After
+	public void tearDown() throws Exception {
+
+	}
+
+}

Propchange: manifoldcf/branches/CONNECTORS-1290/connectors/nuxeo/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/nuxeo/tests/AbstractTest.java
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message