@Component @Singleton public class DefaultDocumentAccessBridge extends Object implements DocumentAccessBridge
Constructor and Description |
---|
DefaultDocumentAccessBridge() |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(DocumentReference documentReference) |
boolean |
exists(String documentReference)
Deprecated.
|
InputStream |
getAttachmentContent(AttachmentReference attachmentReference) |
byte[] |
getAttachmentContent(String documentReference,
String attachmentFilename)
Deprecated.
|
List<AttachmentReference> |
getAttachmentReferences(DocumentReference documentReference) |
String |
getAttachmentURL(AttachmentReference attachmentReference,
boolean isFullURL) |
String |
getAttachmentURL(AttachmentReference attachmentReference,
String queryString,
boolean isFullURL) |
String |
getAttachmentURL(String documentReference,
String attachmentName)
Deprecated.
|
List<String> |
getAttachmentURLs(DocumentReference documentReference,
boolean isFullURL)
Deprecated.
|
String |
getAttachmentVersion(AttachmentReference attachmentReference) |
DocumentReference |
getCurrentDocumentReference() |
String |
getCurrentUser()
Deprecated.
|
DocumentReference |
getCurrentUserReference() |
String |
getCurrentWiki() |
String |
getDefaultEncoding() |
DocumentModelBridge |
getDocument(DocumentReference documentReference) |
DocumentModelBridge |
getDocument(String documentReference)
Deprecated.
|
String |
getDocumentContent(DocumentReference documentReference,
String language) |
String |
getDocumentContent(String documentReference)
Deprecated.
|
String |
getDocumentContent(String documentReference,
String language)
Deprecated.
|
String |
getDocumentContentForDefaultLanguage(DocumentReference documentReference) |
String |
getDocumentContentForDefaultLanguage(String documentReference)
Deprecated.
|
String |
getDocumentSyntaxId(String documentReference)
Deprecated.
|
String |
getDocumentURL(DocumentReference documentReference,
String action,
String queryString,
String anchor) |
String |
getDocumentURL(DocumentReference documentReference,
String action,
String queryString,
String anchor,
boolean isFullURL) |
int |
getObjectNumber(DocumentReference documentReference,
DocumentReference classReference,
String propertyName,
String valueToMatch) |
List<Object> |
getProperties(String documentReference,
String className) |
Object |
getProperty(DocumentReference documentReference,
DocumentReference classReference,
int objectNumber,
String propertyName) |
Object |
getProperty(DocumentReference documentReference,
DocumentReference classReference,
String propertyName) |
Object |
getProperty(ObjectPropertyReference objectPropertyReference) |
Object |
getProperty(ObjectReference objectReference,
String propertyName) |
Object |
getProperty(String documentReference,
String propertyName) |
Object |
getProperty(String documentReference,
String className,
int objectNumber,
String propertyName) |
Object |
getProperty(String documentReference,
String className,
String propertyName)
Deprecated.
|
String |
getPropertyType(String className,
String propertyName) |
String |
getURL(String documentReference,
String action,
String queryString,
String anchor)
Deprecated.
|
boolean |
hasProgrammingRights() |
boolean |
isAdvancedUser() |
boolean |
isAdvancedUser(EntityReference userReference) |
boolean |
isDocumentEditable(DocumentReference documentReference) |
boolean |
isDocumentEditable(String documentReference)
Deprecated.
|
boolean |
isDocumentViewable(DocumentReference documentReference) |
boolean |
isDocumentViewable(String documentReference)
Deprecated.
|
boolean |
isPropertyCustomMapped(String className,
String property) |
void |
popDocumentFromContext(Map<String,Object> backupObjects) |
void |
pushDocumentInContext(Map<String,Object> backupObjects,
DocumentModelBridge document) |
void |
pushDocumentInContext(Map<String,Object> backupObjects,
DocumentReference documentReference) |
void |
pushDocumentInContext(Map<String,Object> backupObjects,
String documentReference)
Deprecated.
|
void |
setAttachmentContent(AttachmentReference attachmentReference,
byte[] attachmentData) |
void |
setAttachmentContent(String documentReference,
String attachmentFilename,
byte[] attachmentData)
Deprecated.
|
void |
setCurrentUser(String userName) |
void |
setDocumentContent(DocumentReference documentReference,
String content,
String editComment,
boolean isMinorEdit) |
void |
setDocumentContent(String documentReference,
String content,
String editComment,
boolean isMinorEdit)
Deprecated.
|
void |
setDocumentParentReference(DocumentReference documentReference,
DocumentReference parentReference) |
void |
setDocumentSyntaxId(DocumentReference documentReference,
String syntaxId) |
void |
setDocumentSyntaxId(String documentReference,
String syntaxId)
Deprecated.
|
void |
setDocumentTitle(DocumentReference documentReference,
String title) |
void |
setProperty(DocumentReference documentReference,
DocumentReference classReference,
String propertyName,
Object propertyValue) |
void |
setProperty(String documentReference,
String className,
String propertyName,
Object propertyValue)
Deprecated.
|
@Deprecated public DocumentModelBridge getDocument(String documentReference) throws Exception
getDocument
in interface DocumentAccessBridge
Exception
public DocumentModelBridge getDocument(DocumentReference documentReference) throws Exception
getDocument
in interface DocumentAccessBridge
Exception
public DocumentReference getCurrentDocumentReference()
getCurrentDocumentReference
in interface DocumentAccessBridge
@Deprecated public String getDocumentContent(String documentReference) throws Exception
getDocumentContent
in interface DocumentAccessBridge
Exception
public String getDocumentContentForDefaultLanguage(DocumentReference documentReference) throws Exception
getDocumentContentForDefaultLanguage
in interface DocumentAccessBridge
Exception
@Deprecated public String getDocumentContentForDefaultLanguage(String documentReference) throws Exception
getDocumentContentForDefaultLanguage
in interface DocumentAccessBridge
Exception
public String getDocumentContent(DocumentReference documentReference, String language) throws Exception
getDocumentContent
in interface DocumentAccessBridge
Exception
@Deprecated public String getDocumentContent(String documentReference, String language) throws Exception
getDocumentContent
in interface DocumentAccessBridge
Exception
public boolean exists(DocumentReference documentReference)
exists
in interface DocumentAccessBridge
@Deprecated public boolean exists(String documentReference)
exists
in interface DocumentAccessBridge
public void setDocumentContent(DocumentReference documentReference, String content, String editComment, boolean isMinorEdit) throws Exception
setDocumentContent
in interface DocumentAccessBridge
Exception
@Deprecated public void setDocumentContent(String documentReference, String content, String editComment, boolean isMinorEdit) throws Exception
setDocumentContent
in interface DocumentAccessBridge
Exception
@Deprecated public String getDocumentSyntaxId(String documentReference) throws Exception
getDocumentSyntaxId
in interface DocumentAccessBridge
Exception
public void setDocumentSyntaxId(DocumentReference documentReference, String syntaxId) throws Exception
setDocumentSyntaxId
in interface DocumentAccessBridge
Exception
@Deprecated public void setDocumentSyntaxId(String documentReference, String syntaxId) throws Exception
setDocumentSyntaxId
in interface DocumentAccessBridge
Exception
public void setDocumentParentReference(DocumentReference documentReference, DocumentReference parentReference) throws Exception
setDocumentParentReference
in interface DocumentAccessBridge
Exception
public void setDocumentTitle(DocumentReference documentReference, String title) throws Exception
setDocumentTitle
in interface DocumentAccessBridge
Exception
public int getObjectNumber(DocumentReference documentReference, DocumentReference classReference, String propertyName, String valueToMatch)
getObjectNumber
in interface DocumentAccessBridge
public Object getProperty(ObjectPropertyReference objectPropertyReference)
getProperty
in interface DocumentAccessBridge
public Object getProperty(ObjectReference objectReference, String propertyName)
getProperty
in interface DocumentAccessBridge
public Object getProperty(String documentReference, String className, int objectNumber, String propertyName)
getProperty
in interface DocumentAccessBridge
@Deprecated public Object getProperty(String documentReference, String className, String propertyName)
getProperty
in interface DocumentAccessBridge
public Object getProperty(DocumentReference documentReference, DocumentReference classReference, String propertyName)
getProperty
in interface DocumentAccessBridge
public Object getProperty(DocumentReference documentReference, DocumentReference classReference, int objectNumber, String propertyName)
getProperty
in interface DocumentAccessBridge
public Object getProperty(String documentReference, String propertyName)
getProperty
in interface DocumentAccessBridge
public List<Object> getProperties(String documentReference, String className)
getProperties
in interface DocumentAccessBridge
public String getPropertyType(String className, String propertyName) throws Exception
getPropertyType
in interface DocumentAccessBridge
Exception
public boolean isPropertyCustomMapped(String className, String property) throws Exception
isPropertyCustomMapped
in interface DocumentAccessBridge
Exception
@Deprecated public void setProperty(String documentReference, String className, String propertyName, Object propertyValue) throws Exception
setProperty
in interface DocumentAccessBridge
Exception
public void setProperty(DocumentReference documentReference, DocumentReference classReference, String propertyName, Object propertyValue) throws Exception
setProperty
in interface DocumentAccessBridge
Exception
@Deprecated public byte[] getAttachmentContent(String documentReference, String attachmentFilename) throws Exception
getAttachmentContent
in interface DocumentAccessBridge
Exception
public InputStream getAttachmentContent(AttachmentReference attachmentReference) throws Exception
getAttachmentContent
in interface DocumentAccessBridge
Exception
public void setAttachmentContent(AttachmentReference attachmentReference, byte[] attachmentData) throws Exception
setAttachmentContent
in interface DocumentAccessBridge
Exception
@Deprecated public void setAttachmentContent(String documentReference, String attachmentFilename, byte[] attachmentData) throws Exception
setAttachmentContent
in interface DocumentAccessBridge
Exception
public List<AttachmentReference> getAttachmentReferences(DocumentReference documentReference) throws Exception
getAttachmentReferences
in interface DocumentAccessBridge
Exception
public String getAttachmentVersion(AttachmentReference attachmentReference) throws Exception
getAttachmentVersion
in interface DocumentAccessBridge
Exception
public String getDocumentURL(DocumentReference documentReference, String action, String queryString, String anchor)
getDocumentURL
in interface DocumentAccessBridge
public String getDocumentURL(DocumentReference documentReference, String action, String queryString, String anchor, boolean isFullURL)
getDocumentURL
in interface DocumentAccessBridge
@Deprecated public String getURL(String documentReference, String action, String queryString, String anchor)
getURL
in interface DocumentAccessBridge
@Deprecated public String getAttachmentURL(String documentReference, String attachmentName)
getAttachmentURL
in interface DocumentAccessBridge
public String getAttachmentURL(AttachmentReference attachmentReference, boolean isFullURL)
getAttachmentURL
in interface DocumentAccessBridge
public String getAttachmentURL(AttachmentReference attachmentReference, String queryString, boolean isFullURL)
getAttachmentURL
in interface DocumentAccessBridge
@Deprecated public List<String> getAttachmentURLs(DocumentReference documentReference, boolean isFullURL) throws Exception
getAttachmentURLs
in interface DocumentAccessBridge
Exception
public boolean isDocumentViewable(DocumentReference documentReference)
isDocumentViewable
in interface DocumentAccessBridge
@Deprecated public boolean isDocumentViewable(String documentReference)
isDocumentViewable
in interface DocumentAccessBridge
@Deprecated public boolean isDocumentEditable(String documentReference)
isDocumentEditable
in interface DocumentAccessBridge
public boolean isDocumentEditable(DocumentReference documentReference)
isDocumentEditable
in interface DocumentAccessBridge
public boolean hasProgrammingRights()
hasProgrammingRights
in interface DocumentAccessBridge
@Deprecated public String getCurrentUser()
getCurrentUser
in interface DocumentAccessBridge
public DocumentReference getCurrentUserReference()
getCurrentUserReference
in interface DocumentAccessBridge
public boolean isAdvancedUser()
isAdvancedUser
in interface DocumentAccessBridge
public boolean isAdvancedUser(EntityReference userReference)
isAdvancedUser
in interface DocumentAccessBridge
public void setCurrentUser(String userName)
setCurrentUser
in interface DocumentAccessBridge
public String getDefaultEncoding()
getDefaultEncoding
in interface DocumentAccessBridge
public void popDocumentFromContext(Map<String,Object> backupObjects)
popDocumentFromContext
in interface DocumentAccessBridge
@Deprecated public void pushDocumentInContext(Map<String,Object> backupObjects, String documentReference) throws Exception
pushDocumentInContext
in interface DocumentAccessBridge
Exception
public void pushDocumentInContext(Map<String,Object> backupObjects, DocumentReference documentReference) throws Exception
pushDocumentInContext
in interface DocumentAccessBridge
Exception
public void pushDocumentInContext(Map<String,Object> backupObjects, DocumentModelBridge document) throws Exception
pushDocumentInContext
in interface DocumentAccessBridge
Exception
public String getCurrentWiki()
getCurrentWiki
in interface DocumentAccessBridge
Copyright © 2004–2017 XWiki. All rights reserved.