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 import java.io.Serializable; 23 24 /** 25 * Describes the permissions to set on files uploaded to the repository. 26 * 27 * @author Brett Porter 28 * 29 */ 30 public class RepositoryPermissions implements Serializable 31 { 32 /** 33 * Repository group name. 34 */ 35 private String group; 36 37 /** 38 * Repository directory mode. Modes can be in either textual (ugo+rx) or octal (755) form. 39 */ 40 private String directoryMode; 41 42 /** 43 * Repository file mode. Modes can be in either textual (ugo+rx) or octal (644) form. 44 */ 45 private String fileMode; 46 47 /** 48 * Get the repository directory mode to which an artifact will belong to after 49 * deployment. Not all protocols permit the changing of the mode. 50 * 51 * @return mode 52 */ 53 public String getDirectoryMode() 54 { 55 return directoryMode; 56 } 57 58 /** 59 * Set the repository directory mode for the deployed artifact. 60 * 61 * @param directoryMode repository directory mode for deployed artifacts 62 */ 63 public void setDirectoryMode( final String directoryMode ) 64 { 65 this.directoryMode = directoryMode; 66 } 67 68 /** 69 * Get the repository file mode to which an artifact will belong to after 70 * deployment. Not all protocols permit the changing of the artifact mode. 71 * 72 * @return repository group name 73 */ 74 public String getFileMode() 75 { 76 return fileMode; 77 } 78 79 /** 80 * Set the repository file mode for the deployed artifact. 81 * 82 * @param fileMode repository file mode for deployed artifacts 83 */ 84 public void setFileMode( final String fileMode ) 85 { 86 this.fileMode = fileMode; 87 } 88 89 /** 90 * Get the repository group name to which an artifact will belong to after 91 * deployment. Not all protocols permit the changing of the artifact 92 * group. 93 * 94 * @return repository group name 95 */ 96 public String getGroup() 97 { 98 return group; 99 } 100 101 /** 102 * Set the repository group name for the deployed artifact. 103 * 104 * @param group repository group for deployed artifacts 105 */ 106 public void setGroup( final String group ) 107 { 108 this.group = group; 109 } 110 111 }