Revision 01a30cd0 src/gr/ebs/gss/server/ejb/ExternalAPI.java
b/src/gr/ebs/gss/server/ejb/ExternalAPI.java | ||
---|---|---|
21 | 21 |
import gr.ebs.gss.client.exceptions.DuplicateNameException; |
22 | 22 |
import gr.ebs.gss.client.exceptions.GSSIOException; |
23 | 23 |
import gr.ebs.gss.client.exceptions.InsufficientPermissionsException; |
24 |
import gr.ebs.gss.client.exceptions.InvitationUsedException; |
|
24 | 25 |
import gr.ebs.gss.client.exceptions.ObjectNotFoundException; |
25 | 26 |
import gr.ebs.gss.client.exceptions.QuotaExceededException; |
26 | 27 |
import gr.ebs.gss.server.domain.FileUploadStatus; |
27 | 28 |
import gr.ebs.gss.server.domain.Invitation; |
28 | 29 |
import gr.ebs.gss.server.domain.Nonce; |
29 | 30 |
import gr.ebs.gss.server.domain.User; |
31 |
import gr.ebs.gss.server.domain.UserClass; |
|
30 | 32 |
import gr.ebs.gss.server.domain.dto.FileBodyDTO; |
31 | 33 |
import gr.ebs.gss.server.domain.dto.FileHeaderDTO; |
32 | 34 |
import gr.ebs.gss.server.domain.dto.FolderDTO; |
... | ... | |
1229 | 1231 |
*/ |
1230 | 1232 |
public void createLdapUser(String username, String firstname, String lastname, String email, String password); |
1231 | 1233 |
|
1234 |
/** |
|
1235 |
* Retrieves the available user classes. |
|
1236 |
*/ |
|
1237 |
public List<UserClass> getUserClasses(); |
|
1238 |
|
|
1239 |
/** |
|
1240 |
* Upgrades the user class to the default "coupon bearer" class and marks |
|
1241 |
* the provided coupon as used. |
|
1242 |
* @throws InvitationUsedException when trying to resuse an already used invitation |
|
1243 |
* @throws ObjectNotFoundException if the user was not found |
|
1244 |
*/ |
|
1245 |
public void upgradeUserClass(String username, String code) |
|
1246 |
throws ObjectNotFoundException, InvitationUsedException; |
|
1247 |
|
|
1248 |
/** |
|
1249 |
* Retrieve the user class for coupon-bearing users. |
|
1250 |
*/ |
|
1251 |
public UserClass getCouponUserClass(); |
|
1232 | 1252 |
} |
Also available in: Unified diff