Source code: org/acs/damsel/client/add/AddSchemaForm.java
1 package org.acs.damsel.client.add;
2
3 import org.apache.struts.action.*;
4 import javax.servlet.http.*;
5
6 public class AddSchemaForm extends ActionForm {
7 private String schemaName = new String();
8 private String schemaTagsList = new String();
9 private String whichButtonSelected = new String();
10 private String tagName = new String();
11 private String schemaSelect = "<none>";
12 private String permissionID = new String();
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 private String groupName = new String();
23 private String ownerName = new String();
24
25
26
27 public String getSchemaName() {
28 return schemaName;
29 }
30 public void setSchemaName(String schemaName) {
31 this.schemaName = schemaName;
32 }
33 public String getSchemaTagsList() {
34 return schemaTagsList;
35 }
36 public void setSchemaTagsList(String schemaTagsList) {
37 this.schemaTagsList = schemaTagsList;
38 }
39 public String getWhichButtonSelected() {
40 return whichButtonSelected;
41 }
42 public void setWhichButtonSelected(String whichButtonSelected) {
43 this.whichButtonSelected = whichButtonSelected;
44 }
45 public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
46 /**@todo: finish this method, this is just the skeleton.*/
47 return null;
48 }
49 public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
50 this.setGroupDelete(false);
51 this.setGroupRead(false);
52 this.setGroupWrite(false);
53 this.setOthersDelete(false);
54 this.setOthersRead(false);
55 this.setOthersWrite(false);
56 this.setOwnerDelete(false);
57 this.setOwnerRead(false);
58 this.setOwnerWrite(false);
59 }
60 public String getTagName() {
61 return tagName;
62 }
63 public void setTagName(String tagName) {
64 this.tagName = tagName;
65 }
66 public String getGroupName() {
67 return groupName;
68 }
69 public void setGroupName(String groupName) {
70 this.groupName = groupName;
71 }
72 public String getOwnerName() {
73 return ownerName;
74 }
75 public void setOwnerName(String ownerName) {
76 this.ownerName = ownerName;
77 }
78 public String getSchemaSelect() {
79 return schemaSelect;
80 }
81 public void setSchemaSelect(String schemaSelect) {
82 this.schemaSelect = schemaSelect;
83 }
84 public String getPermissionID() {
85 return permissionID;
86 }
87 public void setPermissionID(String permissionID) {
88 this.permissionID = permissionID;
89 }
90 public boolean isGroupRead() {
91 return groupRead;
92 }
93 public void setGroupRead(boolean groupRead) {
94 this.groupRead = groupRead;
95 }
96 public boolean isGroupWrite() {
97 return groupWrite;
98 }
99 public void setGroupWrite(boolean groupWrite) {
100 this.groupWrite = groupWrite;
101 }
102 public boolean isOthersDelete() {
103 return othersDelete;
104 }
105 public void setOthersDelete(boolean othersDelete) {
106 this.othersDelete = othersDelete;
107 }
108 public boolean isOthersRead() {
109 return othersRead;
110 }
111 public void setOthersRead(boolean othersRead) {
112 this.othersRead = othersRead;
113 }
114 public boolean isOthersWrite() {
115 return othersWrite;
116 }
117 public void setOthersWrite(boolean othersWrite) {
118 this.othersWrite = othersWrite;
119 }
120 public boolean isOwnerDelete() {
121 return ownerDelete;
122 }
123 public void setOwnerDelete(boolean ownerDelete) {
124 this.ownerDelete = ownerDelete;
125 }
126 public boolean isOwnerRead() {
127 return ownerRead;
128 }
129 public void setOwnerRead(boolean ownerRead) {
130 this.ownerRead = ownerRead;
131 }
132 public boolean isOwnerWrite() {
133 return ownerWrite;
134 }
135 public void setOwnerWrite(boolean ownerWrite) {
136 this.ownerWrite = ownerWrite;
137 }
138 public boolean isGroupDelete() {
139 return groupDelete;
140 }
141 public void setGroupDelete(boolean groupDelete) {
142 this.groupDelete = groupDelete;
143 }
144 }