View Javadoc

1   /*
2    *  Copyright 2011 Hippo.
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *       http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   */
16  package org.onehippo.forge.cmisreplication;
17  
18  import java.util.ArrayList;
19  import java.util.List;
20  
21  public class CmisRepoConfig {
22  
23      private String url;
24      private String username;
25      private String password;
26      private String repositoryId;
27      private String rootPath;
28      private List<String> metadataIdsToSync = new ArrayList<String>();
29  
30      private int maxItemsPerPage = 100;
31  
32      public String getUrl() {
33          return url;
34      }
35  
36      public void setUrl(String url) {
37          this.url = url;
38      }
39  
40      public String getUsername() {
41          return username;
42      }
43  
44      public void setUsername(String username) {
45          this.username = username;
46      }
47  
48      public String getPassword() {
49          return password;
50      }
51  
52      public void setPassword(String password) {
53          this.password = password;
54      }
55  
56      public String getRepositoryId() {
57          return repositoryId;
58      }
59  
60      public void setRepositoryId(String repositoryId) {
61          this.repositoryId = repositoryId;
62      }
63  
64      public String getRootPath() {
65          return rootPath;
66      }
67  
68      public void setRootPath(String rootPath) {
69          this.rootPath = rootPath;
70      }
71      public int getMaxItemsPerPage() {
72          return maxItemsPerPage;
73      }
74  
75      public void setMaxItemsPerPage(int maxItemsPerPage) {
76          this.maxItemsPerPage = maxItemsPerPage;
77      }
78  
79      public List<String> getMetadataIdsToSync() {
80          return metadataIdsToSync;
81      }
82  
83      public void addMetadataIdToSync(final String metadataId) {
84          this.metadataIdsToSync.add(metadataId);
85      }
86  }