org.apache.jackrabbit.webdav.transaction
Interface TransactionConstants

All Known Implementing Classes:
TransactionInfo, TxActiveLock, TxLockEntry

public interface TransactionConstants

TransactionConstants interface provide constants for request and response headers, Xml elements and property names used for handling transactions over WebDAV. There exists no public standard for this functionality. todo: 'local' and 'global' are not accurate terms in the given context > replace


Field Summary
static Scope GLOBAL
          "global" lock scope constant.
static String HEADER_TRANSACTIONID
          TransactionId Header
static DavPropertyName ISMODIFIED
          String defining the 'ismodified' property, that is present on any TransactionResource that has been modified whithout the corresponding local transaction being completed yet.
static DavPropertyName ISNEW
          String defining the 'isnew' property, that identifies a TransactionResource to be new within the given local transaction, meaning that it exists only in transient storage.
static Scope LOCAL
          "local" lock scope constant.
static org.jdom.Namespace NAMESPACE
          Namespace for transaction related xml elements
static Type TRANSACTION
          "transaction" lock type constant.
static String XML_COMMIT
          commit XML element
Used as element inside of the transactionstatus element.
static String XML_GLOBAL
          global XML element
Used as element inside of the lockscope element.
static String XML_LOCAL
          local XML element
Used as element inside of the lockscope element.
static String XML_ROLLBACK
          rollback XML element
Used as element inside of the transactionstatus element.
static String XML_TRANSACTION
          transaction XML element
Used as element inside the locktype element.
static String XML_TRANSACTIONINFO
          transactioninfo XML element
Mandatory element of the UNLOCK request body, if the unlock request is intended to complete a transaction.
static String XML_TRANSACTIONSTATUS
          transactionstatus XML element
Mandatory element inside the transactioninfo element indicating how the transaction should be completed.
 

Field Detail

NAMESPACE

public static final org.jdom.Namespace NAMESPACE
Namespace for transaction related xml elements


HEADER_TRANSACTIONID

public static final String HEADER_TRANSACTIONID
TransactionId Header

See Also:
Constant Field Values

XML_TRANSACTION

public static final String XML_TRANSACTION
transaction XML element
Used as element inside the locktype element.

See Also:
DavConstants.XML_LOCKTYPE, Constant Field Values

XML_GLOBAL

public static final String XML_GLOBAL
global XML element
Used as element inside of the lockscope element. It indicates the transaction to be global (e.g. a JCR transaction).

See Also:
DavConstants.XML_LOCKSCOPE, Constant Field Values

XML_LOCAL

public static final String XML_LOCAL
local XML element
Used as element inside of the lockscope element. It indicates the transaction to be local (e.g. transient changes to a repository).

See Also:
DavConstants.XML_LOCKSCOPE, Constant Field Values

XML_TRANSACTIONINFO

public static final String XML_TRANSACTIONINFO
transactioninfo XML element
Mandatory element of the UNLOCK request body, if the unlock request is intended to complete a transaction.

See Also:
Constant Field Values

XML_TRANSACTIONSTATUS

public static final String XML_TRANSACTIONSTATUS
transactionstatus XML element
Mandatory element inside the transactioninfo element indicating how the transaction should be completed.

See Also:
XML_TRANSACTIONINFO, Constant Field Values

XML_COMMIT

public static final String XML_COMMIT
commit XML element
Used as element inside of the transactionstatus element. It indicates a completion by committing the transaction.

See Also:
XML_TRANSACTIONSTATUS, Constant Field Values

XML_ROLLBACK

public static final String XML_ROLLBACK
rollback XML element
Used as element inside of the transactionstatus element. It indicates a completion by roll backing the transaction.

See Also:
XML_TRANSACTIONSTATUS, Constant Field Values

ISNEW

public static final DavPropertyName ISNEW
String defining the 'isnew' property, that identifies a TransactionResource to be new within the given local transaction, meaning that it exists only in transient storage. This property is not defined by any of the Webdav RTFs.

See Also:
Item.isNew(), XML_LOCAL

ISMODIFIED

public static final DavPropertyName ISMODIFIED
String defining the 'ismodified' property, that is present on any TransactionResource that has been modified whithout the corresponding local transaction being completed yet. This property is not defined by any of the Webdav RTFs.

See Also:
Item.isModified(), XML_LOCAL

TRANSACTION

public static final Type TRANSACTION
"transaction" lock type constant.

See Also:
XML_TRANSACTION, Type.create(String, org.jdom.Namespace)

LOCAL

public static final Scope LOCAL
"local" lock scope constant.

See Also:
XML_LOCAL, Scope.create(String, org.jdom.Namespace)

GLOBAL

public static final Scope GLOBAL
"global" lock scope constant.

See Also:
XML_GLOBAL, Scope.create(String, org.jdom.Namespace)


Copyright © 2005 . All Rights Reserved.