1 package org.apache.maven.wagon.repository;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22 /**
23 * Describes the permissions to set on files uploaded to the repository.
24 *
25 * @author Brett Porter
26 * @version $Id: RepositoryPermissions.java 682051 2008-08-02 21:29:38Z hboutemy $
27 */
28 public class RepositoryPermissions
29 {
30 /**
31 * Repository group name.
32 */
33 private String group;
34
35 /**
36 * Repository directory mode. Modes can be in either textual (ugo+rx) or octal (755) form.
37 */
38 private String directoryMode;
39
40 /**
41 * Repository file mode. Modes can be in either textual (ugo+rx) or octal (644) form.
42 */
43 private String fileMode;
44
45 /**
46 * Get the repository directory mode to which an artifact will belong to after
47 * deployment. Not all protocols permit the changing of the mode.
48 *
49 * @return mode
50 */
51 public String getDirectoryMode()
52 {
53 return directoryMode;
54 }
55
56 /**
57 * Set the repository directory mode for the deployed artifact.
58 *
59 * @param directoryMode repository directory mode for deployed artifacts
60 */
61 public void setDirectoryMode( final String directoryMode )
62 {
63 this.directoryMode = directoryMode;
64 }
65
66 /**
67 * Get the repository file mode to which an artifact will belong to after
68 * deployment. Not all protocols permit the changing of the artifact mode.
69 *
70 * @return repository group name
71 */
72 public String getFileMode()
73 {
74 return fileMode;
75 }
76
77 /**
78 * Set the repository file mode for the deployed artifact.
79 *
80 * @param fileMode repository file mode for deployed artifacts
81 */
82 public void setFileMode( final String fileMode )
83 {
84 this.fileMode = fileMode;
85 }
86
87 /**
88 * Get the repository group name to which an artifact will belong to after
89 * deployment. Not all protocols permit the changing of the artifact
90 * group.
91 *
92 * @return repository group name
93 */
94 public String getGroup()
95 {
96 return group;
97 }
98
99 /**
100 * Set the repository group name for the deployed artifact.
101 *
102 * @param group repository group for deployed artifacts
103 */
104 public void setGroup( final String group )
105 {
106 this.group = group;
107 }
108
109 }