Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/acs/damsel/client/add/AddCollectionForm.java


1   package org.acs.damsel.client.add;
2   
3   import org.apache.struts.action.*;
4   import javax.servlet.http.*;
5   
6   public class AddCollectionForm extends ActionForm {
7     private String collectionName;
8     private String description;
9     private String selectSchema = "Default";
10    private boolean changedSchema = false;
11    private String selectPermission;
12    private String selectGroup;
13    private boolean groupDelete;
14    private boolean groupRead;
15    private boolean groupWrite;
16    private boolean othersDelete;
17    private boolean othersRead;
18    private boolean othersWrite;
19    private boolean ownerDelete;
20    private boolean ownerRead;
21    private boolean ownerWrite;
22  
23    public String getCollectionName() {
24      return collectionName;
25    }
26    public void setCollectionName(String collectionName) {
27      this.collectionName = collectionName;
28    }
29    public String getDescription() {
30      return description;
31    }
32    public void setDescription(String description) {
33      this.description = description;
34    }
35    public String getSelectSchema() {
36      return selectSchema;
37    }
38    public void setSelectSchema(String selectSchema) {
39      this.selectSchema = selectSchema;
40    }
41    public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
42      /**@todo: finish this method, this is just the skeleton.*/
43      return null;
44    }
45    public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
46      this.setGroupDelete(false);
47      this.setGroupRead(false);
48      this.setGroupWrite(false);
49      this.setOthersDelete(false);
50      this.setOthersRead(false);
51      this.setOthersWrite(false);
52      this.setOwnerDelete(false);
53      this.setOwnerRead(false);
54      this.setOwnerWrite(false);
55  
56    }
57    public boolean isChangedSchema() {
58      return changedSchema;
59    }
60    public void setChangedSchema(boolean changedSchema) {
61      this.changedSchema = changedSchema;
62    }
63    public String getSelectPermission() {
64      return selectPermission;
65    }
66    public void setSelectPermission(String selectPermission) {
67      this.selectPermission = selectPermission;
68    }
69    public String getSelectGroup() {
70      return selectGroup;
71    }
72    public void setSelectGroup(String selectGroup) {
73      this.selectGroup = selectGroup;
74    }
75    public boolean isGroupDelete() {
76      return groupDelete;
77    }
78    public void setGroupDelete(boolean groupDelete) {
79      this.groupDelete = groupDelete;
80    }
81    public boolean isGroupRead() {
82      return groupRead;
83    }
84    public void setGroupRead(boolean groupRead) {
85      this.groupRead = groupRead;
86    }
87    public boolean isGroupWrite() {
88      return groupWrite;
89    }
90    public void setGroupWrite(boolean groupWrite) {
91      this.groupWrite = groupWrite;
92    }
93    public boolean isOthersDelete() {
94      return othersDelete;
95    }
96    public void setOthersDelete(boolean othersDelete) {
97      this.othersDelete = othersDelete;
98    }
99    public boolean isOthersRead() {
100     return othersRead;
101   }
102   public void setOthersRead(boolean othersRead) {
103     this.othersRead = othersRead;
104   }
105   public boolean isOthersWrite() {
106     return othersWrite;
107   }
108   public void setOthersWrite(boolean othersWrite) {
109     this.othersWrite = othersWrite;
110   }
111   public boolean isOwnerDelete() {
112     return ownerDelete;
113   }
114   public void setOwnerDelete(boolean ownerDelete) {
115     this.ownerDelete = ownerDelete;
116   }
117   public boolean isOwnerRead() {
118     return ownerRead;
119   }
120   public void setOwnerRead(boolean ownerRead) {
121     this.ownerRead = ownerRead;
122   }
123   public boolean isOwnerWrite() {
124     return ownerWrite;
125   }
126   public void setOwnerWrite(boolean ownerWrite) {
127     this.ownerWrite = ownerWrite;
128   }
129 
130 }