/** * Returns the parameters.<p> * * @return the parameters */ public Map<String, String[]> getParams() { // get the params Map<String, String[]> params = CmsCollectionsGenericWrapper.map(m_request.getParameterMap()); if (params.size() == 0) { return null; } return params; }
/** * @see org.opencms.main.I_CmsSessionStorageProvider#getAllOfUser(org.opencms.util.CmsUUID) */ public List<CmsSessionInfo> getAllOfUser(CmsUUID userId) { try { return getAllSelected(CmsCollectionsGenericWrapper.<CmsUUID, CmsSessionInfo> map(m_sessions), userId); } catch (ConcurrentModificationException e) { // try again with a clone this time return getAllSelected( CmsCollectionsGenericWrapper.<CmsUUID, CmsSessionInfo> map(m_sessions.clone()), userId); } }
/** * Returns the (internal use only) map of list objects.<p> * * @param settings the wp settings for accessing the session * * @return the (internal use only) map of list objects */ private static Map<String, CmsHtmlList> getListObjectMap(CmsWorkplaceSettings settings) { Map<String, CmsHtmlList> objects = CmsCollectionsGenericWrapper.map(settings.getListObject()); if (objects == null) { // using hashtable as most efficient version of a synchronized map objects = new Hashtable<String, CmsHtmlList>(); settings.setListObject(objects); } return objects; }
/** * Loads a Java properties hash containing SQL queries.<p> * * @param propertyFilename the package/filename of the properties hash */ protected void loadQueryProperties(String propertyFilename) { Properties properties = new Properties(); try { properties.load(getClass().getClassLoader().getResourceAsStream(propertyFilename)); m_queries.putAll(CmsCollectionsGenericWrapper.<String, String> map(properties)); replaceQuerySearchPatterns(); } catch (Throwable t) { if (LOG.isErrorEnabled()) { LOG.error( Messages.get().getBundle().key(Messages.LOG_LOAD_QUERY_PROP_FILE_FAILED_1, propertyFilename), t); } properties = null; } }
Map<String, String[]> params = CmsCollectionsGenericWrapper.map(req.getParameterMap()); Iterator<Map.Entry<String, String[]>> i = params.entrySet().iterator(); while (i.hasNext()) {
/** * Loads a Java properties hash containing JPQL queries.<p> * * @param propertyFilename the package/filename of the properties hash */ protected void loadQueryProperties(String propertyFilename) { Properties properties = new Properties(); try { properties.load(getClass().getClassLoader().getResourceAsStream(propertyFilename)); m_queries.putAll(CmsCollectionsGenericWrapper.<String, String> map(properties)); replaceQuerySearchPatterns(); } catch (Throwable t) { if (LOG.isErrorEnabled()) { LOG.error( Messages.get().getBundle().key(Messages.LOG_LOAD_QUERY_PROP_FILE_FAILED_1, propertyFilename), t); } properties = null; } }
/** * @see org.opencms.workplace.CmsWorkplace#paramsAsHidden(java.util.Collection) */ @Override public String paramsAsHidden(Collection<String> excludes) { StringBuffer result = new StringBuffer(512); Map<String, String[]> params = CmsCollectionsGenericWrapper.map(getJsp().getRequest().getParameterMap()); params = new HashMap<String, String[]>(params); params.remove(CmsListExplorerFrameset.PARAM_PAGE); Iterator<Map.Entry<String, String[]>> it = params.entrySet().iterator(); while (it.hasNext()) { Map.Entry<String, String[]> entry = it.next(); String param = entry.getKey(); if ((excludes == null) || (!excludes.contains(param))) { String[] value = entry.getValue(); for (int i = 0; i < value.length; i++) { result.append("<input type=\"hidden\" name=\""); result.append(param); result.append("\" value=\""); result.append(CmsEncoder.encode(value[i], getCms().getRequestContext().getEncoding())); result.append("\">\n"); } } } return result.toString(); }
Iterator<Map.Entry<CmsUUID, CmsSessionInfo>> sessions = CmsCollectionsGenericWrapper.<CmsUUID, CmsSessionInfo> map( m_sessions).entrySet().iterator(); while (sessions.hasNext()) {
ObjectInputStream oin = new ObjectInputStream(bin); Map<String, Object> infos = CmsCollectionsGenericWrapper.map(oin.readObject());
ObjectInputStream oin = new ObjectInputStream(bin); Map<String, Object> infos = CmsCollectionsGenericWrapper.map(oin.readObject());
CmsFlexKeyMap flexKeyMap = new CmsFlexKeyMap(maxKeys); m_keyCache = Collections.synchronizedMap( CmsCollectionsGenericWrapper.<String, CmsFlexCacheVariation> map(flexKeyMap)); OpenCms.getMemoryMonitor().register(getClass().getName() + ".m_resourceMap", flexKeyMap);
Map<String, String[]> paramMap = CmsCollectionsGenericWrapper.map(m_elements.get(i)); Map<String, String[]> oldParamMap = null; if (paramMap.size() > 0) { Map<String, Object> attrMap = CmsCollectionsGenericWrapper.map(m_elements.get(i)); Map<String, Object> oldAttrMap = null; if (attrMap.size() > 0) {
m_elementUriSiteRoot = cms.getRequestContext().getSiteRoot(); m_includeCalls = new Vector<String>(); m_parameters = CmsCollectionsGenericWrapper.map(req.getParameterMap()); m_attributes = CmsRequestUtil.getAtrributeMap(req); m_isOnline = cms.getRequestContext().getCurrentProject().isOnlineProject();
/** * Constructs a new wrapper layer around an (already wrapped) CmsFlexRequest.<p> * * @param req the request to be wrapped * @param controller the controller to use * @param resource the target resource that has been requested */ CmsFlexRequest(HttpServletRequest req, CmsFlexController controller, String resource) { super(req); m_controller = controller; m_elementUri = CmsLinkManager.getAbsoluteUri(resource, m_controller.getCurrentRequest().getElementUri()); m_elementUriSiteRoot = m_controller.getCurrentRequest().m_elementUriSiteRoot; m_isOnline = m_controller.getCurrentRequest().isOnline(); m_canCache = m_controller.getCurrentRequest().isCacheable(); m_doRecompile = m_controller.getCurrentRequest().isDoRecompile(); m_includeCalls = m_controller.getCurrentRequest().getCmsIncludeCalls(); m_parameters = CmsCollectionsGenericWrapper.map(req.getParameterMap()); m_attributes = CmsRequestUtil.getAtrributeMap(req); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_FLEXREQUEST_REUSING_FLEX_REQUEST_1, m_elementUri)); } }
Map<String, String[]> oldParameterMap = CmsCollectionsGenericWrapper.map(req.getParameterMap()); try {