View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.eclipse.aether.transport.wagon;
20  
21  import org.eclipse.aether.ConfigurationProperties;
22  import org.eclipse.aether.RepositorySystemSession;
23  
24  /**
25   * A transporter using Maven Wagon.
26   */
27  public final class WagonTransporterConfigurationKeys {
28      private WagonTransporterConfigurationKeys() {}
29  
30      private static final String CONFIG_PROPS_PREFIX =
31              ConfigurationProperties.PREFIX_TRANSPORT + WagonTransporterFactory.NAME + ".";
32  
33      /**
34       * The configuration to use for the Wagon provider.
35       *
36       * @configurationSource {@link RepositorySystemSession#getConfigProperties()}
37       * @configurationType {@link java.lang.Object}
38       * @configurationRepoIdSuffix Yes
39       */
40      public static final String CONFIG_PROP_CONFIG = CONFIG_PROPS_PREFIX + "config";
41  
42      /**
43       * Octal numerical notation of permissions to set for newly created files. Only considered by certain Wagon
44       * providers.
45       *
46       * @configurationSource {@link RepositorySystemSession#getConfigProperties()}
47       * @configurationType {@link java.lang.String}
48       * @configurationRepoIdSuffix Yes
49       */
50      public static final String CONFIG_PROP_FILE_MODE = CONFIG_PROPS_PREFIX + "perms.fileMode";
51  
52      /**
53       * Octal numerical notation of permissions to set for newly created directories. Only considered by certain
54       * Wagon providers.
55       *
56       * @configurationSource {@link RepositorySystemSession#getConfigProperties()}
57       * @configurationType {@link java.lang.String}
58       * @configurationRepoIdSuffix Yes
59       */
60      public static final String CONFIG_PROP_DIR_MODE = CONFIG_PROPS_PREFIX + "perms.dirMode";
61  
62      /**
63       * Group which should own newly created directories/files. Only considered by certain Wagon providers.
64       *
65       * @configurationSource {@link RepositorySystemSession#getConfigProperties()}
66       * @configurationType {@link java.lang.String}
67       * @configurationRepoIdSuffix Yes
68       */
69      public static final String CONFIG_PROP_GROUP = CONFIG_PROPS_PREFIX + "perms.group";
70  }