com.xpn.xwiki.doc
Class DefaultDocumentAccessBridge

java.lang.Object
  extended by com.xpn.xwiki.doc.DefaultDocumentAccessBridge
All Implemented Interfaces:
DocumentAccessBridge

public class DefaultDocumentAccessBridge
extends java.lang.Object
implements DocumentAccessBridge

Exposes methods for accessing Document data. This is temporary until we remodel the Model classes and the Document services. The implementation is inside the old core, and not in a component because it has dependencies on the old core.

Since:
1.6M1
Version:
$Id: DefaultDocumentAccessBridge.java 14297 2008-11-19 14:48:09Z tmortagne $

Field Summary
 
Fields inherited from interface org.xwiki.bridge.DocumentAccessBridge
ROLE
 
Constructor Summary
DefaultDocumentAccessBridge()
           
 
Method Summary
 boolean exists(java.lang.String documentName)
          
 byte[] getAttachmentContent(java.lang.String documentName, java.lang.String attachmentName)
          
 java.lang.String getAttachmentURL(java.lang.String documentName, java.lang.String attachmentName)
          
 java.lang.String getDocumentContent(java.lang.String documentName)
          
 java.lang.String getDocumentContent(java.lang.String documentName, java.lang.String language)
          
 java.lang.String getProperty(java.lang.String documentName, java.lang.String propertyName)
          
 java.lang.String getProperty(java.lang.String documentName, java.lang.String className, int objectNumber, java.lang.String propertyName)
          
 java.lang.String getProperty(java.lang.String documentName, java.lang.String className, java.lang.String propertyName)
          
 java.lang.String getPropertyType(java.lang.String className, java.lang.String propertyName)
          
 java.lang.String getURL(java.lang.String documentName, java.lang.String action, java.lang.String queryString, java.lang.String anchor)
          
 boolean hasProgrammingRights()
          
 boolean isPropertyCustomMapped(java.lang.String className, java.lang.String property)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDocumentAccessBridge

public DefaultDocumentAccessBridge()
Method Detail

getDocumentContent

public java.lang.String getDocumentContent(java.lang.String documentName)
                                    throws java.lang.Exception

Specified by:
getDocumentContent in interface DocumentAccessBridge
Throws:
java.lang.Exception
See Also:
DocumentAccessBridge.getDocumentContent(String)

getDocumentContent

public java.lang.String getDocumentContent(java.lang.String documentName,
                                           java.lang.String language)
                                    throws java.lang.Exception

Specified by:
getDocumentContent in interface DocumentAccessBridge
Throws:
java.lang.Exception
See Also:
DocumentAccessBridge.getDocumentContent(String, String)

exists

public boolean exists(java.lang.String documentName)
               throws java.lang.Exception

Specified by:
exists in interface DocumentAccessBridge
Throws:
java.lang.Exception
See Also:
DocumentAccessBridge.exists(String)

getProperty

public java.lang.String getProperty(java.lang.String documentName,
                                    java.lang.String className,
                                    int objectNumber,
                                    java.lang.String propertyName)
                             throws java.lang.Exception

Specified by:
getProperty in interface DocumentAccessBridge
Throws:
java.lang.Exception
See Also:
DocumentAccessBridge.getProperty(String, String, int, String)

getProperty

public java.lang.String getProperty(java.lang.String documentName,
                                    java.lang.String className,
                                    java.lang.String propertyName)
                             throws java.lang.Exception

Specified by:
getProperty in interface DocumentAccessBridge
Throws:
java.lang.Exception
See Also:
DocumentAccessBridge.getProperty(String, String, String)

getProperty

public java.lang.String getProperty(java.lang.String documentName,
                                    java.lang.String propertyName)
                             throws java.lang.Exception

Specified by:
getProperty in interface DocumentAccessBridge
Throws:
java.lang.Exception
See Also:
DocumentAccessBridge.getProperty(String, String)

getPropertyType

public java.lang.String getPropertyType(java.lang.String className,
                                        java.lang.String propertyName)
                                 throws java.lang.Exception

Specified by:
getPropertyType in interface DocumentAccessBridge
Throws:
java.lang.Exception
See Also:
DocumentAccessBridge.getPropertyType(String, String)

isPropertyCustomMapped

public boolean isPropertyCustomMapped(java.lang.String className,
                                      java.lang.String property)
                               throws java.lang.Exception

Specified by:
isPropertyCustomMapped in interface DocumentAccessBridge
Throws:
java.lang.Exception
See Also:
DocumentAccessBridge.isPropertyCustomMapped(String, String)

getAttachmentContent

public byte[] getAttachmentContent(java.lang.String documentName,
                                   java.lang.String attachmentName)
                            throws java.lang.Exception

Specified by:
getAttachmentContent in interface DocumentAccessBridge
Throws:
java.lang.Exception
See Also:
DocumentAccessBridge.getAttachmentContent(String, String)

getURL

public java.lang.String getURL(java.lang.String documentName,
                               java.lang.String action,
                               java.lang.String queryString,
                               java.lang.String anchor)
                        throws java.lang.Exception

Specified by:
getURL in interface DocumentAccessBridge
Throws:
java.lang.Exception
See Also:
DocumentAccessBridge.getURL(String, String, String, String)

getAttachmentURL

public java.lang.String getAttachmentURL(java.lang.String documentName,
                                         java.lang.String attachmentName)
                                  throws java.lang.Exception

Specified by:
getAttachmentURL in interface DocumentAccessBridge
Throws:
java.lang.Exception
See Also:
DocumentAccessBridge.getAttachmentURL(String, String)

hasProgrammingRights

public boolean hasProgrammingRights()

Specified by:
hasProgrammingRights in interface DocumentAccessBridge
See Also:
DocumentAccessBridge.hasProgrammingRights()


Copyright © 2004-2008 XWiki. All Rights Reserved.