Class UsersController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.UsersController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class UsersController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
activateRegisteredUserPublished
(String email, String token) org.springframework.http.HttpEntity<String>
addUserFormCustomFieldPublished
(String field, String description) org.springframework.http.HttpEntity<String>
changePasswordPublished
(String email, String oldPassword, String newPassword) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
createUserPublished
(String email, String password, String givenName, String familyName, org.eclipse.rdf4j.model.IRI iri, String address, String affiliation, String url, String avatarUrl, String phone, Collection<String> languageProficiencies, Map<org.eclipse.rdf4j.model.IRI, String> customProperties) org.springframework.http.HttpEntity<String>
deleteUserPublished
(String email) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>>
enableUserPublished
(String email, boolean enabled) org.springframework.http.HttpEntity<String>
forcePasswordPublished
(String email, String password) org.springframework.http.HttpEntity<String>
forgotPasswordPublished
(jakarta.servlet.http.HttpServletRequest request, String email, String vbHostAddress, EmailApplicationContext appCtx) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
listProjectsBoundToUserPublished
(org.eclipse.rdf4j.model.IRI userIri) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
listUsersBoundToProjectPublished
(String projectName, Users.UserFilter requiredRoles, Users.UserFilter requiredGroups, Users.UserFilter requiredLanguages) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
registerUserPublished
(String email, String password, String givenName, String familyName, org.eclipse.rdf4j.model.IRI iri, String address, String affiliation, String url, String avatarUrl, String phone, Collection<String> languageProficiencies, Map<org.eclipse.rdf4j.model.IRI, String> customProperties, String vbHostAddress) org.springframework.http.HttpEntity<String>
removeUserFormCustomFieldPublished
(org.eclipse.rdf4j.model.IRI field) org.springframework.http.HttpEntity<String>
resetPasswordPublished
(jakarta.servlet.http.HttpServletRequest request, String email, String token, EmailApplicationContext appCtx) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0) org.springframework.http.HttpEntity<String>
swapUserFormCustomFieldsPublished
(org.eclipse.rdf4j.model.IRI field1, org.eclipse.rdf4j.model.IRI field2) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>>
updateUserAddressPublished
(String email, String address) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>>
updateUserAffiliationPublished
(String email, String affiliation) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>>
updateUserAvatarUrlPublished
(String email, String avatarUrl) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>>
updateUserCustomFieldPublished
(String email, org.eclipse.rdf4j.model.IRI property, String value) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>>
updateUserEmailPublished
(String email, String newEmail) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>>
updateUserFamilyNamePublished
(String email, String familyName) org.springframework.http.HttpEntity<String>
updateUserFormCustomFieldPublished
(org.eclipse.rdf4j.model.IRI fieldIri, String label, String description) org.springframework.http.HttpEntity<String>
updateUserFormOptionalFieldVisibilityPublished
(org.eclipse.rdf4j.model.IRI field, boolean visibility) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>>
updateUserGivenNamePublished
(String email, String givenName) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>>
updateUserLanguageProficienciesPublished
(String email, Collection<String> languageProficiencies) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>>
updateUserPhonePublished
(String email, String phone) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>>
updateUserUrlPublished
(String email, String url) org.springframework.http.HttpEntity<String>
verifyUserEmailPublished
(String email, String token, String vbHostAddress)
-
Constructor Details
-
UsersController
public UsersController()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getServiceSpecies
- Specified by:
getServiceSpecies
in interfaceIntrospectableController
-
getService
- Specified by:
getService
in interfaceIntrospectableController
-
resetPasswordPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/resetPassword", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> resetPasswordPublished(jakarta.servlet.http.HttpServletRequest request, @RequestParam("email") String email, @RequestParam("token") String token, @RequestParam(value="appCtx",required=false) EmailApplicationContext appCtx) throws Exception - Throws:
Exception
-
getUserPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/getUser", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> getUserPublished() throws UserException- Throws:
UserException
-
getUserFormFieldsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/getUserFormFields", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> getUserFormFieldsPublished() -
updateUserAddressPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/updateUserAddress", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>> updateUserAddressPublished(@RequestParam("email") String email, @RequestParam(value="address",required=false) String address) throws UserException - Throws:
UserException
-
updateUserUrlPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/updateUserUrl", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>> updateUserUrlPublished(@RequestParam("email") String email, @RequestParam(value="url",required=false) String url) throws UserException - Throws:
UserException
-
updateUserFormCustomFieldPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/updateUserFormCustomField", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> updateUserFormCustomFieldPublished(@RequestParam("fieldIri") org.eclipse.rdf4j.model.IRI fieldIri, @RequestParam("label") String label, @RequestParam(value="description",required=false) String description) throws UserException - Throws:
UserException
-
forgotPasswordPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/forgotPassword", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> forgotPasswordPublished(jakarta.servlet.http.HttpServletRequest request, @RequestParam("email") String email, @RequestParam("vbHostAddress") String vbHostAddress, @RequestParam(value="appCtx",required=false) EmailApplicationContext appCtx) throws Exception - Throws:
Exception
-
listUsersBoundToProjectPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/listUsersBoundToProject", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> listUsersBoundToProjectPublished(@RequestParam("projectName") String projectName, @RequestParam(value="requiredRoles",required=false) @JsonSerialized Users.UserFilter requiredRoles, @RequestParam(value="requiredGroups",required=false) @JsonSerialized Users.UserFilter requiredGroups, @RequestParam(value="requiredLanguages",required=false) @JsonSerialized Users.UserFilter requiredLanguages) throws InvalidProjectNameException, ProjectInexistentException, ProjectAccessException -
removeUserFormCustomFieldPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/removeUserFormCustomField", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeUserFormCustomFieldPublished(@RequestParam("field") org.eclipse.rdf4j.model.IRI field) throws UserException - Throws:
UserException
-
addUserFormCustomFieldPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/addUserFormCustomField", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> addUserFormCustomFieldPublished(@RequestParam("field") String field, @RequestParam(value="description",required=false) String description) throws UserException - Throws:
UserException
-
listProjectsBoundToUserPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/listProjectsBoundToUser", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<List<String>>> listProjectsBoundToUserPublished(@RequestParam("userIri") org.eclipse.rdf4j.model.IRI userIri) throws ProjectAccessException, UserException - Throws:
ProjectAccessException
UserException
-
updateUserCustomFieldPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/updateUserCustomField", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>> updateUserCustomFieldPublished(@RequestParam("email") String email, @RequestParam("property") org.eclipse.rdf4j.model.IRI property, @RequestParam(value="value",required=false) String value) throws UserException - Throws:
UserException
-
updateUserAvatarUrlPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/updateUserAvatarUrl", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>> updateUserAvatarUrlPublished(@RequestParam("email") String email, @RequestParam(value="avatarUrl",required=false) String avatarUrl) throws UserException - Throws:
UserException
-
updateUserPhonePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/updateUserPhone", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>> updateUserPhonePublished(@RequestParam("email") String email, @RequestParam(value="phone",required=false) String phone) throws UserException - Throws:
UserException
-
updateUserLanguageProficienciesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/updateUserLanguageProficiencies", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>> updateUserLanguageProficienciesPublished(@RequestParam("email") String email, @RequestParam("languageProficiencies") Collection<String> languageProficiencies) throws UserException - Throws:
UserException
-
updateUserFormOptionalFieldVisibilityPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/updateUserFormOptionalFieldVisibility", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> updateUserFormOptionalFieldVisibilityPublished(@RequestParam("field") org.eclipse.rdf4j.model.IRI field, @RequestParam("visibility") boolean visibility) throws UserException - Throws:
UserException
-
updateUserGivenNamePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/updateUserGivenName", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>> updateUserGivenNamePublished(@RequestParam("email") String email, @RequestParam("givenName") String givenName) throws UserException - Throws:
UserException
-
updateUserEmailPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/updateUserEmail", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>> updateUserEmailPublished(@RequestParam("email") String email, @RequestParam("newEmail") String newEmail) throws UserException - Throws:
UserException
-
changePasswordPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/changePassword", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> changePasswordPublished(@RequestParam("email") String email, @RequestParam("oldPassword") String oldPassword, @RequestParam("newPassword") String newPassword) throws Exception - Throws:
Exception
-
activateRegisteredUserPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/activateRegisteredUser", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> activateRegisteredUserPublished(@RequestParam("email") String email, @RequestParam("token") String token) throws UserException - Throws:
UserException
-
swapUserFormCustomFieldsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/swapUserFormCustomFields", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> swapUserFormCustomFieldsPublished(@RequestParam("field1") org.eclipse.rdf4j.model.IRI field1, @RequestParam("field2") org.eclipse.rdf4j.model.IRI field2) throws UserException - Throws:
UserException
-
verifyUserEmailPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/verifyUserEmail", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> verifyUserEmailPublished(@RequestParam("email") String email, @RequestParam("token") String token, @RequestParam("vbHostAddress") String vbHostAddress) throws UserException, IOException, jakarta.mail.MessagingException, STPropertyAccessException, InterruptedException, STPropertyUpdateException - Throws:
UserException
IOException
jakarta.mail.MessagingException
STPropertyAccessException
InterruptedException
STPropertyUpdateException
-
updateUserAffiliationPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/updateUserAffiliation", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>> updateUserAffiliationPublished(@RequestParam("email") String email, @RequestParam(value="affiliation",required=false) String affiliation) throws UserException - Throws:
UserException
-
listUsersPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/listUsers", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> listUsersPublished() -
enableUserPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/enableUser", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>> enableUserPublished(@RequestParam("email") String email, @RequestParam("enabled") boolean enabled) throws UserException, ProjectBindingException - Throws:
UserException
ProjectBindingException
-
registerUserPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/registerUser", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> registerUserPublished(@RequestParam("email") String email, @RequestParam("password") String password, @RequestParam("givenName") String givenName, @RequestParam("familyName") String familyName, @RequestParam(value="iri",required=false) org.eclipse.rdf4j.model.IRI iri, @RequestParam(value="address",required=false) String address, @RequestParam(value="affiliation",required=false) String affiliation, @RequestParam(value="url",required=false) String url, @RequestParam(value="avatarUrl",required=false) String avatarUrl, @RequestParam(value="phone",required=false) String phone, @RequestParam(value="languageProficiencies",required=false) Collection<String> languageProficiencies, @RequestParam(value="customProperties",required=false) Map<org.eclipse.rdf4j.model.IRI, String> customProperties, @RequestParam(value="vbHostAddress",required=false) String vbHostAddress) throws ProjectAccessException, UserException, STPropertyUpdateException, IOException, STPropertyAccessException, jakarta.mail.MessagingException, InterruptedException- Throws:
ProjectAccessException
UserException
STPropertyUpdateException
IOException
STPropertyAccessException
jakarta.mail.MessagingException
InterruptedException
-
deleteUserPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/deleteUser", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteUserPublished(@RequestParam("email") String email) throws Exception - Throws:
Exception
-
createUserPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/createUser", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> createUserPublished(@RequestParam("email") String email, @RequestParam("password") String password, @RequestParam("givenName") String givenName, @RequestParam("familyName") String familyName, @RequestParam(value="iri",required=false) org.eclipse.rdf4j.model.IRI iri, @RequestParam(value="address",required=false) String address, @RequestParam(value="affiliation",required=false) String affiliation, @RequestParam(value="url",required=false) String url, @RequestParam(value="avatarUrl",required=false) String avatarUrl, @RequestParam(value="phone",required=false) String phone, @RequestParam(value="languageProficiencies",required=false) Collection<String> languageProficiencies, @RequestParam(value="customProperties",required=false) Map<org.eclipse.rdf4j.model.IRI, String> customProperties) throws ProjectAccessException, UserException, IOException, InterruptedException, STPropertyUpdateException, STPropertyAccessException -
forcePasswordPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/forcePassword", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> forcePasswordPublished(@RequestParam("email") String email, @RequestParam("password") String password) throws Exception - Throws:
Exception
-
listUserCapabilitiesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/listUserCapabilities", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> listUserCapabilitiesPublished() throws RBACException- Throws:
RBACException
-
updateUserFamilyNamePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Users/updateUserFamilyName", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.node.ObjectNode>> updateUserFamilyNamePublished(@RequestParam("email") String email, @RequestParam("familyName") String familyName) throws UserException - Throws:
UserException
-