Skip to content

Commit e5a7ac8

Browse files
committed
Deleted modify.jsp
1 parent 77c3071 commit e5a7ac8

2 files changed

Lines changed: 0 additions & 238 deletions

File tree

  • knowage-core/src/main/java/it/eng/spagobi/signup/service/rest
  • knowage/src/main/webapp/themes/sbi_default/jsp/signup

knowage-core/src/main/java/it/eng/spagobi/signup/service/rest/Signup.java

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -110,51 +110,6 @@ public class Signup {
110110
@Context
111111
private HttpServletRequest request;
112112

113-
@GET
114-
@Path("/prepareUpdate")
115-
public View prepareUpdate(@Context HttpServletRequest req) {
116-
LOGGER.debug("IN");
117-
try {
118-
UserProfile profile = (UserProfile) req.getSession().getAttribute(IEngUserProfile.ENG_USER_PROFILE);
119-
ISbiUserDAO userDao = DAOFactory.getSbiUserDAO();
120-
SbiUser user = userDao.loadSbiUserByUserId((String) profile.getUserId());
121-
Map<String, Object> data = profile.getUserAttributes();
122-
if (user.getFullName() != null) {
123-
int i = user.getFullName().indexOf(" ");
124-
if (i >= 0) {
125-
data.put("name", user.getFullName().substring(0, i));
126-
data.put("surname", user.getFullName().substring(i + 1));
127-
} else {
128-
data.put("name", user.getFullName());
129-
}
130-
}
131-
data.put("username", user.getUserId());
132-
data.put("userIn", user.getCommonInfo().getUserIn());
133-
134-
req.setAttribute("data", data);
135-
136-
} catch (Throwable t) {
137-
LOGGER.error("An unexpected error occurred while executing the subscribe action", t);
138-
throw new SpagoBIServiceException("An unexpected error occurred while executing the subscribe action", t);
139-
}
140-
try {
141-
String currTheme = ThemesManager.getDefaultTheme();
142-
LOGGER.debug("currTheme: " + currTheme);
143-
144-
String url = "/themes/" + currTheme + "/jsp/signup/modify.jsp";
145-
LOGGER.debug("url for modify: " + url);
146-
147-
String strActiveSignup = SingletonConfig.getInstance().getConfigValue("SPAGOBI.SECURITY.ACTIVE_SIGNUP_FUNCTIONALITY");
148-
boolean activeSignup = strActiveSignup.equalsIgnoreCase("true");
149-
req.setAttribute("activeSignup", activeSignup);
150-
151-
return new View(url);
152-
} catch (Throwable t) {
153-
LOGGER.error("An unexpected error occurred while executing the subscribe action", t);
154-
throw new SpagoBIServiceException("An unexpected error occurred while executing the subscribe action", t);
155-
}
156-
}
157-
158113
@POST
159114
@Path("/delete")
160115
@Produces(MediaType.APPLICATION_JSON)

knowage/src/main/webapp/themes/sbi_default/jsp/signup/modify.jsp

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)