Class AdministrationController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.AdministrationController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class AdministrationController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
addCapabilityToRolePublished
(String role, String capability) org.springframework.http.HttpEntity<String>
addRolesToUserPublished
(String projectName, String email, String[] roles) org.springframework.http.HttpEntity<String>
clonePUBindingPublished
(org.eclipse.rdf4j.model.IRI sourceUserIri, String sourceProjectName, org.eclipse.rdf4j.model.IRI targetUserIri, String targetProjectName) org.springframework.http.HttpEntity<String>
cloneRolePublished
(String sourceRoleName, String targetRoleName) org.springframework.http.HttpEntity<String>
createRolePublished
(String roleName) org.springframework.http.HttpEntity<String>
deleteRolePublished
(String roleName) void
downloadPrivacyStatementPublished
(jakarta.servlet.http.HttpServletResponse oRes) void
exportRolePublished
(jakarta.servlet.http.HttpServletResponse oRes, String roleName) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
getProjectUserBindingPublished
(String projectName, String email) org.springframework.http.HttpEntity<String>
importRolePublished
(org.springframework.web.multipart.MultipartFile inputFile, String newRoleName) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
listCapabilitiesPublished
(String projectName, String role) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
listRolesPublished
(String projectName) org.springframework.http.HttpEntity<String>
org.springframework.http.HttpEntity<String>
removeCapabilityFromRolePublished
(String role, String capability) org.springframework.http.HttpEntity<String>
removeRoleFromUserPublished
(String projectName, String email, String role) org.springframework.http.HttpEntity<String>
removeSuperUserPublished
(String email) org.springframework.http.HttpEntity<String>
removeUserFromProjectPublished
(String projectName, String email) org.springframework.http.HttpEntity<String>
setAdministratorPublished
(String email) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0) org.springframework.http.HttpEntity<String>
setDataDirPublished
(String path) org.springframework.http.HttpEntity<String>
setPreloadProfilerThresholdPublished
(DataSize threshold) org.springframework.http.HttpEntity<String>
setSuperUserPublished
(String email) org.springframework.http.HttpEntity<String>
testEmailConfigPublished
(String mailTo, EmailApplicationContext appCtx) org.springframework.http.HttpEntity<String>
updateCapabilityForRolePublished
(String role, String oldCapability, String newCapability) org.springframework.http.HttpEntity<String>
updateLanguagesOfUserInProjectPublished
(String projectName, String email, Collection<String> languages)
-
Constructor Details
-
AdministrationController
public AdministrationController()
-
-
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
-
updateCapabilityForRolePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/updateCapabilityForRole", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> updateCapabilityForRolePublished(@RequestParam("role") String role, @RequestParam("oldCapability") String oldCapability, @RequestParam("newCapability") String newCapability) throws RBACException - Throws:
RBACException
-
setDataDirPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/setDataDir", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> setDataDirPublished(@RequestParam("path") String path) throws IOException - Throws:
IOException
-
removeSuperUserPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/removeSuperUser", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeSuperUserPublished(@RequestParam("email") String email) throws STPropertyUpdateException, UserException, STPropertyAccessException -
getProjectUserBindingPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/getProjectUserBinding", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> getProjectUserBindingPublished(@RequestParam("projectName") String projectName, @RequestParam("email") String email) throws InvalidProjectNameException, ProjectInexistentException, ProjectAccessException, UserException -
cloneRolePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/cloneRole", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> cloneRolePublished(@RequestParam("sourceRoleName") String sourceRoleName, @RequestParam("targetRoleName") String targetRoleName) throws RoleCreationException, RBACException - Throws:
RoleCreationException
RBACException
-
updateLanguagesOfUserInProjectPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/updateLanguagesOfUserInProject", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> updateLanguagesOfUserInProjectPublished(@RequestParam("projectName") String projectName, @RequestParam("email") String email, @RequestParam("languages") Collection<String> languages) throws ProjectBindingException, InvalidProjectNameException, ProjectInexistentException, ProjectAccessException, UserException -
createRolePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/createRole", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> createRolePublished(@RequestParam("roleName") String roleName) throws RoleCreationException - Throws:
RoleCreationException
-
removeAdministratorPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/removeAdministrator", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeAdministratorPublished(@RequestParam("email") String email) throws STPropertyUpdateException, UserException, STPropertyAccessException -
setSuperUserPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/setSuperUser", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> setSuperUserPublished(@RequestParam("email") String email) throws STPropertyUpdateException, UserException, STPropertyAccessException -
addRolesToUserPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/addRolesToUser", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> addRolesToUserPublished(@RequestParam("projectName") String projectName, @RequestParam("email") String email, @RequestParam("roles") String[] roles) throws ProjectBindingException, InvalidProjectNameException, ProjectInexistentException, ProjectAccessException, UserException -
removeRoleFromUserPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/removeRoleFromUser", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeRoleFromUserPublished(@RequestParam("projectName") String projectName, @RequestParam("email") String email, @RequestParam("role") String role) throws ProjectBindingException, InvalidProjectNameException, ProjectInexistentException, ProjectAccessException, UserException -
removeUserFromProjectPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/removeUserFromProject", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeUserFromProjectPublished(@RequestParam("projectName") String projectName, @RequestParam("email") String email) throws ProjectBindingException, InvalidProjectNameException, ProjectInexistentException, ProjectAccessException, UserException -
importRolePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/importRole", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> importRolePublished(@RequestParam("inputFile") org.springframework.web.multipart.MultipartFile inputFile, @RequestParam("newRoleName") String newRoleName) throws IOException, RBACException, RoleCreationException -
removeCapabilityFromRolePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/removeCapabilityFromRole", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeCapabilityFromRolePublished(@RequestParam("role") String role, @RequestParam("capability") String capability) throws RBACException - Throws:
RBACException
-
listCapabilitiesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/listCapabilities", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> listCapabilitiesPublished(@RequestParam(value="projectName",required=false) String projectName, @RequestParam("role") String role) throws InvalidProjectNameException, ProjectInexistentException, ProjectAccessException, RBACException -
setAdministratorPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/setAdministrator", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> setAdministratorPublished(@RequestParam("email") String email) throws STPropertyUpdateException, UserException, STPropertyAccessException -
getDataDirPublished
-
setPreloadProfilerThresholdPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/setPreloadProfilerThreshold", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> setPreloadProfilerThresholdPublished(@RequestParam(value="threshold",required=false) DataSize threshold) throws STPropertyUpdateException, STPropertyAccessException -
deleteRolePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/deleteRole", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteRolePublished(@RequestParam("roleName") String roleName) throws ProjectBindingException - Throws:
ProjectBindingException
-
listRolesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/listRoles", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> listRolesPublished(@RequestParam(value="projectName",required=false) String projectName) throws InvalidProjectNameException, ProjectInexistentException, ProjectAccessException -
testEmailConfigPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/testEmailConfig", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> testEmailConfigPublished(@RequestParam("mailTo") String mailTo, @RequestParam(value="appCtx",required=false) EmailApplicationContext appCtx) throws UnsupportedEncodingException, jakarta.mail.MessagingException, STPropertyAccessException - Throws:
UnsupportedEncodingException
jakarta.mail.MessagingException
STPropertyAccessException
-
exportRolePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/exportRole", method=GET, produces="application/json;charset=UTF-8") public void exportRolePublished(jakarta.servlet.http.HttpServletResponse oRes, @RequestParam("roleName") String roleName) throws RBACException, IOException - Throws:
RBACException
IOException
-
addCapabilityToRolePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/addCapabilityToRole", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> addCapabilityToRolePublished(@RequestParam("role") String role, @RequestParam("capability") String capability) throws RBACException - Throws:
RBACException
-
downloadPrivacyStatementPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/downloadPrivacyStatement", method=GET, produces="application/json;charset=UTF-8") public void downloadPrivacyStatementPublished(jakarta.servlet.http.HttpServletResponse oRes) throws IOException - Throws:
IOException
-
clonePUBindingPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Administration/clonePUBinding", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> clonePUBindingPublished(@RequestParam("sourceUserIri") org.eclipse.rdf4j.model.IRI sourceUserIri, @RequestParam("sourceProjectName") String sourceProjectName, @RequestParam(value="targetUserIri",required=false) org.eclipse.rdf4j.model.IRI targetUserIri, @RequestParam("targetProjectName") String targetProjectName) throws InvalidProjectNameException, ProjectInexistentException, ProjectAccessException, ProjectBindingException, UserException
-