Repository: camel Updated Branches: refs/heads/master 252cb7407 -> 2b12e0c1d
Component docs Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/6d96d682 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6d96d682 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6d96d682 Branch: refs/heads/master Commit: 6d96d682accbe8590055c2d44abfe1a19b57c5cf Parents: 252cb74 Author: Claus Ibsen <davscl...@apache.org> Authored: Thu May 7 09:25:36 2015 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Thu May 7 09:25:36 2015 +0200 ---------------------------------------------------------------------- .../camel/component/feed/FeedEndpoint.java | 3 +++ .../camel/component/cmis/CMISEndpoint.java | 5 +++- .../camel/component/cmis/CMISSessionFacade.java | 26 ++++++++++++++++++-- 3 files changed, 31 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/6d96d682/components/camel-atom/src/main/java/org/apache/camel/component/feed/FeedEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-atom/src/main/java/org/apache/camel/component/feed/FeedEndpoint.java b/components/camel-atom/src/main/java/org/apache/camel/component/feed/FeedEndpoint.java index ef291d0..fd8cc80 100644 --- a/components/camel-atom/src/main/java/org/apache/camel/component/feed/FeedEndpoint.java +++ b/components/camel-atom/src/main/java/org/apache/camel/component/feed/FeedEndpoint.java @@ -128,6 +128,9 @@ public abstract class FeedEndpoint extends DefaultPollingEndpoint { return feedUri; } + /** + * The URI to the feed to poll. + */ public void setFeedUri(String feedUri) { this.feedUri = feedUri; } http://git-wip-us.apache.org/repos/asf/camel/blob/6d96d682/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISEndpoint.java b/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISEndpoint.java index 484eb6f..bc700cc 100644 --- a/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISEndpoint.java +++ b/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISEndpoint.java @@ -31,7 +31,7 @@ public class CMISEndpoint extends DefaultEndpoint { @UriParam private CMISSessionFacade sessionFacade; - @UriParam + @UriParam(label = "producer") private boolean queryMode; public CMISEndpoint() { @@ -67,6 +67,9 @@ public class CMISEndpoint extends DefaultEndpoint { return queryMode; } + /** + * If true, will execute the cmis query from the message body and return result, otherwise will create a node in the cmis repository + */ public void setQueryMode(boolean queryMode) { this.queryMode = queryMode; } http://git-wip-us.apache.org/repos/asf/camel/blob/6d96d682/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISSessionFacade.java ---------------------------------------------------------------------- diff --git a/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISSessionFacade.java b/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISSessionFacade.java index 1f4bed4..898b7e1 100644 --- a/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISSessionFacade.java +++ b/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISSessionFacade.java @@ -45,7 +45,7 @@ public class CMISSessionFacade { private transient Session session; - @UriPath + @UriPath(description = "URL to CMIS server") private final String url; @UriParam(defaultValue = "100") private int pageSize = 100; @@ -59,7 +59,7 @@ public class CMISSessionFacade { private String password; @UriParam private String repositoryId; - @UriParam + @UriParam(label = "consumer") private String query; public CMISSessionFacade(String url) { @@ -212,30 +212,52 @@ public class CMISSessionFacade { return session.createOperationContext(); } + /** + * Username for the cmis repository + */ public void setUsername(String username) { this.username = username; } + /** + * Password for the cmis repository + */ public void setPassword(String password) { this.password = password; } + /** + * The Id of the repository to use. If not specified the first available repository is used + */ public void setRepositoryId(String repositoryId) { this.repositoryId = repositoryId; } + /** + * If set to true, the content of document node will be retrieved in addition to the properties + */ public void setReadContent(boolean readContent) { this.readContent = readContent; } + /** + * Max number of nodes to read + */ public void setReadCount(int readCount) { this.readCount = readCount; } + /** + * The cmis query to execute against the repository. + * If not specified, the consumer will retrieve every node from the content repository by iterating the content tree recursively + */ public void setQuery(String query) { this.query = query; } + /** + * Number of nodes to retrieve per page + */ public void setPageSize(int pageSize) { this.pageSize = pageSize; }