You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SendSafelyAPI/src/com/sendsafely/BasePackage.java
+36-7Lines changed: 36 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ public class BasePackage {
31
31
privateStringpackageOwner = "";
32
32
33
33
/**
34
+
* @returnType String
34
35
* @description The package ID used to identify a given package
35
36
* @return The package ID
36
37
*/
@@ -47,6 +48,7 @@ public void setPackageId(String packageId) {
47
48
}
48
49
49
50
/**
51
+
* @returnType String
50
52
* @description Get the server secret. The server secret is unique to a package and is used as part of the encryption key.
51
53
* @return The server secret
52
54
*/
@@ -63,6 +65,7 @@ public void setServerSecret(String serverSecret) {
63
65
}
64
66
65
67
/**
68
+
* @returnType String
66
69
* @description The package code is used in the link, sent out to the recipients. It will uniquely identify a package.
67
70
* @return the package code
68
71
*/
@@ -79,6 +82,7 @@ public void setPackageCode(String packageCode) {
79
82
}
80
83
81
84
/**
85
+
* @returnType String
82
86
* @description The key code is generated by the Java API when a new package is created. It must be passed into the API when a new file is uploaded and when the package is finalized. The key code is unique for every package.
83
87
* @return
84
88
*/
@@ -96,8 +100,8 @@ public void setKeyCode(String keyCode) {
96
100
97
101
/**
98
102
* @description Get all files that are currently associated with the package
99
-
* @returnType File
100
-
* @return
103
+
* @returnType List<File>
104
+
* @return A list of Files.
101
105
*/
102
106
publicList<File> getFiles() {
103
107
returnfiles;
@@ -113,7 +117,8 @@ public void setFiles(List<File> files) {
113
117
114
118
/**
115
119
* @description Returns a list of all potential approvers for the package.
116
-
* @return
120
+
* @returnType List<String>
121
+
* @return A list of string type approvers.
117
122
*/
118
123
publicList<String> getApproverList() {
119
124
returnapproverList;
@@ -129,7 +134,8 @@ public void setApproverList(List<String> approverList) {
129
134
130
135
/**
131
136
* @description Returns true if the package needs approval, false otherwise.
132
-
* @return
137
+
* @returnType boolean
138
+
* @return A boolean representing that the package needs approval.
133
139
*/
134
140
publicbooleangetNeedsApproval() {
135
141
returnneedsApproval;
@@ -145,7 +151,8 @@ public void setNeedsApproval(boolean needsApproval) {
145
151
146
152
/**
147
153
* @description Returns the current state of the package.
148
-
* @return
154
+
* @returnType PackageState
155
+
* @return The package state.
149
156
*/
150
157
publicPackageStategetState() {
151
158
returnstate;
@@ -161,7 +168,8 @@ public void setState(PackageState state) {
161
168
162
169
/**
163
170
* @description Returns the current state of the package.
164
-
* @return
171
+
* @returnType PackageStatus
172
+
* @return The package status.
165
173
*/
166
174
publicPackageStatusgetStatus() {
167
175
returnstatus;
@@ -177,7 +185,8 @@ public void setStatus(PackageStatus status) {
177
185
178
186
/**
179
187
* @description Get the number of days the final package will be available for before it expires.
180
-
* @return
188
+
* @returnType int
189
+
* @return the int representing the package life.
181
190
*/
182
191
publicintgetLife() {
183
192
returnlife;
@@ -191,6 +200,10 @@ public void setLife(int life) {
191
200
this.life = life;
192
201
}
193
202
203
+
/**
204
+
* @returnType String
205
+
* @return
206
+
*/
194
207
publicStringgetRootDirectoryId() {
195
208
returnrootDirectoryId;
196
209
}
@@ -199,6 +212,10 @@ public void setRootDirectoryId(String rootDirectoryId) {
199
212
this.rootDirectoryId = rootDirectoryId;
200
213
}
201
214
215
+
/**
216
+
* @returnType String
217
+
* @return
218
+
*/
202
219
publicStringgetPackageDescriptor() {
203
220
returnpackageDescriptor;
204
221
}
@@ -207,6 +224,10 @@ public void setPackageDescriptor(String packageDescriptor) {
207
224
this.packageDescriptor = packageDescriptor;
208
225
}
209
226
227
+
/**
228
+
* @returnType boolean
229
+
* @return
230
+
*/
210
231
publicbooleangetIsWorkspace() {
211
232
returnisWorkspace;
212
233
}
@@ -215,6 +236,10 @@ public void setIsWorkspace(boolean isWorkspace) {
215
236
this.isWorkspace = isWorkspace;
216
237
}
217
238
239
+
/**
240
+
* @returnType Date
241
+
* @return
242
+
*/
218
243
publicDategetPackageTimestamp() {
219
244
returnpackageTimestamp;
220
245
}
@@ -223,6 +248,10 @@ public void setPackageTimestamp(Date packageTimestamp) {
0 commit comments