/** * Sets the start view for the given user.<p> * * @param userName the name of the user * @param view the start view path * * @throws CmsException if something goes wrong */ public void setStartView(String userName, String view) throws CmsException { try { CmsUser user = m_cms.readUser(userName); user.getAdditionalInfo().put( CmsUserSettings.PREFERENCES + CmsWorkplaceConfiguration.N_WORKPLACESTARTUPSETTINGS + CmsWorkplaceConfiguration.N_WORKPLACEVIEW, view); m_cms.writeUser(user); } catch (CmsException e) { e.printStackTrace(System.err); throw e; } }
shownValue = getCms().readPropertyObject(getParamResource(), curProperty, false).getValue(); } catch (CmsException e) { e.printStackTrace();
PrintWriter writer = new PrintWriter(new StringWriter()); StringBuffer msg = new StringBuffer("<!--\n").append(cmex.getLocalizedMessage()).append("\n"); cmex.printStackTrace(writer); msg.append(stackTrace.toString()).append("\n-->"); result = msg.toString();
PrintWriter writer = new PrintWriter(new StringWriter()); StringBuffer msg = new StringBuffer("<!--\n").append(cmex.getLocalizedMessage()).append("\n"); cmex.printStackTrace(writer); msg.append(stackTrace.toString()).append("\n-->"); result = msg.toString();
e.printStackTrace(response.getWriter());
m_cmsObject.writePropertyObjects(path + folder, propertyList); } catch (CmsException e1) { e1.printStackTrace();
/** * Initializes the comparator key based on the member variables.<p> * * @param resource the resource to use * @param cms the current OpenCms user contxt * @param property the name of the sort property (case sensitive) */ private void init(CmsResource resource, CmsObject cms, String property) { try { cms.readPropertyDefinition(property); CmsProperty prop = cms.readPropertyObject(resource, property, false); if (prop == CmsProperty.getNullProperty()) { m_propertyValue = ""; } else { m_propertyValue = prop.getValue(); } } catch (CmsDbEntryNotFoundException dbe) { // property are not configured throw new CmsIllegalArgumentException( Messages.get().container(Messages.ERR_COLLECTOR_PARAM_PROPERTY_NOT_FOUND_1, property)); } catch (CmsException cmse) { // something's gone wrong... cmse.printStackTrace(); } }
e.printStackTrace(); editorUri = fallback;
e.printStackTrace(); return; } catch (CmsException e) { e.printStackTrace(); } catch (CmsException e) { e.printStackTrace();
} catch (CmsException e) { e.printStackTrace(); } catch (CmsException e) { e.printStackTrace();