@@ -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 )
0 commit comments