View Javadoc

1   /**
2    * Copyright 2004-2012 The Kuali Foundation
3    *
4    * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
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.kuali.maven.mojo.s3;
17  
18  import java.text.SimpleDateFormat;
19  
20  import com.amazonaws.services.s3.AmazonS3Client;
21  import com.amazonaws.services.s3.model.CannedAccessControlList;
22  
23  /**
24   * Holds context information for S3
25   */
26  public class S3BucketContext {
27      AmazonS3Client client;
28      String bucket;
29      String delimiter;
30      String fileImage;
31      String directoryImage;
32      String css;
33      String defaultObject;
34      SimpleDateFormat lastModifiedDateFormatter;
35      String about;
36      CannedAccessControlList acl;
37      Integer maxKeys;
38  
39      public AmazonS3Client getClient() {
40          return client;
41      }
42  
43      public void setClient(final AmazonS3Client client) {
44          this.client = client;
45      }
46  
47      public String getBucket() {
48          return bucket;
49      }
50  
51      public void setBucket(final String bucket) {
52          this.bucket = bucket;
53      }
54  
55      public String getDelimiter() {
56          return delimiter;
57      }
58  
59      public void setDelimiter(final String delimiter) {
60          this.delimiter = delimiter;
61      }
62  
63      public String getFileImage() {
64          return fileImage;
65      }
66  
67      public void setFileImage(final String fileImage) {
68          this.fileImage = fileImage;
69      }
70  
71      public String getDirectoryImage() {
72          return directoryImage;
73      }
74  
75      public void setDirectoryImage(final String directoryImage) {
76          this.directoryImage = directoryImage;
77      }
78  
79      public String getCss() {
80          return css;
81      }
82  
83      public void setCss(final String css) {
84          this.css = css;
85      }
86  
87      public String getDefaultObject() {
88          return defaultObject;
89      }
90  
91      public void setDefaultObject(final String defaultObject) {
92          this.defaultObject = defaultObject;
93      }
94  
95      public SimpleDateFormat getLastModifiedDateFormatter() {
96          return lastModifiedDateFormatter;
97      }
98  
99      public void setLastModifiedDateFormatter(final SimpleDateFormat dateFormatter) {
100         this.lastModifiedDateFormatter = dateFormatter;
101     }
102 
103     public String getAbout() {
104         return about;
105     }
106 
107     public void setAbout(final String about) {
108         this.about = about;
109     }
110 
111     public CannedAccessControlList getAcl() {
112         return acl;
113     }
114 
115     public void setAcl(CannedAccessControlList acl) {
116         this.acl = acl;
117     }
118 
119     public Integer getMaxKeys() {
120         return maxKeys;
121     }
122 
123     public void setMaxKeys(Integer maxKeys) {
124         this.maxKeys = maxKeys;
125     }
126 }