// Delete user from metadata store
try {
@SuppressWarnings("unused")
Activator r = Activator.getDefault();
final IMetaStore metastore = OrionConfiguration.getMetaStore();
if (userInfo.getWorkspaceIds().size() > 0) {
for (String workspaceId : userInfo.getWorkspaceIds()) {
WorkspaceInfo workspaceInfo = metastore.readWorkspace(workspaceId);
if (workspaceInfo.getProjectNames().size() > 0) {
for (String projectName : workspaceInfo.getProjectNames()) {
ProjectInfo projectInfo = metastore.readProject(workspaceId, projectName);
if (projectInfo != null) {
WorkspaceResourceHandler.removeProject(userId, workspaceInfo, projectInfo);
}
}
}
}
}
metastore.deleteUser(userId);
} catch (CoreException e) {
return statusHandler.handleRequest(req, resp, new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Removing " + userId + " failed.", e));
}
Logger logger = LoggerFactory.getLogger("org.eclipse.orion.server.account"); //$NON-NLS-1$
if (logger.isInfoEnabled())