/* $Id: ZidelookQueries.java,v 1.1 2004/01/09 16:54:18 burkhard Exp $
 * Created on 15.05.2003 by sell
 *
 */
package de.skyrix.zsp.logic;

import de.skyrix.zsp.conf.ZSPConfig;

/**
 * 
 * @author sell
 * @version 
 */
public final class ZidelookQueries {
	public static final String ZideLookFolderQuery2 =
	/*"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
		+ "<D:propfind xmlns:pt=\"http://schemas.microsoft.com/mapi/proptag/\" xmlns:D=\"DAV:\">"
		+ "<D:prop>"
		+ "<D:displayname/>"
		+ "<D:resourcetype/>"
		+ "<pt:x10F4000B/>"
		+ "<pt:x0FF40003/>"
		+ "<pt:x36000003/>"
		+ "<pt:x360F000D/>"
		+ "<pt:x360E000D/>"
		+ "<pt:x36020003/>"
		+ "<pt:x30050003/>"
		+ "<pt:x39000003/>"
		+ "<pt:x0FFF0102/>"
		+ "<pt:x36010003/>"
		+ "<pt:x3613001E/>"
		+ "<pt:x0FF60102/>"
		+ "<pt:x0FFE0003/>"
		+ "<pt:x0E05001E/>"
		+ "<pt:x0E090102/>"
		+ "<pt:x0FF90102/>"
		+ "<pt:x30000003/>"
		+ "<pt:x0FF50003/>"
		+ "<pt:x0FFA0102/>"
		+ "<pt:x3001001E/>"
		+ "<pt:x360A000B/>"
		+ "<pt:x0FFB0102/>"
		+ "<pt:x36030003/>"
		+ "<pt:x36DA0102/>"
	//+ "<pt:x36DE0003/>"
	+"</D:prop>" + "</D:propfind>";*/
	"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
		+ "  <propfind xmlns=\"DAV:\"><prop>"
		+ "  <displayname xmlns=\"DAV:\"/>"
		+ "  <resourcetype xmlns=\"DAV:\"/>"
		+ "  <x3001001E xmlns=\"http://schemas.microsoft.com/mapi/proptag/\"/>"
		+ "  <x3613001E xmlns=\"http://schemas.microsoft.com/mapi/proptag/\"/>"
		+ "  <x39000003 xmlns=\"http://schemas.microsoft.com/mapi/proptag/\"/>"
		+ "  <x36010003 xmlns=\"http://schemas.microsoft.com/mapi/proptag/\"/>"
		+ "  <x360A000B xmlns=\"http://schemas.microsoft.com/mapi/proptag/\"/>"
		+ "  <x36030003 xmlns=\"http://schemas.microsoft.com/mapi/proptag/\"/>"
		+ "  <x36020003 xmlns=\"http://schemas.microsoft.com/mapi/proptag/\"/>"
		+ "  <x10F4000B xmlns=\"http://schemas.microsoft.com/mapi/proptag/\"/>"
		+ "  <urn_003Aschemas_002Dmicrosoft_002Dcom_003Aoffice_003Aoutlook_0023ishidden__000B xmlns=\"http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-c000-000000000046}/\"/>"
		+ "  <urn_003Aschemas_002Dmicrosoft_002Dcom_003Aexch_002Ddata_003Aschema_002Dcollection_002Dref__001E xmlns=\"http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-c000-000000000046}/\"/>"
		+ "  </prop></propfind>";

	public static final String cadaverFolderQuery =
		"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
			+ "<propfind xmlns=\"DAV:\">"
			+ "<prop>"
			+ "<getcontentlength xmlns=\"DAV:\"/>"
			+ "<getlastmodified xmlns=\"DAV:\"/>"
			+ "<x0FFA0102 xmlns=\"http://schemas.microsoft.com/mapi/proptag/\">"
			+ "<displayname xmlns=\"DAV:\"/>"
			+ "<executable xmlns=\"http://apache.org/dav/props/\"/>"
			+ "<resourcetype xmlns=\"DAV:\"/>"
			+ "<checked-in xmlns=\"DAV:\"/>"
			+ "<checked-out xmlns=\"DAV:\"/>"
			+ "</prop></propfind>";

	public static final String allPropQuery =
		"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
			+ "<propfind xmlns=\"DAV:\"><allprop/></propfind>";

	public static String createEmptyResponse(String displayName) {
		return "<?xml version=\"1.0\"?>"
			+ "    <D:multistatus xmlns:ap=\"http://apache.org/dav/props/\" xmlns:D=\"DAV:\">"
			+ "    <D:response>"
			+ "    <D:href>http://"
			+ System.getProperty("zsp.proxyName")
			+ ":"
			+ ZSPConfig.getProperty("proxy_port")
			+ "/zidestore/so/sell/"
			+ displayName
			+ "/</D:href>"
			+ "    <D:propstat><D:status>HTTP/1.1 200 OK</D:status><D:prop>"
			+ "    <D:creationdate/>"
			+ "    <D:getcontentlength/>"
			+ "    <D:getlastmodified>Wed, 25 Jun 2003 13:06:59 GMT</D:getlastmodified>"
			+ "    <D:getetag>http://"
			+ System.getProperty("zsp.proxyName")
			+ ":"
			+ ZSPConfig.getProperty("proxy_port")
			+ "/zidestore/so/sell/"
			+ displayName
			+ "/</D:getetag>"
		//			+ "    <D:resourcetype><D:collection/></D:resourcetype>"
		+"    <D:getcontenttype>httpd/unix-directory</D:getcontenttype>"
			+ "    <D:displayname>"
			+ displayName
			+ "</D:displayname>"
			+ "    <D:href>http://"
			+ System.getProperty("zsp.proxyName")
			+ ":"
			+ ZSPConfig.getProperty("proxy_port")
			+ "/zidestore/so/sell/"
			+ displayName
			+ "/</D:href>"
			+ "    <ap:executable>0</ap:executable>"
			+ "    </D:prop></D:propstat></D:response>"
			+ "    </D:multistatus>";

	}

	public static final String[] listAttributes =
		new String[] {
			"x36DF0102",
			"href",
			"x0FF40003",
			"x360A000B",
			"x36140014",
			"x36020003",
			"x0FF70003",
			"x360B0003",
			"x3001001E",
			"x36E20003",
			"x36170003",
			"x3613001E",
			"x36030003",
			"x39000003" };

}
