if (!item.isCollection()) { methodsAllowed.append(", ").append(METHOD_PUT);
if (!item.isCollection()) { methodsAllowed.append(", ").append(METHOD_PUT);
if (!item.isCollection()) { resourceInputStream = new ByteArrayInputStream(item.getContent()); } else {
/** * Checks if the items in the path or in a subpath are locked.<p> * * @param req the servlet request we are processing * @param path the path to check the items for locks * @param errorList the error list where to put the found errors */ private void checkChildLocks(HttpServletRequest req, String path, Hashtable<String, Integer> errorList) { List<I_CmsRepositoryItem> list = null; try { list = m_session.list(path); } catch (CmsException e) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.LOG_LIST_ITEMS_ERROR_1, path), e); } errorList.put(path, new Integer(CmsWebdavStatus.SC_INTERNAL_SERVER_ERROR)); return; } Iterator<I_CmsRepositoryItem> iter = list.iterator(); while (iter.hasNext()) { I_CmsRepositoryItem element = iter.next(); if (isLocked(element.getName())) { errorList.put(element.getName(), new Integer(CmsWebdavStatus.SC_LOCKED)); } else { if (element.isCollection()) { checkChildLocks(req, element.getName(), errorList); } } } }
if (!item.isCollection()) { resourceInputStream = new ByteArrayInputStream(item.getContent()); } else {
/** * Checks if the items in the path or in a subpath are locked.<p> * * @param req the servlet request we are processing * @param path the path to check the items for locks * @param errorList the error list where to put the found errors */ private void checkChildLocks(HttpServletRequest req, String path, Hashtable errorList) { List list = null; try { list = m_session.list(path); } catch (CmsException e) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.LOG_LIST_ITEMS_ERROR_1, path), e); } errorList.put(path, new Integer(CmsWebdavStatus.SC_INTERNAL_SERVER_ERROR)); return; } Iterator iter = list.iterator(); while (iter.hasNext()) { I_CmsRepositoryItem element = (I_CmsRepositoryItem)iter.next(); if (isLocked(element.getName())) { errorList.put(element.getName(), new Integer(CmsWebdavStatus.SC_LOCKED)); } else { if (element.isCollection()) { checkChildLocks(req, element.getName(), errorList); } } } }
if (!item.isCollection()) { byte[] buffer = item.getContent(); if (buffer != null) {
if (childItem.isCollection()) { sb.append("/"); if (childItem.isCollection()) { sb.append("/"); if (childItem.isCollection()) { sb.append(" "); } else {
if (!item.isCollection()) { byte[] buffer = item.getContent(); if (buffer != null) {
if (childItem.isCollection()) { sb.append("/"); if (childItem.isCollection()) { sb.append("/"); if (childItem.isCollection()) { sb.append(" "); } else {
parseProperties(req, multiStatusElem, currentItem, type, properties); if ((currentItem.isCollection()) && (depth > 0)) {
parseProperties(req, multiStatusElem, currentItem, type, properties); if ((currentItem.isCollection()) && (depth > 0)) {
if (!item.isCollection()) { if (path.endsWith("/") || (path.endsWith("\\"))) { long contentLength = -1L; if (item.isCollection()) { if ((item.isCollection()) || (((ranges == null) || (ranges.isEmpty())) && (request.getHeader(HEADER_RANGE) == null)) || (ranges == FULL_RANGE)) { if ((!item.isCollection()) && (contentLength >= 0)) { if (LOG.isDebugEnabled()) { LOG.debug( if (item.isCollection()) {
if (!item.isCollection()) { if (path.endsWith("/") || (path.endsWith("\\"))) { long contentLength = -1L; if (item.isCollection()) { if ((item.isCollection()) || (((ranges == null) || (ranges.isEmpty())) && (request.getHeader(HEADER_RANGE) == null)) || (ranges == FULL_RANGE)) { if ((!item.isCollection()) && (contentLength >= 0)) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key( if (item.isCollection()) {
if (!item.isCollection()) { if (!item.isCollection()) { addElement(propElem, TAG_DISPLAYNAME).addCDATA(resourceName); } else if (property.equals(TAG_CONTENTLANGUAGE)) { if (item.isCollection()) { propertiesNotFound.add(property); } else { if (item.isCollection()) { propertiesNotFound.add(property); } else { if (item.isCollection()) { propertiesNotFound.add(property); } else { if (item.isCollection()) { propertiesNotFound.add(property); } else { HTTP_DATE_FORMAT.format(new Date(item.getLastModifiedDate()))); } else if (property.equals(TAG_RESOURCETYPE)) { if (item.isCollection()) { addElement(addElement(propElem, TAG_RESOURCETYPE), TAG_COLLECTION); } else {
if (!item.isCollection()) { if (!item.isCollection()) { addElement(propElem, TAG_DISPLAYNAME).addCDATA(resourceName); } else if (property.equals(TAG_CONTENTLANGUAGE)) { if (item.isCollection()) { propertiesNotFound.add(property); } else { if (item.isCollection()) { propertiesNotFound.add(property); } else { if (item.isCollection()) { propertiesNotFound.add(property); } else { if (item.isCollection()) { propertiesNotFound.add(property); } else { HTTP_DATE_FORMAT.format(new Date(item.getLastModifiedDate()))); } else if (property.equals(TAG_RESOURCETYPE)) { if (item.isCollection()) { addElement(addElement(propElem, TAG_RESOURCETYPE), TAG_COLLECTION); } else {