org.unitedinternet.cosmo.dav.ExtendedDavConstants Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2005-2006 Open Source Applications Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.unitedinternet.cosmo.dav;
import org.apache.jackrabbit.webdav.DavConstants;
import org.apache.jackrabbit.webdav.property.DavPropertyName;
import org.apache.jackrabbit.webdav.xml.DomUtil;
import org.apache.jackrabbit.webdav.xml.Namespace;
import org.unitedinternet.cosmo.util.CosmoQName;
import org.unitedinternet.cosmo.util.UriTemplate;
/**
* Provides constants defined by Cosmo proprietary *DAV extensions.
*/
public interface ExtendedDavConstants extends DavConstants {
String PRE_COSMO = "cosmo";
String NS_COSMO = "http://osafoundation.org/cosmo/DAV";
String XML_LANG = "lang";
String XML_PRIVILEGE = "privilege";
Namespace NAMESPACE_XML =
Namespace.getNamespace("xml", "http://www.w3.org/XML/1998/namespace");
/** The Cosmo XML namespace */
Namespace NAMESPACE_COSMO =
Namespace.getNamespace(PRE_COSMO, NS_COSMO);
/** The Cosmo property name exclude-free-busy-rollup
*/
String PROPERTY_EXCLUDE_FREE_BUSY_ROLLUP =
"exclude-free-busy-rollup";
/** The Cosmo property cosmo:exclude-free-busy-rollup
*/
DavPropertyName EXCLUDEFREEBUSYROLLUP =
DavPropertyName.create(PROPERTY_EXCLUDE_FREE_BUSY_ROLLUP,
NAMESPACE_COSMO);
/** The Cosmo property name uuid
*/
String PROPERTY_UUID = "uuid";
/** The Cosmo property cosmo:uuid
*/
DavPropertyName UUID =
DavPropertyName.create(PROPERTY_UUID, NAMESPACE_COSMO);
DavPropertyName OWNER =
DavPropertyName.create(XML_OWNER, NAMESPACE);
DavPropertyName SUPPORTEDREPORTSET =
DavPropertyName.create("supported-report-set", NAMESPACE);
DavPropertyName CURRENTUSERPRINCIPAL =
DavPropertyName.create("current-user-principal", NAMESPACE);
String QN_PROPFIND =
DomUtil.getExpandedName(XML_PROPFIND, NAMESPACE);
String QN_PROPERTYUPDATE =
DomUtil.getExpandedName(XML_PROPERTYUPDATE, NAMESPACE);
String QN_SET =
DomUtil.getExpandedName(XML_SET, NAMESPACE);
String QN_REMOVE =
DomUtil.getExpandedName(XML_REMOVE, NAMESPACE);
String QN_PROP =
DomUtil.getExpandedName(XML_PROP, NAMESPACE);
String QN_PRIVILEGE =
DomUtil.getExpandedName(XML_PRIVILEGE, NAMESPACE);
String QN_HREF =
DomUtil.getExpandedName(XML_HREF, NAMESPACE);
String QN_OWNER =
DomUtil.getExpandedName(XML_OWNER, NAMESPACE);
CosmoQName RESOURCE_TYPE_COLLECTION =
new CosmoQName(NAMESPACE.getURI(), XML_COLLECTION, NAMESPACE.getPrefix());
UriTemplate TEMPLATE_COLLECTION =
new UriTemplate("/collection/{uid}/*");
UriTemplate TEMPLATE_ITEM =
new UriTemplate("/item/{uid}/*");
UriTemplate TEMPLATE_USERS =
new UriTemplate("/users");
UriTemplate TEMPLATE_USER =
new UriTemplate("/users/{username}");
UriTemplate TEMPLATE_USER_INBOX =
new UriTemplate("/{username}/Inbox");
UriTemplate TEMPLATE_USER_OUTBOX =
new UriTemplate("/{username}/Outbox");
UriTemplate TEMPLATE_HOME =
new UriTemplate("/{username}/*");
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy