View Javadoc
1   /*
2    * #%L
3    * wcm.io
4    * %%
5    * Copyright (C) 2017 wcm.io
6    * %%
7    * Licensed under the Apache License, Version 2.0 (the "License");
8    * you may not use this file except in compliance with the License.
9    * You may obtain a copy of the License at
10   *
11   *      http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing, software
14   * distributed under the License is distributed on an "AS IS" BASIS,
15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   * See the License for the specific language governing permissions and
17   * limitations under the License.
18   * #L%
19   */
20  package io.wcm.tooling.commons.packmgr.unpack;
21  
22  /**
23   * Configuration properties for {@link ContentUnpacker}.
24   */
25  public final class ContentUnpackerProperties {
26  
27    private String[] excludeFiles;
28    private String[] excludeNodes;
29    private String[] excludeProperties;
30    private String[] excludeMixins;
31    private boolean markReplicationActivated;
32    private String[] markReplicationActivatedIncludeNodes;
33    private String dateLastReplicated;
34  
35    /**
36     * Exclude files
37     * @return Name patterns
38     */
39    public String[] getExcludeFiles() {
40      return this.excludeFiles;
41    }
42  
43    /**
44     * @param excludeFiles Exclude files
45     */
46    public void setExcludeFiles(String[] excludeFiles) {
47      this.excludeFiles = excludeFiles;
48    }
49  
50    /**
51     * Exclude nodes
52     * @return Name patterns
53     */
54    public String[] getExcludeNodes() {
55      return this.excludeNodes;
56    }
57  
58    /**
59     * @param excludeNodes Exclude nodes
60     */
61    public void setExcludeNodes(String[] excludeNodes) {
62      this.excludeNodes = excludeNodes;
63    }
64  
65    /**
66     * Exclude properties
67     * @return Name patterns
68     */
69    public String[] getExcludeProperties() {
70      return this.excludeProperties;
71    }
72  
73    /**
74     * @param excludeProperties Exclude properties
75     */
76    public void setExcludeProperties(String[] excludeProperties) {
77      this.excludeProperties = excludeProperties;
78    }
79  
80    /**
81     * Exclude mixins
82     * @return Name patterns
83     */
84    public String[] getExcludeMixins() {
85      return this.excludeMixins;
86    }
87  
88    /**
89     * @param excludeMixins Exclude mixins
90     */
91    public void setExcludeMixins(String[] excludeMixins) {
92      this.excludeMixins = excludeMixins;
93    }
94  
95    /**
96     * Set replication status to "activated" for all cq:Page and cq:Template nodes.
97     * @return Set replication status
98     */
99    public boolean isMarkReplicationActivated() {
100     return this.markReplicationActivated;
101   }
102 
103   /**
104    *
105    * @param markReplicationActivated Set replication status to "activated" for all cq:Page and cq:Template nodes.
106    */
107   public void setMarkReplicationActivated(boolean markReplicationActivated) {
108     this.markReplicationActivated = markReplicationActivated;
109   }
110 
111   /**
112    * Node path filter expressions to apply "activated" status on.
113    * @return Path patterns
114    */
115   public String[] getMarkReplicationActivatedIncludeNodes() {
116     return this.markReplicationActivatedIncludeNodes;
117   }
118 
119   /**
120    * @param markReplicationActivatedIncludeNodes Node path filter expressions to apply "activated" status on
121    */
122   public void setMarkReplicationActivatedIncludeNodes(String[] markReplicationActivatedIncludeNodes) {
123     this.markReplicationActivatedIncludeNodes = markReplicationActivatedIncludeNodes;
124   }
125 
126   /**
127    * Sets a fixed date to be used for the "lastReplicated" property when setting replication status to "activated".
128    * If not set the current date is used.
129    * @return Date in ISO8601 format. Example: <code>2020-01-01T00:00:00.000+02:00</code>.
130    */
131   public String getDateLastReplicated() {
132     return this.dateLastReplicated;
133   }
134 
135   /**
136    * @param dateLastReplicated Sets a fixed date to be used for the "lastReplicated" property when setting replication
137    *          status to "activated".
138    */
139   public void setDateLastReplicated(String dateLastReplicated) {
140     this.dateLastReplicated = dateLastReplicated;
141   }
142 
143 }